debianpatchset6.diff 1.2 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867
  1. --- libtar-1.2.11.orig/configure.ac
  2. +++ libtar-1.2.11/configure.ac
  3. @@ -3,6 +3,7 @@
  4. AC_PREREQ([2.57])
  5. AC_CONFIG_AUX_DIR([autoconf])
  6. AC_CONFIG_HEADERS([config.h])
  7. +AC_CONFIG_MACRO_DIR([m4])
  8. AC_COPYRIGHT([[
  9. Copyright (c) 1998-2003 University of Illinois Board of Trustees
  10. Copyright (c) 1998-2003 Mark D. Roth
  11. @@ -26,15 +27,15 @@
  12. dnl ### Check for compiler et al. ###################################
  13. +AC_AIX
  14. AC_PROG_CC
  15. -AC_PROG_RANLIB
  16. +AC_PROG_LIBTOOL
  17. AC_PROG_INSTALL
  18. AC_PROG_LN_S
  19. AC_PROG_MAKE_SET
  20. dnl ### Compiler characteristics. ##################################
  21. -AC_AIX
  22. AC_C_CONST
  23. @@ -93,9 +94,9 @@
  24. COMPAT_FUNC_SNPRINTF
  25. COMPAT_FUNC_STRDUP
  26. AC_FUNC_STRFTIME
  27. -COMPAT_FUNC_STRLCPY
  28. COMPAT_FUNC_STRMODE
  29. -COMPAT_FUNC_STRSEP
  30. +dnl COMPAT_FUNC_STRLCPY converted by compat/modules.ac
  31. +dnl COMPAT_FUNC_STRSEP
  32. dnl ### Check for libraries. #######################################
  33. --- libtar-1.2.11.orig/configure
  34. +++ libtar-1.2.11/configure
  35. @@ -1,9 +1,9 @@
  36. #! /bin/sh
  37. # Guess values for system-dependent variables and create Makefiles.
  38. -# Generated by GNU Autoconf 2.57 for libtar 1.2.11.
  39. +# Generated by GNU Autoconf 2.63 for libtar 1.2.11.
  40. #
  41. -# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  42. -# Free Software Foundation, Inc.
  43. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  44. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  45. # This configure script is free software; the Free Software Foundation
  46. # gives unlimited permission to copy, distribute and modify it.
  47. #
  48. @@ -16,52 +16,136 @@
  49. ## M4sh Initialization. ##
  50. ## --------------------- ##
  51. -# Be Bourne compatible
  52. +# Be more Bourne compatible
  53. +DUALCASE=1; export DUALCASE # for MKS sh
  54. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  55. emulate sh
  56. NULLCMD=:
  57. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  58. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  59. # is contrary to our usage. Disable this feature.
  60. alias -g '${1+"$@"}'='"$@"'
  61. -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  62. - set -o posix
  63. + setopt NO_GLOB_SUBST
  64. +else
  65. + case `(set -o) 2>/dev/null` in
  66. + *posix*) set -o posix ;;
  67. +esac
  68. +
  69. +fi
  70. +
  71. +
  72. +
  73. +
  74. +# PATH needs CR
  75. +# Avoid depending upon Character Ranges.
  76. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  77. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  78. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  79. +as_cr_digits='0123456789'
  80. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  81. +
  82. +as_nl='
  83. +'
  84. +export as_nl
  85. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  86. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  87. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  88. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  89. +if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  90. + as_echo='printf %s\n'
  91. + as_echo_n='printf %s'
  92. +else
  93. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  94. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  95. + as_echo_n='/usr/ucb/echo -n'
  96. + else
  97. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  98. + as_echo_n_body='eval
  99. + arg=$1;
  100. + case $arg in
  101. + *"$as_nl"*)
  102. + expr "X$arg" : "X\\(.*\\)$as_nl";
  103. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  104. + esac;
  105. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  106. + '
  107. + export as_echo_n_body
  108. + as_echo_n='sh -c $as_echo_n_body as_echo'
  109. + fi
  110. + export as_echo_body
  111. + as_echo='sh -c $as_echo_body as_echo'
  112. +fi
  113. +
  114. +# The user is always right.
  115. +if test "${PATH_SEPARATOR+set}" != set; then
  116. + PATH_SEPARATOR=:
  117. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  118. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  119. + PATH_SEPARATOR=';'
  120. + }
  121. fi
  122. # Support unset when possible.
  123. -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  124. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  125. as_unset=unset
  126. else
  127. as_unset=false
  128. fi
  129. +# IFS
  130. +# We need space, tab and new line, in precisely that order. Quoting is
  131. +# there to prevent editors from complaining about space-tab.
  132. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  133. +# splitting by setting IFS to empty value.)
  134. +IFS=" "" $as_nl"
  135. +
  136. +# Find who we are. Look in the path if we contain no directory separator.
  137. +case $0 in
  138. + *[\\/]* ) as_myself=$0 ;;
  139. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  140. +for as_dir in $PATH
  141. +do
  142. + IFS=$as_save_IFS
  143. + test -z "$as_dir" && as_dir=.
  144. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  145. +done
  146. +IFS=$as_save_IFS
  147. +
  148. + ;;
  149. +esac
  150. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  151. +# in which case we are not to be found in the path.
  152. +if test "x$as_myself" = x; then
  153. + as_myself=$0
  154. +fi
  155. +if test ! -f "$as_myself"; then
  156. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  157. + { (exit 1); exit 1; }
  158. +fi
  159. +
  160. # Work around bugs in pre-3.0 UWIN ksh.
  161. -$as_unset ENV MAIL MAILPATH
  162. +for as_var in ENV MAIL MAILPATH
  163. +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  164. +done
  165. PS1='$ '
  166. PS2='> '
  167. PS4='+ '
  168. # NLS nuisances.
  169. -for as_var in \
  170. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  171. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  172. - LC_TELEPHONE LC_TIME
  173. -do
  174. - if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  175. - eval $as_var=C; export $as_var
  176. - else
  177. - $as_unset $as_var
  178. - fi
  179. -done
  180. +LC_ALL=C
  181. +export LC_ALL
  182. +LANGUAGE=C
  183. +export LANGUAGE
  184. # Required to use basename.
  185. -if expr a : '\(a\)' >/dev/null 2>&1; then
  186. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  187. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  188. as_expr=expr
  189. else
  190. as_expr=false
  191. fi
  192. -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  193. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  194. as_basename=basename
  195. else
  196. as_basename=false
  197. @@ -69,206 +153,599 @@
  198. # Name of the executable.
  199. -as_me=`$as_basename "$0" ||
  200. +as_me=`$as_basename -- "$0" ||
  201. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  202. X"$0" : 'X\(//\)$' \| \
  203. - X"$0" : 'X\(/\)$' \| \
  204. - . : '\(.\)' 2>/dev/null ||
  205. -echo X/"$0" |
  206. - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  207. - /^X\/\(\/\/\)$/{ s//\1/; q; }
  208. - /^X\/\(\/\).*/{ s//\1/; q; }
  209. - s/.*/./; q'`
  210. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  211. +$as_echo X/"$0" |
  212. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  213. + s//\1/
  214. + q
  215. + }
  216. + /^X\/\(\/\/\)$/{
  217. + s//\1/
  218. + q
  219. + }
  220. + /^X\/\(\/\).*/{
  221. + s//\1/
  222. + q
  223. + }
  224. + s/.*/./; q'`
  225. +# CDPATH.
  226. +$as_unset CDPATH
  227. -# PATH needs CR, and LINENO needs CR and PATH.
  228. -# Avoid depending upon Character Ranges.
  229. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  230. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  231. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  232. -as_cr_digits='0123456789'
  233. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  234. -# The user is always right.
  235. -if test "${PATH_SEPARATOR+set}" != set; then
  236. - echo "#! /bin/sh" >conf$$.sh
  237. - echo "exit 0" >>conf$$.sh
  238. - chmod +x conf$$.sh
  239. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  240. - PATH_SEPARATOR=';'
  241. - else
  242. - PATH_SEPARATOR=:
  243. - fi
  244. - rm -f conf$$.sh
  245. +if test "x$CONFIG_SHELL" = x; then
  246. + if (eval ":") 2>/dev/null; then
  247. + as_have_required=yes
  248. +else
  249. + as_have_required=no
  250. fi
  251. + if test $as_have_required = yes && (eval ":
  252. +(as_func_return () {
  253. + (exit \$1)
  254. +}
  255. +as_func_success () {
  256. + as_func_return 0
  257. +}
  258. +as_func_failure () {
  259. + as_func_return 1
  260. +}
  261. +as_func_ret_success () {
  262. + return 0
  263. +}
  264. +as_func_ret_failure () {
  265. + return 1
  266. +}
  267. - as_lineno_1=$LINENO
  268. - as_lineno_2=$LINENO
  269. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  270. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  271. - test "x$as_lineno_3" = "x$as_lineno_2" || {
  272. - # Find who we are. Look in the path if we contain no path at all
  273. - # relative or not.
  274. - case $0 in
  275. - *[\\/]* ) as_myself=$0 ;;
  276. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  277. -for as_dir in $PATH
  278. -do
  279. - IFS=$as_save_IFS
  280. - test -z "$as_dir" && as_dir=.
  281. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  282. -done
  283. +exitcode=0
  284. +if as_func_success; then
  285. + :
  286. +else
  287. + exitcode=1
  288. + echo as_func_success failed.
  289. +fi
  290. - ;;
  291. - esac
  292. - # We did not find ourselves, most probably we were run as `sh COMMAND'
  293. - # in which case we are not to be found in the path.
  294. - if test "x$as_myself" = x; then
  295. - as_myself=$0
  296. - fi
  297. - if test ! -f "$as_myself"; then
  298. - { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  299. - { (exit 1); exit 1; }; }
  300. - fi
  301. - case $CONFIG_SHELL in
  302. - '')
  303. +if as_func_failure; then
  304. + exitcode=1
  305. + echo as_func_failure succeeded.
  306. +fi
  307. +
  308. +if as_func_ret_success; then
  309. + :
  310. +else
  311. + exitcode=1
  312. + echo as_func_ret_success failed.
  313. +fi
  314. +
  315. +if as_func_ret_failure; then
  316. + exitcode=1
  317. + echo as_func_ret_failure succeeded.
  318. +fi
  319. +
  320. +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  321. + :
  322. +else
  323. + exitcode=1
  324. + echo positional parameters were not saved.
  325. +fi
  326. +
  327. +test \$exitcode = 0) || { (exit 1); exit 1; }
  328. +
  329. +(
  330. + as_lineno_1=\$LINENO
  331. + as_lineno_2=\$LINENO
  332. + test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  333. + test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  334. +") 2> /dev/null; then
  335. + :
  336. +else
  337. + as_candidate_shells=
  338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  339. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  340. do
  341. IFS=$as_save_IFS
  342. test -z "$as_dir" && as_dir=.
  343. - for as_base in sh bash ksh sh5; do
  344. - case $as_dir in
  345. + case $as_dir in
  346. /*)
  347. - if ("$as_dir/$as_base" -c '
  348. + for as_base in sh bash ksh sh5; do
  349. + as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  350. + done;;
  351. + esac
  352. +done
  353. +IFS=$as_save_IFS
  354. +
  355. +
  356. + for as_shell in $as_candidate_shells $SHELL; do
  357. + # Try only shells that exist, to save several forks.
  358. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  359. + { ("$as_shell") 2> /dev/null <<\_ASEOF
  360. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  361. + emulate sh
  362. + NULLCMD=:
  363. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  364. + # is contrary to our usage. Disable this feature.
  365. + alias -g '${1+"$@"}'='"$@"'
  366. + setopt NO_GLOB_SUBST
  367. +else
  368. + case `(set -o) 2>/dev/null` in
  369. + *posix*) set -o posix ;;
  370. +esac
  371. +
  372. +fi
  373. +
  374. +
  375. +:
  376. +_ASEOF
  377. +}; then
  378. + CONFIG_SHELL=$as_shell
  379. + as_have_required=yes
  380. + if { "$as_shell" 2> /dev/null <<\_ASEOF
  381. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  382. + emulate sh
  383. + NULLCMD=:
  384. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  385. + # is contrary to our usage. Disable this feature.
  386. + alias -g '${1+"$@"}'='"$@"'
  387. + setopt NO_GLOB_SUBST
  388. +else
  389. + case `(set -o) 2>/dev/null` in
  390. + *posix*) set -o posix ;;
  391. +esac
  392. +
  393. +fi
  394. +
  395. +
  396. +:
  397. +(as_func_return () {
  398. + (exit $1)
  399. +}
  400. +as_func_success () {
  401. + as_func_return 0
  402. +}
  403. +as_func_failure () {
  404. + as_func_return 1
  405. +}
  406. +as_func_ret_success () {
  407. + return 0
  408. +}
  409. +as_func_ret_failure () {
  410. + return 1
  411. +}
  412. +
  413. +exitcode=0
  414. +if as_func_success; then
  415. + :
  416. +else
  417. + exitcode=1
  418. + echo as_func_success failed.
  419. +fi
  420. +
  421. +if as_func_failure; then
  422. + exitcode=1
  423. + echo as_func_failure succeeded.
  424. +fi
  425. +
  426. +if as_func_ret_success; then
  427. + :
  428. +else
  429. + exitcode=1
  430. + echo as_func_ret_success failed.
  431. +fi
  432. +
  433. +if as_func_ret_failure; then
  434. + exitcode=1
  435. + echo as_func_ret_failure succeeded.
  436. +fi
  437. +
  438. +if ( set x; as_func_ret_success y && test x = "$1" ); then
  439. + :
  440. +else
  441. + exitcode=1
  442. + echo positional parameters were not saved.
  443. +fi
  444. +
  445. +test $exitcode = 0) || { (exit 1); exit 1; }
  446. +
  447. +(
  448. as_lineno_1=$LINENO
  449. as_lineno_2=$LINENO
  450. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  451. test "x$as_lineno_1" != "x$as_lineno_2" &&
  452. - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  453. - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  454. - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  455. - CONFIG_SHELL=$as_dir/$as_base
  456. - export CONFIG_SHELL
  457. - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  458. - fi;;
  459. - esac
  460. - done
  461. -done
  462. -;;
  463. - esac
  464. + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  465. +
  466. +_ASEOF
  467. +}; then
  468. + break
  469. +fi
  470. +
  471. +fi
  472. +
  473. + done
  474. +
  475. + if test "x$CONFIG_SHELL" != x; then
  476. + for as_var in BASH_ENV ENV
  477. + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  478. + done
  479. + export CONFIG_SHELL
  480. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  481. +fi
  482. +
  483. +
  484. + if test $as_have_required = no; then
  485. + echo This script requires a shell more modern than all the
  486. + echo shells that I found on your system. Please install a
  487. + echo modern shell, or manually run the script under such a
  488. + echo shell if you do have one.
  489. + { (exit 1); exit 1; }
  490. +fi
  491. +
  492. +
  493. +fi
  494. +
  495. +fi
  496. +
  497. +
  498. +
  499. +(eval "as_func_return () {
  500. + (exit \$1)
  501. +}
  502. +as_func_success () {
  503. + as_func_return 0
  504. +}
  505. +as_func_failure () {
  506. + as_func_return 1
  507. +}
  508. +as_func_ret_success () {
  509. + return 0
  510. +}
  511. +as_func_ret_failure () {
  512. + return 1
  513. +}
  514. +
  515. +exitcode=0
  516. +if as_func_success; then
  517. + :
  518. +else
  519. + exitcode=1
  520. + echo as_func_success failed.
  521. +fi
  522. +
  523. +if as_func_failure; then
  524. + exitcode=1
  525. + echo as_func_failure succeeded.
  526. +fi
  527. +
  528. +if as_func_ret_success; then
  529. + :
  530. +else
  531. + exitcode=1
  532. + echo as_func_ret_success failed.
  533. +fi
  534. +
  535. +if as_func_ret_failure; then
  536. + exitcode=1
  537. + echo as_func_ret_failure succeeded.
  538. +fi
  539. +
  540. +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  541. + :
  542. +else
  543. + exitcode=1
  544. + echo positional parameters were not saved.
  545. +fi
  546. +
  547. +test \$exitcode = 0") || {
  548. + echo No shell found that supports shell functions.
  549. + echo Please tell bug-autoconf@gnu.org about your system,
  550. + echo including any error possibly output before this message.
  551. + echo This can help us improve future autoconf versions.
  552. + echo Configuration will now proceed without shell functions.
  553. +}
  554. +
  555. +
  556. +
  557. + as_lineno_1=$LINENO
  558. + as_lineno_2=$LINENO
  559. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  560. + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  561. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  562. # uniformly replaced by the line number. The first 'sed' inserts a
  563. - # line-number line before each line; the second 'sed' does the real
  564. - # work. The second script uses 'N' to pair each line-number line
  565. - # with the numbered line, and appends trailing '-' during
  566. - # substitution so that $LINENO is not a special case at line end.
  567. + # line-number line after each line using $LINENO; the second 'sed'
  568. + # does the real work. The second script uses 'N' to pair each
  569. + # line-number line with the line containing $LINENO, and appends
  570. + # trailing '-' during substitution so that $LINENO is not a special
  571. + # case at line end.
  572. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  573. - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  574. - sed '=' <$as_myself |
  575. + # scripts with optimization help from Paolo Bonzini. Blame Lee
  576. + # E. McMahon (1931-1989) for sed's syntax. :-)
  577. + sed -n '
  578. + p
  579. + /[$]LINENO/=
  580. + ' <$as_myself |
  581. sed '
  582. + s/[$]LINENO.*/&-/
  583. + t lineno
  584. + b
  585. + :lineno
  586. N
  587. - s,$,-,
  588. - : loop
  589. - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  590. + :loop
  591. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  592. t loop
  593. - s,-$,,
  594. - s,^['$as_cr_digits']*\n,,
  595. + s/-\n.*//
  596. ' >$as_me.lineno &&
  597. - chmod +x $as_me.lineno ||
  598. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  599. + chmod +x "$as_me.lineno" ||
  600. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  601. { (exit 1); exit 1; }; }
  602. # Don't try to exec as it changes $[0], causing all sort of problems
  603. # (the dirname of $[0] is not the place where we might find the
  604. - # original and so on. Autoconf is especially sensible to this).
  605. - . ./$as_me.lineno
  606. + # original and so on. Autoconf is especially sensitive to this).
  607. + . "./$as_me.lineno"
  608. # Exit status is that of the last command.
  609. exit
  610. }
  611. -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  612. - *c*,-n*) ECHO_N= ECHO_C='
  613. -' ECHO_T=' ' ;;
  614. - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  615. - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  616. -esac
  617. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  618. + as_dirname=dirname
  619. +else
  620. + as_dirname=false
  621. +fi
  622. -if expr a : '\(a\)' >/dev/null 2>&1; then
  623. +ECHO_C= ECHO_N= ECHO_T=
  624. +case `echo -n x` in
  625. +-n*)
  626. + case `echo 'x\c'` in
  627. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  628. + *) ECHO_C='\c';;
  629. + esac;;
  630. +*)
  631. + ECHO_N='-n';;
  632. +esac
  633. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  634. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  635. as_expr=expr
  636. else
  637. as_expr=false
  638. fi
  639. rm -f conf$$ conf$$.exe conf$$.file
  640. -echo >conf$$.file
  641. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  642. - # We could just check for DJGPP; but this test a) works b) is more generic
  643. - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  644. - if test -f conf$$.exe; then
  645. - # Don't use ln at all; we don't have any links
  646. - as_ln_s='cp -p'
  647. - else
  648. +if test -d conf$$.dir; then
  649. + rm -f conf$$.dir/conf$$.file
  650. +else
  651. + rm -f conf$$.dir
  652. + mkdir conf$$.dir 2>/dev/null
  653. +fi
  654. +if (echo >conf$$.file) 2>/dev/null; then
  655. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  656. as_ln_s='ln -s'
  657. + # ... but there are two gotchas:
  658. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  659. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  660. + # In both cases, we have to default to `cp -p'.
  661. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  662. + as_ln_s='cp -p'
  663. + elif ln conf$$.file conf$$ 2>/dev/null; then
  664. + as_ln_s=ln
  665. + else
  666. + as_ln_s='cp -p'
  667. fi
  668. -elif ln conf$$.file conf$$ 2>/dev/null; then
  669. - as_ln_s=ln
  670. else
  671. as_ln_s='cp -p'
  672. fi
  673. -rm -f conf$$ conf$$.exe conf$$.file
  674. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  675. +rmdir conf$$.dir 2>/dev/null
  676. if mkdir -p . 2>/dev/null; then
  677. as_mkdir_p=:
  678. else
  679. + test -d ./-p && rmdir ./-p
  680. as_mkdir_p=false
  681. fi
  682. -as_executable_p="test -f"
  683. +if test -x / >/dev/null 2>&1; then
  684. + as_test_x='test -x'
  685. +else
  686. + if ls -dL / >/dev/null 2>&1; then
  687. + as_ls_L_option=L
  688. + else
  689. + as_ls_L_option=
  690. + fi
  691. + as_test_x='
  692. + eval sh -c '\''
  693. + if test -d "$1"; then
  694. + test -d "$1/.";
  695. + else
  696. + case $1 in
  697. + -*)set "./$1";;
  698. + esac;
  699. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  700. + ???[sx]*):;;*)false;;esac;fi
  701. + '\'' sh
  702. + '
  703. +fi
  704. +as_executable_p=$as_test_x
  705. # Sed expression to map a string onto a valid CPP name.
  706. -as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  707. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  708. # Sed expression to map a string onto a valid variable name.
  709. -as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  710. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  711. -# IFS
  712. -# We need space, tab and new line, in precisely that order.
  713. -as_nl='
  714. -'
  715. -IFS=" $as_nl"
  716. -# CDPATH.
  717. -$as_unset CDPATH
  718. +# Check that we are running under the correct shell.
  719. +SHELL=${CONFIG_SHELL-/bin/sh}
  720. +
  721. +case X$lt_ECHO in
  722. +X*--fallback-echo)
  723. + # Remove one level of quotation (which was required for Make).
  724. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  725. + ;;
  726. +esac
  727. +
  728. +ECHO=${lt_ECHO-echo}
  729. +if test "X$1" = X--no-reexec; then
  730. + # Discard the --no-reexec flag, and continue.
  731. + shift
  732. +elif test "X$1" = X--fallback-echo; then
  733. + # Avoid inline document here, it may be left over
  734. + :
  735. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  736. + # Yippee, $ECHO works!
  737. + :
  738. +else
  739. + # Restart under the correct shell.
  740. + exec $SHELL "$0" --no-reexec ${1+"$@"}
  741. +fi
  742. +
  743. +if test "X$1" = X--fallback-echo; then
  744. + # used as fallback echo
  745. + shift
  746. + cat <<_LT_EOF
  747. +$*
  748. +_LT_EOF
  749. + exit 0
  750. +fi
  751. +
  752. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  753. +# if CDPATH is set.
  754. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  755. +
  756. +if test -z "$lt_ECHO"; then
  757. + if test "X${echo_test_string+set}" != Xset; then
  758. + # find a string as large as possible, as long as the shell can cope with it
  759. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  760. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  761. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  762. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  763. + then
  764. + break
  765. + fi
  766. + done
  767. + fi
  768. +
  769. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  770. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  771. + test "X$echo_testing_string" = "X$echo_test_string"; then
  772. + :
  773. + else
  774. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  775. + # backslashes. This makes it impossible to quote backslashes using
  776. + # echo "$something" | sed 's/\\/\\\\/g'
  777. + #
  778. + # So, first we look for a working echo in the user's PATH.
  779. +
  780. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  781. + for dir in $PATH /usr/ucb; do
  782. + IFS="$lt_save_ifs"
  783. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  784. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  785. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  786. + test "X$echo_testing_string" = "X$echo_test_string"; then
  787. + ECHO="$dir/echo"
  788. + break
  789. + fi
  790. + done
  791. + IFS="$lt_save_ifs"
  792. +
  793. + if test "X$ECHO" = Xecho; then
  794. + # We didn't find a better echo, so look for alternatives.
  795. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  796. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  797. + test "X$echo_testing_string" = "X$echo_test_string"; then
  798. + # This shell has a builtin print -r that does the trick.
  799. + ECHO='print -r'
  800. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  801. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  802. + # If we have ksh, try running configure again with it.
  803. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  804. + export ORIGINAL_CONFIG_SHELL
  805. + CONFIG_SHELL=/bin/ksh
  806. + export CONFIG_SHELL
  807. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  808. + else
  809. + # Try using printf.
  810. + ECHO='printf %s\n'
  811. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  812. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  813. + test "X$echo_testing_string" = "X$echo_test_string"; then
  814. + # Cool, printf works
  815. + :
  816. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  817. + test "X$echo_testing_string" = 'X\t' &&
  818. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  819. + test "X$echo_testing_string" = "X$echo_test_string"; then
  820. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  821. + export CONFIG_SHELL
  822. + SHELL="$CONFIG_SHELL"
  823. + export SHELL
  824. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  825. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  826. + test "X$echo_testing_string" = 'X\t' &&
  827. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  828. + test "X$echo_testing_string" = "X$echo_test_string"; then
  829. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  830. + else
  831. + # maybe with a smaller string...
  832. + prev=:
  833. +
  834. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  835. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  836. + then
  837. + break
  838. + fi
  839. + prev="$cmd"
  840. + done
  841. +
  842. + if test "$prev" != 'sed 50q "$0"'; then
  843. + echo_test_string=`eval $prev`
  844. + export echo_test_string
  845. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  846. + else
  847. + # Oops. We lost completely, so just stick with echo.
  848. + ECHO=echo
  849. + fi
  850. + fi
  851. + fi
  852. + fi
  853. + fi
  854. +fi
  855. +
  856. +# Copy echo and quote the copy suitably for passing to libtool from
  857. +# the Makefile, instead of quoting the original, which is used later.
  858. +lt_ECHO=$ECHO
  859. +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  860. + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  861. +fi
  862. +
  863. +
  864. +
  865. +
  866. +exec 7<&0 </dev/null 6>&1
  867. # Name of the host.
  868. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  869. # so uname gets run too.
  870. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  871. -exec 6>&1
  872. -
  873. #
  874. # Initializations.
  875. #
  876. ac_default_prefix=/usr/local
  877. +ac_clean_files=
  878. ac_config_libobj_dir=.
  879. +LIBOBJS=
  880. cross_compiling=no
  881. subdirs=
  882. MFLAGS=
  883. MAKEFLAGS=
  884. SHELL=${CONFIG_SHELL-/bin/sh}
  885. -# Maximum number of lines to put in a shell here document.
  886. -# This variable seems obsolete. It should probably be removed, and
  887. -# only ac_max_sed_lines should be used.
  888. -: ${ac_max_here_lines=38}
  889. -
  890. # Identity of this package.
  891. PACKAGE_NAME='libtar'
  892. PACKAGE_TARNAME='libtar'
  893. @@ -280,46 +757,155 @@
  894. # Factoring default headers for most tests.
  895. ac_includes_default="\
  896. #include <stdio.h>
  897. -#if HAVE_SYS_TYPES_H
  898. +#ifdef HAVE_SYS_TYPES_H
  899. # include <sys/types.h>
  900. #endif
  901. -#if HAVE_SYS_STAT_H
  902. +#ifdef HAVE_SYS_STAT_H
  903. # include <sys/stat.h>
  904. #endif
  905. -#if STDC_HEADERS
  906. +#ifdef STDC_HEADERS
  907. # include <stdlib.h>
  908. # include <stddef.h>
  909. #else
  910. -# if HAVE_STDLIB_H
  911. +# ifdef HAVE_STDLIB_H
  912. # include <stdlib.h>
  913. # endif
  914. #endif
  915. -#if HAVE_STRING_H
  916. -# if !STDC_HEADERS && HAVE_MEMORY_H
  917. +#ifdef HAVE_STRING_H
  918. +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  919. # include <memory.h>
  920. # endif
  921. # include <string.h>
  922. #endif
  923. -#if HAVE_STRINGS_H
  924. +#ifdef HAVE_STRINGS_H
  925. # include <strings.h>
  926. #endif
  927. -#if HAVE_INTTYPES_H
  928. +#ifdef HAVE_INTTYPES_H
  929. # include <inttypes.h>
  930. -#else
  931. -# if HAVE_STDINT_H
  932. -# include <stdint.h>
  933. -# endif
  934. #endif
  935. -#if HAVE_UNISTD_H
  936. +#ifdef HAVE_STDINT_H
  937. +# include <stdint.h>
  938. +#endif
  939. +#ifdef HAVE_UNISTD_H
  940. # include <unistd.h>
  941. #endif"
  942. -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS EPKG MKENCAP ENCAP_DEFS ENCAP_INSTALL_RULES ENCAP_INSTALL_TARGET CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LIBOBJS LISTHASH_PREFIX LISTHASH_DIR MKDIR RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE CPP EGREP LTLIBOBJS'
  943. +ac_subst_vars='LTLIBOBJS
  944. +SET_MAKE
  945. +INSTALL_DATA
  946. +INSTALL_SCRIPT
  947. +INSTALL_PROGRAM
  948. +OTOOL64
  949. +OTOOL
  950. +LIPO
  951. +NMEDIT
  952. +DSYMUTIL
  953. +lt_ECHO
  954. +RANLIB
  955. +STRIP
  956. +AR
  957. +OBJDUMP
  958. +LN_S
  959. +NM
  960. +ac_ct_DUMPBIN
  961. +DUMPBIN
  962. +LD
  963. +FGREP
  964. +SED
  965. +host_os
  966. +host_vendor
  967. +host_cpu
  968. +host
  969. +build_os
  970. +build_vendor
  971. +build_cpu
  972. +build
  973. +LIBTOOL
  974. +EGREP
  975. +GREP
  976. +CPP
  977. +MKDIR
  978. +LISTHASH_DIR
  979. +LISTHASH_PREFIX
  980. +LIBOBJS
  981. +OBJEXT
  982. +EXEEXT
  983. +ac_ct_CC
  984. +CPPFLAGS
  985. +LDFLAGS
  986. +CFLAGS
  987. +CC
  988. +ENCAP_INSTALL_TARGET
  989. +ENCAP_INSTALL_RULES
  990. +ENCAP_DEFS
  991. +MKENCAP
  992. +EPKG
  993. +target_alias
  994. +host_alias
  995. +build_alias
  996. +LIBS
  997. +ECHO_T
  998. +ECHO_N
  999. +ECHO_C
  1000. +DEFS
  1001. +mandir
  1002. +localedir
  1003. +libdir
  1004. +psdir
  1005. +pdfdir
  1006. +dvidir
  1007. +htmldir
  1008. +infodir
  1009. +docdir
  1010. +oldincludedir
  1011. +includedir
  1012. +localstatedir
  1013. +sharedstatedir
  1014. +sysconfdir
  1015. +datadir
  1016. +datarootdir
  1017. +libexecdir
  1018. +sbindir
  1019. +bindir
  1020. +program_transform_name
  1021. +prefix
  1022. +exec_prefix
  1023. +PACKAGE_BUGREPORT
  1024. +PACKAGE_STRING
  1025. +PACKAGE_VERSION
  1026. +PACKAGE_TARNAME
  1027. +PACKAGE_NAME
  1028. +PATH_SEPARATOR
  1029. +SHELL'
  1030. ac_subst_files=''
  1031. +ac_user_opts='
  1032. +enable_option_checking
  1033. +enable_encap
  1034. +enable_epkg_install
  1035. +enable_shared
  1036. +enable_static
  1037. +with_pic
  1038. +enable_fast_install
  1039. +with_gnu_ld
  1040. +enable_libtool_lock
  1041. +with_zlib
  1042. +'
  1043. + ac_precious_vars='build_alias
  1044. +host_alias
  1045. +target_alias
  1046. +CC
  1047. +CFLAGS
  1048. +LDFLAGS
  1049. +LIBS
  1050. +CPPFLAGS
  1051. +CPP'
  1052. +
  1053. # Initialize some variables set by options.
  1054. ac_init_help=
  1055. ac_init_version=false
  1056. +ac_unrecognized_opts=
  1057. +ac_unrecognized_sep=
  1058. # The variables have the same names as the options, with
  1059. # dashes changed to underlines.
  1060. cache_file=/dev/null
  1061. @@ -342,34 +928,48 @@
  1062. # and all the variables that are supposed to be based on exec_prefix
  1063. # by default will actually change.
  1064. # Use braces instead of parens because sh, perl, etc. also accept them.
  1065. +# (The list follows the same order as the GNU Coding Standards.)
  1066. bindir='${exec_prefix}/bin'
  1067. sbindir='${exec_prefix}/sbin'
  1068. libexecdir='${exec_prefix}/libexec'
  1069. -datadir='${prefix}/share'
  1070. +datarootdir='${prefix}/share'
  1071. +datadir='${datarootdir}'
  1072. sysconfdir='${prefix}/etc'
  1073. sharedstatedir='${prefix}/com'
  1074. localstatedir='${prefix}/var'
  1075. -libdir='${exec_prefix}/lib'
  1076. includedir='${prefix}/include'
  1077. oldincludedir='/usr/include'
  1078. -infodir='${prefix}/info'
  1079. -mandir='${prefix}/man'
  1080. +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1081. +infodir='${datarootdir}/info'
  1082. +htmldir='${docdir}'
  1083. +dvidir='${docdir}'
  1084. +pdfdir='${docdir}'
  1085. +psdir='${docdir}'
  1086. +libdir='${exec_prefix}/lib'
  1087. +localedir='${datarootdir}/locale'
  1088. +mandir='${datarootdir}/man'
  1089. ac_prev=
  1090. +ac_dashdash=
  1091. for ac_option
  1092. do
  1093. # If the previous option needs an argument, assign it.
  1094. if test -n "$ac_prev"; then
  1095. - eval "$ac_prev=\$ac_option"
  1096. + eval $ac_prev=\$ac_option
  1097. ac_prev=
  1098. continue
  1099. fi
  1100. - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  1101. + case $ac_option in
  1102. + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1103. + *) ac_optarg=yes ;;
  1104. + esac
  1105. # Accept the important Cygnus configure options, so we can diagnose typos.
  1106. - case $ac_option in
  1107. + case $ac_dashdash$ac_option in
  1108. + --)
  1109. + ac_dashdash=yes ;;
  1110. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1111. ac_prev=bindir ;;
  1112. @@ -391,33 +991,61 @@
  1113. --config-cache | -C)
  1114. cache_file=config.cache ;;
  1115. - -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  1116. + -datadir | --datadir | --datadi | --datad)
  1117. ac_prev=datadir ;;
  1118. - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  1119. - | --da=*)
  1120. + -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1121. datadir=$ac_optarg ;;
  1122. + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1123. + | --dataroo | --dataro | --datar)
  1124. + ac_prev=datarootdir ;;
  1125. + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1126. + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1127. + datarootdir=$ac_optarg ;;
  1128. +
  1129. -disable-* | --disable-*)
  1130. - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1131. + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1132. # Reject names that are not valid shell variable names.
  1133. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  1134. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  1135. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1136. + { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1137. { (exit 1); exit 1; }; }
  1138. - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  1139. - eval "enable_$ac_feature=no" ;;
  1140. + ac_useropt_orig=$ac_useropt
  1141. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1142. + case $ac_user_opts in
  1143. + *"
  1144. +"enable_$ac_useropt"
  1145. +"*) ;;
  1146. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1147. + ac_unrecognized_sep=', ';;
  1148. + esac
  1149. + eval enable_$ac_useropt=no ;;
  1150. +
  1151. + -docdir | --docdir | --docdi | --doc | --do)
  1152. + ac_prev=docdir ;;
  1153. + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1154. + docdir=$ac_optarg ;;
  1155. +
  1156. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1157. + ac_prev=dvidir ;;
  1158. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1159. + dvidir=$ac_optarg ;;
  1160. -enable-* | --enable-*)
  1161. - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1162. + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1163. # Reject names that are not valid shell variable names.
  1164. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  1165. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  1166. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1167. + { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1168. { (exit 1); exit 1; }; }
  1169. - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  1170. - case $ac_option in
  1171. - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  1172. - *) ac_optarg=yes ;;
  1173. + ac_useropt_orig=$ac_useropt
  1174. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1175. + case $ac_user_opts in
  1176. + *"
  1177. +"enable_$ac_useropt"
  1178. +"*) ;;
  1179. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1180. + ac_unrecognized_sep=', ';;
  1181. esac
  1182. - eval "enable_$ac_feature='$ac_optarg'" ;;
  1183. + eval enable_$ac_useropt=\$ac_optarg ;;
  1184. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1185. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1186. @@ -444,6 +1072,12 @@
  1187. -host=* | --host=* | --hos=* | --ho=*)
  1188. host_alias=$ac_optarg ;;
  1189. + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1190. + ac_prev=htmldir ;;
  1191. + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1192. + | --ht=*)
  1193. + htmldir=$ac_optarg ;;
  1194. +
  1195. -includedir | --includedir | --includedi | --included | --include \
  1196. | --includ | --inclu | --incl | --inc)
  1197. ac_prev=includedir ;;
  1198. @@ -468,13 +1102,16 @@
  1199. | --libexe=* | --libex=* | --libe=*)
  1200. libexecdir=$ac_optarg ;;
  1201. + -localedir | --localedir | --localedi | --localed | --locale)
  1202. + ac_prev=localedir ;;
  1203. + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1204. + localedir=$ac_optarg ;;
  1205. +
  1206. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1207. - | --localstate | --localstat | --localsta | --localst \
  1208. - | --locals | --local | --loca | --loc | --lo)
  1209. + | --localstate | --localstat | --localsta | --localst | --locals)
  1210. ac_prev=localstatedir ;;
  1211. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1212. - | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  1213. - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  1214. + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1215. localstatedir=$ac_optarg ;;
  1216. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1217. @@ -539,6 +1176,16 @@
  1218. | --progr-tra=* | --program-tr=* | --program-t=*)
  1219. program_transform_name=$ac_optarg ;;
  1220. + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1221. + ac_prev=pdfdir ;;
  1222. + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1223. + pdfdir=$ac_optarg ;;
  1224. +
  1225. + -psdir | --psdir | --psdi | --psd | --ps)
  1226. + ac_prev=psdir ;;
  1227. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1228. + psdir=$ac_optarg ;;
  1229. +
  1230. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1231. | -silent | --silent | --silen | --sile | --sil)
  1232. silent=yes ;;
  1233. @@ -589,26 +1236,38 @@
  1234. ac_init_version=: ;;
  1235. -with-* | --with-*)
  1236. - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1237. + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1238. # Reject names that are not valid shell variable names.
  1239. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  1240. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  1241. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1242. + { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1243. { (exit 1); exit 1; }; }
  1244. - ac_package=`echo $ac_package| sed 's/-/_/g'`
  1245. - case $ac_option in
  1246. - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  1247. - *) ac_optarg=yes ;;
  1248. + ac_useropt_orig=$ac_useropt
  1249. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1250. + case $ac_user_opts in
  1251. + *"
  1252. +"with_$ac_useropt"
  1253. +"*) ;;
  1254. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1255. + ac_unrecognized_sep=', ';;
  1256. esac
  1257. - eval "with_$ac_package='$ac_optarg'" ;;
  1258. + eval with_$ac_useropt=\$ac_optarg ;;
  1259. -without-* | --without-*)
  1260. - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1261. + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1262. # Reject names that are not valid shell variable names.
  1263. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  1264. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  1265. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1266. + { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1267. { (exit 1); exit 1; }; }
  1268. - ac_package=`echo $ac_package | sed 's/-/_/g'`
  1269. - eval "with_$ac_package=no" ;;
  1270. + ac_useropt_orig=$ac_useropt
  1271. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1272. + case $ac_user_opts in
  1273. + *"
  1274. +"with_$ac_useropt"
  1275. +"*) ;;
  1276. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1277. + ac_unrecognized_sep=', ';;
  1278. + esac
  1279. + eval with_$ac_useropt=no ;;
  1280. --x)
  1281. # Obsolete; use --with-x.
  1282. @@ -628,7 +1287,7 @@
  1283. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1284. x_libraries=$ac_optarg ;;
  1285. - -*) { echo "$as_me: error: unrecognized option: $ac_option
  1286. + -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1287. Try \`$0 --help' for more information." >&2
  1288. { (exit 1); exit 1; }; }
  1289. ;;
  1290. @@ -637,17 +1296,16 @@
  1291. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1292. # Reject names that are not valid shell variable names.
  1293. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1294. - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1295. + { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1296. { (exit 1); exit 1; }; }
  1297. - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  1298. - eval "$ac_envvar='$ac_optarg'"
  1299. + eval $ac_envvar=\$ac_optarg
  1300. export $ac_envvar ;;
  1301. *)
  1302. # FIXME: should be removed in autoconf 3.0.
  1303. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1304. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1305. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1306. - echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1307. + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1308. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1309. ;;
  1310. @@ -656,31 +1314,39 @@
  1311. if test -n "$ac_prev"; then
  1312. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1313. - { echo "$as_me: error: missing argument to $ac_option" >&2
  1314. + { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1315. { (exit 1); exit 1; }; }
  1316. fi
  1317. -# Be sure to have absolute paths.
  1318. -for ac_var in exec_prefix prefix
  1319. -do
  1320. - eval ac_val=$`echo $ac_var`
  1321. - case $ac_val in
  1322. - [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  1323. - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1324. - { (exit 1); exit 1; }; };;
  1325. +if test -n "$ac_unrecognized_opts"; then
  1326. + case $enable_option_checking in
  1327. + no) ;;
  1328. + fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1329. + { (exit 1); exit 1; }; } ;;
  1330. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1331. esac
  1332. -done
  1333. +fi
  1334. -# Be sure to have absolute paths.
  1335. -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  1336. - localstatedir libdir includedir oldincludedir infodir mandir
  1337. +# Check all directory arguments for consistency.
  1338. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1339. + datadir sysconfdir sharedstatedir localstatedir includedir \
  1340. + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1341. + libdir localedir mandir
  1342. do
  1343. - eval ac_val=$`echo $ac_var`
  1344. + eval ac_val=\$$ac_var
  1345. + # Remove trailing slashes.
  1346. case $ac_val in
  1347. - [\\/$]* | ?:[\\/]* ) ;;
  1348. - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1349. - { (exit 1); exit 1; }; };;
  1350. + */ )
  1351. + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1352. + eval $ac_var=\$ac_val;;
  1353. + esac
  1354. + # Be sure to have absolute directory names.
  1355. + case $ac_val in
  1356. + [\\/$]* | ?:[\\/]* ) continue;;
  1357. + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1358. esac
  1359. + { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1360. + { (exit 1); exit 1; }; }
  1361. done
  1362. # There might be people who depend on the old broken behavior: `$host'
  1363. @@ -694,7 +1360,7 @@
  1364. if test "x$host_alias" != x; then
  1365. if test "x$build_alias" = x; then
  1366. cross_compiling=maybe
  1367. - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1368. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1369. If a cross compiler is detected then cross compile mode will be used." >&2
  1370. elif test "x$build_alias" != "x$host_alias"; then
  1371. cross_compiling=yes
  1372. @@ -707,74 +1373,76 @@
  1373. test "$silent" = yes && exec 6>/dev/null
  1374. +ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1375. +ac_ls_di=`ls -di .` &&
  1376. +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1377. + { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1378. + { (exit 1); exit 1; }; }
  1379. +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1380. + { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1381. + { (exit 1); exit 1; }; }
  1382. +
  1383. +
  1384. # Find the source files, if location was not specified.
  1385. if test -z "$srcdir"; then
  1386. ac_srcdir_defaulted=yes
  1387. - # Try the directory containing this script, then its parent.
  1388. - ac_confdir=`(dirname "$0") 2>/dev/null ||
  1389. -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1390. - X"$0" : 'X\(//\)[^/]' \| \
  1391. - X"$0" : 'X\(//\)$' \| \
  1392. - X"$0" : 'X\(/\)' \| \
  1393. - . : '\(.\)' 2>/dev/null ||
  1394. -echo X"$0" |
  1395. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  1396. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  1397. - /^X\(\/\/\)$/{ s//\1/; q; }
  1398. - /^X\(\/\).*/{ s//\1/; q; }
  1399. - s/.*/./; q'`
  1400. + # Try the directory containing this script, then the parent directory.
  1401. + ac_confdir=`$as_dirname -- "$as_myself" ||
  1402. +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1403. + X"$as_myself" : 'X\(//\)[^/]' \| \
  1404. + X"$as_myself" : 'X\(//\)$' \| \
  1405. + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1406. +$as_echo X"$as_myself" |
  1407. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1408. + s//\1/
  1409. + q
  1410. + }
  1411. + /^X\(\/\/\)[^/].*/{
  1412. + s//\1/
  1413. + q
  1414. + }
  1415. + /^X\(\/\/\)$/{
  1416. + s//\1/
  1417. + q
  1418. + }
  1419. + /^X\(\/\).*/{
  1420. + s//\1/
  1421. + q
  1422. + }
  1423. + s/.*/./; q'`
  1424. srcdir=$ac_confdir
  1425. - if test ! -r $srcdir/$ac_unique_file; then
  1426. + if test ! -r "$srcdir/$ac_unique_file"; then
  1427. srcdir=..
  1428. fi
  1429. else
  1430. ac_srcdir_defaulted=no
  1431. fi
  1432. -if test ! -r $srcdir/$ac_unique_file; then
  1433. - if test "$ac_srcdir_defaulted" = yes; then
  1434. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  1435. - { (exit 1); exit 1; }; }
  1436. - else
  1437. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1438. +if test ! -r "$srcdir/$ac_unique_file"; then
  1439. + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1440. + { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1441. { (exit 1); exit 1; }; }
  1442. - fi
  1443. fi
  1444. -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  1445. - { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  1446. +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1447. +ac_abs_confdir=`(
  1448. + cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1449. { (exit 1); exit 1; }; }
  1450. -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  1451. -ac_env_build_alias_set=${build_alias+set}
  1452. -ac_env_build_alias_value=$build_alias
  1453. -ac_cv_env_build_alias_set=${build_alias+set}
  1454. -ac_cv_env_build_alias_value=$build_alias
  1455. -ac_env_host_alias_set=${host_alias+set}
  1456. -ac_env_host_alias_value=$host_alias
  1457. -ac_cv_env_host_alias_set=${host_alias+set}
  1458. -ac_cv_env_host_alias_value=$host_alias
  1459. -ac_env_target_alias_set=${target_alias+set}
  1460. -ac_env_target_alias_value=$target_alias
  1461. -ac_cv_env_target_alias_set=${target_alias+set}
  1462. -ac_cv_env_target_alias_value=$target_alias
  1463. -ac_env_CC_set=${CC+set}
  1464. -ac_env_CC_value=$CC
  1465. -ac_cv_env_CC_set=${CC+set}
  1466. -ac_cv_env_CC_value=$CC
  1467. -ac_env_CFLAGS_set=${CFLAGS+set}
  1468. -ac_env_CFLAGS_value=$CFLAGS
  1469. -ac_cv_env_CFLAGS_set=${CFLAGS+set}
  1470. -ac_cv_env_CFLAGS_value=$CFLAGS
  1471. -ac_env_LDFLAGS_set=${LDFLAGS+set}
  1472. -ac_env_LDFLAGS_value=$LDFLAGS
  1473. -ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  1474. -ac_cv_env_LDFLAGS_value=$LDFLAGS
  1475. -ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  1476. -ac_env_CPPFLAGS_value=$CPPFLAGS
  1477. -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  1478. -ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  1479. -ac_env_CPP_set=${CPP+set}
  1480. -ac_env_CPP_value=$CPP
  1481. -ac_cv_env_CPP_set=${CPP+set}
  1482. -ac_cv_env_CPP_value=$CPP
  1483. + pwd)`
  1484. +# When building in place, set srcdir=.
  1485. +if test "$ac_abs_confdir" = "$ac_pwd"; then
  1486. + srcdir=.
  1487. +fi
  1488. +# Remove unnecessary trailing slashes from srcdir.
  1489. +# Double slashes in file names in object file debugging info
  1490. +# mess up M-x gdb in Emacs.
  1491. +case $srcdir in
  1492. +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1493. +esac
  1494. +for ac_var in $ac_precious_vars; do
  1495. + eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1496. + eval ac_env_${ac_var}_value=\$${ac_var}
  1497. + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1498. + eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1499. +done
  1500. #
  1501. # Report the --help message.
  1502. @@ -803,9 +1471,6 @@
  1503. -n, --no-create do not create output files
  1504. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1505. -_ACEOF
  1506. -
  1507. - cat <<_ACEOF
  1508. Installation directories:
  1509. --prefix=PREFIX install architecture-independent files in PREFIX
  1510. [$ac_default_prefix]
  1511. @@ -820,21 +1485,32 @@
  1512. For better control, use the options below.
  1513. Fine tuning of the installation directories:
  1514. - --bindir=DIR user executables [EPREFIX/bin]
  1515. - --sbindir=DIR system admin executables [EPREFIX/sbin]
  1516. - --libexecdir=DIR program executables [EPREFIX/libexec]
  1517. - --datadir=DIR read-only architecture-independent data [PREFIX/share]
  1518. - --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1519. - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1520. - --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1521. - --libdir=DIR object code libraries [EPREFIX/lib]
  1522. - --includedir=DIR C header files [PREFIX/include]
  1523. - --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1524. - --infodir=DIR info documentation [PREFIX/info]
  1525. - --mandir=DIR man documentation [PREFIX/man]
  1526. + --bindir=DIR user executables [EPREFIX/bin]
  1527. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  1528. + --libexecdir=DIR program executables [EPREFIX/libexec]
  1529. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1530. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1531. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1532. + --libdir=DIR object code libraries [EPREFIX/lib]
  1533. + --includedir=DIR C header files [PREFIX/include]
  1534. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1535. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1536. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1537. + --infodir=DIR info documentation [DATAROOTDIR/info]
  1538. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1539. + --mandir=DIR man documentation [DATAROOTDIR/man]
  1540. + --docdir=DIR documentation root [DATAROOTDIR/doc/libtar]
  1541. + --htmldir=DIR html documentation [DOCDIR]
  1542. + --dvidir=DIR dvi documentation [DOCDIR]
  1543. + --pdfdir=DIR pdf documentation [DOCDIR]
  1544. + --psdir=DIR ps documentation [DOCDIR]
  1545. _ACEOF
  1546. cat <<\_ACEOF
  1547. +
  1548. +System types:
  1549. + --build=BUILD configure for building on BUILD [guessed]
  1550. + --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1551. _ACEOF
  1552. fi
  1553. @@ -845,14 +1521,23 @@
  1554. cat <<\_ACEOF
  1555. Optional Features:
  1556. + --disable-option-checking ignore unrecognized --enable/--with options
  1557. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1558. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1559. --disable-encap Do not configure as an Encap package
  1560. --disable-epkg-install Do not run epkg during make install
  1561. + --enable-shared[=PKGS] build shared libraries [default=yes]
  1562. + --enable-static[=PKGS] build static libraries [default=yes]
  1563. + --enable-fast-install[=PKGS]
  1564. + optimize for fast installation [default=yes]
  1565. + --disable-libtool-lock avoid locking (might break parallel builds)
  1566. Optional Packages:
  1567. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1568. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1569. + --with-pic try to use only PIC/non-PIC objects [default=use
  1570. + both]
  1571. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1572. --without-zlib Use external gzip binary instead of zlib
  1573. Some influential environment variables:
  1574. @@ -860,80 +1545,81 @@
  1575. CFLAGS C compiler flags
  1576. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1577. nonstandard directory <lib dir>
  1578. - CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  1579. - headers in a nonstandard directory <include dir>
  1580. + LIBS libraries to pass to the linker, e.g. -l<library>
  1581. + CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1582. + you have headers in a nonstandard directory <include dir>
  1583. CPP C preprocessor
  1584. Use these variables to override the choices made by `configure' or to help
  1585. it to find libraries and programs with nonstandard names/locations.
  1586. _ACEOF
  1587. +ac_status=$?
  1588. fi
  1589. if test "$ac_init_help" = "recursive"; then
  1590. # If there are subdirs, report their specific --help.
  1591. - ac_popdir=`pwd`
  1592. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1593. - test -d $ac_dir || continue
  1594. + test -d "$ac_dir" ||
  1595. + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1596. + continue
  1597. ac_builddir=.
  1598. -if test "$ac_dir" != .; then
  1599. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1600. - # A "../" for each directory in $ac_dir_suffix.
  1601. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  1602. -else
  1603. - ac_dir_suffix= ac_top_builddir=
  1604. -fi
  1605. +case "$ac_dir" in
  1606. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1607. +*)
  1608. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1609. + # A ".." for each directory in $ac_dir_suffix.
  1610. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1611. + case $ac_top_builddir_sub in
  1612. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1613. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1614. + esac ;;
  1615. +esac
  1616. +ac_abs_top_builddir=$ac_pwd
  1617. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1618. +# for backward compatibility:
  1619. +ac_top_builddir=$ac_top_build_prefix
  1620. case $srcdir in
  1621. - .) # No --srcdir option. We are building in place.
  1622. + .) # We are building in place.
  1623. ac_srcdir=.
  1624. - if test -z "$ac_top_builddir"; then
  1625. - ac_top_srcdir=.
  1626. - else
  1627. - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  1628. - fi ;;
  1629. - [\\/]* | ?:[\\/]* ) # Absolute path.
  1630. + ac_top_srcdir=$ac_top_builddir_sub
  1631. + ac_abs_top_srcdir=$ac_pwd ;;
  1632. + [\\/]* | ?:[\\/]* ) # Absolute name.
  1633. ac_srcdir=$srcdir$ac_dir_suffix;
  1634. - ac_top_srcdir=$srcdir ;;
  1635. - *) # Relative path.
  1636. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  1637. - ac_top_srcdir=$ac_top_builddir$srcdir ;;
  1638. -esac
  1639. -# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  1640. -# absolute.
  1641. -ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  1642. -ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  1643. -ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  1644. -ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  1645. -
  1646. - cd $ac_dir
  1647. - # Check for guested configure; otherwise get Cygnus style configure.
  1648. - if test -f $ac_srcdir/configure.gnu; then
  1649. - echo
  1650. - $SHELL $ac_srcdir/configure.gnu --help=recursive
  1651. - elif test -f $ac_srcdir/configure; then
  1652. - echo
  1653. - $SHELL $ac_srcdir/configure --help=recursive
  1654. - elif test -f $ac_srcdir/configure.ac ||
  1655. - test -f $ac_srcdir/configure.in; then
  1656. - echo
  1657. - $ac_configure --help
  1658. + ac_top_srcdir=$srcdir
  1659. + ac_abs_top_srcdir=$srcdir ;;
  1660. + *) # Relative name.
  1661. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1662. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  1663. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1664. +esac
  1665. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1666. +
  1667. + cd "$ac_dir" || { ac_status=$?; continue; }
  1668. + # Check for guested configure.
  1669. + if test -f "$ac_srcdir/configure.gnu"; then
  1670. + echo &&
  1671. + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1672. + elif test -f "$ac_srcdir/configure"; then
  1673. + echo &&
  1674. + $SHELL "$ac_srcdir/configure" --help=recursive
  1675. else
  1676. - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1677. - fi
  1678. - cd $ac_popdir
  1679. + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1680. + fi || ac_status=$?
  1681. + cd "$ac_pwd" || { ac_status=$?; break; }
  1682. done
  1683. fi
  1684. -test -n "$ac_init_help" && exit 0
  1685. +test -n "$ac_init_help" && exit $ac_status
  1686. if $ac_init_version; then
  1687. cat <<\_ACEOF
  1688. libtar configure 1.2.11
  1689. -generated by GNU Autoconf 2.57
  1690. +generated by GNU Autoconf 2.63
  1691. -Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  1692. -Free Software Foundation, Inc.
  1693. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1694. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1695. This configure script is free software; the Free Software Foundation
  1696. gives unlimited permission to copy, distribute and modify it.
  1697. @@ -943,19 +1629,19 @@
  1698. All rights reserved.
  1699. _ACEOF
  1700. - exit 0
  1701. + exit
  1702. fi
  1703. -exec 5>config.log
  1704. -cat >&5 <<_ACEOF
  1705. +cat >config.log <<_ACEOF
  1706. This file contains any messages produced by compilers while
  1707. running configure, to aid debugging if configure makes a mistake.
  1708. It was created by libtar $as_me 1.2.11, which was
  1709. -generated by GNU Autoconf 2.57. Invocation command line was
  1710. +generated by GNU Autoconf 2.63. Invocation command line was
  1711. $ $0 $@
  1712. _ACEOF
  1713. +exec 5>>config.log
  1714. {
  1715. cat <<_ASUNAME
  1716. ## --------- ##
  1717. @@ -974,7 +1660,7 @@
  1718. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1719. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1720. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1721. -hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1722. +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1723. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1724. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1725. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1726. @@ -986,8 +1672,9 @@
  1727. do
  1728. IFS=$as_save_IFS
  1729. test -z "$as_dir" && as_dir=.
  1730. - echo "PATH: $as_dir"
  1731. + $as_echo "PATH: $as_dir"
  1732. done
  1733. +IFS=$as_save_IFS
  1734. } >&5
  1735. @@ -1009,7 +1696,6 @@
  1736. ac_configure_args=
  1737. ac_configure_args0=
  1738. ac_configure_args1=
  1739. -ac_sep=
  1740. ac_must_keep_next=false
  1741. for ac_pass in 1 2
  1742. do
  1743. @@ -1020,31 +1706,29 @@
  1744. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1745. | -silent | --silent | --silen | --sile | --sil)
  1746. continue ;;
  1747. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1748. - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1749. + *\'*)
  1750. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1751. esac
  1752. case $ac_pass in
  1753. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1754. 2)
  1755. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1756. if test $ac_must_keep_next = true; then
  1757. - ac_must_keep_next=false # Got value, back to normal.
  1758. + ac_must_keep_next=false # Got value, back to normal.
  1759. else
  1760. - case $ac_arg in
  1761. - *=* | --config-cache | -C | -disable-* | --disable-* \
  1762. - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1763. - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1764. - | -with-* | --with-* | -without-* | --without-* | --x)
  1765. - case "$ac_configure_args0 " in
  1766. - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1767. - esac
  1768. - ;;
  1769. - -* ) ac_must_keep_next=true ;;
  1770. - esac
  1771. - fi
  1772. - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1773. - # Get rid of the leading space.
  1774. - ac_sep=" "
  1775. + case $ac_arg in
  1776. + *=* | --config-cache | -C | -disable-* | --disable-* \
  1777. + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1778. + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1779. + | -with-* | --with-* | -without-* | --without-* | --x)
  1780. + case "$ac_configure_args0 " in
  1781. + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1782. + esac
  1783. + ;;
  1784. + -* ) ac_must_keep_next=true ;;
  1785. + esac
  1786. + fi
  1787. + ac_configure_args="$ac_configure_args '$ac_arg'"
  1788. ;;
  1789. esac
  1790. done
  1791. @@ -1055,8 +1739,8 @@
  1792. # When interrupted or exit'd, cleanup temporary files, and complete
  1793. # config.log. We remove comments because anyway the quotes in there
  1794. # would cause problems or look ugly.
  1795. -# WARNING: Be sure not to use single quotes in there, as some shells,
  1796. -# such as our DU 5.0 friend, will then `close' the trap.
  1797. +# WARNING: Use '\'' to represent an apostrophe within the trap.
  1798. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1799. trap 'exit_status=$?
  1800. # Save into config.log some information that might help in debugging.
  1801. {
  1802. @@ -1069,20 +1753,35 @@
  1803. _ASBOX
  1804. echo
  1805. # The following way of writing the cache mishandles newlines in values,
  1806. -{
  1807. +(
  1808. + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1809. + eval ac_val=\$$ac_var
  1810. + case $ac_val in #(
  1811. + *${as_nl}*)
  1812. + case $ac_var in #(
  1813. + *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1814. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1815. + esac
  1816. + case $ac_var in #(
  1817. + _ | IFS | as_nl) ;; #(
  1818. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1819. + *) $as_unset $ac_var ;;
  1820. + esac ;;
  1821. + esac
  1822. + done
  1823. (set) 2>&1 |
  1824. - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1825. - *ac_space=\ *)
  1826. + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1827. + *${as_nl}ac_space=\ *)
  1828. sed -n \
  1829. - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1830. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1831. - ;;
  1832. + "s/'\''/'\''\\\\'\'''\''/g;
  1833. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1834. + ;; #(
  1835. *)
  1836. - sed -n \
  1837. - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1838. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1839. ;;
  1840. - esac;
  1841. -}
  1842. + esac |
  1843. + sort
  1844. +)
  1845. echo
  1846. cat <<\_ASBOX
  1847. @@ -1093,22 +1792,28 @@
  1848. echo
  1849. for ac_var in $ac_subst_vars
  1850. do
  1851. - eval ac_val=$`echo $ac_var`
  1852. - echo "$ac_var='"'"'$ac_val'"'"'"
  1853. + eval ac_val=\$$ac_var
  1854. + case $ac_val in
  1855. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1856. + esac
  1857. + $as_echo "$ac_var='\''$ac_val'\''"
  1858. done | sort
  1859. echo
  1860. if test -n "$ac_subst_files"; then
  1861. cat <<\_ASBOX
  1862. -## ------------- ##
  1863. -## Output files. ##
  1864. -## ------------- ##
  1865. +## ------------------- ##
  1866. +## File substitutions. ##
  1867. +## ------------------- ##
  1868. _ASBOX
  1869. echo
  1870. for ac_var in $ac_subst_files
  1871. do
  1872. - eval ac_val=$`echo $ac_var`
  1873. - echo "$ac_var='"'"'$ac_val'"'"'"
  1874. + eval ac_val=\$$ac_var
  1875. + case $ac_val in
  1876. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1877. + esac
  1878. + $as_echo "$ac_var='\''$ac_val'\''"
  1879. done | sort
  1880. echo
  1881. fi
  1882. @@ -1120,26 +1825,24 @@
  1883. ## ----------- ##
  1884. _ASBOX
  1885. echo
  1886. - sed "/^$/d" confdefs.h | sort
  1887. + cat confdefs.h
  1888. echo
  1889. fi
  1890. test "$ac_signal" != 0 &&
  1891. - echo "$as_me: caught signal $ac_signal"
  1892. - echo "$as_me: exit $exit_status"
  1893. + $as_echo "$as_me: caught signal $ac_signal"
  1894. + $as_echo "$as_me: exit $exit_status"
  1895. } >&5
  1896. - rm -f core core.* *.core &&
  1897. - rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1898. + rm -f core *.core core.conftest.* &&
  1899. + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1900. exit $exit_status
  1901. - ' 0
  1902. +' 0
  1903. for ac_signal in 1 2 13 15; do
  1904. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1905. done
  1906. ac_signal=0
  1907. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1908. -rm -rf conftest* confdefs.h
  1909. -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1910. -echo >confdefs.h
  1911. +rm -f -r conftest* confdefs.h
  1912. # Predefined preprocessor variables.
  1913. @@ -1169,18 +1872,24 @@
  1914. # Let the site file select an alternate cache file if it wants to.
  1915. -# Prefer explicitly selected file to automatically selected ones.
  1916. -if test -z "$CONFIG_SITE"; then
  1917. - if test "x$prefix" != xNONE; then
  1918. - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1919. - else
  1920. - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1921. - fi
  1922. +# Prefer an explicitly selected file to automatically selected ones.
  1923. +ac_site_file1=NONE
  1924. +ac_site_file2=NONE
  1925. +if test -n "$CONFIG_SITE"; then
  1926. + ac_site_file1=$CONFIG_SITE
  1927. +elif test "x$prefix" != xNONE; then
  1928. + ac_site_file1=$prefix/share/config.site
  1929. + ac_site_file2=$prefix/etc/config.site
  1930. +else
  1931. + ac_site_file1=$ac_default_prefix/share/config.site
  1932. + ac_site_file2=$ac_default_prefix/etc/config.site
  1933. fi
  1934. -for ac_site_file in $CONFIG_SITE; do
  1935. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1936. +do
  1937. + test "x$ac_site_file" = xNONE && continue
  1938. if test -r "$ac_site_file"; then
  1939. - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1940. -echo "$as_me: loading site script $ac_site_file" >&6;}
  1941. + { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1942. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1943. sed 's/^/| /' "$ac_site_file" >&5
  1944. . "$ac_site_file"
  1945. fi
  1946. @@ -1190,54 +1899,61 @@
  1947. # Some versions of bash will fail to source /dev/null (special
  1948. # files actually), so we avoid doing that.
  1949. if test -f "$cache_file"; then
  1950. - { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1951. -echo "$as_me: loading cache $cache_file" >&6;}
  1952. + { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1953. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  1954. case $cache_file in
  1955. - [\\/]* | ?:[\\/]* ) . $cache_file;;
  1956. - *) . ./$cache_file;;
  1957. + [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1958. + *) . "./$cache_file";;
  1959. esac
  1960. fi
  1961. else
  1962. - { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1963. -echo "$as_me: creating cache $cache_file" >&6;}
  1964. + { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1965. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  1966. >$cache_file
  1967. fi
  1968. # Check that the precious variables saved in the cache have kept the same
  1969. # value.
  1970. ac_cache_corrupted=false
  1971. -for ac_var in `(set) 2>&1 |
  1972. - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1973. +for ac_var in $ac_precious_vars; do
  1974. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1975. eval ac_new_set=\$ac_env_${ac_var}_set
  1976. - eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1977. - eval ac_new_val="\$ac_env_${ac_var}_value"
  1978. + eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1979. + eval ac_new_val=\$ac_env_${ac_var}_value
  1980. case $ac_old_set,$ac_new_set in
  1981. set,)
  1982. - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1983. -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1984. + { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1985. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1986. ac_cache_corrupted=: ;;
  1987. ,set)
  1988. - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1989. -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1990. + { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1991. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1992. ac_cache_corrupted=: ;;
  1993. ,);;
  1994. *)
  1995. if test "x$ac_old_val" != "x$ac_new_val"; then
  1996. - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1997. -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1998. - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1999. -echo "$as_me: former value: $ac_old_val" >&2;}
  2000. - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  2001. -echo "$as_me: current value: $ac_new_val" >&2;}
  2002. - ac_cache_corrupted=:
  2003. + # differences in whitespace do not lead to failure.
  2004. + ac_old_val_w=`echo x $ac_old_val`
  2005. + ac_new_val_w=`echo x $ac_new_val`
  2006. + if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2007. + { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  2008. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2009. + ac_cache_corrupted=:
  2010. + else
  2011. + { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2012. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2013. + eval $ac_var=\$ac_old_val
  2014. + fi
  2015. + { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  2016. +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2017. + { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  2018. +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2019. fi;;
  2020. esac
  2021. # Pass precious variables to config.status.
  2022. if test "$ac_new_set" = set; then
  2023. case $ac_new_val in
  2024. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  2025. - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2026. + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2027. *) ac_arg=$ac_var=$ac_new_val ;;
  2028. esac
  2029. case " $ac_configure_args " in
  2030. @@ -1247,19 +1963,15 @@
  2031. fi
  2032. done
  2033. if $ac_cache_corrupted; then
  2034. - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  2035. -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2036. - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  2037. -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  2038. + { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2039. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2040. + { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  2041. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2042. + { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  2043. +$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  2044. { (exit 1); exit 1; }; }
  2045. fi
  2046. -ac_ext=c
  2047. -ac_cpp='$CPP $CPPFLAGS'
  2048. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2049. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2050. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2051. -
  2052. @@ -1284,35 +1996,47 @@
  2053. +ac_ext=c
  2054. +ac_cpp='$CPP $CPPFLAGS'
  2055. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2056. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2057. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2058. ac_aux_dir=
  2059. -for ac_dir in autoconf $srcdir/autoconf; do
  2060. - if test -f $ac_dir/install-sh; then
  2061. +for ac_dir in autoconf "$srcdir"/autoconf; do
  2062. + if test -f "$ac_dir/install-sh"; then
  2063. ac_aux_dir=$ac_dir
  2064. ac_install_sh="$ac_aux_dir/install-sh -c"
  2065. break
  2066. - elif test -f $ac_dir/install.sh; then
  2067. + elif test -f "$ac_dir/install.sh"; then
  2068. ac_aux_dir=$ac_dir
  2069. ac_install_sh="$ac_aux_dir/install.sh -c"
  2070. break
  2071. - elif test -f $ac_dir/shtool; then
  2072. + elif test -f "$ac_dir/shtool"; then
  2073. ac_aux_dir=$ac_dir
  2074. ac_install_sh="$ac_aux_dir/shtool install -c"
  2075. break
  2076. fi
  2077. done
  2078. if test -z "$ac_aux_dir"; then
  2079. - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
  2080. -echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
  2081. + { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
  2082. +$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
  2083. { (exit 1); exit 1; }; }
  2084. fi
  2085. -ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  2086. -ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  2087. -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  2088. - ac_config_headers="$ac_config_headers config.h"
  2089. +# These three variables are undocumented and unsupported,
  2090. +# and are intended to be withdrawn in a future Autoconf release.
  2091. +# They can cause serious problems if a builder's source tree is in a directory
  2092. +# whose full name contains unusual characters.
  2093. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2094. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2095. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2096. +
  2097. +
  2098. +ac_config_headers="$ac_config_headers config.h"
  2099. +
  2100. @@ -1320,22 +2044,22 @@
  2101. MKENCAP_OPTS=;
  2102. # allow user to disable Encap support
  2103. - # Check whether --enable-encap or --disable-encap was given.
  2104. + # Check whether --enable-encap was given.
  2105. if test "${enable_encap+set}" = set; then
  2106. - enableval="$enable_encap"
  2107. -
  2108. + enableval=$enable_encap;
  2109. else
  2110. enable_encap=default
  2111. -fi;
  2112. +fi
  2113. +
  2114. if test "$enable_encap" != "no"; then
  2115. # look for epkg and mkencap
  2116. # Extract the first word of "epkg", so it can be a program name with args.
  2117. set dummy epkg; ac_word=$2
  2118. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  2119. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2120. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2121. +$as_echo_n "checking for $ac_word... " >&6; }
  2122. if test "${ac_cv_path_EPKG+set}" = set; then
  2123. - echo $ECHO_N "(cached) $ECHO_C" >&6
  2124. + $as_echo_n "(cached) " >&6
  2125. else
  2126. case $EPKG in
  2127. [\\/]* | ?:[\\/]*)
  2128. @@ -1348,33 +2072,34 @@
  2129. IFS=$as_save_IFS
  2130. test -z "$as_dir" && as_dir=.
  2131. for ac_exec_ext in '' $ac_executable_extensions; do
  2132. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2133. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2134. ac_cv_path_EPKG="$as_dir/$ac_word$ac_exec_ext"
  2135. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2136. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2137. break 2
  2138. fi
  2139. done
  2140. done
  2141. +IFS=$as_save_IFS
  2142. ;;
  2143. esac
  2144. fi
  2145. EPKG=$ac_cv_path_EPKG
  2146. -
  2147. if test -n "$EPKG"; then
  2148. - echo "$as_me:$LINENO: result: $EPKG" >&5
  2149. -echo "${ECHO_T}$EPKG" >&6
  2150. + { $as_echo "$as_me:$LINENO: result: $EPKG" >&5
  2151. +$as_echo "$EPKG" >&6; }
  2152. else
  2153. - echo "$as_me:$LINENO: result: no" >&5
  2154. -echo "${ECHO_T}no" >&6
  2155. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2156. +$as_echo "no" >&6; }
  2157. fi
  2158. +
  2159. # Extract the first word of "mkencap", so it can be a program name with args.
  2160. set dummy mkencap; ac_word=$2
  2161. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  2162. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2163. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2164. +$as_echo_n "checking for $ac_word... " >&6; }
  2165. if test "${ac_cv_path_MKENCAP+set}" = set; then
  2166. - echo $ECHO_N "(cached) $ECHO_C" >&6
  2167. + $as_echo_n "(cached) " >&6
  2168. else
  2169. case $MKENCAP in
  2170. [\\/]* | ?:[\\/]*)
  2171. @@ -1387,28 +2112,29 @@
  2172. IFS=$as_save_IFS
  2173. test -z "$as_dir" && as_dir=.
  2174. for ac_exec_ext in '' $ac_executable_extensions; do
  2175. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2176. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2177. ac_cv_path_MKENCAP="$as_dir/$ac_word$ac_exec_ext"
  2178. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2179. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2180. break 2
  2181. fi
  2182. done
  2183. done
  2184. +IFS=$as_save_IFS
  2185. ;;
  2186. esac
  2187. fi
  2188. MKENCAP=$ac_cv_path_MKENCAP
  2189. -
  2190. if test -n "$MKENCAP"; then
  2191. - echo "$as_me:$LINENO: result: $MKENCAP" >&5
  2192. -echo "${ECHO_T}$MKENCAP" >&6
  2193. + { $as_echo "$as_me:$LINENO: result: $MKENCAP" >&5
  2194. +$as_echo "$MKENCAP" >&6; }
  2195. else
  2196. - echo "$as_me:$LINENO: result: no" >&5
  2197. -echo "${ECHO_T}no" >&6
  2198. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2199. +$as_echo "no" >&6; }
  2200. fi
  2201. +
  2202. # enable by default if epkg or mkencap are found
  2203. if test "${EPKG:+set}" = "set" || test "${MKENCAP:+set}" = "set" && test "$enable_encap" = "default"; then
  2204. enable_encap=yes;
  2205. @@ -1449,23 +2175,23 @@
  2206. fi
  2207. # display results
  2208. - echo "$as_me:$LINENO: checking for Encap source directory" >&5
  2209. -echo $ECHO_N "checking for Encap source directory... $ECHO_C" >&6
  2210. - echo "$as_me:$LINENO: result: ${ENCAP_SOURCE}" >&5
  2211. -echo "${ECHO_T}${ENCAP_SOURCE}" >&6
  2212. - echo "$as_me:$LINENO: checking for Encap target directory" >&5
  2213. -echo $ECHO_N "checking for Encap target directory... $ECHO_C" >&6
  2214. - echo "$as_me:$LINENO: result: ${ENCAP_TARGET}" >&5
  2215. -echo "${ECHO_T}${ENCAP_TARGET}" >&6
  2216. - echo "$as_me:$LINENO: checking for Encap package directory" >&5
  2217. -echo $ECHO_N "checking for Encap package directory... $ECHO_C" >&6
  2218. + { $as_echo "$as_me:$LINENO: checking for Encap source directory" >&5
  2219. +$as_echo_n "checking for Encap source directory... " >&6; }
  2220. + { $as_echo "$as_me:$LINENO: result: ${ENCAP_SOURCE}" >&5
  2221. +$as_echo "${ENCAP_SOURCE}" >&6; }
  2222. + { $as_echo "$as_me:$LINENO: checking for Encap target directory" >&5
  2223. +$as_echo_n "checking for Encap target directory... " >&6; }
  2224. + { $as_echo "$as_me:$LINENO: result: ${ENCAP_TARGET}" >&5
  2225. +$as_echo "${ENCAP_TARGET}" >&6; }
  2226. + { $as_echo "$as_me:$LINENO: checking for Encap package directory" >&5
  2227. +$as_echo_n "checking for Encap package directory... " >&6; }
  2228. if test "${ENCAP_PKGSPEC:-unset}" = "unset"; then
  2229. ENCAP_PKGSPEC='${PACKAGE_NAME}-${PACKAGE_VERSION}';
  2230. - echo "$as_me:$LINENO: result: ${ENCAP_SOURCE}/${PACKAGE_NAME}-${PACKAGE_VERSION}" >&5
  2231. -echo "${ECHO_T}${ENCAP_SOURCE}/${PACKAGE_NAME}-${PACKAGE_VERSION}" >&6
  2232. + { $as_echo "$as_me:$LINENO: result: ${ENCAP_SOURCE}/${PACKAGE_NAME}-${PACKAGE_VERSION}" >&5
  2233. +$as_echo "${ENCAP_SOURCE}/${PACKAGE_NAME}-${PACKAGE_VERSION}" >&6; }
  2234. else
  2235. - echo "$as_me:$LINENO: result: ${ENCAP_SOURCE}/${ENCAP_PKGSPEC}" >&5
  2236. -echo "${ECHO_T}${ENCAP_SOURCE}/${ENCAP_PKGSPEC}" >&6
  2237. + { $as_echo "$as_me:$LINENO: result: ${ENCAP_SOURCE}/${ENCAP_PKGSPEC}" >&5
  2238. +$as_echo "${ENCAP_SOURCE}/${ENCAP_PKGSPEC}" >&6; }
  2239. fi
  2240. prefix='${ENCAP_SOURCE}/${ENCAP_PKGSPEC}';
  2241. @@ -1478,13 +2204,13 @@
  2242. fi
  2243. # check for --disable-epkg-install
  2244. - # Check whether --enable-epkg-install or --disable-epkg-install was given.
  2245. + # Check whether --enable-epkg-install was given.
  2246. if test "${enable_epkg_install+set}" = set; then
  2247. - enableval="$enable_epkg_install"
  2248. -
  2249. + enableval=$enable_epkg_install;
  2250. else
  2251. enable_epkg_install=yes
  2252. -fi;
  2253. +fi
  2254. +
  2255. if test "$enable_epkg_install" = "no"; then
  2256. EPKG=":";
  2257. fi
  2258. @@ -1656,10 +2382,10 @@
  2259. if test -n "$ac_tool_prefix"; then
  2260. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2261. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2262. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  2263. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2264. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2265. +$as_echo_n "checking for $ac_word... " >&6; }
  2266. if test "${ac_cv_prog_CC+set}" = set; then
  2267. - echo $ECHO_N "(cached) $ECHO_C" >&6
  2268. + $as_echo_n "(cached) " >&6
  2269. else
  2270. if test -n "$CC"; then
  2271. ac_cv_prog_CC="$CC" # Let the user override the test.
  2272. @@ -1670,34 +2396,36 @@
  2273. IFS=$as_save_IFS
  2274. test -z "$as_dir" && as_dir=.
  2275. for ac_exec_ext in '' $ac_executable_extensions; do
  2276. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2277. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2278. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2279. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2280. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2281. break 2
  2282. fi
  2283. done
  2284. done
  2285. +IFS=$as_save_IFS
  2286. fi
  2287. fi
  2288. CC=$ac_cv_prog_CC
  2289. if test -n "$CC"; then
  2290. - echo "$as_me:$LINENO: result: $CC" >&5
  2291. -echo "${ECHO_T}$CC" >&6
  2292. + { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2293. +$as_echo "$CC" >&6; }
  2294. else
  2295. - echo "$as_me:$LINENO: result: no" >&5
  2296. -echo "${ECHO_T}no" >&6
  2297. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2298. +$as_echo "no" >&6; }
  2299. fi
  2300. +
  2301. fi
  2302. if test -z "$ac_cv_prog_CC"; then
  2303. ac_ct_CC=$CC
  2304. # Extract the first word of "gcc", so it can be a program name with args.
  2305. set dummy gcc; ac_word=$2
  2306. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  2307. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2308. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2309. +$as_echo_n "checking for $ac_word... " >&6; }
  2310. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2311. - echo $ECHO_N "(cached) $ECHO_C" >&6
  2312. + $as_echo_n "(cached) " >&6
  2313. else
  2314. if test -n "$ac_ct_CC"; then
  2315. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2316. @@ -1708,38 +2436,49 @@
  2317. IFS=$as_save_IFS
  2318. test -z "$as_dir" && as_dir=.
  2319. for ac_exec_ext in '' $ac_executable_extensions; do
  2320. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2321. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2322. ac_cv_prog_ac_ct_CC="gcc"
  2323. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2324. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2325. break 2
  2326. fi
  2327. done
  2328. done
  2329. +IFS=$as_save_IFS
  2330. fi
  2331. fi
  2332. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2333. if test -n "$ac_ct_CC"; then
  2334. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2335. -echo "${ECHO_T}$ac_ct_CC" >&6
  2336. + { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2337. +$as_echo "$ac_ct_CC" >&6; }
  2338. else
  2339. - echo "$as_me:$LINENO: result: no" >&5
  2340. -echo "${ECHO_T}no" >&6
  2341. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2342. +$as_echo "no" >&6; }
  2343. fi
  2344. - CC=$ac_ct_CC
  2345. + if test "x$ac_ct_CC" = x; then
  2346. + CC=""
  2347. + else
  2348. + case $cross_compiling:$ac_tool_warned in
  2349. +yes:)
  2350. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2351. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2352. +ac_tool_warned=yes ;;
  2353. +esac
  2354. + CC=$ac_ct_CC
  2355. + fi
  2356. else
  2357. CC="$ac_cv_prog_CC"
  2358. fi
  2359. if test -z "$CC"; then
  2360. - if test -n "$ac_tool_prefix"; then
  2361. - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2362. + if test -n "$ac_tool_prefix"; then
  2363. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2364. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2365. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  2366. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2367. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2368. +$as_echo_n "checking for $ac_word... " >&6; }
  2369. if test "${ac_cv_prog_CC+set}" = set; then
  2370. - echo $ECHO_N "(cached) $ECHO_C" >&6
  2371. + $as_echo_n "(cached) " >&6
  2372. else
  2373. if test -n "$CC"; then
  2374. ac_cv_prog_CC="$CC" # Let the user override the test.
  2375. @@ -1750,76 +2489,36 @@
  2376. IFS=$as_save_IFS
  2377. test -z "$as_dir" && as_dir=.
  2378. for ac_exec_ext in '' $ac_executable_extensions; do
  2379. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2380. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2381. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2382. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2383. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2384. break 2
  2385. fi
  2386. done
  2387. done
  2388. +IFS=$as_save_IFS
  2389. fi
  2390. fi
  2391. CC=$ac_cv_prog_CC
  2392. if test -n "$CC"; then
  2393. - echo "$as_me:$LINENO: result: $CC" >&5
  2394. -echo "${ECHO_T}$CC" >&6
  2395. -else
  2396. - echo "$as_me:$LINENO: result: no" >&5
  2397. -echo "${ECHO_T}no" >&6
  2398. -fi
  2399. -
  2400. -fi
  2401. -if test -z "$ac_cv_prog_CC"; then
  2402. - ac_ct_CC=$CC
  2403. - # Extract the first word of "cc", so it can be a program name with args.
  2404. -set dummy cc; ac_word=$2
  2405. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  2406. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2407. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2408. - echo $ECHO_N "(cached) $ECHO_C" >&6
  2409. -else
  2410. - if test -n "$ac_ct_CC"; then
  2411. - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2412. -else
  2413. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2414. -for as_dir in $PATH
  2415. -do
  2416. - IFS=$as_save_IFS
  2417. - test -z "$as_dir" && as_dir=.
  2418. - for ac_exec_ext in '' $ac_executable_extensions; do
  2419. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2420. - ac_cv_prog_ac_ct_CC="cc"
  2421. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2422. - break 2
  2423. - fi
  2424. -done
  2425. -done
  2426. -
  2427. -fi
  2428. -fi
  2429. -ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2430. -if test -n "$ac_ct_CC"; then
  2431. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2432. -echo "${ECHO_T}$ac_ct_CC" >&6
  2433. + { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2434. +$as_echo "$CC" >&6; }
  2435. else
  2436. - echo "$as_me:$LINENO: result: no" >&5
  2437. -echo "${ECHO_T}no" >&6
  2438. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2439. +$as_echo "no" >&6; }
  2440. fi
  2441. - CC=$ac_ct_CC
  2442. -else
  2443. - CC="$ac_cv_prog_CC"
  2444. -fi
  2445. + fi
  2446. fi
  2447. if test -z "$CC"; then
  2448. # Extract the first word of "cc", so it can be a program name with args.
  2449. set dummy cc; ac_word=$2
  2450. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  2451. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2452. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2453. +$as_echo_n "checking for $ac_word... " >&6; }
  2454. if test "${ac_cv_prog_CC+set}" = set; then
  2455. - echo $ECHO_N "(cached) $ECHO_C" >&6
  2456. + $as_echo_n "(cached) " >&6
  2457. else
  2458. if test -n "$CC"; then
  2459. ac_cv_prog_CC="$CC" # Let the user override the test.
  2460. @@ -1831,17 +2530,18 @@
  2461. IFS=$as_save_IFS
  2462. test -z "$as_dir" && as_dir=.
  2463. for ac_exec_ext in '' $ac_executable_extensions; do
  2464. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2465. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2466. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2467. ac_prog_rejected=yes
  2468. continue
  2469. fi
  2470. ac_cv_prog_CC="cc"
  2471. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2472. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2473. break 2
  2474. fi
  2475. done
  2476. done
  2477. +IFS=$as_save_IFS
  2478. if test $ac_prog_rejected = yes; then
  2479. # We found a bogon in the path, so make sure we never use it.
  2480. @@ -1859,24 +2559,25 @@
  2481. fi
  2482. CC=$ac_cv_prog_CC
  2483. if test -n "$CC"; then
  2484. - echo "$as_me:$LINENO: result: $CC" >&5
  2485. -echo "${ECHO_T}$CC" >&6
  2486. + { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2487. +$as_echo "$CC" >&6; }
  2488. else
  2489. - echo "$as_me:$LINENO: result: no" >&5
  2490. -echo "${ECHO_T}no" >&6
  2491. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2492. +$as_echo "no" >&6; }
  2493. fi
  2494. +
  2495. fi
  2496. if test -z "$CC"; then
  2497. if test -n "$ac_tool_prefix"; then
  2498. - for ac_prog in cl
  2499. + for ac_prog in cl.exe
  2500. do
  2501. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2502. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2503. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  2504. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2505. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2506. +$as_echo_n "checking for $ac_word... " >&6; }
  2507. if test "${ac_cv_prog_CC+set}" = set; then
  2508. - echo $ECHO_N "(cached) $ECHO_C" >&6
  2509. + $as_echo_n "(cached) " >&6
  2510. else
  2511. if test -n "$CC"; then
  2512. ac_cv_prog_CC="$CC" # Let the user override the test.
  2513. @@ -1887,38 +2588,40 @@
  2514. IFS=$as_save_IFS
  2515. test -z "$as_dir" && as_dir=.
  2516. for ac_exec_ext in '' $ac_executable_extensions; do
  2517. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2518. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2519. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2520. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2521. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2522. break 2
  2523. fi
  2524. done
  2525. done
  2526. +IFS=$as_save_IFS
  2527. fi
  2528. fi
  2529. CC=$ac_cv_prog_CC
  2530. if test -n "$CC"; then
  2531. - echo "$as_me:$LINENO: result: $CC" >&5
  2532. -echo "${ECHO_T}$CC" >&6
  2533. + { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2534. +$as_echo "$CC" >&6; }
  2535. else
  2536. - echo "$as_me:$LINENO: result: no" >&5
  2537. -echo "${ECHO_T}no" >&6
  2538. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2539. +$as_echo "no" >&6; }
  2540. fi
  2541. +
  2542. test -n "$CC" && break
  2543. done
  2544. fi
  2545. if test -z "$CC"; then
  2546. ac_ct_CC=$CC
  2547. - for ac_prog in cl
  2548. + for ac_prog in cl.exe
  2549. do
  2550. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2551. set dummy $ac_prog; ac_word=$2
  2552. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  2553. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2554. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2555. +$as_echo_n "checking for $ac_word... " >&6; }
  2556. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2557. - echo $ECHO_N "(cached) $ECHO_C" >&6
  2558. + $as_echo_n "(cached) " >&6
  2559. else
  2560. if test -n "$ac_ct_CC"; then
  2561. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2562. @@ -1929,62 +2632,93 @@
  2563. IFS=$as_save_IFS
  2564. test -z "$as_dir" && as_dir=.
  2565. for ac_exec_ext in '' $ac_executable_extensions; do
  2566. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2567. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2568. ac_cv_prog_ac_ct_CC="$ac_prog"
  2569. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2570. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2571. break 2
  2572. fi
  2573. done
  2574. done
  2575. +IFS=$as_save_IFS
  2576. fi
  2577. fi
  2578. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2579. if test -n "$ac_ct_CC"; then
  2580. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2581. -echo "${ECHO_T}$ac_ct_CC" >&6
  2582. + { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2583. +$as_echo "$ac_ct_CC" >&6; }
  2584. else
  2585. - echo "$as_me:$LINENO: result: no" >&5
  2586. -echo "${ECHO_T}no" >&6
  2587. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2588. +$as_echo "no" >&6; }
  2589. fi
  2590. +
  2591. test -n "$ac_ct_CC" && break
  2592. done
  2593. - CC=$ac_ct_CC
  2594. + if test "x$ac_ct_CC" = x; then
  2595. + CC=""
  2596. + else
  2597. + case $cross_compiling:$ac_tool_warned in
  2598. +yes:)
  2599. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2600. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2601. +ac_tool_warned=yes ;;
  2602. +esac
  2603. + CC=$ac_ct_CC
  2604. + fi
  2605. fi
  2606. fi
  2607. -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2608. +test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2609. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2610. +{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2611. See \`config.log' for more details." >&5
  2612. -echo "$as_me: error: no acceptable C compiler found in \$PATH
  2613. +$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2614. See \`config.log' for more details." >&2;}
  2615. - { (exit 1); exit 1; }; }
  2616. + { (exit 1); exit 1; }; }; }
  2617. # Provide some information about the compiler.
  2618. -echo "$as_me:$LINENO:" \
  2619. - "checking for C compiler version" >&5
  2620. -ac_compiler=`set X $ac_compile; echo $2`
  2621. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2622. - (eval $ac_compiler --version </dev/null >&5) 2>&5
  2623. +$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2624. +set X $ac_compile
  2625. +ac_compiler=$2
  2626. +{ (ac_try="$ac_compiler --version >&5"
  2627. +case "(($ac_try" in
  2628. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2629. + *) ac_try_echo=$ac_try;;
  2630. +esac
  2631. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2632. +$as_echo "$ac_try_echo") >&5
  2633. + (eval "$ac_compiler --version >&5") 2>&5
  2634. ac_status=$?
  2635. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2636. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2637. (exit $ac_status); }
  2638. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2639. - (eval $ac_compiler -v </dev/null >&5) 2>&5
  2640. +{ (ac_try="$ac_compiler -v >&5"
  2641. +case "(($ac_try" in
  2642. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2643. + *) ac_try_echo=$ac_try;;
  2644. +esac
  2645. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2646. +$as_echo "$ac_try_echo") >&5
  2647. + (eval "$ac_compiler -v >&5") 2>&5
  2648. ac_status=$?
  2649. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2650. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2651. (exit $ac_status); }
  2652. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2653. - (eval $ac_compiler -V </dev/null >&5) 2>&5
  2654. +{ (ac_try="$ac_compiler -V >&5"
  2655. +case "(($ac_try" in
  2656. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2657. + *) ac_try_echo=$ac_try;;
  2658. +esac
  2659. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2660. +$as_echo "$ac_try_echo") >&5
  2661. + (eval "$ac_compiler -V >&5") 2>&5
  2662. ac_status=$?
  2663. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2664. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2665. (exit $ac_status); }
  2666. cat >conftest.$ac_ext <<_ACEOF
  2667. -#line $LINENO "configure"
  2668. /* confdefs.h. */
  2669. _ACEOF
  2670. cat confdefs.h >>conftest.$ac_ext
  2671. @@ -2000,111 +2734,150 @@
  2672. }
  2673. _ACEOF
  2674. ac_clean_files_save=$ac_clean_files
  2675. -ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2676. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2677. # Try to create an executable without -o first, disregard a.out.
  2678. # It will help us diagnose broken compilers, and finding out an intuition
  2679. # of exeext.
  2680. -echo "$as_me:$LINENO: checking for C compiler default output" >&5
  2681. -echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
  2682. -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2683. -if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  2684. - (eval $ac_link_default) 2>&5
  2685. +{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2686. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  2687. +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2688. +
  2689. +# The possible output files:
  2690. +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2691. +
  2692. +ac_rmfiles=
  2693. +for ac_file in $ac_files
  2694. +do
  2695. + case $ac_file in
  2696. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2697. + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2698. + esac
  2699. +done
  2700. +rm -f $ac_rmfiles
  2701. +
  2702. +if { (ac_try="$ac_link_default"
  2703. +case "(($ac_try" in
  2704. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2705. + *) ac_try_echo=$ac_try;;
  2706. +esac
  2707. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2708. +$as_echo "$ac_try_echo") >&5
  2709. + (eval "$ac_link_default") 2>&5
  2710. ac_status=$?
  2711. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2712. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2713. (exit $ac_status); }; then
  2714. - # Find the output, starting from the most likely. This scheme is
  2715. -# not robust to junk in `.', hence go to wildcards (a.*) only as a last
  2716. -# resort.
  2717. -
  2718. -# Be careful to initialize this variable, since it used to be cached.
  2719. -# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  2720. -ac_cv_exeext=
  2721. -# b.out is created by i960 compilers.
  2722. -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  2723. + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2724. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2725. +# in a Makefile. We should not override ac_cv_exeext if it was cached,
  2726. +# so that the user can short-circuit this test for compilers unknown to
  2727. +# Autoconf.
  2728. +for ac_file in $ac_files ''
  2729. do
  2730. test -f "$ac_file" || continue
  2731. case $ac_file in
  2732. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  2733. - ;;
  2734. - conftest.$ac_ext )
  2735. - # This is the source file.
  2736. - ;;
  2737. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2738. + ;;
  2739. [ab].out )
  2740. - # We found the default executable, but exeext='' is most
  2741. - # certainly right.
  2742. - break;;
  2743. + # We found the default executable, but exeext='' is most
  2744. + # certainly right.
  2745. + break;;
  2746. *.* )
  2747. - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2748. - # FIXME: I believe we export ac_cv_exeext for Libtool,
  2749. - # but it would be cool to find out if it's true. Does anybody
  2750. - # maintain Libtool? --akim.
  2751. - export ac_cv_exeext
  2752. - break;;
  2753. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2754. + then :; else
  2755. + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2756. + fi
  2757. + # We set ac_cv_exeext here because the later test for it is not
  2758. + # safe: cross compilers may not add the suffix if given an `-o'
  2759. + # argument, so we may need to know it at that point already.
  2760. + # Even if this section looks crufty: it has the advantage of
  2761. + # actually working.
  2762. + break;;
  2763. * )
  2764. - break;;
  2765. + break;;
  2766. esac
  2767. done
  2768. +test "$ac_cv_exeext" = no && ac_cv_exeext=
  2769. +
  2770. else
  2771. - echo "$as_me: failed program was:" >&5
  2772. + ac_file=''
  2773. +fi
  2774. +
  2775. +{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2776. +$as_echo "$ac_file" >&6; }
  2777. +if test -z "$ac_file"; then
  2778. + $as_echo "$as_me: failed program was:" >&5
  2779. sed 's/^/| /' conftest.$ac_ext >&5
  2780. -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2781. +{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2782. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2783. +{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  2784. See \`config.log' for more details." >&5
  2785. -echo "$as_me: error: C compiler cannot create executables
  2786. +$as_echo "$as_me: error: C compiler cannot create executables
  2787. See \`config.log' for more details." >&2;}
  2788. - { (exit 77); exit 77; }; }
  2789. + { (exit 77); exit 77; }; }; }
  2790. fi
  2791. ac_exeext=$ac_cv_exeext
  2792. -echo "$as_me:$LINENO: result: $ac_file" >&5
  2793. -echo "${ECHO_T}$ac_file" >&6
  2794. -# Check the compiler produces executables we can run. If not, either
  2795. +# Check that the compiler produces executables we can run. If not, either
  2796. # the compiler is broken, or we cross compile.
  2797. -echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2798. -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  2799. +{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2800. +$as_echo_n "checking whether the C compiler works... " >&6; }
  2801. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2802. # If not cross compiling, check that we can run a simple program.
  2803. if test "$cross_compiling" != yes; then
  2804. if { ac_try='./$ac_file'
  2805. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2806. - (eval $ac_try) 2>&5
  2807. + { (case "(($ac_try" in
  2808. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2809. + *) ac_try_echo=$ac_try;;
  2810. +esac
  2811. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2812. +$as_echo "$ac_try_echo") >&5
  2813. + (eval "$ac_try") 2>&5
  2814. ac_status=$?
  2815. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2816. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2817. (exit $ac_status); }; }; then
  2818. cross_compiling=no
  2819. else
  2820. if test "$cross_compiling" = maybe; then
  2821. cross_compiling=yes
  2822. else
  2823. - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2824. + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2825. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2826. +{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2827. If you meant to cross compile, use \`--host'.
  2828. See \`config.log' for more details." >&5
  2829. -echo "$as_me: error: cannot run C compiled programs.
  2830. +$as_echo "$as_me: error: cannot run C compiled programs.
  2831. If you meant to cross compile, use \`--host'.
  2832. See \`config.log' for more details." >&2;}
  2833. - { (exit 1); exit 1; }; }
  2834. + { (exit 1); exit 1; }; }; }
  2835. fi
  2836. fi
  2837. fi
  2838. -echo "$as_me:$LINENO: result: yes" >&5
  2839. -echo "${ECHO_T}yes" >&6
  2840. +{ $as_echo "$as_me:$LINENO: result: yes" >&5
  2841. +$as_echo "yes" >&6; }
  2842. -rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2843. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2844. ac_clean_files=$ac_clean_files_save
  2845. -# Check the compiler produces executables we can run. If not, either
  2846. +# Check that the compiler produces executables we can run. If not, either
  2847. # the compiler is broken, or we cross compile.
  2848. -echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2849. -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2850. -echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2851. -echo "${ECHO_T}$cross_compiling" >&6
  2852. -
  2853. -echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2854. -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2855. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2856. - (eval $ac_link) 2>&5
  2857. +{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2858. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  2859. +{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2860. +$as_echo "$cross_compiling" >&6; }
  2861. +
  2862. +{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2863. +$as_echo_n "checking for suffix of executables... " >&6; }
  2864. +if { (ac_try="$ac_link"
  2865. +case "(($ac_try" in
  2866. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2867. + *) ac_try_echo=$ac_try;;
  2868. +esac
  2869. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2870. +$as_echo "$ac_try_echo") >&5
  2871. + (eval "$ac_link") 2>&5
  2872. ac_status=$?
  2873. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2874. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2875. (exit $ac_status); }; then
  2876. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2877. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2878. @@ -2113,35 +2886,35 @@
  2879. for ac_file in conftest.exe conftest conftest.*; do
  2880. test -f "$ac_file" || continue
  2881. case $ac_file in
  2882. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2883. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2884. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2885. - export ac_cv_exeext
  2886. - break;;
  2887. + break;;
  2888. * ) break;;
  2889. esac
  2890. done
  2891. else
  2892. - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2893. + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2894. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2895. +{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2896. See \`config.log' for more details." >&5
  2897. -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2898. +$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2899. See \`config.log' for more details." >&2;}
  2900. - { (exit 1); exit 1; }; }
  2901. + { (exit 1); exit 1; }; }; }
  2902. fi
  2903. rm -f conftest$ac_cv_exeext
  2904. -echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2905. -echo "${ECHO_T}$ac_cv_exeext" >&6
  2906. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2907. +$as_echo "$ac_cv_exeext" >&6; }
  2908. rm -f conftest.$ac_ext
  2909. EXEEXT=$ac_cv_exeext
  2910. ac_exeext=$EXEEXT
  2911. -echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2912. -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2913. +{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2914. +$as_echo_n "checking for suffix of object files... " >&6; }
  2915. if test "${ac_cv_objext+set}" = set; then
  2916. - echo $ECHO_N "(cached) $ECHO_C" >&6
  2917. + $as_echo_n "(cached) " >&6
  2918. else
  2919. cat >conftest.$ac_ext <<_ACEOF
  2920. -#line $LINENO "configure"
  2921. /* confdefs.h. */
  2922. _ACEOF
  2923. cat confdefs.h >>conftest.$ac_ext
  2924. @@ -2157,42 +2930,50 @@
  2925. }
  2926. _ACEOF
  2927. rm -f conftest.o conftest.obj
  2928. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2929. - (eval $ac_compile) 2>&5
  2930. +if { (ac_try="$ac_compile"
  2931. +case "(($ac_try" in
  2932. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2933. + *) ac_try_echo=$ac_try;;
  2934. +esac
  2935. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2936. +$as_echo "$ac_try_echo") >&5
  2937. + (eval "$ac_compile") 2>&5
  2938. ac_status=$?
  2939. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2940. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2941. (exit $ac_status); }; then
  2942. - for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2943. + for ac_file in conftest.o conftest.obj conftest.*; do
  2944. + test -f "$ac_file" || continue;
  2945. case $ac_file in
  2946. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2947. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2948. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2949. break;;
  2950. esac
  2951. done
  2952. else
  2953. - echo "$as_me: failed program was:" >&5
  2954. + $as_echo "$as_me: failed program was:" >&5
  2955. sed 's/^/| /' conftest.$ac_ext >&5
  2956. -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2957. +{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2958. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2959. +{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2960. See \`config.log' for more details." >&5
  2961. -echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2962. +$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2963. See \`config.log' for more details." >&2;}
  2964. - { (exit 1); exit 1; }; }
  2965. + { (exit 1); exit 1; }; }; }
  2966. fi
  2967. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2968. fi
  2969. -echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2970. -echo "${ECHO_T}$ac_cv_objext" >&6
  2971. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2972. +$as_echo "$ac_cv_objext" >&6; }
  2973. OBJEXT=$ac_cv_objext
  2974. ac_objext=$OBJEXT
  2975. -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2976. -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2977. +{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2978. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2979. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2980. - echo $ECHO_N "(cached) $ECHO_C" >&6
  2981. + $as_echo_n "(cached) " >&6
  2982. else
  2983. cat >conftest.$ac_ext <<_ACEOF
  2984. -#line $LINENO "configure"
  2985. /* confdefs.h. */
  2986. _ACEOF
  2987. cat confdefs.h >>conftest.$ac_ext
  2988. @@ -2211,41 +2992,54 @@
  2989. }
  2990. _ACEOF
  2991. rm -f conftest.$ac_objext
  2992. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2993. - (eval $ac_compile) 2>&5
  2994. - ac_status=$?
  2995. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2996. - (exit $ac_status); } &&
  2997. - { ac_try='test -s conftest.$ac_objext'
  2998. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2999. - (eval $ac_try) 2>&5
  3000. +if { (ac_try="$ac_compile"
  3001. +case "(($ac_try" in
  3002. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3003. + *) ac_try_echo=$ac_try;;
  3004. +esac
  3005. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3006. +$as_echo "$ac_try_echo") >&5
  3007. + (eval "$ac_compile") 2>conftest.er1
  3008. ac_status=$?
  3009. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3010. - (exit $ac_status); }; }; then
  3011. + grep -v '^ *+' conftest.er1 >conftest.err
  3012. + rm -f conftest.er1
  3013. + cat conftest.err >&5
  3014. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3015. + (exit $ac_status); } && {
  3016. + test -z "$ac_c_werror_flag" ||
  3017. + test ! -s conftest.err
  3018. + } && test -s conftest.$ac_objext; then
  3019. ac_compiler_gnu=yes
  3020. else
  3021. - echo "$as_me: failed program was:" >&5
  3022. + $as_echo "$as_me: failed program was:" >&5
  3023. sed 's/^/| /' conftest.$ac_ext >&5
  3024. -ac_compiler_gnu=no
  3025. + ac_compiler_gnu=no
  3026. fi
  3027. -rm -f conftest.$ac_objext conftest.$ac_ext
  3028. +
  3029. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3030. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3031. fi
  3032. -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3033. -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  3034. -GCC=`test $ac_compiler_gnu = yes && echo yes`
  3035. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3036. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3037. +if test $ac_compiler_gnu = yes; then
  3038. + GCC=yes
  3039. +else
  3040. + GCC=
  3041. +fi
  3042. ac_test_CFLAGS=${CFLAGS+set}
  3043. ac_save_CFLAGS=$CFLAGS
  3044. -CFLAGS="-g"
  3045. -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3046. -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  3047. +{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3048. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  3049. if test "${ac_cv_prog_cc_g+set}" = set; then
  3050. - echo $ECHO_N "(cached) $ECHO_C" >&6
  3051. + $as_echo_n "(cached) " >&6
  3052. else
  3053. - cat >conftest.$ac_ext <<_ACEOF
  3054. -#line $LINENO "configure"
  3055. + ac_save_c_werror_flag=$ac_c_werror_flag
  3056. + ac_c_werror_flag=yes
  3057. + ac_cv_prog_cc_g=no
  3058. + CFLAGS="-g"
  3059. + cat >conftest.$ac_ext <<_ACEOF
  3060. /* confdefs.h. */
  3061. _ACEOF
  3062. cat confdefs.h >>conftest.$ac_ext
  3063. @@ -2261,28 +3055,121 @@
  3064. }
  3065. _ACEOF
  3066. rm -f conftest.$ac_objext
  3067. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3068. - (eval $ac_compile) 2>&5
  3069. +if { (ac_try="$ac_compile"
  3070. +case "(($ac_try" in
  3071. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3072. + *) ac_try_echo=$ac_try;;
  3073. +esac
  3074. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3075. +$as_echo "$ac_try_echo") >&5
  3076. + (eval "$ac_compile") 2>conftest.er1
  3077. ac_status=$?
  3078. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3079. - (exit $ac_status); } &&
  3080. - { ac_try='test -s conftest.$ac_objext'
  3081. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3082. - (eval $ac_try) 2>&5
  3083. + grep -v '^ *+' conftest.er1 >conftest.err
  3084. + rm -f conftest.er1
  3085. + cat conftest.err >&5
  3086. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3087. + (exit $ac_status); } && {
  3088. + test -z "$ac_c_werror_flag" ||
  3089. + test ! -s conftest.err
  3090. + } && test -s conftest.$ac_objext; then
  3091. + ac_cv_prog_cc_g=yes
  3092. +else
  3093. + $as_echo "$as_me: failed program was:" >&5
  3094. +sed 's/^/| /' conftest.$ac_ext >&5
  3095. +
  3096. + CFLAGS=""
  3097. + cat >conftest.$ac_ext <<_ACEOF
  3098. +/* confdefs.h. */
  3099. +_ACEOF
  3100. +cat confdefs.h >>conftest.$ac_ext
  3101. +cat >>conftest.$ac_ext <<_ACEOF
  3102. +/* end confdefs.h. */
  3103. +
  3104. +int
  3105. +main ()
  3106. +{
  3107. +
  3108. + ;
  3109. + return 0;
  3110. +}
  3111. +_ACEOF
  3112. +rm -f conftest.$ac_objext
  3113. +if { (ac_try="$ac_compile"
  3114. +case "(($ac_try" in
  3115. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3116. + *) ac_try_echo=$ac_try;;
  3117. +esac
  3118. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3119. +$as_echo "$ac_try_echo") >&5
  3120. + (eval "$ac_compile") 2>conftest.er1
  3121. ac_status=$?
  3122. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3123. - (exit $ac_status); }; }; then
  3124. + grep -v '^ *+' conftest.er1 >conftest.err
  3125. + rm -f conftest.er1
  3126. + cat conftest.err >&5
  3127. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3128. + (exit $ac_status); } && {
  3129. + test -z "$ac_c_werror_flag" ||
  3130. + test ! -s conftest.err
  3131. + } && test -s conftest.$ac_objext; then
  3132. + :
  3133. +else
  3134. + $as_echo "$as_me: failed program was:" >&5
  3135. +sed 's/^/| /' conftest.$ac_ext >&5
  3136. +
  3137. + ac_c_werror_flag=$ac_save_c_werror_flag
  3138. + CFLAGS="-g"
  3139. + cat >conftest.$ac_ext <<_ACEOF
  3140. +/* confdefs.h. */
  3141. +_ACEOF
  3142. +cat confdefs.h >>conftest.$ac_ext
  3143. +cat >>conftest.$ac_ext <<_ACEOF
  3144. +/* end confdefs.h. */
  3145. +
  3146. +int
  3147. +main ()
  3148. +{
  3149. +
  3150. + ;
  3151. + return 0;
  3152. +}
  3153. +_ACEOF
  3154. +rm -f conftest.$ac_objext
  3155. +if { (ac_try="$ac_compile"
  3156. +case "(($ac_try" in
  3157. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3158. + *) ac_try_echo=$ac_try;;
  3159. +esac
  3160. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3161. +$as_echo "$ac_try_echo") >&5
  3162. + (eval "$ac_compile") 2>conftest.er1
  3163. + ac_status=$?
  3164. + grep -v '^ *+' conftest.er1 >conftest.err
  3165. + rm -f conftest.er1
  3166. + cat conftest.err >&5
  3167. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3168. + (exit $ac_status); } && {
  3169. + test -z "$ac_c_werror_flag" ||
  3170. + test ! -s conftest.err
  3171. + } && test -s conftest.$ac_objext; then
  3172. ac_cv_prog_cc_g=yes
  3173. else
  3174. - echo "$as_me: failed program was:" >&5
  3175. + $as_echo "$as_me: failed program was:" >&5
  3176. sed 's/^/| /' conftest.$ac_ext >&5
  3177. -ac_cv_prog_cc_g=no
  3178. +
  3179. +fi
  3180. +
  3181. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3182. +fi
  3183. +
  3184. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3185. fi
  3186. -rm -f conftest.$ac_objext conftest.$ac_ext
  3187. +
  3188. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3189. + ac_c_werror_flag=$ac_save_c_werror_flag
  3190. fi
  3191. -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3192. -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  3193. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3194. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  3195. if test "$ac_test_CFLAGS" = set; then
  3196. CFLAGS=$ac_save_CFLAGS
  3197. elif test $ac_cv_prog_cc_g = yes; then
  3198. @@ -2298,15 +3185,14 @@
  3199. CFLAGS=
  3200. fi
  3201. fi
  3202. -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  3203. -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  3204. -if test "${ac_cv_prog_cc_stdc+set}" = set; then
  3205. - echo $ECHO_N "(cached) $ECHO_C" >&6
  3206. +{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3207. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3208. +if test "${ac_cv_prog_cc_c89+set}" = set; then
  3209. + $as_echo_n "(cached) " >&6
  3210. else
  3211. - ac_cv_prog_cc_stdc=no
  3212. + ac_cv_prog_cc_c89=no
  3213. ac_save_CC=$CC
  3214. cat >conftest.$ac_ext <<_ACEOF
  3215. -#line $LINENO "configure"
  3216. /* confdefs.h. */
  3217. _ACEOF
  3218. cat confdefs.h >>conftest.$ac_ext
  3219. @@ -2334,6 +3220,21 @@
  3220. va_end (v);
  3221. return s;
  3222. }
  3223. +
  3224. +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3225. + function prototypes and stuff, but not '\xHH' hex character constants.
  3226. + These don't provoke an error unfortunately, instead are silently treated
  3227. + as 'x'. The following induces an error, until -std is added to get
  3228. + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3229. + array size at least. It's necessary to write '\x00'==0 to get something
  3230. + that's true only with -std. */
  3231. +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3232. +
  3233. +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3234. + inside strings and character constants. */
  3235. +#define FOO(x) 'x'
  3236. +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3237. +
  3238. int test (int i, double x);
  3239. struct s1 {int (*f) (int a);};
  3240. struct s2 {int (*f) (double a);};
  3241. @@ -2348,262 +3249,170 @@
  3242. return 0;
  3243. }
  3244. _ACEOF
  3245. -# Don't try gcc -ansi; that turns off useful extensions and
  3246. -# breaks some systems' header files.
  3247. -# AIX -qlanglvl=ansi
  3248. -# Ultrix and OSF/1 -std1
  3249. -# HP-UX 10.20 and later -Ae
  3250. -# HP-UX older versions -Aa -D_HPUX_SOURCE
  3251. -# SVR4 -Xc -D__EXTENSIONS__
  3252. -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3253. +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3254. + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3255. do
  3256. CC="$ac_save_CC $ac_arg"
  3257. rm -f conftest.$ac_objext
  3258. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3259. - (eval $ac_compile) 2>&5
  3260. - ac_status=$?
  3261. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3262. - (exit $ac_status); } &&
  3263. - { ac_try='test -s conftest.$ac_objext'
  3264. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3265. - (eval $ac_try) 2>&5
  3266. +if { (ac_try="$ac_compile"
  3267. +case "(($ac_try" in
  3268. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3269. + *) ac_try_echo=$ac_try;;
  3270. +esac
  3271. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3272. +$as_echo "$ac_try_echo") >&5
  3273. + (eval "$ac_compile") 2>conftest.er1
  3274. ac_status=$?
  3275. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3276. - (exit $ac_status); }; }; then
  3277. - ac_cv_prog_cc_stdc=$ac_arg
  3278. -break
  3279. + grep -v '^ *+' conftest.er1 >conftest.err
  3280. + rm -f conftest.er1
  3281. + cat conftest.err >&5
  3282. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3283. + (exit $ac_status); } && {
  3284. + test -z "$ac_c_werror_flag" ||
  3285. + test ! -s conftest.err
  3286. + } && test -s conftest.$ac_objext; then
  3287. + ac_cv_prog_cc_c89=$ac_arg
  3288. else
  3289. - echo "$as_me: failed program was:" >&5
  3290. + $as_echo "$as_me: failed program was:" >&5
  3291. sed 's/^/| /' conftest.$ac_ext >&5
  3292. +
  3293. fi
  3294. -rm -f conftest.$ac_objext
  3295. +
  3296. +rm -f core conftest.err conftest.$ac_objext
  3297. + test "x$ac_cv_prog_cc_c89" != "xno" && break
  3298. done
  3299. -rm -f conftest.$ac_ext conftest.$ac_objext
  3300. +rm -f conftest.$ac_ext
  3301. CC=$ac_save_CC
  3302. fi
  3303. -
  3304. -case "x$ac_cv_prog_cc_stdc" in
  3305. - x|xno)
  3306. - echo "$as_me:$LINENO: result: none needed" >&5
  3307. -echo "${ECHO_T}none needed" >&6 ;;
  3308. +# AC_CACHE_VAL
  3309. +case "x$ac_cv_prog_cc_c89" in
  3310. + x)
  3311. + { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3312. +$as_echo "none needed" >&6; } ;;
  3313. + xno)
  3314. + { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3315. +$as_echo "unsupported" >&6; } ;;
  3316. *)
  3317. - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  3318. -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  3319. - CC="$CC $ac_cv_prog_cc_stdc" ;;
  3320. + CC="$CC $ac_cv_prog_cc_c89"
  3321. + { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3322. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3323. esac
  3324. -# Some people use a C++ compiler to compile C. Since we use `exit',
  3325. -# in C++ we need to declare it. In case someone uses the same compiler
  3326. -# for both compiling C and C++ we need to have the C++ compiler decide
  3327. -# the declaration of exit, since it's the most demanding environment.
  3328. -cat >conftest.$ac_ext <<_ACEOF
  3329. -#ifndef __cplusplus
  3330. - choke me
  3331. -#endif
  3332. -_ACEOF
  3333. -rm -f conftest.$ac_objext
  3334. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3335. - (eval $ac_compile) 2>&5
  3336. - ac_status=$?
  3337. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3338. - (exit $ac_status); } &&
  3339. - { ac_try='test -s conftest.$ac_objext'
  3340. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3341. - (eval $ac_try) 2>&5
  3342. - ac_status=$?
  3343. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3344. - (exit $ac_status); }; }; then
  3345. - for ac_declaration in \
  3346. - ''\
  3347. - '#include <stdlib.h>' \
  3348. - 'extern "C" void std::exit (int) throw (); using std::exit;' \
  3349. - 'extern "C" void std::exit (int); using std::exit;' \
  3350. - 'extern "C" void exit (int) throw ();' \
  3351. - 'extern "C" void exit (int);' \
  3352. - 'void exit (int);'
  3353. -do
  3354. - cat >conftest.$ac_ext <<_ACEOF
  3355. -#line $LINENO "configure"
  3356. -/* confdefs.h. */
  3357. -_ACEOF
  3358. -cat confdefs.h >>conftest.$ac_ext
  3359. -cat >>conftest.$ac_ext <<_ACEOF
  3360. -/* end confdefs.h. */
  3361. -#include <stdlib.h>
  3362. -$ac_declaration
  3363. -int
  3364. -main ()
  3365. -{
  3366. -exit (42);
  3367. - ;
  3368. - return 0;
  3369. -}
  3370. -_ACEOF
  3371. -rm -f conftest.$ac_objext
  3372. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3373. - (eval $ac_compile) 2>&5
  3374. - ac_status=$?
  3375. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3376. - (exit $ac_status); } &&
  3377. - { ac_try='test -s conftest.$ac_objext'
  3378. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3379. - (eval $ac_try) 2>&5
  3380. - ac_status=$?
  3381. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3382. - (exit $ac_status); }; }; then
  3383. - :
  3384. -else
  3385. - echo "$as_me: failed program was:" >&5
  3386. -sed 's/^/| /' conftest.$ac_ext >&5
  3387. -
  3388. -continue
  3389. -fi
  3390. -rm -f conftest.$ac_objext conftest.$ac_ext
  3391. - cat >conftest.$ac_ext <<_ACEOF
  3392. -#line $LINENO "configure"
  3393. -/* confdefs.h. */
  3394. -_ACEOF
  3395. -cat confdefs.h >>conftest.$ac_ext
  3396. -cat >>conftest.$ac_ext <<_ACEOF
  3397. -/* end confdefs.h. */
  3398. -$ac_declaration
  3399. -int
  3400. -main ()
  3401. -{
  3402. -exit (42);
  3403. - ;
  3404. - return 0;
  3405. -}
  3406. -_ACEOF
  3407. -rm -f conftest.$ac_objext
  3408. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3409. - (eval $ac_compile) 2>&5
  3410. - ac_status=$?
  3411. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3412. - (exit $ac_status); } &&
  3413. - { ac_try='test -s conftest.$ac_objext'
  3414. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3415. - (eval $ac_try) 2>&5
  3416. - ac_status=$?
  3417. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3418. - (exit $ac_status); }; }; then
  3419. - break
  3420. -else
  3421. - echo "$as_me: failed program was:" >&5
  3422. -sed 's/^/| /' conftest.$ac_ext >&5
  3423. -
  3424. -fi
  3425. -rm -f conftest.$ac_objext conftest.$ac_ext
  3426. -done
  3427. -rm -f conftest*
  3428. -if test -n "$ac_declaration"; then
  3429. - echo '#ifdef __cplusplus' >>confdefs.h
  3430. - echo $ac_declaration >>confdefs.h
  3431. - echo '#endif' >>confdefs.h
  3432. -fi
  3433. -
  3434. -else
  3435. - echo "$as_me: failed program was:" >&5
  3436. -sed 's/^/| /' conftest.$ac_ext >&5
  3437. -
  3438. -fi
  3439. -rm -f conftest.$ac_objext conftest.$ac_ext
  3440. -ac_ext=c
  3441. -ac_cpp='$CPP $CPPFLAGS'
  3442. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3443. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3444. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3445. -
  3446. -
  3447. -
  3448. -
  3449. -
  3450. -cat >>confdefs.h <<\_ACEOF
  3451. -#define NEED_STRLCPY 1
  3452. +
  3453. +ac_ext=c
  3454. +ac_cpp='$CPP $CPPFLAGS'
  3455. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3456. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3457. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3458. +
  3459. +
  3460. +
  3461. +
  3462. +
  3463. +cat >>confdefs.h <<\_ACEOF
  3464. +#define NEED_STRLCPY 1
  3465. _ACEOF
  3466. - echo "$as_me:$LINENO: checking for strlcpy" >&5
  3467. -echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
  3468. + { $as_echo "$as_me:$LINENO: checking for strlcpy" >&5
  3469. +$as_echo_n "checking for strlcpy... " >&6; }
  3470. if test "${ac_cv_func_strlcpy+set}" = set; then
  3471. - echo $ECHO_N "(cached) $ECHO_C" >&6
  3472. + $as_echo_n "(cached) " >&6
  3473. else
  3474. cat >conftest.$ac_ext <<_ACEOF
  3475. -#line $LINENO "configure"
  3476. /* confdefs.h. */
  3477. _ACEOF
  3478. cat confdefs.h >>conftest.$ac_ext
  3479. cat >>conftest.$ac_ext <<_ACEOF
  3480. /* end confdefs.h. */
  3481. +/* Define strlcpy to an innocuous variant, in case <limits.h> declares strlcpy.
  3482. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3483. +#define strlcpy innocuous_strlcpy
  3484. +
  3485. /* System header to define __stub macros and hopefully few prototypes,
  3486. which can conflict with char strlcpy (); below.
  3487. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3488. <limits.h> exists even on freestanding compilers. */
  3489. +
  3490. #ifdef __STDC__
  3491. # include <limits.h>
  3492. #else
  3493. # include <assert.h>
  3494. #endif
  3495. -/* Override any gcc2 internal prototype to avoid an error. */
  3496. +
  3497. +#undef strlcpy
  3498. +
  3499. +/* Override any GCC internal prototype to avoid an error.
  3500. + Use char because int might match the return type of a GCC
  3501. + builtin and then its argument prototype would still apply. */
  3502. #ifdef __cplusplus
  3503. extern "C"
  3504. -{
  3505. #endif
  3506. -/* We use char because int might match the return type of a gcc2
  3507. - builtin and then its argument prototype would still apply. */
  3508. char strlcpy ();
  3509. /* The GNU C library defines this for functions which it implements
  3510. to always fail with ENOSYS. Some functions are actually named
  3511. something starting with __ and the normal name is an alias. */
  3512. -#if defined (__stub_strlcpy) || defined (__stub___strlcpy)
  3513. +#if defined __stub_strlcpy || defined __stub___strlcpy
  3514. choke me
  3515. -#else
  3516. -char (*f) () = strlcpy;
  3517. -#endif
  3518. -#ifdef __cplusplus
  3519. -}
  3520. #endif
  3521. int
  3522. main ()
  3523. {
  3524. -return f != strlcpy;
  3525. +return strlcpy ();
  3526. ;
  3527. return 0;
  3528. }
  3529. _ACEOF
  3530. rm -f conftest.$ac_objext conftest$ac_exeext
  3531. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3532. - (eval $ac_link) 2>&5
  3533. - ac_status=$?
  3534. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3535. - (exit $ac_status); } &&
  3536. - { ac_try='test -s conftest$ac_exeext'
  3537. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3538. - (eval $ac_try) 2>&5
  3539. +if { (ac_try="$ac_link"
  3540. +case "(($ac_try" in
  3541. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3542. + *) ac_try_echo=$ac_try;;
  3543. +esac
  3544. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3545. +$as_echo "$ac_try_echo") >&5
  3546. + (eval "$ac_link") 2>conftest.er1
  3547. ac_status=$?
  3548. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3549. - (exit $ac_status); }; }; then
  3550. + grep -v '^ *+' conftest.er1 >conftest.err
  3551. + rm -f conftest.er1
  3552. + cat conftest.err >&5
  3553. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3554. + (exit $ac_status); } && {
  3555. + test -z "$ac_c_werror_flag" ||
  3556. + test ! -s conftest.err
  3557. + } && test -s conftest$ac_exeext && {
  3558. + test "$cross_compiling" = yes ||
  3559. + $as_test_x conftest$ac_exeext
  3560. + }; then
  3561. ac_cv_func_strlcpy=yes
  3562. else
  3563. - echo "$as_me: failed program was:" >&5
  3564. + $as_echo "$as_me: failed program was:" >&5
  3565. sed 's/^/| /' conftest.$ac_ext >&5
  3566. -ac_cv_func_strlcpy=no
  3567. + ac_cv_func_strlcpy=no
  3568. fi
  3569. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3570. +
  3571. +rm -rf conftest.dSYM
  3572. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3573. + conftest$ac_exeext conftest.$ac_ext
  3574. fi
  3575. -echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
  3576. -echo "${ECHO_T}$ac_cv_func_strlcpy" >&6
  3577. -if test $ac_cv_func_strlcpy = yes; then
  3578. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
  3579. +$as_echo "$ac_cv_func_strlcpy" >&6; }
  3580. +if test "x$ac_cv_func_strlcpy" = x""yes; then
  3581. cat >>confdefs.h <<\_ACEOF
  3582. #define HAVE_STRLCPY 1
  3583. _ACEOF
  3584. else
  3585. - LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
  3586. + case " $LIBOBJS " in
  3587. + *" strlcpy.$ac_objext "* ) ;;
  3588. + *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
  3589. + ;;
  3590. +esac
  3591. +
  3592. fi
  3593. @@ -2616,86 +3425,104 @@
  3594. #define NEED_STRSEP 1
  3595. _ACEOF
  3596. - echo "$as_me:$LINENO: checking for strsep" >&5
  3597. -echo $ECHO_N "checking for strsep... $ECHO_C" >&6
  3598. + { $as_echo "$as_me:$LINENO: checking for strsep" >&5
  3599. +$as_echo_n "checking for strsep... " >&6; }
  3600. if test "${ac_cv_func_strsep+set}" = set; then
  3601. - echo $ECHO_N "(cached) $ECHO_C" >&6
  3602. + $as_echo_n "(cached) " >&6
  3603. else
  3604. cat >conftest.$ac_ext <<_ACEOF
  3605. -#line $LINENO "configure"
  3606. /* confdefs.h. */
  3607. _ACEOF
  3608. cat confdefs.h >>conftest.$ac_ext
  3609. cat >>conftest.$ac_ext <<_ACEOF
  3610. /* end confdefs.h. */
  3611. +/* Define strsep to an innocuous variant, in case <limits.h> declares strsep.
  3612. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3613. +#define strsep innocuous_strsep
  3614. +
  3615. /* System header to define __stub macros and hopefully few prototypes,
  3616. which can conflict with char strsep (); below.
  3617. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3618. <limits.h> exists even on freestanding compilers. */
  3619. +
  3620. #ifdef __STDC__
  3621. # include <limits.h>
  3622. #else
  3623. # include <assert.h>
  3624. #endif
  3625. -/* Override any gcc2 internal prototype to avoid an error. */
  3626. +
  3627. +#undef strsep
  3628. +
  3629. +/* Override any GCC internal prototype to avoid an error.
  3630. + Use char because int might match the return type of a GCC
  3631. + builtin and then its argument prototype would still apply. */
  3632. #ifdef __cplusplus
  3633. extern "C"
  3634. -{
  3635. #endif
  3636. -/* We use char because int might match the return type of a gcc2
  3637. - builtin and then its argument prototype would still apply. */
  3638. char strsep ();
  3639. /* The GNU C library defines this for functions which it implements
  3640. to always fail with ENOSYS. Some functions are actually named
  3641. something starting with __ and the normal name is an alias. */
  3642. -#if defined (__stub_strsep) || defined (__stub___strsep)
  3643. +#if defined __stub_strsep || defined __stub___strsep
  3644. choke me
  3645. -#else
  3646. -char (*f) () = strsep;
  3647. -#endif
  3648. -#ifdef __cplusplus
  3649. -}
  3650. #endif
  3651. int
  3652. main ()
  3653. {
  3654. -return f != strsep;
  3655. +return strsep ();
  3656. ;
  3657. return 0;
  3658. }
  3659. _ACEOF
  3660. rm -f conftest.$ac_objext conftest$ac_exeext
  3661. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3662. - (eval $ac_link) 2>&5
  3663. - ac_status=$?
  3664. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3665. - (exit $ac_status); } &&
  3666. - { ac_try='test -s conftest$ac_exeext'
  3667. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3668. - (eval $ac_try) 2>&5
  3669. +if { (ac_try="$ac_link"
  3670. +case "(($ac_try" in
  3671. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3672. + *) ac_try_echo=$ac_try;;
  3673. +esac
  3674. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3675. +$as_echo "$ac_try_echo") >&5
  3676. + (eval "$ac_link") 2>conftest.er1
  3677. ac_status=$?
  3678. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3679. - (exit $ac_status); }; }; then
  3680. + grep -v '^ *+' conftest.er1 >conftest.err
  3681. + rm -f conftest.er1
  3682. + cat conftest.err >&5
  3683. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3684. + (exit $ac_status); } && {
  3685. + test -z "$ac_c_werror_flag" ||
  3686. + test ! -s conftest.err
  3687. + } && test -s conftest$ac_exeext && {
  3688. + test "$cross_compiling" = yes ||
  3689. + $as_test_x conftest$ac_exeext
  3690. + }; then
  3691. ac_cv_func_strsep=yes
  3692. else
  3693. - echo "$as_me: failed program was:" >&5
  3694. + $as_echo "$as_me: failed program was:" >&5
  3695. sed 's/^/| /' conftest.$ac_ext >&5
  3696. -ac_cv_func_strsep=no
  3697. + ac_cv_func_strsep=no
  3698. fi
  3699. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3700. +
  3701. +rm -rf conftest.dSYM
  3702. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3703. + conftest$ac_exeext conftest.$ac_ext
  3704. fi
  3705. -echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
  3706. -echo "${ECHO_T}$ac_cv_func_strsep" >&6
  3707. -if test $ac_cv_func_strsep = yes; then
  3708. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
  3709. +$as_echo "$ac_cv_func_strsep" >&6; }
  3710. +if test "x$ac_cv_func_strsep" = x""yes; then
  3711. cat >>confdefs.h <<\_ACEOF
  3712. #define HAVE_STRSEP 1
  3713. _ACEOF
  3714. else
  3715. - LIBOBJS="$LIBOBJS strsep.$ac_objext"
  3716. + case " $LIBOBJS " in
  3717. + *" strsep.$ac_objext "* ) ;;
  3718. + *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
  3719. + ;;
  3720. +esac
  3721. +
  3722. fi
  3723. @@ -2718,15 +3545,15 @@
  3724. LISTHASH_DIR="listhash";
  3725. - ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_listhash.h:listhash/listhash.h.in"
  3726. + ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_listhash.h:listhash/listhash.h.in"
  3727. - ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_list.c:listhash/list.c.in"
  3728. + ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_list.c:listhash/list.c.in"
  3729. - ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_hash.c:listhash/hash.c.in"
  3730. + ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_hash.c:listhash/hash.c.in"
  3731. - ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_list_new.3:listhash/list_new.3.in"
  3732. + ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_list_new.3:listhash/list_new.3.in"
  3733. - ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_hash_new.3:listhash/hash_new.3.in"
  3734. + ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_hash_new.3:listhash/hash_new.3.in"
  3735. @@ -2743,714 +3570,867 @@
  3736. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3737. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3738. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3739. -if test -n "$ac_tool_prefix"; then
  3740. - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3741. -set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3742. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  3743. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3744. -if test "${ac_cv_prog_CC+set}" = set; then
  3745. - echo $ECHO_N "(cached) $ECHO_C" >&6
  3746. -else
  3747. - if test -n "$CC"; then
  3748. - ac_cv_prog_CC="$CC" # Let the user override the test.
  3749. +{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3750. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  3751. +# On Suns, sometimes $CPP names a directory.
  3752. +if test -n "$CPP" && test -d "$CPP"; then
  3753. + CPP=
  3754. +fi
  3755. +if test -z "$CPP"; then
  3756. + if test "${ac_cv_prog_CPP+set}" = set; then
  3757. + $as_echo_n "(cached) " >&6
  3758. else
  3759. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3760. -for as_dir in $PATH
  3761. + # Double quotes because CPP needs to be expanded
  3762. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3763. + do
  3764. + ac_preproc_ok=false
  3765. +for ac_c_preproc_warn_flag in '' yes
  3766. do
  3767. - IFS=$as_save_IFS
  3768. - test -z "$as_dir" && as_dir=.
  3769. - for ac_exec_ext in '' $ac_executable_extensions; do
  3770. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3771. - ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3772. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3773. - break 2
  3774. - fi
  3775. -done
  3776. -done
  3777. -
  3778. -fi
  3779. -fi
  3780. -CC=$ac_cv_prog_CC
  3781. -if test -n "$CC"; then
  3782. - echo "$as_me:$LINENO: result: $CC" >&5
  3783. -echo "${ECHO_T}$CC" >&6
  3784. + # Use a header file that comes with gcc, so configuring glibc
  3785. + # with a fresh cross-compiler works.
  3786. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3787. + # <limits.h> exists even on freestanding compilers.
  3788. + # On the NeXT, cc -E runs the code through the compiler's parser,
  3789. + # not just through cpp. "Syntax error" is here to catch this case.
  3790. + cat >conftest.$ac_ext <<_ACEOF
  3791. +/* confdefs.h. */
  3792. +_ACEOF
  3793. +cat confdefs.h >>conftest.$ac_ext
  3794. +cat >>conftest.$ac_ext <<_ACEOF
  3795. +/* end confdefs.h. */
  3796. +#ifdef __STDC__
  3797. +# include <limits.h>
  3798. +#else
  3799. +# include <assert.h>
  3800. +#endif
  3801. + Syntax error
  3802. +_ACEOF
  3803. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  3804. +case "(($ac_try" in
  3805. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3806. + *) ac_try_echo=$ac_try;;
  3807. +esac
  3808. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3809. +$as_echo "$ac_try_echo") >&5
  3810. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3811. + ac_status=$?
  3812. + grep -v '^ *+' conftest.er1 >conftest.err
  3813. + rm -f conftest.er1
  3814. + cat conftest.err >&5
  3815. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3816. + (exit $ac_status); } >/dev/null && {
  3817. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3818. + test ! -s conftest.err
  3819. + }; then
  3820. + :
  3821. else
  3822. - echo "$as_me:$LINENO: result: no" >&5
  3823. -echo "${ECHO_T}no" >&6
  3824. -fi
  3825. + $as_echo "$as_me: failed program was:" >&5
  3826. +sed 's/^/| /' conftest.$ac_ext >&5
  3827. + # Broken: fails on valid input.
  3828. +continue
  3829. fi
  3830. -if test -z "$ac_cv_prog_CC"; then
  3831. - ac_ct_CC=$CC
  3832. - # Extract the first word of "gcc", so it can be a program name with args.
  3833. -set dummy gcc; ac_word=$2
  3834. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  3835. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3836. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3837. - echo $ECHO_N "(cached) $ECHO_C" >&6
  3838. -else
  3839. - if test -n "$ac_ct_CC"; then
  3840. - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3841. -else
  3842. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3843. -for as_dir in $PATH
  3844. -do
  3845. - IFS=$as_save_IFS
  3846. - test -z "$as_dir" && as_dir=.
  3847. - for ac_exec_ext in '' $ac_executable_extensions; do
  3848. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3849. - ac_cv_prog_ac_ct_CC="gcc"
  3850. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3851. - break 2
  3852. - fi
  3853. -done
  3854. -done
  3855. -fi
  3856. -fi
  3857. -ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3858. -if test -n "$ac_ct_CC"; then
  3859. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3860. -echo "${ECHO_T}$ac_ct_CC" >&6
  3861. -else
  3862. - echo "$as_me:$LINENO: result: no" >&5
  3863. -echo "${ECHO_T}no" >&6
  3864. -fi
  3865. +rm -f conftest.err conftest.$ac_ext
  3866. - CC=$ac_ct_CC
  3867. + # OK, works on sane cases. Now check whether nonexistent headers
  3868. + # can be detected and how.
  3869. + cat >conftest.$ac_ext <<_ACEOF
  3870. +/* confdefs.h. */
  3871. +_ACEOF
  3872. +cat confdefs.h >>conftest.$ac_ext
  3873. +cat >>conftest.$ac_ext <<_ACEOF
  3874. +/* end confdefs.h. */
  3875. +#include <ac_nonexistent.h>
  3876. +_ACEOF
  3877. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  3878. +case "(($ac_try" in
  3879. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3880. + *) ac_try_echo=$ac_try;;
  3881. +esac
  3882. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3883. +$as_echo "$ac_try_echo") >&5
  3884. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3885. + ac_status=$?
  3886. + grep -v '^ *+' conftest.er1 >conftest.err
  3887. + rm -f conftest.er1
  3888. + cat conftest.err >&5
  3889. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3890. + (exit $ac_status); } >/dev/null && {
  3891. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3892. + test ! -s conftest.err
  3893. + }; then
  3894. + # Broken: success on invalid input.
  3895. +continue
  3896. else
  3897. - CC="$ac_cv_prog_CC"
  3898. + $as_echo "$as_me: failed program was:" >&5
  3899. +sed 's/^/| /' conftest.$ac_ext >&5
  3900. +
  3901. + # Passes both tests.
  3902. +ac_preproc_ok=:
  3903. +break
  3904. fi
  3905. -if test -z "$CC"; then
  3906. - if test -n "$ac_tool_prefix"; then
  3907. - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3908. -set dummy ${ac_tool_prefix}cc; ac_word=$2
  3909. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  3910. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3911. -if test "${ac_cv_prog_CC+set}" = set; then
  3912. - echo $ECHO_N "(cached) $ECHO_C" >&6
  3913. -else
  3914. - if test -n "$CC"; then
  3915. - ac_cv_prog_CC="$CC" # Let the user override the test.
  3916. -else
  3917. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3918. -for as_dir in $PATH
  3919. -do
  3920. - IFS=$as_save_IFS
  3921. - test -z "$as_dir" && as_dir=.
  3922. - for ac_exec_ext in '' $ac_executable_extensions; do
  3923. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3924. - ac_cv_prog_CC="${ac_tool_prefix}cc"
  3925. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3926. - break 2
  3927. - fi
  3928. -done
  3929. -done
  3930. +rm -f conftest.err conftest.$ac_ext
  3931. +done
  3932. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3933. +rm -f conftest.err conftest.$ac_ext
  3934. +if $ac_preproc_ok; then
  3935. + break
  3936. fi
  3937. +
  3938. + done
  3939. + ac_cv_prog_CPP=$CPP
  3940. +
  3941. fi
  3942. -CC=$ac_cv_prog_CC
  3943. -if test -n "$CC"; then
  3944. - echo "$as_me:$LINENO: result: $CC" >&5
  3945. -echo "${ECHO_T}$CC" >&6
  3946. + CPP=$ac_cv_prog_CPP
  3947. else
  3948. - echo "$as_me:$LINENO: result: no" >&5
  3949. -echo "${ECHO_T}no" >&6
  3950. -fi
  3951. -
  3952. + ac_cv_prog_CPP=$CPP
  3953. fi
  3954. -if test -z "$ac_cv_prog_CC"; then
  3955. - ac_ct_CC=$CC
  3956. - # Extract the first word of "cc", so it can be a program name with args.
  3957. -set dummy cc; ac_word=$2
  3958. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  3959. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3960. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3961. - echo $ECHO_N "(cached) $ECHO_C" >&6
  3962. -else
  3963. - if test -n "$ac_ct_CC"; then
  3964. - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3965. -else
  3966. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3967. -for as_dir in $PATH
  3968. +{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
  3969. +$as_echo "$CPP" >&6; }
  3970. +ac_preproc_ok=false
  3971. +for ac_c_preproc_warn_flag in '' yes
  3972. do
  3973. - IFS=$as_save_IFS
  3974. - test -z "$as_dir" && as_dir=.
  3975. - for ac_exec_ext in '' $ac_executable_extensions; do
  3976. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3977. - ac_cv_prog_ac_ct_CC="cc"
  3978. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3979. - break 2
  3980. - fi
  3981. -done
  3982. -done
  3983. + # Use a header file that comes with gcc, so configuring glibc
  3984. + # with a fresh cross-compiler works.
  3985. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3986. + # <limits.h> exists even on freestanding compilers.
  3987. + # On the NeXT, cc -E runs the code through the compiler's parser,
  3988. + # not just through cpp. "Syntax error" is here to catch this case.
  3989. + cat >conftest.$ac_ext <<_ACEOF
  3990. +/* confdefs.h. */
  3991. +_ACEOF
  3992. +cat confdefs.h >>conftest.$ac_ext
  3993. +cat >>conftest.$ac_ext <<_ACEOF
  3994. +/* end confdefs.h. */
  3995. +#ifdef __STDC__
  3996. +# include <limits.h>
  3997. +#else
  3998. +# include <assert.h>
  3999. +#endif
  4000. + Syntax error
  4001. +_ACEOF
  4002. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  4003. +case "(($ac_try" in
  4004. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4005. + *) ac_try_echo=$ac_try;;
  4006. +esac
  4007. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4008. +$as_echo "$ac_try_echo") >&5
  4009. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4010. + ac_status=$?
  4011. + grep -v '^ *+' conftest.er1 >conftest.err
  4012. + rm -f conftest.er1
  4013. + cat conftest.err >&5
  4014. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4015. + (exit $ac_status); } >/dev/null && {
  4016. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4017. + test ! -s conftest.err
  4018. + }; then
  4019. + :
  4020. +else
  4021. + $as_echo "$as_me: failed program was:" >&5
  4022. +sed 's/^/| /' conftest.$ac_ext >&5
  4023. + # Broken: fails on valid input.
  4024. +continue
  4025. fi
  4026. -fi
  4027. -ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4028. -if test -n "$ac_ct_CC"; then
  4029. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4030. -echo "${ECHO_T}$ac_ct_CC" >&6
  4031. +
  4032. +rm -f conftest.err conftest.$ac_ext
  4033. +
  4034. + # OK, works on sane cases. Now check whether nonexistent headers
  4035. + # can be detected and how.
  4036. + cat >conftest.$ac_ext <<_ACEOF
  4037. +/* confdefs.h. */
  4038. +_ACEOF
  4039. +cat confdefs.h >>conftest.$ac_ext
  4040. +cat >>conftest.$ac_ext <<_ACEOF
  4041. +/* end confdefs.h. */
  4042. +#include <ac_nonexistent.h>
  4043. +_ACEOF
  4044. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  4045. +case "(($ac_try" in
  4046. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4047. + *) ac_try_echo=$ac_try;;
  4048. +esac
  4049. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4050. +$as_echo "$ac_try_echo") >&5
  4051. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4052. + ac_status=$?
  4053. + grep -v '^ *+' conftest.er1 >conftest.err
  4054. + rm -f conftest.er1
  4055. + cat conftest.err >&5
  4056. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4057. + (exit $ac_status); } >/dev/null && {
  4058. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4059. + test ! -s conftest.err
  4060. + }; then
  4061. + # Broken: success on invalid input.
  4062. +continue
  4063. else
  4064. - echo "$as_me:$LINENO: result: no" >&5
  4065. -echo "${ECHO_T}no" >&6
  4066. + $as_echo "$as_me: failed program was:" >&5
  4067. +sed 's/^/| /' conftest.$ac_ext >&5
  4068. +
  4069. + # Passes both tests.
  4070. +ac_preproc_ok=:
  4071. +break
  4072. fi
  4073. - CC=$ac_ct_CC
  4074. +rm -f conftest.err conftest.$ac_ext
  4075. +
  4076. +done
  4077. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4078. +rm -f conftest.err conftest.$ac_ext
  4079. +if $ac_preproc_ok; then
  4080. + :
  4081. else
  4082. - CC="$ac_cv_prog_CC"
  4083. + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  4084. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4085. +{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4086. +See \`config.log' for more details." >&5
  4087. +$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4088. +See \`config.log' for more details." >&2;}
  4089. + { (exit 1); exit 1; }; }; }
  4090. fi
  4091. -fi
  4092. -if test -z "$CC"; then
  4093. - # Extract the first word of "cc", so it can be a program name with args.
  4094. -set dummy cc; ac_word=$2
  4095. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  4096. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4097. -if test "${ac_cv_prog_CC+set}" = set; then
  4098. - echo $ECHO_N "(cached) $ECHO_C" >&6
  4099. -else
  4100. - if test -n "$CC"; then
  4101. - ac_cv_prog_CC="$CC" # Let the user override the test.
  4102. -else
  4103. - ac_prog_rejected=no
  4104. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4105. -for as_dir in $PATH
  4106. +ac_ext=c
  4107. +ac_cpp='$CPP $CPPFLAGS'
  4108. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4109. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4110. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4111. +
  4112. +
  4113. +{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4114. +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4115. +if test "${ac_cv_path_GREP+set}" = set; then
  4116. + $as_echo_n "(cached) " >&6
  4117. +else
  4118. + if test -z "$GREP"; then
  4119. + ac_path_GREP_found=false
  4120. + # Loop through the user's path and test for each of PROGNAME-LIST
  4121. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4122. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4123. do
  4124. IFS=$as_save_IFS
  4125. test -z "$as_dir" && as_dir=.
  4126. - for ac_exec_ext in '' $ac_executable_extensions; do
  4127. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4128. - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4129. - ac_prog_rejected=yes
  4130. - continue
  4131. - fi
  4132. - ac_cv_prog_CC="cc"
  4133. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4134. - break 2
  4135. - fi
  4136. -done
  4137. -done
  4138. + for ac_prog in grep ggrep; do
  4139. + for ac_exec_ext in '' $ac_executable_extensions; do
  4140. + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4141. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4142. +# Check for GNU ac_path_GREP and select it if it is found.
  4143. + # Check for GNU $ac_path_GREP
  4144. +case `"$ac_path_GREP" --version 2>&1` in
  4145. +*GNU*)
  4146. + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4147. +*)
  4148. + ac_count=0
  4149. + $as_echo_n 0123456789 >"conftest.in"
  4150. + while :
  4151. + do
  4152. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  4153. + mv "conftest.tmp" "conftest.in"
  4154. + cp "conftest.in" "conftest.nl"
  4155. + $as_echo 'GREP' >> "conftest.nl"
  4156. + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4157. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4158. + ac_count=`expr $ac_count + 1`
  4159. + if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4160. + # Best one so far, save it but keep looking for a better one
  4161. + ac_cv_path_GREP="$ac_path_GREP"
  4162. + ac_path_GREP_max=$ac_count
  4163. + fi
  4164. + # 10*(2^10) chars as input seems more than enough
  4165. + test $ac_count -gt 10 && break
  4166. + done
  4167. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4168. +esac
  4169. -if test $ac_prog_rejected = yes; then
  4170. - # We found a bogon in the path, so make sure we never use it.
  4171. - set dummy $ac_cv_prog_CC
  4172. - shift
  4173. - if test $# != 0; then
  4174. - # We chose a different compiler from the bogus one.
  4175. - # However, it has the same basename, so the bogon will be chosen
  4176. - # first if we set CC to just the basename; use the full file name.
  4177. - shift
  4178. - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4179. + $ac_path_GREP_found && break 3
  4180. + done
  4181. + done
  4182. +done
  4183. +IFS=$as_save_IFS
  4184. + if test -z "$ac_cv_path_GREP"; then
  4185. + { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4186. +$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4187. + { (exit 1); exit 1; }; }
  4188. fi
  4189. -fi
  4190. -fi
  4191. -fi
  4192. -CC=$ac_cv_prog_CC
  4193. -if test -n "$CC"; then
  4194. - echo "$as_me:$LINENO: result: $CC" >&5
  4195. -echo "${ECHO_T}$CC" >&6
  4196. else
  4197. - echo "$as_me:$LINENO: result: no" >&5
  4198. -echo "${ECHO_T}no" >&6
  4199. + ac_cv_path_GREP=$GREP
  4200. fi
  4201. fi
  4202. -if test -z "$CC"; then
  4203. - if test -n "$ac_tool_prefix"; then
  4204. - for ac_prog in cl
  4205. - do
  4206. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4207. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4208. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  4209. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4210. -if test "${ac_cv_prog_CC+set}" = set; then
  4211. - echo $ECHO_N "(cached) $ECHO_C" >&6
  4212. -else
  4213. - if test -n "$CC"; then
  4214. - ac_cv_prog_CC="$CC" # Let the user override the test.
  4215. -else
  4216. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4217. -for as_dir in $PATH
  4218. -do
  4219. - IFS=$as_save_IFS
  4220. - test -z "$as_dir" && as_dir=.
  4221. - for ac_exec_ext in '' $ac_executable_extensions; do
  4222. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4223. - ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4224. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4225. - break 2
  4226. - fi
  4227. -done
  4228. -done
  4229. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4230. +$as_echo "$ac_cv_path_GREP" >&6; }
  4231. + GREP="$ac_cv_path_GREP"
  4232. -fi
  4233. -fi
  4234. -CC=$ac_cv_prog_CC
  4235. -if test -n "$CC"; then
  4236. - echo "$as_me:$LINENO: result: $CC" >&5
  4237. -echo "${ECHO_T}$CC" >&6
  4238. -else
  4239. - echo "$as_me:$LINENO: result: no" >&5
  4240. -echo "${ECHO_T}no" >&6
  4241. -fi
  4242. - test -n "$CC" && break
  4243. - done
  4244. -fi
  4245. -if test -z "$CC"; then
  4246. - ac_ct_CC=$CC
  4247. - for ac_prog in cl
  4248. -do
  4249. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  4250. -set dummy $ac_prog; ac_word=$2
  4251. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  4252. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4253. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4254. - echo $ECHO_N "(cached) $ECHO_C" >&6
  4255. -else
  4256. - if test -n "$ac_ct_CC"; then
  4257. - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4258. +{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
  4259. +$as_echo_n "checking for egrep... " >&6; }
  4260. +if test "${ac_cv_path_EGREP+set}" = set; then
  4261. + $as_echo_n "(cached) " >&6
  4262. else
  4263. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4264. -for as_dir in $PATH
  4265. + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4266. + then ac_cv_path_EGREP="$GREP -E"
  4267. + else
  4268. + if test -z "$EGREP"; then
  4269. + ac_path_EGREP_found=false
  4270. + # Loop through the user's path and test for each of PROGNAME-LIST
  4271. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4272. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4273. do
  4274. IFS=$as_save_IFS
  4275. test -z "$as_dir" && as_dir=.
  4276. - for ac_exec_ext in '' $ac_executable_extensions; do
  4277. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4278. - ac_cv_prog_ac_ct_CC="$ac_prog"
  4279. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4280. - break 2
  4281. - fi
  4282. -done
  4283. -done
  4284. -
  4285. -fi
  4286. -fi
  4287. -ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4288. -if test -n "$ac_ct_CC"; then
  4289. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4290. -echo "${ECHO_T}$ac_ct_CC" >&6
  4291. -else
  4292. - echo "$as_me:$LINENO: result: no" >&5
  4293. -echo "${ECHO_T}no" >&6
  4294. -fi
  4295. + for ac_prog in egrep; do
  4296. + for ac_exec_ext in '' $ac_executable_extensions; do
  4297. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4298. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4299. +# Check for GNU ac_path_EGREP and select it if it is found.
  4300. + # Check for GNU $ac_path_EGREP
  4301. +case `"$ac_path_EGREP" --version 2>&1` in
  4302. +*GNU*)
  4303. + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4304. +*)
  4305. + ac_count=0
  4306. + $as_echo_n 0123456789 >"conftest.in"
  4307. + while :
  4308. + do
  4309. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  4310. + mv "conftest.tmp" "conftest.in"
  4311. + cp "conftest.in" "conftest.nl"
  4312. + $as_echo 'EGREP' >> "conftest.nl"
  4313. + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4314. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4315. + ac_count=`expr $ac_count + 1`
  4316. + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4317. + # Best one so far, save it but keep looking for a better one
  4318. + ac_cv_path_EGREP="$ac_path_EGREP"
  4319. + ac_path_EGREP_max=$ac_count
  4320. + fi
  4321. + # 10*(2^10) chars as input seems more than enough
  4322. + test $ac_count -gt 10 && break
  4323. + done
  4324. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4325. +esac
  4326. - test -n "$ac_ct_CC" && break
  4327. + $ac_path_EGREP_found && break 3
  4328. + done
  4329. + done
  4330. done
  4331. -
  4332. - CC=$ac_ct_CC
  4333. +IFS=$as_save_IFS
  4334. + if test -z "$ac_cv_path_EGREP"; then
  4335. + { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4336. +$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4337. + { (exit 1); exit 1; }; }
  4338. + fi
  4339. +else
  4340. + ac_cv_path_EGREP=$EGREP
  4341. fi
  4342. + fi
  4343. fi
  4344. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4345. +$as_echo "$ac_cv_path_EGREP" >&6; }
  4346. + EGREP="$ac_cv_path_EGREP"
  4347. -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  4348. -See \`config.log' for more details." >&5
  4349. -echo "$as_me: error: no acceptable C compiler found in \$PATH
  4350. -See \`config.log' for more details." >&2;}
  4351. - { (exit 1); exit 1; }; }
  4352. -
  4353. -# Provide some information about the compiler.
  4354. -echo "$as_me:$LINENO:" \
  4355. - "checking for C compiler version" >&5
  4356. -ac_compiler=`set X $ac_compile; echo $2`
  4357. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  4358. - (eval $ac_compiler --version </dev/null >&5) 2>&5
  4359. - ac_status=$?
  4360. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4361. - (exit $ac_status); }
  4362. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  4363. - (eval $ac_compiler -v </dev/null >&5) 2>&5
  4364. - ac_status=$?
  4365. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4366. - (exit $ac_status); }
  4367. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  4368. - (eval $ac_compiler -V </dev/null >&5) 2>&5
  4369. - ac_status=$?
  4370. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4371. - (exit $ac_status); }
  4372. -
  4373. -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  4374. -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  4375. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  4376. - echo $ECHO_N "(cached) $ECHO_C" >&6
  4377. +{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4378. +$as_echo_n "checking for ANSI C header files... " >&6; }
  4379. +if test "${ac_cv_header_stdc+set}" = set; then
  4380. + $as_echo_n "(cached) " >&6
  4381. else
  4382. cat >conftest.$ac_ext <<_ACEOF
  4383. -#line $LINENO "configure"
  4384. /* confdefs.h. */
  4385. _ACEOF
  4386. cat confdefs.h >>conftest.$ac_ext
  4387. cat >>conftest.$ac_ext <<_ACEOF
  4388. /* end confdefs.h. */
  4389. +#include <stdlib.h>
  4390. +#include <stdarg.h>
  4391. +#include <string.h>
  4392. +#include <float.h>
  4393. int
  4394. main ()
  4395. {
  4396. -#ifndef __GNUC__
  4397. - choke me
  4398. -#endif
  4399. ;
  4400. return 0;
  4401. }
  4402. _ACEOF
  4403. rm -f conftest.$ac_objext
  4404. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4405. - (eval $ac_compile) 2>&5
  4406. - ac_status=$?
  4407. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4408. - (exit $ac_status); } &&
  4409. - { ac_try='test -s conftest.$ac_objext'
  4410. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4411. - (eval $ac_try) 2>&5
  4412. +if { (ac_try="$ac_compile"
  4413. +case "(($ac_try" in
  4414. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4415. + *) ac_try_echo=$ac_try;;
  4416. +esac
  4417. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4418. +$as_echo "$ac_try_echo") >&5
  4419. + (eval "$ac_compile") 2>conftest.er1
  4420. ac_status=$?
  4421. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4422. - (exit $ac_status); }; }; then
  4423. - ac_compiler_gnu=yes
  4424. + grep -v '^ *+' conftest.er1 >conftest.err
  4425. + rm -f conftest.er1
  4426. + cat conftest.err >&5
  4427. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4428. + (exit $ac_status); } && {
  4429. + test -z "$ac_c_werror_flag" ||
  4430. + test ! -s conftest.err
  4431. + } && test -s conftest.$ac_objext; then
  4432. + ac_cv_header_stdc=yes
  4433. else
  4434. - echo "$as_me: failed program was:" >&5
  4435. + $as_echo "$as_me: failed program was:" >&5
  4436. sed 's/^/| /' conftest.$ac_ext >&5
  4437. -ac_compiler_gnu=no
  4438. + ac_cv_header_stdc=no
  4439. fi
  4440. -rm -f conftest.$ac_objext conftest.$ac_ext
  4441. -ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4442. -fi
  4443. -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4444. -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  4445. -GCC=`test $ac_compiler_gnu = yes && echo yes`
  4446. -ac_test_CFLAGS=${CFLAGS+set}
  4447. -ac_save_CFLAGS=$CFLAGS
  4448. -CFLAGS="-g"
  4449. -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4450. -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  4451. -if test "${ac_cv_prog_cc_g+set}" = set; then
  4452. - echo $ECHO_N "(cached) $ECHO_C" >&6
  4453. -else
  4454. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4455. +
  4456. +if test $ac_cv_header_stdc = yes; then
  4457. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4458. cat >conftest.$ac_ext <<_ACEOF
  4459. -#line $LINENO "configure"
  4460. /* confdefs.h. */
  4461. _ACEOF
  4462. cat confdefs.h >>conftest.$ac_ext
  4463. cat >>conftest.$ac_ext <<_ACEOF
  4464. /* end confdefs.h. */
  4465. +#include <string.h>
  4466. -int
  4467. -main ()
  4468. -{
  4469. -
  4470. - ;
  4471. - return 0;
  4472. -}
  4473. _ACEOF
  4474. -rm -f conftest.$ac_objext
  4475. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4476. - (eval $ac_compile) 2>&5
  4477. - ac_status=$?
  4478. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4479. - (exit $ac_status); } &&
  4480. - { ac_try='test -s conftest.$ac_objext'
  4481. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4482. - (eval $ac_try) 2>&5
  4483. - ac_status=$?
  4484. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4485. - (exit $ac_status); }; }; then
  4486. - ac_cv_prog_cc_g=yes
  4487. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4488. + $EGREP "memchr" >/dev/null 2>&1; then
  4489. + :
  4490. else
  4491. - echo "$as_me: failed program was:" >&5
  4492. -sed 's/^/| /' conftest.$ac_ext >&5
  4493. -
  4494. -ac_cv_prog_cc_g=no
  4495. + ac_cv_header_stdc=no
  4496. fi
  4497. -rm -f conftest.$ac_objext conftest.$ac_ext
  4498. +rm -f conftest*
  4499. +
  4500. fi
  4501. -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  4502. -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  4503. -if test "$ac_test_CFLAGS" = set; then
  4504. - CFLAGS=$ac_save_CFLAGS
  4505. -elif test $ac_cv_prog_cc_g = yes; then
  4506. - if test "$GCC" = yes; then
  4507. - CFLAGS="-g -O2"
  4508. - else
  4509. - CFLAGS="-g"
  4510. - fi
  4511. +
  4512. +if test $ac_cv_header_stdc = yes; then
  4513. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4514. + cat >conftest.$ac_ext <<_ACEOF
  4515. +/* confdefs.h. */
  4516. +_ACEOF
  4517. +cat confdefs.h >>conftest.$ac_ext
  4518. +cat >>conftest.$ac_ext <<_ACEOF
  4519. +/* end confdefs.h. */
  4520. +#include <stdlib.h>
  4521. +
  4522. +_ACEOF
  4523. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4524. + $EGREP "free" >/dev/null 2>&1; then
  4525. + :
  4526. else
  4527. - if test "$GCC" = yes; then
  4528. - CFLAGS="-O2"
  4529. - else
  4530. - CFLAGS=
  4531. - fi
  4532. + ac_cv_header_stdc=no
  4533. +fi
  4534. +rm -f conftest*
  4535. +
  4536. fi
  4537. -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  4538. -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  4539. -if test "${ac_cv_prog_cc_stdc+set}" = set; then
  4540. - echo $ECHO_N "(cached) $ECHO_C" >&6
  4541. +
  4542. +if test $ac_cv_header_stdc = yes; then
  4543. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4544. + if test "$cross_compiling" = yes; then
  4545. + :
  4546. else
  4547. - ac_cv_prog_cc_stdc=no
  4548. -ac_save_CC=$CC
  4549. -cat >conftest.$ac_ext <<_ACEOF
  4550. -#line $LINENO "configure"
  4551. + cat >conftest.$ac_ext <<_ACEOF
  4552. /* confdefs.h. */
  4553. _ACEOF
  4554. cat confdefs.h >>conftest.$ac_ext
  4555. cat >>conftest.$ac_ext <<_ACEOF
  4556. /* end confdefs.h. */
  4557. -#include <stdarg.h>
  4558. -#include <stdio.h>
  4559. -#include <sys/types.h>
  4560. -#include <sys/stat.h>
  4561. -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4562. -struct buf { int x; };
  4563. -FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4564. -static char *e (p, i)
  4565. - char **p;
  4566. - int i;
  4567. -{
  4568. - return p[i];
  4569. -}
  4570. -static char *f (char * (*g) (char **, int), char **p, ...)
  4571. -{
  4572. - char *s;
  4573. - va_list v;
  4574. - va_start (v,p);
  4575. - s = g (p, va_arg (v,int));
  4576. - va_end (v);
  4577. - return s;
  4578. -}
  4579. -int test (int i, double x);
  4580. -struct s1 {int (*f) (int a);};
  4581. -struct s2 {int (*f) (double a);};
  4582. -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4583. -int argc;
  4584. -char **argv;
  4585. +#include <ctype.h>
  4586. +#include <stdlib.h>
  4587. +#if ((' ' & 0x0FF) == 0x020)
  4588. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4589. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4590. +#else
  4591. +# define ISLOWER(c) \
  4592. + (('a' <= (c) && (c) <= 'i') \
  4593. + || ('j' <= (c) && (c) <= 'r') \
  4594. + || ('s' <= (c) && (c) <= 'z'))
  4595. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4596. +#endif
  4597. +
  4598. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4599. int
  4600. main ()
  4601. {
  4602. -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4603. - ;
  4604. + int i;
  4605. + for (i = 0; i < 256; i++)
  4606. + if (XOR (islower (i), ISLOWER (i))
  4607. + || toupper (i) != TOUPPER (i))
  4608. + return 2;
  4609. return 0;
  4610. }
  4611. _ACEOF
  4612. -# Don't try gcc -ansi; that turns off useful extensions and
  4613. -# breaks some systems' header files.
  4614. -# AIX -qlanglvl=ansi
  4615. -# Ultrix and OSF/1 -std1
  4616. -# HP-UX 10.20 and later -Ae
  4617. -# HP-UX older versions -Aa -D_HPUX_SOURCE
  4618. -# SVR4 -Xc -D__EXTENSIONS__
  4619. -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4620. -do
  4621. - CC="$ac_save_CC $ac_arg"
  4622. - rm -f conftest.$ac_objext
  4623. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4624. - (eval $ac_compile) 2>&5
  4625. +rm -f conftest$ac_exeext
  4626. +if { (ac_try="$ac_link"
  4627. +case "(($ac_try" in
  4628. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4629. + *) ac_try_echo=$ac_try;;
  4630. +esac
  4631. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4632. +$as_echo "$ac_try_echo") >&5
  4633. + (eval "$ac_link") 2>&5
  4634. ac_status=$?
  4635. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4636. - (exit $ac_status); } &&
  4637. - { ac_try='test -s conftest.$ac_objext'
  4638. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4639. - (eval $ac_try) 2>&5
  4640. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4641. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4642. + { (case "(($ac_try" in
  4643. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4644. + *) ac_try_echo=$ac_try;;
  4645. +esac
  4646. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4647. +$as_echo "$ac_try_echo") >&5
  4648. + (eval "$ac_try") 2>&5
  4649. ac_status=$?
  4650. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4651. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4652. (exit $ac_status); }; }; then
  4653. - ac_cv_prog_cc_stdc=$ac_arg
  4654. -break
  4655. + :
  4656. else
  4657. - echo "$as_me: failed program was:" >&5
  4658. + $as_echo "$as_me: program exited with status $ac_status" >&5
  4659. +$as_echo "$as_me: failed program was:" >&5
  4660. sed 's/^/| /' conftest.$ac_ext >&5
  4661. +( exit $ac_status )
  4662. +ac_cv_header_stdc=no
  4663. fi
  4664. -rm -f conftest.$ac_objext
  4665. -done
  4666. -rm -f conftest.$ac_ext conftest.$ac_objext
  4667. -CC=$ac_save_CC
  4668. -
  4669. +rm -rf conftest.dSYM
  4670. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4671. fi
  4672. -case "x$ac_cv_prog_cc_stdc" in
  4673. - x|xno)
  4674. - echo "$as_me:$LINENO: result: none needed" >&5
  4675. -echo "${ECHO_T}none needed" >&6 ;;
  4676. - *)
  4677. - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  4678. -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  4679. - CC="$CC $ac_cv_prog_cc_stdc" ;;
  4680. -esac
  4681. -# Some people use a C++ compiler to compile C. Since we use `exit',
  4682. -# in C++ we need to declare it. In case someone uses the same compiler
  4683. -# for both compiling C and C++ we need to have the C++ compiler decide
  4684. -# the declaration of exit, since it's the most demanding environment.
  4685. -cat >conftest.$ac_ext <<_ACEOF
  4686. -#ifndef __cplusplus
  4687. - choke me
  4688. -#endif
  4689. +fi
  4690. +fi
  4691. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4692. +$as_echo "$ac_cv_header_stdc" >&6; }
  4693. +if test $ac_cv_header_stdc = yes; then
  4694. +
  4695. +cat >>confdefs.h <<\_ACEOF
  4696. +#define STDC_HEADERS 1
  4697. _ACEOF
  4698. -rm -f conftest.$ac_objext
  4699. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4700. - (eval $ac_compile) 2>&5
  4701. - ac_status=$?
  4702. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4703. - (exit $ac_status); } &&
  4704. - { ac_try='test -s conftest.$ac_objext'
  4705. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4706. - (eval $ac_try) 2>&5
  4707. - ac_status=$?
  4708. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4709. - (exit $ac_status); }; }; then
  4710. - for ac_declaration in \
  4711. - ''\
  4712. - '#include <stdlib.h>' \
  4713. - 'extern "C" void std::exit (int) throw (); using std::exit;' \
  4714. - 'extern "C" void std::exit (int); using std::exit;' \
  4715. - 'extern "C" void exit (int) throw ();' \
  4716. - 'extern "C" void exit (int);' \
  4717. - 'void exit (int);'
  4718. +
  4719. +fi
  4720. +
  4721. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4722. +
  4723. +
  4724. +
  4725. +
  4726. +
  4727. +
  4728. +
  4729. +
  4730. +
  4731. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4732. + inttypes.h stdint.h unistd.h
  4733. do
  4734. +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4735. +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  4736. +$as_echo_n "checking for $ac_header... " >&6; }
  4737. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4738. + $as_echo_n "(cached) " >&6
  4739. +else
  4740. cat >conftest.$ac_ext <<_ACEOF
  4741. -#line $LINENO "configure"
  4742. /* confdefs.h. */
  4743. _ACEOF
  4744. cat confdefs.h >>conftest.$ac_ext
  4745. cat >>conftest.$ac_ext <<_ACEOF
  4746. /* end confdefs.h. */
  4747. -#include <stdlib.h>
  4748. -$ac_declaration
  4749. -int
  4750. -main ()
  4751. -{
  4752. -exit (42);
  4753. - ;
  4754. - return 0;
  4755. -}
  4756. +$ac_includes_default
  4757. +
  4758. +#include <$ac_header>
  4759. _ACEOF
  4760. rm -f conftest.$ac_objext
  4761. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4762. - (eval $ac_compile) 2>&5
  4763. - ac_status=$?
  4764. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4765. - (exit $ac_status); } &&
  4766. - { ac_try='test -s conftest.$ac_objext'
  4767. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4768. - (eval $ac_try) 2>&5
  4769. +if { (ac_try="$ac_compile"
  4770. +case "(($ac_try" in
  4771. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4772. + *) ac_try_echo=$ac_try;;
  4773. +esac
  4774. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4775. +$as_echo "$ac_try_echo") >&5
  4776. + (eval "$ac_compile") 2>conftest.er1
  4777. ac_status=$?
  4778. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4779. - (exit $ac_status); }; }; then
  4780. - :
  4781. + grep -v '^ *+' conftest.er1 >conftest.err
  4782. + rm -f conftest.er1
  4783. + cat conftest.err >&5
  4784. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4785. + (exit $ac_status); } && {
  4786. + test -z "$ac_c_werror_flag" ||
  4787. + test ! -s conftest.err
  4788. + } && test -s conftest.$ac_objext; then
  4789. + eval "$as_ac_Header=yes"
  4790. else
  4791. - echo "$as_me: failed program was:" >&5
  4792. + $as_echo "$as_me: failed program was:" >&5
  4793. sed 's/^/| /' conftest.$ac_ext >&5
  4794. -continue
  4795. + eval "$as_ac_Header=no"
  4796. fi
  4797. -rm -f conftest.$ac_objext conftest.$ac_ext
  4798. - cat >conftest.$ac_ext <<_ACEOF
  4799. -#line $LINENO "configure"
  4800. +
  4801. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4802. +fi
  4803. +ac_res=`eval 'as_val=${'$as_ac_Header'}
  4804. + $as_echo "$as_val"'`
  4805. + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  4806. +$as_echo "$ac_res" >&6; }
  4807. +as_val=`eval 'as_val=${'$as_ac_Header'}
  4808. + $as_echo "$as_val"'`
  4809. + if test "x$as_val" = x""yes; then
  4810. + cat >>confdefs.h <<_ACEOF
  4811. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4812. +_ACEOF
  4813. +
  4814. +fi
  4815. +
  4816. +done
  4817. +
  4818. +
  4819. +
  4820. + if test "${ac_cv_header_minix_config_h+set}" = set; then
  4821. + { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4822. +$as_echo_n "checking for minix/config.h... " >&6; }
  4823. +if test "${ac_cv_header_minix_config_h+set}" = set; then
  4824. + $as_echo_n "(cached) " >&6
  4825. +fi
  4826. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4827. +$as_echo "$ac_cv_header_minix_config_h" >&6; }
  4828. +else
  4829. + # Is the header compilable?
  4830. +{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  4831. +$as_echo_n "checking minix/config.h usability... " >&6; }
  4832. +cat >conftest.$ac_ext <<_ACEOF
  4833. /* confdefs.h. */
  4834. _ACEOF
  4835. cat confdefs.h >>conftest.$ac_ext
  4836. cat >>conftest.$ac_ext <<_ACEOF
  4837. /* end confdefs.h. */
  4838. -$ac_declaration
  4839. -int
  4840. -main ()
  4841. -{
  4842. -exit (42);
  4843. - ;
  4844. - return 0;
  4845. -}
  4846. +$ac_includes_default
  4847. +#include <minix/config.h>
  4848. _ACEOF
  4849. rm -f conftest.$ac_objext
  4850. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4851. - (eval $ac_compile) 2>&5
  4852. - ac_status=$?
  4853. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4854. - (exit $ac_status); } &&
  4855. - { ac_try='test -s conftest.$ac_objext'
  4856. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4857. - (eval $ac_try) 2>&5
  4858. +if { (ac_try="$ac_compile"
  4859. +case "(($ac_try" in
  4860. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4861. + *) ac_try_echo=$ac_try;;
  4862. +esac
  4863. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4864. +$as_echo "$ac_try_echo") >&5
  4865. + (eval "$ac_compile") 2>conftest.er1
  4866. ac_status=$?
  4867. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4868. - (exit $ac_status); }; }; then
  4869. - break
  4870. + grep -v '^ *+' conftest.er1 >conftest.err
  4871. + rm -f conftest.er1
  4872. + cat conftest.err >&5
  4873. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4874. + (exit $ac_status); } && {
  4875. + test -z "$ac_c_werror_flag" ||
  4876. + test ! -s conftest.err
  4877. + } && test -s conftest.$ac_objext; then
  4878. + ac_header_compiler=yes
  4879. else
  4880. - echo "$as_me: failed program was:" >&5
  4881. + $as_echo "$as_me: failed program was:" >&5
  4882. sed 's/^/| /' conftest.$ac_ext >&5
  4883. -fi
  4884. -rm -f conftest.$ac_objext conftest.$ac_ext
  4885. -done
  4886. -rm -f conftest*
  4887. -if test -n "$ac_declaration"; then
  4888. - echo '#ifdef __cplusplus' >>confdefs.h
  4889. - echo $ac_declaration >>confdefs.h
  4890. - echo '#endif' >>confdefs.h
  4891. + ac_header_compiler=no
  4892. fi
  4893. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4894. +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4895. +$as_echo "$ac_header_compiler" >&6; }
  4896. +
  4897. +# Is the header present?
  4898. +{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  4899. +$as_echo_n "checking minix/config.h presence... " >&6; }
  4900. +cat >conftest.$ac_ext <<_ACEOF
  4901. +/* confdefs.h. */
  4902. +_ACEOF
  4903. +cat confdefs.h >>conftest.$ac_ext
  4904. +cat >>conftest.$ac_ext <<_ACEOF
  4905. +/* end confdefs.h. */
  4906. +#include <minix/config.h>
  4907. +_ACEOF
  4908. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  4909. +case "(($ac_try" in
  4910. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4911. + *) ac_try_echo=$ac_try;;
  4912. +esac
  4913. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4914. +$as_echo "$ac_try_echo") >&5
  4915. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4916. + ac_status=$?
  4917. + grep -v '^ *+' conftest.er1 >conftest.err
  4918. + rm -f conftest.er1
  4919. + cat conftest.err >&5
  4920. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4921. + (exit $ac_status); } >/dev/null && {
  4922. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4923. + test ! -s conftest.err
  4924. + }; then
  4925. + ac_header_preproc=yes
  4926. else
  4927. - echo "$as_me: failed program was:" >&5
  4928. + $as_echo "$as_me: failed program was:" >&5
  4929. sed 's/^/| /' conftest.$ac_ext >&5
  4930. + ac_header_preproc=no
  4931. fi
  4932. -rm -f conftest.$ac_objext conftest.$ac_ext
  4933. -ac_ext=c
  4934. -ac_cpp='$CPP $CPPFLAGS'
  4935. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4936. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4937. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4938. -if test -n "$ac_tool_prefix"; then
  4939. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4940. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4941. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  4942. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4943. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  4944. - echo $ECHO_N "(cached) $ECHO_C" >&6
  4945. -else
  4946. - if test -n "$RANLIB"; then
  4947. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4948. -else
  4949. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4950. -for as_dir in $PATH
  4951. -do
  4952. - IFS=$as_save_IFS
  4953. - test -z "$as_dir" && as_dir=.
  4954. - for ac_exec_ext in '' $ac_executable_extensions; do
  4955. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4956. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4957. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4958. - break 2
  4959. - fi
  4960. -done
  4961. -done
  4962. +rm -f conftest.err conftest.$ac_ext
  4963. +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4964. +$as_echo "$ac_header_preproc" >&6; }
  4965. +
  4966. +# So? What about this header?
  4967. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4968. + yes:no: )
  4969. + { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4970. +$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4971. + { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  4972. +$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  4973. + ac_header_preproc=yes
  4974. + ;;
  4975. + no:yes:* )
  4976. + { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  4977. +$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  4978. + { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  4979. +$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  4980. + { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  4981. +$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  4982. + { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  4983. +$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4984. + { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  4985. +$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  4986. + { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  4987. +$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  4988. + ;;
  4989. +esac
  4990. +{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4991. +$as_echo_n "checking for minix/config.h... " >&6; }
  4992. +if test "${ac_cv_header_minix_config_h+set}" = set; then
  4993. + $as_echo_n "(cached) " >&6
  4994. +else
  4995. + ac_cv_header_minix_config_h=$ac_header_preproc
  4996. fi
  4997. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4998. +$as_echo "$ac_cv_header_minix_config_h" >&6; }
  4999. +
  5000. fi
  5001. -RANLIB=$ac_cv_prog_RANLIB
  5002. -if test -n "$RANLIB"; then
  5003. - echo "$as_me:$LINENO: result: $RANLIB" >&5
  5004. -echo "${ECHO_T}$RANLIB" >&6
  5005. +if test "x$ac_cv_header_minix_config_h" = x""yes; then
  5006. + MINIX=yes
  5007. else
  5008. - echo "$as_me:$LINENO: result: no" >&5
  5009. -echo "${ECHO_T}no" >&6
  5010. + MINIX=
  5011. fi
  5012. -fi
  5013. -if test -z "$ac_cv_prog_RANLIB"; then
  5014. - ac_ct_RANLIB=$RANLIB
  5015. - # Extract the first word of "ranlib", so it can be a program name with args.
  5016. -set dummy ranlib; ac_word=$2
  5017. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  5018. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5019. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5020. - echo $ECHO_N "(cached) $ECHO_C" >&6
  5021. +
  5022. + if test "$MINIX" = yes; then
  5023. +
  5024. +cat >>confdefs.h <<\_ACEOF
  5025. +#define _POSIX_SOURCE 1
  5026. +_ACEOF
  5027. +
  5028. +
  5029. +cat >>confdefs.h <<\_ACEOF
  5030. +#define _POSIX_1_SOURCE 2
  5031. +_ACEOF
  5032. +
  5033. +
  5034. +cat >>confdefs.h <<\_ACEOF
  5035. +#define _MINIX 1
  5036. +_ACEOF
  5037. +
  5038. + fi
  5039. +
  5040. +
  5041. +
  5042. + { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  5043. +$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  5044. +if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  5045. + $as_echo_n "(cached) " >&6
  5046. else
  5047. - if test -n "$ac_ct_RANLIB"; then
  5048. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5049. + cat >conftest.$ac_ext <<_ACEOF
  5050. +/* confdefs.h. */
  5051. +_ACEOF
  5052. +cat confdefs.h >>conftest.$ac_ext
  5053. +cat >>conftest.$ac_ext <<_ACEOF
  5054. +/* end confdefs.h. */
  5055. +
  5056. +# define __EXTENSIONS__ 1
  5057. + $ac_includes_default
  5058. +int
  5059. +main ()
  5060. +{
  5061. +
  5062. + ;
  5063. + return 0;
  5064. +}
  5065. +_ACEOF
  5066. +rm -f conftest.$ac_objext
  5067. +if { (ac_try="$ac_compile"
  5068. +case "(($ac_try" in
  5069. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5070. + *) ac_try_echo=$ac_try;;
  5071. +esac
  5072. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5073. +$as_echo "$ac_try_echo") >&5
  5074. + (eval "$ac_compile") 2>conftest.er1
  5075. + ac_status=$?
  5076. + grep -v '^ *+' conftest.er1 >conftest.err
  5077. + rm -f conftest.er1
  5078. + cat conftest.err >&5
  5079. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5080. + (exit $ac_status); } && {
  5081. + test -z "$ac_c_werror_flag" ||
  5082. + test ! -s conftest.err
  5083. + } && test -s conftest.$ac_objext; then
  5084. + ac_cv_safe_to_define___extensions__=yes
  5085. +else
  5086. + $as_echo "$as_me: failed program was:" >&5
  5087. +sed 's/^/| /' conftest.$ac_ext >&5
  5088. +
  5089. + ac_cv_safe_to_define___extensions__=no
  5090. +fi
  5091. +
  5092. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5093. +fi
  5094. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  5095. +$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  5096. + test $ac_cv_safe_to_define___extensions__ = yes &&
  5097. + cat >>confdefs.h <<\_ACEOF
  5098. +#define __EXTENSIONS__ 1
  5099. +_ACEOF
  5100. +
  5101. + cat >>confdefs.h <<\_ACEOF
  5102. +#define _ALL_SOURCE 1
  5103. +_ACEOF
  5104. +
  5105. + cat >>confdefs.h <<\_ACEOF
  5106. +#define _GNU_SOURCE 1
  5107. +_ACEOF
  5108. +
  5109. + cat >>confdefs.h <<\_ACEOF
  5110. +#define _POSIX_PTHREAD_SEMANTICS 1
  5111. +_ACEOF
  5112. +
  5113. + cat >>confdefs.h <<\_ACEOF
  5114. +#define _TANDEM_SOURCE 1
  5115. +_ACEOF
  5116. +
  5117. +
  5118. +ac_ext=c
  5119. +ac_cpp='$CPP $CPPFLAGS'
  5120. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5121. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5122. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5123. +if test -n "$ac_tool_prefix"; then
  5124. + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  5125. +set dummy ${ac_tool_prefix}gcc; ac_word=$2
  5126. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5127. +$as_echo_n "checking for $ac_word... " >&6; }
  5128. +if test "${ac_cv_prog_CC+set}" = set; then
  5129. + $as_echo_n "(cached) " >&6
  5130. +else
  5131. + if test -n "$CC"; then
  5132. + ac_cv_prog_CC="$CC" # Let the user override the test.
  5133. else
  5134. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5135. for as_dir in $PATH
  5136. @@ -3458,691 +4438,848 @@
  5137. IFS=$as_save_IFS
  5138. test -z "$as_dir" && as_dir=.
  5139. for ac_exec_ext in '' $ac_executable_extensions; do
  5140. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5141. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  5142. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5143. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5144. + ac_cv_prog_CC="${ac_tool_prefix}gcc"
  5145. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5146. break 2
  5147. fi
  5148. done
  5149. done
  5150. +IFS=$as_save_IFS
  5151. - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  5152. fi
  5153. fi
  5154. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5155. -if test -n "$ac_ct_RANLIB"; then
  5156. - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5157. -echo "${ECHO_T}$ac_ct_RANLIB" >&6
  5158. +CC=$ac_cv_prog_CC
  5159. +if test -n "$CC"; then
  5160. + { $as_echo "$as_me:$LINENO: result: $CC" >&5
  5161. +$as_echo "$CC" >&6; }
  5162. else
  5163. - echo "$as_me:$LINENO: result: no" >&5
  5164. -echo "${ECHO_T}no" >&6
  5165. + { $as_echo "$as_me:$LINENO: result: no" >&5
  5166. +$as_echo "no" >&6; }
  5167. fi
  5168. - RANLIB=$ac_ct_RANLIB
  5169. -else
  5170. - RANLIB="$ac_cv_prog_RANLIB"
  5171. -fi
  5172. -# Find a good install program. We prefer a C program (faster),
  5173. -# so one script is as good as another. But avoid the broken or
  5174. -# incompatible versions:
  5175. -# SysV /etc/install, /usr/sbin/install
  5176. -# SunOS /usr/etc/install
  5177. -# IRIX /sbin/install
  5178. -# AIX /bin/install
  5179. -# AmigaOS /C/install, which installs bootblocks on floppy discs
  5180. -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  5181. -# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  5182. -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  5183. -# ./install, which can be erroneously created by make from ./install.sh.
  5184. -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  5185. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  5186. -if test -z "$INSTALL"; then
  5187. -if test "${ac_cv_path_install+set}" = set; then
  5188. - echo $ECHO_N "(cached) $ECHO_C" >&6
  5189. +fi
  5190. +if test -z "$ac_cv_prog_CC"; then
  5191. + ac_ct_CC=$CC
  5192. + # Extract the first word of "gcc", so it can be a program name with args.
  5193. +set dummy gcc; ac_word=$2
  5194. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5195. +$as_echo_n "checking for $ac_word... " >&6; }
  5196. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  5197. + $as_echo_n "(cached) " >&6
  5198. else
  5199. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5200. + if test -n "$ac_ct_CC"; then
  5201. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5202. +else
  5203. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5204. for as_dir in $PATH
  5205. do
  5206. IFS=$as_save_IFS
  5207. test -z "$as_dir" && as_dir=.
  5208. - # Account for people who put trailing slashes in PATH elements.
  5209. -case $as_dir/ in
  5210. - ./ | .// | /cC/* | \
  5211. - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  5212. - /usr/ucb/* ) ;;
  5213. - *)
  5214. - # OSF1 and SCO ODT 3.0 have their own names for install.
  5215. - # Don't use installbsd from OSF since it installs stuff as root
  5216. - # by default.
  5217. - for ac_prog in ginstall scoinst install; do
  5218. - for ac_exec_ext in '' $ac_executable_extensions; do
  5219. - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  5220. - if test $ac_prog = install &&
  5221. - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  5222. - # AIX install. It has an incompatible calling convention.
  5223. - :
  5224. - elif test $ac_prog = install &&
  5225. - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  5226. - # program-specific install script used by HP pwplus--don't use.
  5227. - :
  5228. - else
  5229. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  5230. - break 3
  5231. - fi
  5232. - fi
  5233. - done
  5234. - done
  5235. - ;;
  5236. -esac
  5237. + for ac_exec_ext in '' $ac_executable_extensions; do
  5238. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5239. + ac_cv_prog_ac_ct_CC="gcc"
  5240. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5241. + break 2
  5242. + fi
  5243. done
  5244. -
  5245. +done
  5246. +IFS=$as_save_IFS
  5247. fi
  5248. - if test "${ac_cv_path_install+set}" = set; then
  5249. - INSTALL=$ac_cv_path_install
  5250. +fi
  5251. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5252. +if test -n "$ac_ct_CC"; then
  5253. + { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  5254. +$as_echo "$ac_ct_CC" >&6; }
  5255. +else
  5256. + { $as_echo "$as_me:$LINENO: result: no" >&5
  5257. +$as_echo "no" >&6; }
  5258. +fi
  5259. +
  5260. + if test "x$ac_ct_CC" = x; then
  5261. + CC=""
  5262. else
  5263. - # As a last resort, use the slow shell script. We don't cache a
  5264. - # path for INSTALL within a source directory, because that will
  5265. - # break other packages using the cache if that directory is
  5266. - # removed, or if the path is relative.
  5267. - INSTALL=$ac_install_sh
  5268. + case $cross_compiling:$ac_tool_warned in
  5269. +yes:)
  5270. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5271. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5272. +ac_tool_warned=yes ;;
  5273. +esac
  5274. + CC=$ac_ct_CC
  5275. fi
  5276. +else
  5277. + CC="$ac_cv_prog_CC"
  5278. fi
  5279. -echo "$as_me:$LINENO: result: $INSTALL" >&5
  5280. -echo "${ECHO_T}$INSTALL" >&6
  5281. -
  5282. -# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  5283. -# It thinks the first close brace ends the variable substitution.
  5284. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  5285. -
  5286. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  5287. -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  5288. +if test -z "$CC"; then
  5289. + if test -n "$ac_tool_prefix"; then
  5290. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  5291. +set dummy ${ac_tool_prefix}cc; ac_word=$2
  5292. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5293. +$as_echo_n "checking for $ac_word... " >&6; }
  5294. +if test "${ac_cv_prog_CC+set}" = set; then
  5295. + $as_echo_n "(cached) " >&6
  5296. +else
  5297. + if test -n "$CC"; then
  5298. + ac_cv_prog_CC="$CC" # Let the user override the test.
  5299. +else
  5300. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5301. +for as_dir in $PATH
  5302. +do
  5303. + IFS=$as_save_IFS
  5304. + test -z "$as_dir" && as_dir=.
  5305. + for ac_exec_ext in '' $ac_executable_extensions; do
  5306. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5307. + ac_cv_prog_CC="${ac_tool_prefix}cc"
  5308. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5309. + break 2
  5310. + fi
  5311. +done
  5312. +done
  5313. +IFS=$as_save_IFS
  5314. -echo "$as_me:$LINENO: checking whether ln -s works" >&5
  5315. -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  5316. -LN_S=$as_ln_s
  5317. -if test "$LN_S" = "ln -s"; then
  5318. - echo "$as_me:$LINENO: result: yes" >&5
  5319. -echo "${ECHO_T}yes" >&6
  5320. +fi
  5321. +fi
  5322. +CC=$ac_cv_prog_CC
  5323. +if test -n "$CC"; then
  5324. + { $as_echo "$as_me:$LINENO: result: $CC" >&5
  5325. +$as_echo "$CC" >&6; }
  5326. else
  5327. - echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  5328. -echo "${ECHO_T}no, using $LN_S" >&6
  5329. + { $as_echo "$as_me:$LINENO: result: no" >&5
  5330. +$as_echo "no" >&6; }
  5331. fi
  5332. -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  5333. -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  5334. -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
  5335. -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  5336. - echo $ECHO_N "(cached) $ECHO_C" >&6
  5337. +
  5338. + fi
  5339. +fi
  5340. +if test -z "$CC"; then
  5341. + # Extract the first word of "cc", so it can be a program name with args.
  5342. +set dummy cc; ac_word=$2
  5343. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5344. +$as_echo_n "checking for $ac_word... " >&6; }
  5345. +if test "${ac_cv_prog_CC+set}" = set; then
  5346. + $as_echo_n "(cached) " >&6
  5347. else
  5348. - cat >conftest.make <<\_ACEOF
  5349. -all:
  5350. - @echo 'ac_maketemp="$(MAKE)"'
  5351. -_ACEOF
  5352. -# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  5353. -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  5354. -if test -n "$ac_maketemp"; then
  5355. - eval ac_cv_prog_make_${ac_make}_set=yes
  5356. + if test -n "$CC"; then
  5357. + ac_cv_prog_CC="$CC" # Let the user override the test.
  5358. else
  5359. - eval ac_cv_prog_make_${ac_make}_set=no
  5360. + ac_prog_rejected=no
  5361. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5362. +for as_dir in $PATH
  5363. +do
  5364. + IFS=$as_save_IFS
  5365. + test -z "$as_dir" && as_dir=.
  5366. + for ac_exec_ext in '' $ac_executable_extensions; do
  5367. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5368. + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  5369. + ac_prog_rejected=yes
  5370. + continue
  5371. + fi
  5372. + ac_cv_prog_CC="cc"
  5373. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5374. + break 2
  5375. + fi
  5376. +done
  5377. +done
  5378. +IFS=$as_save_IFS
  5379. +
  5380. +if test $ac_prog_rejected = yes; then
  5381. + # We found a bogon in the path, so make sure we never use it.
  5382. + set dummy $ac_cv_prog_CC
  5383. + shift
  5384. + if test $# != 0; then
  5385. + # We chose a different compiler from the bogus one.
  5386. + # However, it has the same basename, so the bogon will be chosen
  5387. + # first if we set CC to just the basename; use the full file name.
  5388. + shift
  5389. + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  5390. + fi
  5391. fi
  5392. -rm -f conftest.make
  5393. fi
  5394. -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  5395. - echo "$as_me:$LINENO: result: yes" >&5
  5396. -echo "${ECHO_T}yes" >&6
  5397. - SET_MAKE=
  5398. +fi
  5399. +CC=$ac_cv_prog_CC
  5400. +if test -n "$CC"; then
  5401. + { $as_echo "$as_me:$LINENO: result: $CC" >&5
  5402. +$as_echo "$CC" >&6; }
  5403. else
  5404. - echo "$as_me:$LINENO: result: no" >&5
  5405. -echo "${ECHO_T}no" >&6
  5406. - SET_MAKE="MAKE=${MAKE-make}"
  5407. + { $as_echo "$as_me:$LINENO: result: no" >&5
  5408. +$as_echo "no" >&6; }
  5409. fi
  5410. -
  5411. -ac_ext=c
  5412. -ac_cpp='$CPP $CPPFLAGS'
  5413. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5414. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5415. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5416. -echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5417. -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  5418. -# On Suns, sometimes $CPP names a directory.
  5419. -if test -n "$CPP" && test -d "$CPP"; then
  5420. - CPP=
  5421. fi
  5422. -if test -z "$CPP"; then
  5423. - if test "${ac_cv_prog_CPP+set}" = set; then
  5424. - echo $ECHO_N "(cached) $ECHO_C" >&6
  5425. +if test -z "$CC"; then
  5426. + if test -n "$ac_tool_prefix"; then
  5427. + for ac_prog in cl.exe
  5428. + do
  5429. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5430. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5431. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5432. +$as_echo_n "checking for $ac_word... " >&6; }
  5433. +if test "${ac_cv_prog_CC+set}" = set; then
  5434. + $as_echo_n "(cached) " >&6
  5435. else
  5436. - # Double quotes because CPP needs to be expanded
  5437. - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5438. - do
  5439. - ac_preproc_ok=false
  5440. -for ac_c_preproc_warn_flag in '' yes
  5441. + if test -n "$CC"; then
  5442. + ac_cv_prog_CC="$CC" # Let the user override the test.
  5443. +else
  5444. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5445. +for as_dir in $PATH
  5446. do
  5447. - # Use a header file that comes with gcc, so configuring glibc
  5448. - # with a fresh cross-compiler works.
  5449. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5450. - # <limits.h> exists even on freestanding compilers.
  5451. - # On the NeXT, cc -E runs the code through the compiler's parser,
  5452. - # not just through cpp. "Syntax error" is here to catch this case.
  5453. + IFS=$as_save_IFS
  5454. + test -z "$as_dir" && as_dir=.
  5455. + for ac_exec_ext in '' $ac_executable_extensions; do
  5456. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5457. + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  5458. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5459. + break 2
  5460. + fi
  5461. +done
  5462. +done
  5463. +IFS=$as_save_IFS
  5464. +
  5465. +fi
  5466. +fi
  5467. +CC=$ac_cv_prog_CC
  5468. +if test -n "$CC"; then
  5469. + { $as_echo "$as_me:$LINENO: result: $CC" >&5
  5470. +$as_echo "$CC" >&6; }
  5471. +else
  5472. + { $as_echo "$as_me:$LINENO: result: no" >&5
  5473. +$as_echo "no" >&6; }
  5474. +fi
  5475. +
  5476. +
  5477. + test -n "$CC" && break
  5478. + done
  5479. +fi
  5480. +if test -z "$CC"; then
  5481. + ac_ct_CC=$CC
  5482. + for ac_prog in cl.exe
  5483. +do
  5484. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  5485. +set dummy $ac_prog; ac_word=$2
  5486. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5487. +$as_echo_n "checking for $ac_word... " >&6; }
  5488. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  5489. + $as_echo_n "(cached) " >&6
  5490. +else
  5491. + if test -n "$ac_ct_CC"; then
  5492. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5493. +else
  5494. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5495. +for as_dir in $PATH
  5496. +do
  5497. + IFS=$as_save_IFS
  5498. + test -z "$as_dir" && as_dir=.
  5499. + for ac_exec_ext in '' $ac_executable_extensions; do
  5500. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5501. + ac_cv_prog_ac_ct_CC="$ac_prog"
  5502. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5503. + break 2
  5504. + fi
  5505. +done
  5506. +done
  5507. +IFS=$as_save_IFS
  5508. +
  5509. +fi
  5510. +fi
  5511. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5512. +if test -n "$ac_ct_CC"; then
  5513. + { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  5514. +$as_echo "$ac_ct_CC" >&6; }
  5515. +else
  5516. + { $as_echo "$as_me:$LINENO: result: no" >&5
  5517. +$as_echo "no" >&6; }
  5518. +fi
  5519. +
  5520. +
  5521. + test -n "$ac_ct_CC" && break
  5522. +done
  5523. +
  5524. + if test "x$ac_ct_CC" = x; then
  5525. + CC=""
  5526. + else
  5527. + case $cross_compiling:$ac_tool_warned in
  5528. +yes:)
  5529. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5530. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5531. +ac_tool_warned=yes ;;
  5532. +esac
  5533. + CC=$ac_ct_CC
  5534. + fi
  5535. +fi
  5536. +
  5537. +fi
  5538. +
  5539. +
  5540. +test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  5541. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5542. +{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  5543. +See \`config.log' for more details." >&5
  5544. +$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  5545. +See \`config.log' for more details." >&2;}
  5546. + { (exit 1); exit 1; }; }; }
  5547. +
  5548. +# Provide some information about the compiler.
  5549. +$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  5550. +set X $ac_compile
  5551. +ac_compiler=$2
  5552. +{ (ac_try="$ac_compiler --version >&5"
  5553. +case "(($ac_try" in
  5554. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5555. + *) ac_try_echo=$ac_try;;
  5556. +esac
  5557. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5558. +$as_echo "$ac_try_echo") >&5
  5559. + (eval "$ac_compiler --version >&5") 2>&5
  5560. + ac_status=$?
  5561. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5562. + (exit $ac_status); }
  5563. +{ (ac_try="$ac_compiler -v >&5"
  5564. +case "(($ac_try" in
  5565. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5566. + *) ac_try_echo=$ac_try;;
  5567. +esac
  5568. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5569. +$as_echo "$ac_try_echo") >&5
  5570. + (eval "$ac_compiler -v >&5") 2>&5
  5571. + ac_status=$?
  5572. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5573. + (exit $ac_status); }
  5574. +{ (ac_try="$ac_compiler -V >&5"
  5575. +case "(($ac_try" in
  5576. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5577. + *) ac_try_echo=$ac_try;;
  5578. +esac
  5579. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5580. +$as_echo "$ac_try_echo") >&5
  5581. + (eval "$ac_compiler -V >&5") 2>&5
  5582. + ac_status=$?
  5583. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5584. + (exit $ac_status); }
  5585. +
  5586. +{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  5587. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  5588. +if test "${ac_cv_c_compiler_gnu+set}" = set; then
  5589. + $as_echo_n "(cached) " >&6
  5590. +else
  5591. cat >conftest.$ac_ext <<_ACEOF
  5592. -#line $LINENO "configure"
  5593. /* confdefs.h. */
  5594. _ACEOF
  5595. cat confdefs.h >>conftest.$ac_ext
  5596. cat >>conftest.$ac_ext <<_ACEOF
  5597. /* end confdefs.h. */
  5598. -#ifdef __STDC__
  5599. -# include <limits.h>
  5600. -#else
  5601. -# include <assert.h>
  5602. +
  5603. +int
  5604. +main ()
  5605. +{
  5606. +#ifndef __GNUC__
  5607. + choke me
  5608. #endif
  5609. - Syntax error
  5610. +
  5611. + ;
  5612. + return 0;
  5613. +}
  5614. _ACEOF
  5615. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5616. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5617. +rm -f conftest.$ac_objext
  5618. +if { (ac_try="$ac_compile"
  5619. +case "(($ac_try" in
  5620. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5621. + *) ac_try_echo=$ac_try;;
  5622. +esac
  5623. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5624. +$as_echo "$ac_try_echo") >&5
  5625. + (eval "$ac_compile") 2>conftest.er1
  5626. ac_status=$?
  5627. grep -v '^ *+' conftest.er1 >conftest.err
  5628. rm -f conftest.er1
  5629. cat conftest.err >&5
  5630. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5631. - (exit $ac_status); } >/dev/null; then
  5632. - if test -s conftest.err; then
  5633. - ac_cpp_err=$ac_c_preproc_warn_flag
  5634. - else
  5635. - ac_cpp_err=
  5636. - fi
  5637. -else
  5638. - ac_cpp_err=yes
  5639. -fi
  5640. -if test -z "$ac_cpp_err"; then
  5641. - :
  5642. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5643. + (exit $ac_status); } && {
  5644. + test -z "$ac_c_werror_flag" ||
  5645. + test ! -s conftest.err
  5646. + } && test -s conftest.$ac_objext; then
  5647. + ac_compiler_gnu=yes
  5648. else
  5649. - echo "$as_me: failed program was:" >&5
  5650. + $as_echo "$as_me: failed program was:" >&5
  5651. sed 's/^/| /' conftest.$ac_ext >&5
  5652. - # Broken: fails on valid input.
  5653. -continue
  5654. + ac_compiler_gnu=no
  5655. fi
  5656. -rm -f conftest.err conftest.$ac_ext
  5657. - # OK, works on sane cases. Now check whether non-existent headers
  5658. - # can be detected and how.
  5659. - cat >conftest.$ac_ext <<_ACEOF
  5660. -#line $LINENO "configure"
  5661. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5662. +ac_cv_c_compiler_gnu=$ac_compiler_gnu
  5663. +
  5664. +fi
  5665. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  5666. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  5667. +if test $ac_compiler_gnu = yes; then
  5668. + GCC=yes
  5669. +else
  5670. + GCC=
  5671. +fi
  5672. +ac_test_CFLAGS=${CFLAGS+set}
  5673. +ac_save_CFLAGS=$CFLAGS
  5674. +{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  5675. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  5676. +if test "${ac_cv_prog_cc_g+set}" = set; then
  5677. + $as_echo_n "(cached) " >&6
  5678. +else
  5679. + ac_save_c_werror_flag=$ac_c_werror_flag
  5680. + ac_c_werror_flag=yes
  5681. + ac_cv_prog_cc_g=no
  5682. + CFLAGS="-g"
  5683. + cat >conftest.$ac_ext <<_ACEOF
  5684. /* confdefs.h. */
  5685. _ACEOF
  5686. cat confdefs.h >>conftest.$ac_ext
  5687. cat >>conftest.$ac_ext <<_ACEOF
  5688. /* end confdefs.h. */
  5689. -#include <ac_nonexistent.h>
  5690. +
  5691. +int
  5692. +main ()
  5693. +{
  5694. +
  5695. + ;
  5696. + return 0;
  5697. +}
  5698. _ACEOF
  5699. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5700. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5701. +rm -f conftest.$ac_objext
  5702. +if { (ac_try="$ac_compile"
  5703. +case "(($ac_try" in
  5704. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5705. + *) ac_try_echo=$ac_try;;
  5706. +esac
  5707. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5708. +$as_echo "$ac_try_echo") >&5
  5709. + (eval "$ac_compile") 2>conftest.er1
  5710. ac_status=$?
  5711. grep -v '^ *+' conftest.er1 >conftest.err
  5712. rm -f conftest.er1
  5713. cat conftest.err >&5
  5714. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5715. - (exit $ac_status); } >/dev/null; then
  5716. - if test -s conftest.err; then
  5717. - ac_cpp_err=$ac_c_preproc_warn_flag
  5718. - else
  5719. - ac_cpp_err=
  5720. - fi
  5721. -else
  5722. - ac_cpp_err=yes
  5723. -fi
  5724. -if test -z "$ac_cpp_err"; then
  5725. - # Broken: success on invalid input.
  5726. -continue
  5727. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5728. + (exit $ac_status); } && {
  5729. + test -z "$ac_c_werror_flag" ||
  5730. + test ! -s conftest.err
  5731. + } && test -s conftest.$ac_objext; then
  5732. + ac_cv_prog_cc_g=yes
  5733. else
  5734. - echo "$as_me: failed program was:" >&5
  5735. + $as_echo "$as_me: failed program was:" >&5
  5736. sed 's/^/| /' conftest.$ac_ext >&5
  5737. - # Passes both tests.
  5738. -ac_preproc_ok=:
  5739. -break
  5740. -fi
  5741. -rm -f conftest.err conftest.$ac_ext
  5742. -
  5743. -done
  5744. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5745. -rm -f conftest.err conftest.$ac_ext
  5746. -if $ac_preproc_ok; then
  5747. - break
  5748. -fi
  5749. -
  5750. - done
  5751. - ac_cv_prog_CPP=$CPP
  5752. -
  5753. -fi
  5754. - CPP=$ac_cv_prog_CPP
  5755. -else
  5756. - ac_cv_prog_CPP=$CPP
  5757. -fi
  5758. -echo "$as_me:$LINENO: result: $CPP" >&5
  5759. -echo "${ECHO_T}$CPP" >&6
  5760. -ac_preproc_ok=false
  5761. -for ac_c_preproc_warn_flag in '' yes
  5762. -do
  5763. - # Use a header file that comes with gcc, so configuring glibc
  5764. - # with a fresh cross-compiler works.
  5765. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5766. - # <limits.h> exists even on freestanding compilers.
  5767. - # On the NeXT, cc -E runs the code through the compiler's parser,
  5768. - # not just through cpp. "Syntax error" is here to catch this case.
  5769. - cat >conftest.$ac_ext <<_ACEOF
  5770. -#line $LINENO "configure"
  5771. + CFLAGS=""
  5772. + cat >conftest.$ac_ext <<_ACEOF
  5773. /* confdefs.h. */
  5774. _ACEOF
  5775. cat confdefs.h >>conftest.$ac_ext
  5776. cat >>conftest.$ac_ext <<_ACEOF
  5777. /* end confdefs.h. */
  5778. -#ifdef __STDC__
  5779. -# include <limits.h>
  5780. -#else
  5781. -# include <assert.h>
  5782. -#endif
  5783. - Syntax error
  5784. +
  5785. +int
  5786. +main ()
  5787. +{
  5788. +
  5789. + ;
  5790. + return 0;
  5791. +}
  5792. _ACEOF
  5793. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5794. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5795. +rm -f conftest.$ac_objext
  5796. +if { (ac_try="$ac_compile"
  5797. +case "(($ac_try" in
  5798. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5799. + *) ac_try_echo=$ac_try;;
  5800. +esac
  5801. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5802. +$as_echo "$ac_try_echo") >&5
  5803. + (eval "$ac_compile") 2>conftest.er1
  5804. ac_status=$?
  5805. grep -v '^ *+' conftest.er1 >conftest.err
  5806. rm -f conftest.er1
  5807. cat conftest.err >&5
  5808. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5809. - (exit $ac_status); } >/dev/null; then
  5810. - if test -s conftest.err; then
  5811. - ac_cpp_err=$ac_c_preproc_warn_flag
  5812. - else
  5813. - ac_cpp_err=
  5814. - fi
  5815. -else
  5816. - ac_cpp_err=yes
  5817. -fi
  5818. -if test -z "$ac_cpp_err"; then
  5819. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5820. + (exit $ac_status); } && {
  5821. + test -z "$ac_c_werror_flag" ||
  5822. + test ! -s conftest.err
  5823. + } && test -s conftest.$ac_objext; then
  5824. :
  5825. else
  5826. - echo "$as_me: failed program was:" >&5
  5827. + $as_echo "$as_me: failed program was:" >&5
  5828. sed 's/^/| /' conftest.$ac_ext >&5
  5829. - # Broken: fails on valid input.
  5830. -continue
  5831. -fi
  5832. -rm -f conftest.err conftest.$ac_ext
  5833. -
  5834. - # OK, works on sane cases. Now check whether non-existent headers
  5835. - # can be detected and how.
  5836. - cat >conftest.$ac_ext <<_ACEOF
  5837. -#line $LINENO "configure"
  5838. + ac_c_werror_flag=$ac_save_c_werror_flag
  5839. + CFLAGS="-g"
  5840. + cat >conftest.$ac_ext <<_ACEOF
  5841. /* confdefs.h. */
  5842. _ACEOF
  5843. cat confdefs.h >>conftest.$ac_ext
  5844. cat >>conftest.$ac_ext <<_ACEOF
  5845. /* end confdefs.h. */
  5846. -#include <ac_nonexistent.h>
  5847. +
  5848. +int
  5849. +main ()
  5850. +{
  5851. +
  5852. + ;
  5853. + return 0;
  5854. +}
  5855. _ACEOF
  5856. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5857. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5858. +rm -f conftest.$ac_objext
  5859. +if { (ac_try="$ac_compile"
  5860. +case "(($ac_try" in
  5861. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5862. + *) ac_try_echo=$ac_try;;
  5863. +esac
  5864. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5865. +$as_echo "$ac_try_echo") >&5
  5866. + (eval "$ac_compile") 2>conftest.er1
  5867. ac_status=$?
  5868. grep -v '^ *+' conftest.er1 >conftest.err
  5869. rm -f conftest.er1
  5870. cat conftest.err >&5
  5871. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5872. - (exit $ac_status); } >/dev/null; then
  5873. - if test -s conftest.err; then
  5874. - ac_cpp_err=$ac_c_preproc_warn_flag
  5875. - else
  5876. - ac_cpp_err=
  5877. - fi
  5878. -else
  5879. - ac_cpp_err=yes
  5880. -fi
  5881. -if test -z "$ac_cpp_err"; then
  5882. - # Broken: success on invalid input.
  5883. -continue
  5884. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5885. + (exit $ac_status); } && {
  5886. + test -z "$ac_c_werror_flag" ||
  5887. + test ! -s conftest.err
  5888. + } && test -s conftest.$ac_objext; then
  5889. + ac_cv_prog_cc_g=yes
  5890. else
  5891. - echo "$as_me: failed program was:" >&5
  5892. + $as_echo "$as_me: failed program was:" >&5
  5893. sed 's/^/| /' conftest.$ac_ext >&5
  5894. - # Passes both tests.
  5895. -ac_preproc_ok=:
  5896. -break
  5897. -fi
  5898. -rm -f conftest.err conftest.$ac_ext
  5899. -done
  5900. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5901. -rm -f conftest.err conftest.$ac_ext
  5902. -if $ac_preproc_ok; then
  5903. - :
  5904. -else
  5905. - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5906. -See \`config.log' for more details." >&5
  5907. -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5908. -See \`config.log' for more details." >&2;}
  5909. - { (exit 1); exit 1; }; }
  5910. fi
  5911. -ac_ext=c
  5912. -ac_cpp='$CPP $CPPFLAGS'
  5913. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5914. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5915. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5916. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5917. +fi
  5918. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5919. +fi
  5920. -echo "$as_me:$LINENO: checking for egrep" >&5
  5921. -echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  5922. -if test "${ac_cv_prog_egrep+set}" = set; then
  5923. - echo $ECHO_N "(cached) $ECHO_C" >&6
  5924. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5925. + ac_c_werror_flag=$ac_save_c_werror_flag
  5926. +fi
  5927. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  5928. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  5929. +if test "$ac_test_CFLAGS" = set; then
  5930. + CFLAGS=$ac_save_CFLAGS
  5931. +elif test $ac_cv_prog_cc_g = yes; then
  5932. + if test "$GCC" = yes; then
  5933. + CFLAGS="-g -O2"
  5934. + else
  5935. + CFLAGS="-g"
  5936. + fi
  5937. else
  5938. - if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  5939. - then ac_cv_prog_egrep='grep -E'
  5940. - else ac_cv_prog_egrep='egrep'
  5941. - fi
  5942. + if test "$GCC" = yes; then
  5943. + CFLAGS="-O2"
  5944. + else
  5945. + CFLAGS=
  5946. + fi
  5947. fi
  5948. -echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  5949. -echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  5950. - EGREP=$ac_cv_prog_egrep
  5951. -
  5952. -
  5953. -
  5954. -echo "$as_me:$LINENO: checking for AIX" >&5
  5955. -echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  5956. +{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  5957. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  5958. +if test "${ac_cv_prog_cc_c89+set}" = set; then
  5959. + $as_echo_n "(cached) " >&6
  5960. +else
  5961. + ac_cv_prog_cc_c89=no
  5962. +ac_save_CC=$CC
  5963. cat >conftest.$ac_ext <<_ACEOF
  5964. -#line $LINENO "configure"
  5965. /* confdefs.h. */
  5966. _ACEOF
  5967. cat confdefs.h >>conftest.$ac_ext
  5968. cat >>conftest.$ac_ext <<_ACEOF
  5969. /* end confdefs.h. */
  5970. -#ifdef _AIX
  5971. - yes
  5972. -#endif
  5973. -
  5974. -_ACEOF
  5975. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5976. - $EGREP "yes" >/dev/null 2>&1; then
  5977. - echo "$as_me:$LINENO: result: yes" >&5
  5978. -echo "${ECHO_T}yes" >&6
  5979. -cat >>confdefs.h <<\_ACEOF
  5980. -#define _ALL_SOURCE 1
  5981. -_ACEOF
  5982. -
  5983. -else
  5984. - echo "$as_me:$LINENO: result: no" >&5
  5985. -echo "${ECHO_T}no" >&6
  5986. -fi
  5987. -rm -f conftest*
  5988. -
  5989. +#include <stdarg.h>
  5990. +#include <stdio.h>
  5991. +#include <sys/types.h>
  5992. +#include <sys/stat.h>
  5993. +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  5994. +struct buf { int x; };
  5995. +FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5996. +static char *e (p, i)
  5997. + char **p;
  5998. + int i;
  5999. +{
  6000. + return p[i];
  6001. +}
  6002. +static char *f (char * (*g) (char **, int), char **p, ...)
  6003. +{
  6004. + char *s;
  6005. + va_list v;
  6006. + va_start (v,p);
  6007. + s = g (p, va_arg (v,int));
  6008. + va_end (v);
  6009. + return s;
  6010. +}
  6011. -echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  6012. -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  6013. -if test "${ac_cv_c_const+set}" = set; then
  6014. - echo $ECHO_N "(cached) $ECHO_C" >&6
  6015. -else
  6016. - cat >conftest.$ac_ext <<_ACEOF
  6017. -#line $LINENO "configure"
  6018. -/* confdefs.h. */
  6019. -_ACEOF
  6020. -cat confdefs.h >>conftest.$ac_ext
  6021. -cat >>conftest.$ac_ext <<_ACEOF
  6022. -/* end confdefs.h. */
  6023. +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  6024. + function prototypes and stuff, but not '\xHH' hex character constants.
  6025. + These don't provoke an error unfortunately, instead are silently treated
  6026. + as 'x'. The following induces an error, until -std is added to get
  6027. + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  6028. + array size at least. It's necessary to write '\x00'==0 to get something
  6029. + that's true only with -std. */
  6030. +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  6031. +
  6032. +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  6033. + inside strings and character constants. */
  6034. +#define FOO(x) 'x'
  6035. +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  6036. +int test (int i, double x);
  6037. +struct s1 {int (*f) (int a);};
  6038. +struct s2 {int (*f) (double a);};
  6039. +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  6040. +int argc;
  6041. +char **argv;
  6042. int
  6043. main ()
  6044. {
  6045. -/* FIXME: Include the comments suggested by Paul. */
  6046. -#ifndef __cplusplus
  6047. - /* Ultrix mips cc rejects this. */
  6048. - typedef int charset[2];
  6049. - const charset x;
  6050. - /* SunOS 4.1.1 cc rejects this. */
  6051. - char const *const *ccp;
  6052. - char **p;
  6053. - /* NEC SVR4.0.2 mips cc rejects this. */
  6054. - struct point {int x, y;};
  6055. - static struct point const zero = {0,0};
  6056. - /* AIX XL C 1.02.0.0 rejects this.
  6057. - It does not let you subtract one const X* pointer from another in
  6058. - an arm of an if-expression whose if-part is not a constant
  6059. - expression */
  6060. - const char *g = "string";
  6061. - ccp = &g + (g ? g-g : 0);
  6062. - /* HPUX 7.0 cc rejects these. */
  6063. - ++ccp;
  6064. - p = (char**) ccp;
  6065. - ccp = (char const *const *) p;
  6066. - { /* SCO 3.2v4 cc rejects this. */
  6067. - char *t;
  6068. - char const *s = 0 ? (char *) 0 : (char const *) 0;
  6069. -
  6070. - *t++ = 0;
  6071. - }
  6072. - { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6073. - int x[] = {25, 17};
  6074. - const int *foo = &x[0];
  6075. - ++foo;
  6076. - }
  6077. - { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6078. - typedef const int *iptr;
  6079. - iptr p = 0;
  6080. - ++p;
  6081. - }
  6082. - { /* AIX XL C 1.02.0.0 rejects this saying
  6083. - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  6084. - struct s { int j; const int *ap[3]; };
  6085. - struct s *b; b->j = 5;
  6086. - }
  6087. - { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  6088. - const int foo = 10;
  6089. - }
  6090. -#endif
  6091. -
  6092. +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  6093. ;
  6094. return 0;
  6095. }
  6096. _ACEOF
  6097. -rm -f conftest.$ac_objext
  6098. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6099. - (eval $ac_compile) 2>&5
  6100. - ac_status=$?
  6101. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6102. - (exit $ac_status); } &&
  6103. - { ac_try='test -s conftest.$ac_objext'
  6104. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6105. - (eval $ac_try) 2>&5
  6106. +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  6107. + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  6108. +do
  6109. + CC="$ac_save_CC $ac_arg"
  6110. + rm -f conftest.$ac_objext
  6111. +if { (ac_try="$ac_compile"
  6112. +case "(($ac_try" in
  6113. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6114. + *) ac_try_echo=$ac_try;;
  6115. +esac
  6116. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6117. +$as_echo "$ac_try_echo") >&5
  6118. + (eval "$ac_compile") 2>conftest.er1
  6119. ac_status=$?
  6120. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6121. - (exit $ac_status); }; }; then
  6122. - ac_cv_c_const=yes
  6123. + grep -v '^ *+' conftest.er1 >conftest.err
  6124. + rm -f conftest.er1
  6125. + cat conftest.err >&5
  6126. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6127. + (exit $ac_status); } && {
  6128. + test -z "$ac_c_werror_flag" ||
  6129. + test ! -s conftest.err
  6130. + } && test -s conftest.$ac_objext; then
  6131. + ac_cv_prog_cc_c89=$ac_arg
  6132. else
  6133. - echo "$as_me: failed program was:" >&5
  6134. + $as_echo "$as_me: failed program was:" >&5
  6135. sed 's/^/| /' conftest.$ac_ext >&5
  6136. -ac_cv_c_const=no
  6137. -fi
  6138. -rm -f conftest.$ac_objext conftest.$ac_ext
  6139. +
  6140. fi
  6141. -echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  6142. -echo "${ECHO_T}$ac_cv_c_const" >&6
  6143. -if test $ac_cv_c_const = no; then
  6144. -cat >>confdefs.h <<\_ACEOF
  6145. -#define const
  6146. -_ACEOF
  6147. +rm -f core conftest.err conftest.$ac_objext
  6148. + test "x$ac_cv_prog_cc_c89" != "xno" && break
  6149. +done
  6150. +rm -f conftest.$ac_ext
  6151. +CC=$ac_save_CC
  6152. fi
  6153. +# AC_CACHE_VAL
  6154. +case "x$ac_cv_prog_cc_c89" in
  6155. + x)
  6156. + { $as_echo "$as_me:$LINENO: result: none needed" >&5
  6157. +$as_echo "none needed" >&6; } ;;
  6158. + xno)
  6159. + { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  6160. +$as_echo "unsupported" >&6; } ;;
  6161. + *)
  6162. + CC="$CC $ac_cv_prog_cc_c89"
  6163. + { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  6164. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  6165. +esac
  6166. +ac_ext=c
  6167. +ac_cpp='$CPP $CPPFLAGS'
  6168. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6169. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6170. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6171. -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6172. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  6173. -if test "${ac_cv_header_stdc+set}" = set; then
  6174. - echo $ECHO_N "(cached) $ECHO_C" >&6
  6175. -else
  6176. - cat >conftest.$ac_ext <<_ACEOF
  6177. -#line $LINENO "configure"
  6178. -/* confdefs.h. */
  6179. -_ACEOF
  6180. -cat confdefs.h >>conftest.$ac_ext
  6181. -cat >>conftest.$ac_ext <<_ACEOF
  6182. -/* end confdefs.h. */
  6183. -#include <stdlib.h>
  6184. -#include <stdarg.h>
  6185. -#include <string.h>
  6186. -#include <float.h>
  6187. +case `pwd` in
  6188. + *\ * | *\ *)
  6189. + { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  6190. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  6191. +esac
  6192. -int
  6193. -main ()
  6194. -{
  6195. - ;
  6196. - return 0;
  6197. -}
  6198. -_ACEOF
  6199. -rm -f conftest.$ac_objext
  6200. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6201. - (eval $ac_compile) 2>&5
  6202. - ac_status=$?
  6203. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6204. - (exit $ac_status); } &&
  6205. - { ac_try='test -s conftest.$ac_objext'
  6206. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6207. - (eval $ac_try) 2>&5
  6208. - ac_status=$?
  6209. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6210. - (exit $ac_status); }; }; then
  6211. - ac_cv_header_stdc=yes
  6212. -else
  6213. - echo "$as_me: failed program was:" >&5
  6214. -sed 's/^/| /' conftest.$ac_ext >&5
  6215. -ac_cv_header_stdc=no
  6216. -fi
  6217. -rm -f conftest.$ac_objext conftest.$ac_ext
  6218. +macro_version='2.2.6'
  6219. +macro_revision='1.3012'
  6220. -if test $ac_cv_header_stdc = yes; then
  6221. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6222. - cat >conftest.$ac_ext <<_ACEOF
  6223. -#line $LINENO "configure"
  6224. -/* confdefs.h. */
  6225. -_ACEOF
  6226. -cat confdefs.h >>conftest.$ac_ext
  6227. -cat >>conftest.$ac_ext <<_ACEOF
  6228. -/* end confdefs.h. */
  6229. -#include <string.h>
  6230. -_ACEOF
  6231. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6232. - $EGREP "memchr" >/dev/null 2>&1; then
  6233. - :
  6234. -else
  6235. - ac_cv_header_stdc=no
  6236. -fi
  6237. -rm -f conftest*
  6238. -fi
  6239. -if test $ac_cv_header_stdc = yes; then
  6240. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6241. - cat >conftest.$ac_ext <<_ACEOF
  6242. -#line $LINENO "configure"
  6243. -/* confdefs.h. */
  6244. -_ACEOF
  6245. -cat confdefs.h >>conftest.$ac_ext
  6246. -cat >>conftest.$ac_ext <<_ACEOF
  6247. -/* end confdefs.h. */
  6248. -#include <stdlib.h>
  6249. -_ACEOF
  6250. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6251. - $EGREP "free" >/dev/null 2>&1; then
  6252. - :
  6253. -else
  6254. - ac_cv_header_stdc=no
  6255. -fi
  6256. -rm -f conftest*
  6257. -fi
  6258. -if test $ac_cv_header_stdc = yes; then
  6259. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6260. - if test "$cross_compiling" = yes; then
  6261. - :
  6262. -else
  6263. - cat >conftest.$ac_ext <<_ACEOF
  6264. -#line $LINENO "configure"
  6265. -/* confdefs.h. */
  6266. -_ACEOF
  6267. -cat confdefs.h >>conftest.$ac_ext
  6268. -cat >>conftest.$ac_ext <<_ACEOF
  6269. -/* end confdefs.h. */
  6270. -#include <ctype.h>
  6271. -#if ((' ' & 0x0FF) == 0x020)
  6272. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6273. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6274. -#else
  6275. -# define ISLOWER(c) \
  6276. - (('a' <= (c) && (c) <= 'i') \
  6277. - || ('j' <= (c) && (c) <= 'r') \
  6278. - || ('s' <= (c) && (c) <= 'z'))
  6279. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6280. -#endif
  6281. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6282. -int
  6283. -main ()
  6284. -{
  6285. - int i;
  6286. - for (i = 0; i < 256; i++)
  6287. - if (XOR (islower (i), ISLOWER (i))
  6288. - || toupper (i) != TOUPPER (i))
  6289. - exit(2);
  6290. - exit (0);
  6291. -}
  6292. -_ACEOF
  6293. -rm -f conftest$ac_exeext
  6294. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6295. - (eval $ac_link) 2>&5
  6296. - ac_status=$?
  6297. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6298. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6299. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6300. - (eval $ac_try) 2>&5
  6301. - ac_status=$?
  6302. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6303. - (exit $ac_status); }; }; then
  6304. - :
  6305. -else
  6306. - echo "$as_me: program exited with status $ac_status" >&5
  6307. -echo "$as_me: failed program was:" >&5
  6308. -sed 's/^/| /' conftest.$ac_ext >&5
  6309. -( exit $ac_status )
  6310. -ac_cv_header_stdc=no
  6311. -fi
  6312. -rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6313. +
  6314. +
  6315. +
  6316. +
  6317. +ltmain="$ac_aux_dir/ltmain.sh"
  6318. +
  6319. +# Make sure we can run config.sub.
  6320. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  6321. + { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  6322. +$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  6323. + { (exit 1); exit 1; }; }
  6324. +
  6325. +{ $as_echo "$as_me:$LINENO: checking build system type" >&5
  6326. +$as_echo_n "checking build system type... " >&6; }
  6327. +if test "${ac_cv_build+set}" = set; then
  6328. + $as_echo_n "(cached) " >&6
  6329. +else
  6330. + ac_build_alias=$build_alias
  6331. +test "x$ac_build_alias" = x &&
  6332. + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  6333. +test "x$ac_build_alias" = x &&
  6334. + { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  6335. +$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  6336. + { (exit 1); exit 1; }; }
  6337. +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  6338. + { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  6339. +$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  6340. + { (exit 1); exit 1; }; }
  6341. +
  6342. fi
  6343. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  6344. +$as_echo "$ac_cv_build" >&6; }
  6345. +case $ac_cv_build in
  6346. +*-*-*) ;;
  6347. +*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  6348. +$as_echo "$as_me: error: invalid value of canonical build" >&2;}
  6349. + { (exit 1); exit 1; }; };;
  6350. +esac
  6351. +build=$ac_cv_build
  6352. +ac_save_IFS=$IFS; IFS='-'
  6353. +set x $ac_cv_build
  6354. +shift
  6355. +build_cpu=$1
  6356. +build_vendor=$2
  6357. +shift; shift
  6358. +# Remember, the first character of IFS is used to create $*,
  6359. +# except with old shells:
  6360. +build_os=$*
  6361. +IFS=$ac_save_IFS
  6362. +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  6363. +
  6364. +
  6365. +{ $as_echo "$as_me:$LINENO: checking host system type" >&5
  6366. +$as_echo_n "checking host system type... " >&6; }
  6367. +if test "${ac_cv_host+set}" = set; then
  6368. + $as_echo_n "(cached) " >&6
  6369. +else
  6370. + if test "x$host_alias" = x; then
  6371. + ac_cv_host=$ac_cv_build
  6372. +else
  6373. + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  6374. + { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  6375. +$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  6376. + { (exit 1); exit 1; }; }
  6377. fi
  6378. +
  6379. fi
  6380. -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6381. -echo "${ECHO_T}$ac_cv_header_stdc" >&6
  6382. -if test $ac_cv_header_stdc = yes; then
  6383. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  6384. +$as_echo "$ac_cv_host" >&6; }
  6385. +case $ac_cv_host in
  6386. +*-*-*) ;;
  6387. +*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  6388. +$as_echo "$as_me: error: invalid value of canonical host" >&2;}
  6389. + { (exit 1); exit 1; }; };;
  6390. +esac
  6391. +host=$ac_cv_host
  6392. +ac_save_IFS=$IFS; IFS='-'
  6393. +set x $ac_cv_host
  6394. +shift
  6395. +host_cpu=$1
  6396. +host_vendor=$2
  6397. +shift; shift
  6398. +# Remember, the first character of IFS is used to create $*,
  6399. +# except with old shells:
  6400. +host_os=$*
  6401. +IFS=$ac_save_IFS
  6402. +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  6403. +
  6404. +
  6405. +{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  6406. +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
  6407. +if test "${ac_cv_path_SED+set}" = set; then
  6408. + $as_echo_n "(cached) " >&6
  6409. +else
  6410. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  6411. + for ac_i in 1 2 3 4 5 6 7; do
  6412. + ac_script="$ac_script$as_nl$ac_script"
  6413. + done
  6414. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  6415. + $as_unset ac_script || ac_script=
  6416. + if test -z "$SED"; then
  6417. + ac_path_SED_found=false
  6418. + # Loop through the user's path and test for each of PROGNAME-LIST
  6419. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6420. +for as_dir in $PATH
  6421. +do
  6422. + IFS=$as_save_IFS
  6423. + test -z "$as_dir" && as_dir=.
  6424. + for ac_prog in sed gsed; do
  6425. + for ac_exec_ext in '' $ac_executable_extensions; do
  6426. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  6427. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  6428. +# Check for GNU ac_path_SED and select it if it is found.
  6429. + # Check for GNU $ac_path_SED
  6430. +case `"$ac_path_SED" --version 2>&1` in
  6431. +*GNU*)
  6432. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  6433. +*)
  6434. + ac_count=0
  6435. + $as_echo_n 0123456789 >"conftest.in"
  6436. + while :
  6437. + do
  6438. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  6439. + mv "conftest.tmp" "conftest.in"
  6440. + cp "conftest.in" "conftest.nl"
  6441. + $as_echo '' >> "conftest.nl"
  6442. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6443. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6444. + ac_count=`expr $ac_count + 1`
  6445. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  6446. + # Best one so far, save it but keep looking for a better one
  6447. + ac_cv_path_SED="$ac_path_SED"
  6448. + ac_path_SED_max=$ac_count
  6449. + fi
  6450. + # 10*(2^10) chars as input seems more than enough
  6451. + test $ac_count -gt 10 && break
  6452. + done
  6453. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6454. +esac
  6455. -cat >>confdefs.h <<\_ACEOF
  6456. -#define STDC_HEADERS 1
  6457. -_ACEOF
  6458. + $ac_path_SED_found && break 3
  6459. + done
  6460. + done
  6461. +done
  6462. +IFS=$as_save_IFS
  6463. + if test -z "$ac_cv_path_SED"; then
  6464. + { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  6465. +$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  6466. + { (exit 1); exit 1; }; }
  6467. + fi
  6468. +else
  6469. + ac_cv_path_SED=$SED
  6470. +fi
  6471. fi
  6472. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  6473. +$as_echo "$ac_cv_path_SED" >&6; }
  6474. + SED="$ac_cv_path_SED"
  6475. + rm -f conftest.sed
  6476. -# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6477. +test -z "$SED" && SED=sed
  6478. +Xsed="$SED -e 1s/^X//"
  6479. @@ -4152,2584 +5289,2574 @@
  6480. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6481. - inttypes.h stdint.h unistd.h
  6482. -do
  6483. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6484. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  6485. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6486. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6487. - echo $ECHO_N "(cached) $ECHO_C" >&6
  6488. +
  6489. +
  6490. +{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
  6491. +$as_echo_n "checking for fgrep... " >&6; }
  6492. +if test "${ac_cv_path_FGREP+set}" = set; then
  6493. + $as_echo_n "(cached) " >&6
  6494. else
  6495. - cat >conftest.$ac_ext <<_ACEOF
  6496. -#line $LINENO "configure"
  6497. -/* confdefs.h. */
  6498. -_ACEOF
  6499. -cat confdefs.h >>conftest.$ac_ext
  6500. -cat >>conftest.$ac_ext <<_ACEOF
  6501. -/* end confdefs.h. */
  6502. -$ac_includes_default
  6503. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  6504. + then ac_cv_path_FGREP="$GREP -F"
  6505. + else
  6506. + if test -z "$FGREP"; then
  6507. + ac_path_FGREP_found=false
  6508. + # Loop through the user's path and test for each of PROGNAME-LIST
  6509. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6510. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6511. +do
  6512. + IFS=$as_save_IFS
  6513. + test -z "$as_dir" && as_dir=.
  6514. + for ac_prog in fgrep; do
  6515. + for ac_exec_ext in '' $ac_executable_extensions; do
  6516. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  6517. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  6518. +# Check for GNU ac_path_FGREP and select it if it is found.
  6519. + # Check for GNU $ac_path_FGREP
  6520. +case `"$ac_path_FGREP" --version 2>&1` in
  6521. +*GNU*)
  6522. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  6523. +*)
  6524. + ac_count=0
  6525. + $as_echo_n 0123456789 >"conftest.in"
  6526. + while :
  6527. + do
  6528. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  6529. + mv "conftest.tmp" "conftest.in"
  6530. + cp "conftest.in" "conftest.nl"
  6531. + $as_echo 'FGREP' >> "conftest.nl"
  6532. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6533. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6534. + ac_count=`expr $ac_count + 1`
  6535. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  6536. + # Best one so far, save it but keep looking for a better one
  6537. + ac_cv_path_FGREP="$ac_path_FGREP"
  6538. + ac_path_FGREP_max=$ac_count
  6539. + fi
  6540. + # 10*(2^10) chars as input seems more than enough
  6541. + test $ac_count -gt 10 && break
  6542. + done
  6543. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6544. +esac
  6545. -#include <$ac_header>
  6546. -_ACEOF
  6547. -rm -f conftest.$ac_objext
  6548. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6549. - (eval $ac_compile) 2>&5
  6550. - ac_status=$?
  6551. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6552. - (exit $ac_status); } &&
  6553. - { ac_try='test -s conftest.$ac_objext'
  6554. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6555. - (eval $ac_try) 2>&5
  6556. - ac_status=$?
  6557. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6558. - (exit $ac_status); }; }; then
  6559. - eval "$as_ac_Header=yes"
  6560. + $ac_path_FGREP_found && break 3
  6561. + done
  6562. + done
  6563. +done
  6564. +IFS=$as_save_IFS
  6565. + if test -z "$ac_cv_path_FGREP"; then
  6566. + { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  6567. +$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  6568. + { (exit 1); exit 1; }; }
  6569. + fi
  6570. else
  6571. - echo "$as_me: failed program was:" >&5
  6572. -sed 's/^/| /' conftest.$ac_ext >&5
  6573. -
  6574. -eval "$as_ac_Header=no"
  6575. -fi
  6576. -rm -f conftest.$ac_objext conftest.$ac_ext
  6577. + ac_cv_path_FGREP=$FGREP
  6578. fi
  6579. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6580. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6581. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6582. - cat >>confdefs.h <<_ACEOF
  6583. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6584. -_ACEOF
  6585. + fi
  6586. fi
  6587. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  6588. +$as_echo "$ac_cv_path_FGREP" >&6; }
  6589. + FGREP="$ac_cv_path_FGREP"
  6590. -done
  6591. +test -z "$GREP" && GREP=grep
  6592. -for ac_header in unistd.h
  6593. -do
  6594. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6595. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6596. - echo "$as_me:$LINENO: checking for $ac_header" >&5
  6597. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6598. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6599. - echo $ECHO_N "(cached) $ECHO_C" >&6
  6600. -fi
  6601. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6602. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6603. -else
  6604. - # Is the header compilable?
  6605. -echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6606. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6607. -cat >conftest.$ac_ext <<_ACEOF
  6608. -#line $LINENO "configure"
  6609. -/* confdefs.h. */
  6610. -_ACEOF
  6611. -cat confdefs.h >>conftest.$ac_ext
  6612. -cat >>conftest.$ac_ext <<_ACEOF
  6613. -/* end confdefs.h. */
  6614. -$ac_includes_default
  6615. -#include <$ac_header>
  6616. -_ACEOF
  6617. -rm -f conftest.$ac_objext
  6618. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6619. - (eval $ac_compile) 2>&5
  6620. - ac_status=$?
  6621. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6622. - (exit $ac_status); } &&
  6623. - { ac_try='test -s conftest.$ac_objext'
  6624. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6625. - (eval $ac_try) 2>&5
  6626. - ac_status=$?
  6627. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6628. - (exit $ac_status); }; }; then
  6629. - ac_header_compiler=yes
  6630. -else
  6631. - echo "$as_me: failed program was:" >&5
  6632. -sed 's/^/| /' conftest.$ac_ext >&5
  6633. -ac_header_compiler=no
  6634. -fi
  6635. -rm -f conftest.$ac_objext conftest.$ac_ext
  6636. -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6637. -echo "${ECHO_T}$ac_header_compiler" >&6
  6638. -# Is the header present?
  6639. -echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6640. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6641. -cat >conftest.$ac_ext <<_ACEOF
  6642. -#line $LINENO "configure"
  6643. -/* confdefs.h. */
  6644. -_ACEOF
  6645. -cat confdefs.h >>conftest.$ac_ext
  6646. -cat >>conftest.$ac_ext <<_ACEOF
  6647. -/* end confdefs.h. */
  6648. -#include <$ac_header>
  6649. -_ACEOF
  6650. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6651. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6652. - ac_status=$?
  6653. - grep -v '^ *+' conftest.er1 >conftest.err
  6654. - rm -f conftest.er1
  6655. - cat conftest.err >&5
  6656. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6657. - (exit $ac_status); } >/dev/null; then
  6658. - if test -s conftest.err; then
  6659. - ac_cpp_err=$ac_c_preproc_warn_flag
  6660. - else
  6661. - ac_cpp_err=
  6662. - fi
  6663. -else
  6664. - ac_cpp_err=yes
  6665. -fi
  6666. -if test -z "$ac_cpp_err"; then
  6667. - ac_header_preproc=yes
  6668. -else
  6669. - echo "$as_me: failed program was:" >&5
  6670. -sed 's/^/| /' conftest.$ac_ext >&5
  6671. - ac_header_preproc=no
  6672. +
  6673. +
  6674. +
  6675. +
  6676. +
  6677. +
  6678. +
  6679. +
  6680. +
  6681. +
  6682. +
  6683. +
  6684. +
  6685. +
  6686. +# Check whether --with-gnu-ld was given.
  6687. +if test "${with_gnu_ld+set}" = set; then
  6688. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  6689. +else
  6690. + with_gnu_ld=no
  6691. fi
  6692. -rm -f conftest.err conftest.$ac_ext
  6693. -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6694. -echo "${ECHO_T}$ac_header_preproc" >&6
  6695. -# So? What about this header?
  6696. -case $ac_header_compiler:$ac_header_preproc in
  6697. - yes:no )
  6698. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6699. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6700. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6701. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6702. - (
  6703. - cat <<\_ASBOX
  6704. -## ------------------------------------ ##
  6705. -## Report this to bug-autoconf@gnu.org. ##
  6706. -## ------------------------------------ ##
  6707. -_ASBOX
  6708. - ) |
  6709. - sed "s/^/$as_me: WARNING: /" >&2
  6710. +ac_prog=ld
  6711. +if test "$GCC" = yes; then
  6712. + # Check if gcc -print-prog-name=ld gives a path.
  6713. + { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  6714. +$as_echo_n "checking for ld used by $CC... " >&6; }
  6715. + case $host in
  6716. + *-*-mingw*)
  6717. + # gcc leaves a trailing carriage return which upsets mingw
  6718. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  6719. + *)
  6720. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  6721. + esac
  6722. + case $ac_prog in
  6723. + # Accept absolute paths.
  6724. + [\\/]* | ?:[\\/]*)
  6725. + re_direlt='/[^/][^/]*/\.\./'
  6726. + # Canonicalize the pathname of ld
  6727. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  6728. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  6729. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  6730. + done
  6731. + test -z "$LD" && LD="$ac_prog"
  6732. + ;;
  6733. + "")
  6734. + # If it fails, then pretend we aren't using GCC.
  6735. + ac_prog=ld
  6736. ;;
  6737. - no:yes )
  6738. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6739. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6740. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6741. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6742. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6743. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6744. - (
  6745. - cat <<\_ASBOX
  6746. -## ------------------------------------ ##
  6747. -## Report this to bug-autoconf@gnu.org. ##
  6748. -## ------------------------------------ ##
  6749. -_ASBOX
  6750. - ) |
  6751. - sed "s/^/$as_me: WARNING: /" >&2
  6752. + *)
  6753. + # If it is relative, then search for the first ld in PATH.
  6754. + with_gnu_ld=unknown
  6755. ;;
  6756. -esac
  6757. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  6758. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6759. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6760. - echo $ECHO_N "(cached) $ECHO_C" >&6
  6761. + esac
  6762. +elif test "$with_gnu_ld" = yes; then
  6763. + { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  6764. +$as_echo_n "checking for GNU ld... " >&6; }
  6765. +else
  6766. + { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  6767. +$as_echo_n "checking for non-GNU ld... " >&6; }
  6768. +fi
  6769. +if test "${lt_cv_path_LD+set}" = set; then
  6770. + $as_echo_n "(cached) " >&6
  6771. +else
  6772. + if test -z "$LD"; then
  6773. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6774. + for ac_dir in $PATH; do
  6775. + IFS="$lt_save_ifs"
  6776. + test -z "$ac_dir" && ac_dir=.
  6777. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  6778. + lt_cv_path_LD="$ac_dir/$ac_prog"
  6779. + # Check to see if the program is GNU ld. I'd rather use --version,
  6780. + # but apparently some variants of GNU ld only accept -v.
  6781. + # Break only if it was the GNU/non-GNU ld that we prefer.
  6782. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  6783. + *GNU* | *'with BFD'*)
  6784. + test "$with_gnu_ld" != no && break
  6785. + ;;
  6786. + *)
  6787. + test "$with_gnu_ld" != yes && break
  6788. + ;;
  6789. + esac
  6790. + fi
  6791. + done
  6792. + IFS="$lt_save_ifs"
  6793. else
  6794. - eval "$as_ac_Header=$ac_header_preproc"
  6795. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  6796. fi
  6797. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6798. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6799. -
  6800. fi
  6801. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6802. - cat >>confdefs.h <<_ACEOF
  6803. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6804. -_ACEOF
  6805. +LD="$lt_cv_path_LD"
  6806. +if test -n "$LD"; then
  6807. + { $as_echo "$as_me:$LINENO: result: $LD" >&5
  6808. +$as_echo "$LD" >&6; }
  6809. +else
  6810. + { $as_echo "$as_me:$LINENO: result: no" >&5
  6811. +$as_echo "no" >&6; }
  6812. fi
  6813. +test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  6814. +$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  6815. + { (exit 1); exit 1; }; }
  6816. +{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  6817. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  6818. +if test "${lt_cv_prog_gnu_ld+set}" = set; then
  6819. + $as_echo_n "(cached) " >&6
  6820. +else
  6821. + # I'd rather use --version here, but apparently some GNU lds only accept -v.
  6822. +case `$LD -v 2>&1 </dev/null` in
  6823. +*GNU* | *'with BFD'*)
  6824. + lt_cv_prog_gnu_ld=yes
  6825. + ;;
  6826. +*)
  6827. + lt_cv_prog_gnu_ld=no
  6828. + ;;
  6829. +esac
  6830. +fi
  6831. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  6832. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  6833. +with_gnu_ld=$lt_cv_prog_gnu_ld
  6834. -done
  6835. -echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
  6836. -echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
  6837. -if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
  6838. - echo $ECHO_N "(cached) $ECHO_C" >&6
  6839. +
  6840. +
  6841. +
  6842. +
  6843. +
  6844. +
  6845. +
  6846. +{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  6847. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  6848. +if test "${lt_cv_path_NM+set}" = set; then
  6849. + $as_echo_n "(cached) " >&6
  6850. else
  6851. - cat >conftest.$ac_ext <<_ACEOF
  6852. -#line $LINENO "configure"
  6853. -/* confdefs.h. */
  6854. -_ACEOF
  6855. -cat confdefs.h >>conftest.$ac_ext
  6856. -cat >>conftest.$ac_ext <<_ACEOF
  6857. -/* end confdefs.h. */
  6858. -#include <sys/types.h>
  6859. -int
  6860. -main ()
  6861. -{
  6862. -return makedev(0, 0);
  6863. - ;
  6864. - return 0;
  6865. -}
  6866. -_ACEOF
  6867. -rm -f conftest.$ac_objext conftest$ac_exeext
  6868. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6869. - (eval $ac_link) 2>&5
  6870. - ac_status=$?
  6871. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6872. - (exit $ac_status); } &&
  6873. - { ac_try='test -s conftest$ac_exeext'
  6874. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6875. - (eval $ac_try) 2>&5
  6876. - ac_status=$?
  6877. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6878. - (exit $ac_status); }; }; then
  6879. - ac_cv_header_sys_types_h_makedev=yes
  6880. + if test -n "$NM"; then
  6881. + # Let the user override the test.
  6882. + lt_cv_path_NM="$NM"
  6883. else
  6884. - echo "$as_me: failed program was:" >&5
  6885. -sed 's/^/| /' conftest.$ac_ext >&5
  6886. -
  6887. -ac_cv_header_sys_types_h_makedev=no
  6888. + lt_nm_to_check="${ac_tool_prefix}nm"
  6889. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  6890. + lt_nm_to_check="$lt_nm_to_check nm"
  6891. + fi
  6892. + for lt_tmp_nm in $lt_nm_to_check; do
  6893. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6894. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  6895. + IFS="$lt_save_ifs"
  6896. + test -z "$ac_dir" && ac_dir=.
  6897. + tmp_nm="$ac_dir/$lt_tmp_nm"
  6898. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  6899. + # Check to see if the nm accepts a BSD-compat flag.
  6900. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  6901. + # nm: unknown option "B" ignored
  6902. + # Tru64's nm complains that /dev/null is an invalid object file
  6903. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  6904. + */dev/null* | *'Invalid file or object type'*)
  6905. + lt_cv_path_NM="$tmp_nm -B"
  6906. + break
  6907. + ;;
  6908. + *)
  6909. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  6910. + */dev/null*)
  6911. + lt_cv_path_NM="$tmp_nm -p"
  6912. + break
  6913. + ;;
  6914. + *)
  6915. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  6916. + continue # so that we can try to find one that supports BSD flags
  6917. + ;;
  6918. + esac
  6919. + ;;
  6920. + esac
  6921. + fi
  6922. + done
  6923. + IFS="$lt_save_ifs"
  6924. + done
  6925. + : ${lt_cv_path_NM=no}
  6926. +fi
  6927. fi
  6928. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6929. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  6930. +$as_echo "$lt_cv_path_NM" >&6; }
  6931. +if test "$lt_cv_path_NM" != "no"; then
  6932. + NM="$lt_cv_path_NM"
  6933. +else
  6934. + # Didn't find any BSD compatible name lister, look for dumpbin.
  6935. + if test -n "$ac_tool_prefix"; then
  6936. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  6937. + do
  6938. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6939. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6940. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6941. +$as_echo_n "checking for $ac_word... " >&6; }
  6942. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  6943. + $as_echo_n "(cached) " >&6
  6944. +else
  6945. + if test -n "$DUMPBIN"; then
  6946. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  6947. +else
  6948. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6949. +for as_dir in $PATH
  6950. +do
  6951. + IFS=$as_save_IFS
  6952. + test -z "$as_dir" && as_dir=.
  6953. + for ac_exec_ext in '' $ac_executable_extensions; do
  6954. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6955. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  6956. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6957. + break 2
  6958. + fi
  6959. +done
  6960. +done
  6961. +IFS=$as_save_IFS
  6962. fi
  6963. -echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
  6964. -echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
  6965. +fi
  6966. +DUMPBIN=$ac_cv_prog_DUMPBIN
  6967. +if test -n "$DUMPBIN"; then
  6968. + { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  6969. +$as_echo "$DUMPBIN" >&6; }
  6970. +else
  6971. + { $as_echo "$as_me:$LINENO: result: no" >&5
  6972. +$as_echo "no" >&6; }
  6973. +fi
  6974. -if test $ac_cv_header_sys_types_h_makedev = no; then
  6975. -if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  6976. - echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  6977. -echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
  6978. -if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  6979. - echo $ECHO_N "(cached) $ECHO_C" >&6
  6980. +
  6981. + test -n "$DUMPBIN" && break
  6982. + done
  6983. fi
  6984. -echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  6985. -echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
  6986. +if test -z "$DUMPBIN"; then
  6987. + ac_ct_DUMPBIN=$DUMPBIN
  6988. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  6989. +do
  6990. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  6991. +set dummy $ac_prog; ac_word=$2
  6992. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6993. +$as_echo_n "checking for $ac_word... " >&6; }
  6994. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  6995. + $as_echo_n "(cached) " >&6
  6996. else
  6997. - # Is the header compilable?
  6998. -echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
  6999. -echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
  7000. -cat >conftest.$ac_ext <<_ACEOF
  7001. -#line $LINENO "configure"
  7002. -/* confdefs.h. */
  7003. -_ACEOF
  7004. -cat confdefs.h >>conftest.$ac_ext
  7005. -cat >>conftest.$ac_ext <<_ACEOF
  7006. -/* end confdefs.h. */
  7007. -$ac_includes_default
  7008. -#include <sys/mkdev.h>
  7009. -_ACEOF
  7010. -rm -f conftest.$ac_objext
  7011. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7012. - (eval $ac_compile) 2>&5
  7013. - ac_status=$?
  7014. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7015. - (exit $ac_status); } &&
  7016. - { ac_try='test -s conftest.$ac_objext'
  7017. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7018. - (eval $ac_try) 2>&5
  7019. - ac_status=$?
  7020. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7021. - (exit $ac_status); }; }; then
  7022. - ac_header_compiler=yes
  7023. + if test -n "$ac_ct_DUMPBIN"; then
  7024. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  7025. else
  7026. - echo "$as_me: failed program was:" >&5
  7027. -sed 's/^/| /' conftest.$ac_ext >&5
  7028. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7029. +for as_dir in $PATH
  7030. +do
  7031. + IFS=$as_save_IFS
  7032. + test -z "$as_dir" && as_dir=.
  7033. + for ac_exec_ext in '' $ac_executable_extensions; do
  7034. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7035. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  7036. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7037. + break 2
  7038. + fi
  7039. +done
  7040. +done
  7041. +IFS=$as_save_IFS
  7042. -ac_header_compiler=no
  7043. fi
  7044. -rm -f conftest.$ac_objext conftest.$ac_ext
  7045. -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7046. -echo "${ECHO_T}$ac_header_compiler" >&6
  7047. -
  7048. -# Is the header present?
  7049. -echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
  7050. -echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
  7051. -cat >conftest.$ac_ext <<_ACEOF
  7052. -#line $LINENO "configure"
  7053. -/* confdefs.h. */
  7054. -_ACEOF
  7055. -cat confdefs.h >>conftest.$ac_ext
  7056. -cat >>conftest.$ac_ext <<_ACEOF
  7057. -/* end confdefs.h. */
  7058. -#include <sys/mkdev.h>
  7059. -_ACEOF
  7060. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7061. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7062. - ac_status=$?
  7063. - grep -v '^ *+' conftest.er1 >conftest.err
  7064. - rm -f conftest.er1
  7065. - cat conftest.err >&5
  7066. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7067. - (exit $ac_status); } >/dev/null; then
  7068. - if test -s conftest.err; then
  7069. - ac_cpp_err=$ac_c_preproc_warn_flag
  7070. - else
  7071. - ac_cpp_err=
  7072. - fi
  7073. -else
  7074. - ac_cpp_err=yes
  7075. fi
  7076. -if test -z "$ac_cpp_err"; then
  7077. - ac_header_preproc=yes
  7078. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  7079. +if test -n "$ac_ct_DUMPBIN"; then
  7080. + { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  7081. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  7082. else
  7083. - echo "$as_me: failed program was:" >&5
  7084. -sed 's/^/| /' conftest.$ac_ext >&5
  7085. -
  7086. - ac_header_preproc=no
  7087. + { $as_echo "$as_me:$LINENO: result: no" >&5
  7088. +$as_echo "no" >&6; }
  7089. fi
  7090. -rm -f conftest.err conftest.$ac_ext
  7091. -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7092. -echo "${ECHO_T}$ac_header_preproc" >&6
  7093. -# So? What about this header?
  7094. -case $ac_header_compiler:$ac_header_preproc in
  7095. - yes:no )
  7096. - { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
  7097. -echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7098. - { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
  7099. -echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
  7100. - (
  7101. - cat <<\_ASBOX
  7102. -## ------------------------------------ ##
  7103. -## Report this to bug-autoconf@gnu.org. ##
  7104. -## ------------------------------------ ##
  7105. -_ASBOX
  7106. - ) |
  7107. - sed "s/^/$as_me: WARNING: /" >&2
  7108. - ;;
  7109. - no:yes )
  7110. - { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
  7111. -echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
  7112. - { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
  7113. -echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
  7114. - { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
  7115. -echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
  7116. - (
  7117. - cat <<\_ASBOX
  7118. -## ------------------------------------ ##
  7119. -## Report this to bug-autoconf@gnu.org. ##
  7120. -## ------------------------------------ ##
  7121. -_ASBOX
  7122. - ) |
  7123. - sed "s/^/$as_me: WARNING: /" >&2
  7124. - ;;
  7125. +
  7126. + test -n "$ac_ct_DUMPBIN" && break
  7127. +done
  7128. +
  7129. + if test "x$ac_ct_DUMPBIN" = x; then
  7130. + DUMPBIN=":"
  7131. + else
  7132. + case $cross_compiling:$ac_tool_warned in
  7133. +yes:)
  7134. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  7135. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7136. +ac_tool_warned=yes ;;
  7137. esac
  7138. -echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  7139. -echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
  7140. -if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  7141. - echo $ECHO_N "(cached) $ECHO_C" >&6
  7142. -else
  7143. - ac_cv_header_sys_mkdev_h=$ac_header_preproc
  7144. + DUMPBIN=$ac_ct_DUMPBIN
  7145. + fi
  7146. fi
  7147. -echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  7148. -echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
  7149. +
  7150. + if test "$DUMPBIN" != ":"; then
  7151. + NM="$DUMPBIN"
  7152. + fi
  7153. fi
  7154. -if test $ac_cv_header_sys_mkdev_h = yes; then
  7155. +test -z "$NM" && NM=nm
  7156. -cat >>confdefs.h <<\_ACEOF
  7157. -#define MAJOR_IN_MKDEV 1
  7158. -_ACEOF
  7159. -fi
  7160. - if test $ac_cv_header_sys_mkdev_h = no; then
  7161. - if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  7162. - echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  7163. -echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
  7164. -if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  7165. - echo $ECHO_N "(cached) $ECHO_C" >&6
  7166. -fi
  7167. -echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  7168. -echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
  7169. -else
  7170. - # Is the header compilable?
  7171. -echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
  7172. -echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
  7173. -cat >conftest.$ac_ext <<_ACEOF
  7174. -#line $LINENO "configure"
  7175. -/* confdefs.h. */
  7176. -_ACEOF
  7177. -cat confdefs.h >>conftest.$ac_ext
  7178. -cat >>conftest.$ac_ext <<_ACEOF
  7179. -/* end confdefs.h. */
  7180. -$ac_includes_default
  7181. -#include <sys/sysmacros.h>
  7182. -_ACEOF
  7183. -rm -f conftest.$ac_objext
  7184. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7185. - (eval $ac_compile) 2>&5
  7186. - ac_status=$?
  7187. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7188. - (exit $ac_status); } &&
  7189. - { ac_try='test -s conftest.$ac_objext'
  7190. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7191. - (eval $ac_try) 2>&5
  7192. - ac_status=$?
  7193. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7194. - (exit $ac_status); }; }; then
  7195. - ac_header_compiler=yes
  7196. -else
  7197. - echo "$as_me: failed program was:" >&5
  7198. -sed 's/^/| /' conftest.$ac_ext >&5
  7199. -
  7200. -ac_header_compiler=no
  7201. -fi
  7202. -rm -f conftest.$ac_objext conftest.$ac_ext
  7203. -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7204. -echo "${ECHO_T}$ac_header_compiler" >&6
  7205. -# Is the header present?
  7206. -echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
  7207. -echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
  7208. -cat >conftest.$ac_ext <<_ACEOF
  7209. -#line $LINENO "configure"
  7210. -/* confdefs.h. */
  7211. -_ACEOF
  7212. -cat confdefs.h >>conftest.$ac_ext
  7213. -cat >>conftest.$ac_ext <<_ACEOF
  7214. -/* end confdefs.h. */
  7215. -#include <sys/sysmacros.h>
  7216. -_ACEOF
  7217. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7218. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7219. - ac_status=$?
  7220. - grep -v '^ *+' conftest.er1 >conftest.err
  7221. - rm -f conftest.er1
  7222. +{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  7223. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  7224. +if test "${lt_cv_nm_interface+set}" = set; then
  7225. + $as_echo_n "(cached) " >&6
  7226. +else
  7227. + lt_cv_nm_interface="BSD nm"
  7228. + echo "int some_variable = 0;" > conftest.$ac_ext
  7229. + (eval echo "\"\$as_me:5670: $ac_compile\"" >&5)
  7230. + (eval "$ac_compile" 2>conftest.err)
  7231. cat conftest.err >&5
  7232. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7233. - (exit $ac_status); } >/dev/null; then
  7234. - if test -s conftest.err; then
  7235. - ac_cpp_err=$ac_c_preproc_warn_flag
  7236. - else
  7237. - ac_cpp_err=
  7238. + (eval echo "\"\$as_me:5673: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  7239. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  7240. + cat conftest.err >&5
  7241. + (eval echo "\"\$as_me:5676: output\"" >&5)
  7242. + cat conftest.out >&5
  7243. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  7244. + lt_cv_nm_interface="MS dumpbin"
  7245. fi
  7246. -else
  7247. - ac_cpp_err=yes
  7248. + rm -f conftest*
  7249. fi
  7250. -if test -z "$ac_cpp_err"; then
  7251. - ac_header_preproc=yes
  7252. -else
  7253. - echo "$as_me: failed program was:" >&5
  7254. -sed 's/^/| /' conftest.$ac_ext >&5
  7255. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  7256. +$as_echo "$lt_cv_nm_interface" >&6; }
  7257. - ac_header_preproc=no
  7258. +{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  7259. +$as_echo_n "checking whether ln -s works... " >&6; }
  7260. +LN_S=$as_ln_s
  7261. +if test "$LN_S" = "ln -s"; then
  7262. + { $as_echo "$as_me:$LINENO: result: yes" >&5
  7263. +$as_echo "yes" >&6; }
  7264. +else
  7265. + { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  7266. +$as_echo "no, using $LN_S" >&6; }
  7267. fi
  7268. -rm -f conftest.err conftest.$ac_ext
  7269. -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7270. -echo "${ECHO_T}$ac_header_preproc" >&6
  7271. -# So? What about this header?
  7272. -case $ac_header_compiler:$ac_header_preproc in
  7273. - yes:no )
  7274. - { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
  7275. -echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7276. - { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
  7277. -echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
  7278. - (
  7279. - cat <<\_ASBOX
  7280. -## ------------------------------------ ##
  7281. -## Report this to bug-autoconf@gnu.org. ##
  7282. -## ------------------------------------ ##
  7283. -_ASBOX
  7284. - ) |
  7285. - sed "s/^/$as_me: WARNING: /" >&2
  7286. +# find the maximum length of command line arguments
  7287. +{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  7288. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  7289. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  7290. + $as_echo_n "(cached) " >&6
  7291. +else
  7292. + i=0
  7293. + teststring="ABCD"
  7294. +
  7295. + case $build_os in
  7296. + msdosdjgpp*)
  7297. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  7298. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  7299. + # during glob expansion). Even if it were fixed, the result of this
  7300. + # check would be larger than it should be.
  7301. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  7302. ;;
  7303. - no:yes )
  7304. - { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
  7305. -echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
  7306. - { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
  7307. -echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
  7308. - { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
  7309. -echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
  7310. - (
  7311. - cat <<\_ASBOX
  7312. -## ------------------------------------ ##
  7313. -## Report this to bug-autoconf@gnu.org. ##
  7314. -## ------------------------------------ ##
  7315. -_ASBOX
  7316. - ) |
  7317. - sed "s/^/$as_me: WARNING: /" >&2
  7318. +
  7319. + gnu*)
  7320. + # Under GNU Hurd, this test is not required because there is
  7321. + # no limit to the length of command line arguments.
  7322. + # Libtool will interpret -1 as no limit whatsoever
  7323. + lt_cv_sys_max_cmd_len=-1;
  7324. ;;
  7325. -esac
  7326. -echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  7327. -echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
  7328. -if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  7329. - echo $ECHO_N "(cached) $ECHO_C" >&6
  7330. -else
  7331. - ac_cv_header_sys_sysmacros_h=$ac_header_preproc
  7332. -fi
  7333. -echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  7334. -echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
  7335. -fi
  7336. -if test $ac_cv_header_sys_sysmacros_h = yes; then
  7337. + cygwin* | mingw* | cegcc*)
  7338. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  7339. + # about 5 minutes as the teststring grows exponentially.
  7340. + # Worse, since 9x/ME are not pre-emptively multitasking,
  7341. + # you end up with a "frozen" computer, even though with patience
  7342. + # the test eventually succeeds (with a max line length of 256k).
  7343. + # Instead, let's just punt: use the minimum linelength reported by
  7344. + # all of the supported platforms: 8192 (on NT/2K/XP).
  7345. + lt_cv_sys_max_cmd_len=8192;
  7346. + ;;
  7347. -cat >>confdefs.h <<\_ACEOF
  7348. -#define MAJOR_IN_SYSMACROS 1
  7349. -_ACEOF
  7350. + amigaos*)
  7351. + # On AmigaOS with pdksh, this test takes hours, literally.
  7352. + # So we just punt and use a minimum line length of 8192.
  7353. + lt_cv_sys_max_cmd_len=8192;
  7354. + ;;
  7355. -fi
  7356. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  7357. + # This has been around since 386BSD, at least. Likely further.
  7358. + if test -x /sbin/sysctl; then
  7359. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  7360. + elif test -x /usr/sbin/sysctl; then
  7361. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  7362. + else
  7363. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  7364. + fi
  7365. + # And add a safety zone
  7366. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  7367. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  7368. + ;;
  7369. + interix*)
  7370. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  7371. + lt_cv_sys_max_cmd_len=196608
  7372. + ;;
  7373. +
  7374. + osf*)
  7375. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  7376. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  7377. + # nice to cause kernel panics so lets avoid the loop below.
  7378. + # First set a reasonable default.
  7379. + lt_cv_sys_max_cmd_len=16384
  7380. + #
  7381. + if test -x /sbin/sysconfig; then
  7382. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  7383. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  7384. + esac
  7385. + fi
  7386. + ;;
  7387. + sco3.2v5*)
  7388. + lt_cv_sys_max_cmd_len=102400
  7389. + ;;
  7390. + sysv5* | sco5v6* | sysv4.2uw2*)
  7391. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  7392. + if test -n "$kargmax"; then
  7393. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  7394. + else
  7395. + lt_cv_sys_max_cmd_len=32768
  7396. + fi
  7397. + ;;
  7398. + *)
  7399. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  7400. + if test -n "$lt_cv_sys_max_cmd_len"; then
  7401. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  7402. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  7403. + else
  7404. + # Make teststring a little bigger before we do anything with it.
  7405. + # a 1K string should be a reasonable start.
  7406. + for i in 1 2 3 4 5 6 7 8 ; do
  7407. + teststring=$teststring$teststring
  7408. + done
  7409. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  7410. + # If test is not a shell built-in, we'll probably end up computing a
  7411. + # maximum length that is only half of the actual maximum length, but
  7412. + # we can't tell.
  7413. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  7414. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  7415. + test $i != 17 # 1/2 MB should be enough
  7416. + do
  7417. + i=`expr $i + 1`
  7418. + teststring=$teststring$teststring
  7419. + done
  7420. + # Only check the string length outside the loop.
  7421. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  7422. + teststring=
  7423. + # Add a significant safety factor because C++ compilers can tack on
  7424. + # massive amounts of additional arguments before passing them to the
  7425. + # linker. It appears as though 1/2 is a usable value.
  7426. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  7427. + fi
  7428. + ;;
  7429. + esac
  7430. - fi
  7431. fi
  7432. -echo "$as_me:$LINENO: checking for major_t" >&5
  7433. -echo $ECHO_N "checking for major_t... $ECHO_C" >&6
  7434. -if test "${ac_cv_type_major_t+set}" = set; then
  7435. - echo $ECHO_N "(cached) $ECHO_C" >&6
  7436. +if test -n $lt_cv_sys_max_cmd_len ; then
  7437. + { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  7438. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  7439. else
  7440. - cat >conftest.$ac_ext <<_ACEOF
  7441. -#line $LINENO "configure"
  7442. -/* confdefs.h. */
  7443. -_ACEOF
  7444. -cat confdefs.h >>conftest.$ac_ext
  7445. -cat >>conftest.$ac_ext <<_ACEOF
  7446. -/* end confdefs.h. */
  7447. -#include <sys/types.h>
  7448. - #ifdef MAJOR_IN_MKDEV
  7449. - # include <sys/mkdev.h>
  7450. - #else
  7451. - # ifdef MAJOR_IN_SYSMACROS
  7452. - # include <sys/sysmacros.h>
  7453. - # endif
  7454. - #endif
  7455. + { $as_echo "$as_me:$LINENO: result: none" >&5
  7456. +$as_echo "none" >&6; }
  7457. +fi
  7458. +max_cmd_len=$lt_cv_sys_max_cmd_len
  7459. -int
  7460. -main ()
  7461. -{
  7462. -if ((major_t *) 0)
  7463. - return 0;
  7464. -if (sizeof (major_t))
  7465. - return 0;
  7466. - ;
  7467. - return 0;
  7468. -}
  7469. -_ACEOF
  7470. -rm -f conftest.$ac_objext
  7471. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7472. - (eval $ac_compile) 2>&5
  7473. - ac_status=$?
  7474. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7475. - (exit $ac_status); } &&
  7476. - { ac_try='test -s conftest.$ac_objext'
  7477. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7478. - (eval $ac_try) 2>&5
  7479. - ac_status=$?
  7480. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7481. - (exit $ac_status); }; }; then
  7482. - ac_cv_type_major_t=yes
  7483. -else
  7484. - echo "$as_me: failed program was:" >&5
  7485. -sed 's/^/| /' conftest.$ac_ext >&5
  7486. -ac_cv_type_major_t=no
  7487. -fi
  7488. -rm -f conftest.$ac_objext conftest.$ac_ext
  7489. -fi
  7490. -echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
  7491. -echo "${ECHO_T}$ac_cv_type_major_t" >&6
  7492. -if test $ac_cv_type_major_t = yes; then
  7493. -cat >>confdefs.h <<_ACEOF
  7494. -#define HAVE_MAJOR_T 1
  7495. -_ACEOF
  7496. +: ${CP="cp -f"}
  7497. +: ${MV="mv -f"}
  7498. +: ${RM="rm -f"}
  7499. -else
  7500. +{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  7501. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  7502. +# Try some XSI features
  7503. +xsi_shell=no
  7504. +( _lt_dummy="a/b/c"
  7505. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  7506. + = c,a/b,, \
  7507. + && eval 'test $(( 1 + 1 )) -eq 2 \
  7508. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  7509. + && xsi_shell=yes
  7510. +{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
  7511. +$as_echo "$xsi_shell" >&6; }
  7512. -cat >>confdefs.h <<\_ACEOF
  7513. -#define major_t unsigned int
  7514. -_ACEOF
  7515. -fi
  7516. +{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  7517. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  7518. +lt_shell_append=no
  7519. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  7520. + >/dev/null 2>&1 \
  7521. + && lt_shell_append=yes
  7522. +{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  7523. +$as_echo "$lt_shell_append" >&6; }
  7524. -echo "$as_me:$LINENO: checking for minor_t" >&5
  7525. -echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
  7526. -if test "${ac_cv_type_minor_t+set}" = set; then
  7527. - echo $ECHO_N "(cached) $ECHO_C" >&6
  7528. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7529. + lt_unset=unset
  7530. else
  7531. - cat >conftest.$ac_ext <<_ACEOF
  7532. -#line $LINENO "configure"
  7533. -/* confdefs.h. */
  7534. -_ACEOF
  7535. -cat confdefs.h >>conftest.$ac_ext
  7536. -cat >>conftest.$ac_ext <<_ACEOF
  7537. -/* end confdefs.h. */
  7538. -#include <sys/types.h>
  7539. - #ifdef MAJOR_IN_MKDEV
  7540. - # include <sys/mkdev.h>
  7541. - #else
  7542. - # ifdef MAJOR_IN_SYSMACROS
  7543. - # include <sys/sysmacros.h>
  7544. - # endif
  7545. - #endif
  7546. + lt_unset=false
  7547. +fi
  7548. -int
  7549. -main ()
  7550. -{
  7551. -if ((minor_t *) 0)
  7552. - return 0;
  7553. -if (sizeof (minor_t))
  7554. - return 0;
  7555. - ;
  7556. - return 0;
  7557. -}
  7558. -_ACEOF
  7559. -rm -f conftest.$ac_objext
  7560. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7561. - (eval $ac_compile) 2>&5
  7562. - ac_status=$?
  7563. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7564. - (exit $ac_status); } &&
  7565. - { ac_try='test -s conftest.$ac_objext'
  7566. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7567. - (eval $ac_try) 2>&5
  7568. - ac_status=$?
  7569. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7570. - (exit $ac_status); }; }; then
  7571. - ac_cv_type_minor_t=yes
  7572. -else
  7573. - echo "$as_me: failed program was:" >&5
  7574. -sed 's/^/| /' conftest.$ac_ext >&5
  7575. -ac_cv_type_minor_t=no
  7576. -fi
  7577. -rm -f conftest.$ac_objext conftest.$ac_ext
  7578. -fi
  7579. -echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
  7580. -echo "${ECHO_T}$ac_cv_type_minor_t" >&6
  7581. -if test $ac_cv_type_minor_t = yes; then
  7582. -cat >>confdefs.h <<_ACEOF
  7583. -#define HAVE_MINOR_T 1
  7584. -_ACEOF
  7585. +# test EBCDIC or ASCII
  7586. +case `echo X|tr X '\101'` in
  7587. + A) # ASCII based system
  7588. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7589. + lt_SP2NL='tr \040 \012'
  7590. + lt_NL2SP='tr \015\012 \040\040'
  7591. + ;;
  7592. + *) # EBCDIC based system
  7593. + lt_SP2NL='tr \100 \n'
  7594. + lt_NL2SP='tr \r\n \100\100'
  7595. + ;;
  7596. +esac
  7597. -else
  7598. -cat >>confdefs.h <<\_ACEOF
  7599. -#define minor_t unsigned int
  7600. -_ACEOF
  7601. -fi
  7602. -echo "$as_me:$LINENO: checking for dev_t" >&5
  7603. -echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
  7604. -if test "${ac_cv_type_dev_t+set}" = set; then
  7605. - echo $ECHO_N "(cached) $ECHO_C" >&6
  7606. -else
  7607. - cat >conftest.$ac_ext <<_ACEOF
  7608. -#line $LINENO "configure"
  7609. -/* confdefs.h. */
  7610. -_ACEOF
  7611. -cat confdefs.h >>conftest.$ac_ext
  7612. -cat >>conftest.$ac_ext <<_ACEOF
  7613. -/* end confdefs.h. */
  7614. -#include <sys/types.h>
  7615. - #ifdef MAJOR_IN_MKDEV
  7616. - # include <sys/mkdev.h>
  7617. - #else
  7618. - # ifdef MAJOR_IN_SYSMACROS
  7619. - # include <sys/sysmacros.h>
  7620. - # endif
  7621. - #endif
  7622. -int
  7623. -main ()
  7624. -{
  7625. -if ((dev_t *) 0)
  7626. - return 0;
  7627. -if (sizeof (dev_t))
  7628. - return 0;
  7629. - ;
  7630. - return 0;
  7631. -}
  7632. -_ACEOF
  7633. -rm -f conftest.$ac_objext
  7634. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7635. - (eval $ac_compile) 2>&5
  7636. - ac_status=$?
  7637. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7638. - (exit $ac_status); } &&
  7639. - { ac_try='test -s conftest.$ac_objext'
  7640. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7641. - (eval $ac_try) 2>&5
  7642. - ac_status=$?
  7643. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7644. - (exit $ac_status); }; }; then
  7645. - ac_cv_type_dev_t=yes
  7646. -else
  7647. - echo "$as_me: failed program was:" >&5
  7648. -sed 's/^/| /' conftest.$ac_ext >&5
  7649. +{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  7650. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  7651. +if test "${lt_cv_ld_reload_flag+set}" = set; then
  7652. + $as_echo_n "(cached) " >&6
  7653. +else
  7654. + lt_cv_ld_reload_flag='-r'
  7655. +fi
  7656. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  7657. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  7658. +reload_flag=$lt_cv_ld_reload_flag
  7659. +case $reload_flag in
  7660. +"" | " "*) ;;
  7661. +*) reload_flag=" $reload_flag" ;;
  7662. +esac
  7663. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7664. +case $host_os in
  7665. + darwin*)
  7666. + if test "$GCC" = yes; then
  7667. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  7668. + else
  7669. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7670. + fi
  7671. + ;;
  7672. +esac
  7673. -ac_cv_type_dev_t=no
  7674. -fi
  7675. -rm -f conftest.$ac_objext conftest.$ac_ext
  7676. -fi
  7677. -echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
  7678. -echo "${ECHO_T}$ac_cv_type_dev_t" >&6
  7679. -if test $ac_cv_type_dev_t = yes; then
  7680. -cat >>confdefs.h <<_ACEOF
  7681. -#define HAVE_DEV_T 1
  7682. -_ACEOF
  7683. -else
  7684. -cat >>confdefs.h <<\_ACEOF
  7685. -#define dev_t unsigned long
  7686. -_ACEOF
  7687. -fi
  7688. -echo "$as_me:$LINENO: checking for socklen_t" >&5
  7689. -echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  7690. -if test "${ac_cv_type_socklen_t+set}" = set; then
  7691. - echo $ECHO_N "(cached) $ECHO_C" >&6
  7692. +
  7693. +if test -n "$ac_tool_prefix"; then
  7694. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7695. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7696. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7697. +$as_echo_n "checking for $ac_word... " >&6; }
  7698. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  7699. + $as_echo_n "(cached) " >&6
  7700. else
  7701. - cat >conftest.$ac_ext <<_ACEOF
  7702. -#line $LINENO "configure"
  7703. -/* confdefs.h. */
  7704. -_ACEOF
  7705. -cat confdefs.h >>conftest.$ac_ext
  7706. -cat >>conftest.$ac_ext <<_ACEOF
  7707. -/* end confdefs.h. */
  7708. -#include <sys/types.h>
  7709. - #include <sys/socket.h>
  7710. + if test -n "$OBJDUMP"; then
  7711. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7712. +else
  7713. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7714. +for as_dir in $PATH
  7715. +do
  7716. + IFS=$as_save_IFS
  7717. + test -z "$as_dir" && as_dir=.
  7718. + for ac_exec_ext in '' $ac_executable_extensions; do
  7719. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7720. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7721. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7722. + break 2
  7723. + fi
  7724. +done
  7725. +done
  7726. +IFS=$as_save_IFS
  7727. +fi
  7728. +fi
  7729. +OBJDUMP=$ac_cv_prog_OBJDUMP
  7730. +if test -n "$OBJDUMP"; then
  7731. + { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  7732. +$as_echo "$OBJDUMP" >&6; }
  7733. +else
  7734. + { $as_echo "$as_me:$LINENO: result: no" >&5
  7735. +$as_echo "no" >&6; }
  7736. +fi
  7737. -int
  7738. -main ()
  7739. -{
  7740. -if ((socklen_t *) 0)
  7741. - return 0;
  7742. -if (sizeof (socklen_t))
  7743. - return 0;
  7744. - ;
  7745. - return 0;
  7746. -}
  7747. -_ACEOF
  7748. -rm -f conftest.$ac_objext
  7749. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7750. - (eval $ac_compile) 2>&5
  7751. - ac_status=$?
  7752. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7753. - (exit $ac_status); } &&
  7754. - { ac_try='test -s conftest.$ac_objext'
  7755. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7756. - (eval $ac_try) 2>&5
  7757. - ac_status=$?
  7758. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7759. - (exit $ac_status); }; }; then
  7760. - ac_cv_type_socklen_t=yes
  7761. +fi
  7762. +if test -z "$ac_cv_prog_OBJDUMP"; then
  7763. + ac_ct_OBJDUMP=$OBJDUMP
  7764. + # Extract the first word of "objdump", so it can be a program name with args.
  7765. +set dummy objdump; ac_word=$2
  7766. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7767. +$as_echo_n "checking for $ac_word... " >&6; }
  7768. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  7769. + $as_echo_n "(cached) " >&6
  7770. else
  7771. - echo "$as_me: failed program was:" >&5
  7772. -sed 's/^/| /' conftest.$ac_ext >&5
  7773. + if test -n "$ac_ct_OBJDUMP"; then
  7774. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7775. +else
  7776. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7777. +for as_dir in $PATH
  7778. +do
  7779. + IFS=$as_save_IFS
  7780. + test -z "$as_dir" && as_dir=.
  7781. + for ac_exec_ext in '' $ac_executable_extensions; do
  7782. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7783. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7784. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7785. + break 2
  7786. + fi
  7787. +done
  7788. +done
  7789. +IFS=$as_save_IFS
  7790. -ac_cv_type_socklen_t=no
  7791. fi
  7792. -rm -f conftest.$ac_objext conftest.$ac_ext
  7793. fi
  7794. -echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
  7795. -echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
  7796. -if test $ac_cv_type_socklen_t = yes; then
  7797. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7798. +if test -n "$ac_ct_OBJDUMP"; then
  7799. + { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  7800. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  7801. +else
  7802. + { $as_echo "$as_me:$LINENO: result: no" >&5
  7803. +$as_echo "no" >&6; }
  7804. +fi
  7805. -cat >>confdefs.h <<_ACEOF
  7806. -#define HAVE_SOCKLEN_T 1
  7807. -_ACEOF
  7808. + if test "x$ac_ct_OBJDUMP" = x; then
  7809. + OBJDUMP="false"
  7810. + else
  7811. + case $cross_compiling:$ac_tool_warned in
  7812. +yes:)
  7813. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  7814. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7815. +ac_tool_warned=yes ;;
  7816. +esac
  7817. + OBJDUMP=$ac_ct_OBJDUMP
  7818. + fi
  7819. +else
  7820. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  7821. +fi
  7822. +test -z "$OBJDUMP" && OBJDUMP=objdump
  7823. -else
  7824. -cat >>confdefs.h <<\_ACEOF
  7825. -#define socklen_t unsigned long
  7826. -_ACEOF
  7827. -fi
  7828. -echo "$as_me:$LINENO: checking for uint64_t" >&5
  7829. -echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
  7830. -if test "${ac_cv_type_uint64_t+set}" = set; then
  7831. - echo $ECHO_N "(cached) $ECHO_C" >&6
  7832. -else
  7833. - cat >conftest.$ac_ext <<_ACEOF
  7834. -#line $LINENO "configure"
  7835. -/* confdefs.h. */
  7836. -_ACEOF
  7837. -cat confdefs.h >>conftest.$ac_ext
  7838. -cat >>conftest.$ac_ext <<_ACEOF
  7839. -/* end confdefs.h. */
  7840. -$ac_includes_default
  7841. -int
  7842. -main ()
  7843. -{
  7844. -if ((uint64_t *) 0)
  7845. - return 0;
  7846. -if (sizeof (uint64_t))
  7847. - return 0;
  7848. - ;
  7849. - return 0;
  7850. -}
  7851. -_ACEOF
  7852. -rm -f conftest.$ac_objext
  7853. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7854. - (eval $ac_compile) 2>&5
  7855. - ac_status=$?
  7856. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7857. - (exit $ac_status); } &&
  7858. - { ac_try='test -s conftest.$ac_objext'
  7859. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7860. - (eval $ac_try) 2>&5
  7861. - ac_status=$?
  7862. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7863. - (exit $ac_status); }; }; then
  7864. - ac_cv_type_uint64_t=yes
  7865. -else
  7866. - echo "$as_me: failed program was:" >&5
  7867. -sed 's/^/| /' conftest.$ac_ext >&5
  7868. -ac_cv_type_uint64_t=no
  7869. -fi
  7870. -rm -f conftest.$ac_objext conftest.$ac_ext
  7871. -fi
  7872. -echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
  7873. -echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
  7874. -if test $ac_cv_type_uint64_t = yes; then
  7875. -cat >>confdefs.h <<_ACEOF
  7876. -#define HAVE_UINT64_T 1
  7877. -_ACEOF
  7878. +{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  7879. +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  7880. +if test "${lt_cv_deplibs_check_method+set}" = set; then
  7881. + $as_echo_n "(cached) " >&6
  7882. else
  7883. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  7884. +lt_cv_file_magic_test_file=
  7885. +lt_cv_deplibs_check_method='unknown'
  7886. +# Need to set the preceding variable on all platforms that support
  7887. +# interlibrary dependencies.
  7888. +# 'none' -- dependencies not supported.
  7889. +# `unknown' -- same as none, but documents that we really don't know.
  7890. +# 'pass_all' -- all dependencies passed with no checks.
  7891. +# 'test_compile' -- check by making test program.
  7892. +# 'file_magic [[regex]]' -- check by looking for files in library path
  7893. +# which responds to the $file_magic_cmd with a given extended regex.
  7894. +# If you have `file' or equivalent on your system and you're not sure
  7895. +# whether `pass_all' will *always* work, you probably want this one.
  7896. -cat >>confdefs.h <<\_ACEOF
  7897. -#define uint64_t long long
  7898. -_ACEOF
  7899. +case $host_os in
  7900. +aix[4-9]*)
  7901. + lt_cv_deplibs_check_method=pass_all
  7902. + ;;
  7903. -fi
  7904. +beos*)
  7905. + lt_cv_deplibs_check_method=pass_all
  7906. + ;;
  7907. +bsdi[45]*)
  7908. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  7909. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  7910. + lt_cv_file_magic_test_file=/shlib/libc.so
  7911. + ;;
  7912. -echo "$as_me:$LINENO: checking for mode_t" >&5
  7913. -echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
  7914. -if test "${ac_cv_type_mode_t+set}" = set; then
  7915. - echo $ECHO_N "(cached) $ECHO_C" >&6
  7916. -else
  7917. - cat >conftest.$ac_ext <<_ACEOF
  7918. -#line $LINENO "configure"
  7919. -/* confdefs.h. */
  7920. -_ACEOF
  7921. -cat confdefs.h >>conftest.$ac_ext
  7922. -cat >>conftest.$ac_ext <<_ACEOF
  7923. -/* end confdefs.h. */
  7924. -$ac_includes_default
  7925. -int
  7926. -main ()
  7927. -{
  7928. -if ((mode_t *) 0)
  7929. - return 0;
  7930. -if (sizeof (mode_t))
  7931. - return 0;
  7932. - ;
  7933. - return 0;
  7934. -}
  7935. -_ACEOF
  7936. -rm -f conftest.$ac_objext
  7937. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7938. - (eval $ac_compile) 2>&5
  7939. - ac_status=$?
  7940. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7941. - (exit $ac_status); } &&
  7942. - { ac_try='test -s conftest.$ac_objext'
  7943. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7944. - (eval $ac_try) 2>&5
  7945. - ac_status=$?
  7946. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7947. - (exit $ac_status); }; }; then
  7948. - ac_cv_type_mode_t=yes
  7949. -else
  7950. - echo "$as_me: failed program was:" >&5
  7951. -sed 's/^/| /' conftest.$ac_ext >&5
  7952. +cygwin*)
  7953. + # func_win32_libid is a shell function defined in ltmain.sh
  7954. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7955. + lt_cv_file_magic_cmd='func_win32_libid'
  7956. + ;;
  7957. -ac_cv_type_mode_t=no
  7958. -fi
  7959. -rm -f conftest.$ac_objext conftest.$ac_ext
  7960. -fi
  7961. -echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  7962. -echo "${ECHO_T}$ac_cv_type_mode_t" >&6
  7963. -if test $ac_cv_type_mode_t = yes; then
  7964. - :
  7965. -else
  7966. +mingw* | pw32*)
  7967. + # Base MSYS/MinGW do not provide the 'file' command needed by
  7968. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  7969. + # unless we find 'file', for example because we are cross-compiling.
  7970. + if ( file / ) >/dev/null 2>&1; then
  7971. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7972. + lt_cv_file_magic_cmd='func_win32_libid'
  7973. + else
  7974. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  7975. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  7976. + fi
  7977. + ;;
  7978. -cat >>confdefs.h <<_ACEOF
  7979. -#define mode_t int
  7980. -_ACEOF
  7981. +cegcc)
  7982. + # use the weaker test based on 'objdump'. See mingw*.
  7983. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  7984. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  7985. + ;;
  7986. +
  7987. +darwin* | rhapsody*)
  7988. + lt_cv_deplibs_check_method=pass_all
  7989. + ;;
  7990. +
  7991. +freebsd* | dragonfly*)
  7992. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7993. + case $host_cpu in
  7994. + i*86 )
  7995. + # Not sure whether the presence of OpenBSD here was a mistake.
  7996. + # Let's accept both of them until this is cleared up.
  7997. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  7998. + lt_cv_file_magic_cmd=/usr/bin/file
  7999. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  8000. + ;;
  8001. + esac
  8002. + else
  8003. + lt_cv_deplibs_check_method=pass_all
  8004. + fi
  8005. + ;;
  8006. +
  8007. +gnu*)
  8008. + lt_cv_deplibs_check_method=pass_all
  8009. + ;;
  8010. +
  8011. +hpux10.20* | hpux11*)
  8012. + lt_cv_file_magic_cmd=/usr/bin/file
  8013. + case $host_cpu in
  8014. + ia64*)
  8015. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  8016. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  8017. + ;;
  8018. + hppa*64*)
  8019. + 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]'
  8020. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  8021. + ;;
  8022. + *)
  8023. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  8024. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  8025. + ;;
  8026. + esac
  8027. + ;;
  8028. +
  8029. +interix[3-9]*)
  8030. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  8031. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  8032. + ;;
  8033. +
  8034. +irix5* | irix6* | nonstopux*)
  8035. + case $LD in
  8036. + *-32|*"-32 ") libmagic=32-bit;;
  8037. + *-n32|*"-n32 ") libmagic=N32;;
  8038. + *-64|*"-64 ") libmagic=64-bit;;
  8039. + *) libmagic=never-match;;
  8040. + esac
  8041. + lt_cv_deplibs_check_method=pass_all
  8042. + ;;
  8043. +
  8044. +# This must be Linux ELF.
  8045. +linux* | k*bsd*-gnu)
  8046. + lt_cv_deplibs_check_method=pass_all
  8047. + ;;
  8048. +
  8049. +netbsd* | netbsdelf*-gnu)
  8050. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  8051. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  8052. + else
  8053. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  8054. + fi
  8055. + ;;
  8056. +
  8057. +newos6*)
  8058. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  8059. + lt_cv_file_magic_cmd=/usr/bin/file
  8060. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  8061. + ;;
  8062. +
  8063. +*nto* | *qnx*)
  8064. + lt_cv_deplibs_check_method=pass_all
  8065. + ;;
  8066. +
  8067. +openbsd*)
  8068. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8069. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  8070. + else
  8071. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  8072. + fi
  8073. + ;;
  8074. +
  8075. +osf3* | osf4* | osf5*)
  8076. + lt_cv_deplibs_check_method=pass_all
  8077. + ;;
  8078. +
  8079. +rdos*)
  8080. + lt_cv_deplibs_check_method=pass_all
  8081. + ;;
  8082. +
  8083. +solaris*)
  8084. + lt_cv_deplibs_check_method=pass_all
  8085. + ;;
  8086. +
  8087. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8088. + lt_cv_deplibs_check_method=pass_all
  8089. + ;;
  8090. +
  8091. +sysv4 | sysv4.3*)
  8092. + case $host_vendor in
  8093. + motorola)
  8094. + 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]'
  8095. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  8096. + ;;
  8097. + ncr)
  8098. + lt_cv_deplibs_check_method=pass_all
  8099. + ;;
  8100. + sequent)
  8101. + lt_cv_file_magic_cmd='/bin/file'
  8102. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  8103. + ;;
  8104. + sni)
  8105. + lt_cv_file_magic_cmd='/bin/file'
  8106. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  8107. + lt_cv_file_magic_test_file=/lib/libc.so
  8108. + ;;
  8109. + siemens)
  8110. + lt_cv_deplibs_check_method=pass_all
  8111. + ;;
  8112. + pc)
  8113. + lt_cv_deplibs_check_method=pass_all
  8114. + ;;
  8115. + esac
  8116. + ;;
  8117. +
  8118. +tpf*)
  8119. + lt_cv_deplibs_check_method=pass_all
  8120. + ;;
  8121. +esac
  8122. fi
  8123. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  8124. +$as_echo "$lt_cv_deplibs_check_method" >&6; }
  8125. +file_magic_cmd=$lt_cv_file_magic_cmd
  8126. +deplibs_check_method=$lt_cv_deplibs_check_method
  8127. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  8128. -echo "$as_me:$LINENO: checking for off_t" >&5
  8129. -echo $ECHO_N "checking for off_t... $ECHO_C" >&6
  8130. -if test "${ac_cv_type_off_t+set}" = set; then
  8131. - echo $ECHO_N "(cached) $ECHO_C" >&6
  8132. +
  8133. +
  8134. +
  8135. +
  8136. +
  8137. +
  8138. +
  8139. +
  8140. +
  8141. +
  8142. +
  8143. +if test -n "$ac_tool_prefix"; then
  8144. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  8145. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  8146. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8147. +$as_echo_n "checking for $ac_word... " >&6; }
  8148. +if test "${ac_cv_prog_AR+set}" = set; then
  8149. + $as_echo_n "(cached) " >&6
  8150. else
  8151. - cat >conftest.$ac_ext <<_ACEOF
  8152. -#line $LINENO "configure"
  8153. -/* confdefs.h. */
  8154. -_ACEOF
  8155. -cat confdefs.h >>conftest.$ac_ext
  8156. -cat >>conftest.$ac_ext <<_ACEOF
  8157. -/* end confdefs.h. */
  8158. -$ac_includes_default
  8159. -int
  8160. -main ()
  8161. -{
  8162. -if ((off_t *) 0)
  8163. - return 0;
  8164. -if (sizeof (off_t))
  8165. - return 0;
  8166. - ;
  8167. - return 0;
  8168. -}
  8169. -_ACEOF
  8170. -rm -f conftest.$ac_objext
  8171. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8172. - (eval $ac_compile) 2>&5
  8173. - ac_status=$?
  8174. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8175. - (exit $ac_status); } &&
  8176. - { ac_try='test -s conftest.$ac_objext'
  8177. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8178. - (eval $ac_try) 2>&5
  8179. - ac_status=$?
  8180. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8181. - (exit $ac_status); }; }; then
  8182. - ac_cv_type_off_t=yes
  8183. + if test -n "$AR"; then
  8184. + ac_cv_prog_AR="$AR" # Let the user override the test.
  8185. else
  8186. - echo "$as_me: failed program was:" >&5
  8187. -sed 's/^/| /' conftest.$ac_ext >&5
  8188. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8189. +for as_dir in $PATH
  8190. +do
  8191. + IFS=$as_save_IFS
  8192. + test -z "$as_dir" && as_dir=.
  8193. + for ac_exec_ext in '' $ac_executable_extensions; do
  8194. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8195. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  8196. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8197. + break 2
  8198. + fi
  8199. +done
  8200. +done
  8201. +IFS=$as_save_IFS
  8202. -ac_cv_type_off_t=no
  8203. fi
  8204. -rm -f conftest.$ac_objext conftest.$ac_ext
  8205. fi
  8206. -echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  8207. -echo "${ECHO_T}$ac_cv_type_off_t" >&6
  8208. -if test $ac_cv_type_off_t = yes; then
  8209. - :
  8210. +AR=$ac_cv_prog_AR
  8211. +if test -n "$AR"; then
  8212. + { $as_echo "$as_me:$LINENO: result: $AR" >&5
  8213. +$as_echo "$AR" >&6; }
  8214. else
  8215. + { $as_echo "$as_me:$LINENO: result: no" >&5
  8216. +$as_echo "no" >&6; }
  8217. +fi
  8218. -cat >>confdefs.h <<_ACEOF
  8219. -#define off_t long
  8220. -_ACEOF
  8221. fi
  8222. -
  8223. -echo "$as_me:$LINENO: checking for size_t" >&5
  8224. -echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  8225. -if test "${ac_cv_type_size_t+set}" = set; then
  8226. - echo $ECHO_N "(cached) $ECHO_C" >&6
  8227. +if test -z "$ac_cv_prog_AR"; then
  8228. + ac_ct_AR=$AR
  8229. + # Extract the first word of "ar", so it can be a program name with args.
  8230. +set dummy ar; ac_word=$2
  8231. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8232. +$as_echo_n "checking for $ac_word... " >&6; }
  8233. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  8234. + $as_echo_n "(cached) " >&6
  8235. else
  8236. - cat >conftest.$ac_ext <<_ACEOF
  8237. -#line $LINENO "configure"
  8238. -/* confdefs.h. */
  8239. -_ACEOF
  8240. -cat confdefs.h >>conftest.$ac_ext
  8241. -cat >>conftest.$ac_ext <<_ACEOF
  8242. -/* end confdefs.h. */
  8243. -$ac_includes_default
  8244. -int
  8245. -main ()
  8246. -{
  8247. -if ((size_t *) 0)
  8248. - return 0;
  8249. -if (sizeof (size_t))
  8250. - return 0;
  8251. - ;
  8252. - return 0;
  8253. -}
  8254. -_ACEOF
  8255. -rm -f conftest.$ac_objext
  8256. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8257. - (eval $ac_compile) 2>&5
  8258. - ac_status=$?
  8259. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8260. - (exit $ac_status); } &&
  8261. - { ac_try='test -s conftest.$ac_objext'
  8262. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8263. - (eval $ac_try) 2>&5
  8264. - ac_status=$?
  8265. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8266. - (exit $ac_status); }; }; then
  8267. - ac_cv_type_size_t=yes
  8268. + if test -n "$ac_ct_AR"; then
  8269. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  8270. else
  8271. - echo "$as_me: failed program was:" >&5
  8272. -sed 's/^/| /' conftest.$ac_ext >&5
  8273. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8274. +for as_dir in $PATH
  8275. +do
  8276. + IFS=$as_save_IFS
  8277. + test -z "$as_dir" && as_dir=.
  8278. + for ac_exec_ext in '' $ac_executable_extensions; do
  8279. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8280. + ac_cv_prog_ac_ct_AR="ar"
  8281. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8282. + break 2
  8283. + fi
  8284. +done
  8285. +done
  8286. +IFS=$as_save_IFS
  8287. -ac_cv_type_size_t=no
  8288. fi
  8289. -rm -f conftest.$ac_objext conftest.$ac_ext
  8290. fi
  8291. -echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  8292. -echo "${ECHO_T}$ac_cv_type_size_t" >&6
  8293. -if test $ac_cv_type_size_t = yes; then
  8294. - :
  8295. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  8296. +if test -n "$ac_ct_AR"; then
  8297. + { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  8298. +$as_echo "$ac_ct_AR" >&6; }
  8299. else
  8300. -
  8301. -cat >>confdefs.h <<_ACEOF
  8302. -#define size_t unsigned
  8303. -_ACEOF
  8304. -
  8305. + { $as_echo "$as_me:$LINENO: result: no" >&5
  8306. +$as_echo "no" >&6; }
  8307. fi
  8308. -echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  8309. -echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  8310. -if test "${ac_cv_type_uid_t+set}" = set; then
  8311. - echo $ECHO_N "(cached) $ECHO_C" >&6
  8312. -else
  8313. - cat >conftest.$ac_ext <<_ACEOF
  8314. -#line $LINENO "configure"
  8315. -/* confdefs.h. */
  8316. -_ACEOF
  8317. -cat confdefs.h >>conftest.$ac_ext
  8318. -cat >>conftest.$ac_ext <<_ACEOF
  8319. -/* end confdefs.h. */
  8320. -#include <sys/types.h>
  8321. -
  8322. -_ACEOF
  8323. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8324. - $EGREP "uid_t" >/dev/null 2>&1; then
  8325. - ac_cv_type_uid_t=yes
  8326. + if test "x$ac_ct_AR" = x; then
  8327. + AR="false"
  8328. + else
  8329. + case $cross_compiling:$ac_tool_warned in
  8330. +yes:)
  8331. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  8332. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8333. +ac_tool_warned=yes ;;
  8334. +esac
  8335. + AR=$ac_ct_AR
  8336. + fi
  8337. else
  8338. - ac_cv_type_uid_t=no
  8339. + AR="$ac_cv_prog_AR"
  8340. fi
  8341. -rm -f conftest*
  8342. -fi
  8343. -echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  8344. -echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  8345. -if test $ac_cv_type_uid_t = no; then
  8346. +test -z "$AR" && AR=ar
  8347. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  8348. -cat >>confdefs.h <<\_ACEOF
  8349. -#define uid_t int
  8350. -_ACEOF
  8351. -cat >>confdefs.h <<\_ACEOF
  8352. -#define gid_t int
  8353. -_ACEOF
  8354. -fi
  8355. -echo "$as_me:$LINENO: checking for nlink_t" >&5
  8356. -echo $ECHO_N "checking for nlink_t... $ECHO_C" >&6
  8357. -if test "${ac_cv_type_nlink_t+set}" = set; then
  8358. - echo $ECHO_N "(cached) $ECHO_C" >&6
  8359. +
  8360. +
  8361. +
  8362. +
  8363. +
  8364. +
  8365. +if test -n "$ac_tool_prefix"; then
  8366. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  8367. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  8368. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8369. +$as_echo_n "checking for $ac_word... " >&6; }
  8370. +if test "${ac_cv_prog_STRIP+set}" = set; then
  8371. + $as_echo_n "(cached) " >&6
  8372. else
  8373. - cat >conftest.$ac_ext <<_ACEOF
  8374. -#line $LINENO "configure"
  8375. -/* confdefs.h. */
  8376. -_ACEOF
  8377. -cat confdefs.h >>conftest.$ac_ext
  8378. -cat >>conftest.$ac_ext <<_ACEOF
  8379. -/* end confdefs.h. */
  8380. -$ac_includes_default
  8381. -int
  8382. -main ()
  8383. -{
  8384. -if ((nlink_t *) 0)
  8385. - return 0;
  8386. -if (sizeof (nlink_t))
  8387. - return 0;
  8388. - ;
  8389. - return 0;
  8390. -}
  8391. -_ACEOF
  8392. -rm -f conftest.$ac_objext
  8393. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8394. - (eval $ac_compile) 2>&5
  8395. - ac_status=$?
  8396. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8397. - (exit $ac_status); } &&
  8398. - { ac_try='test -s conftest.$ac_objext'
  8399. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8400. - (eval $ac_try) 2>&5
  8401. - ac_status=$?
  8402. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8403. - (exit $ac_status); }; }; then
  8404. - ac_cv_type_nlink_t=yes
  8405. + if test -n "$STRIP"; then
  8406. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8407. else
  8408. - echo "$as_me: failed program was:" >&5
  8409. -sed 's/^/| /' conftest.$ac_ext >&5
  8410. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8411. +for as_dir in $PATH
  8412. +do
  8413. + IFS=$as_save_IFS
  8414. + test -z "$as_dir" && as_dir=.
  8415. + for ac_exec_ext in '' $ac_executable_extensions; do
  8416. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8417. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  8418. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8419. + break 2
  8420. + fi
  8421. +done
  8422. +done
  8423. +IFS=$as_save_IFS
  8424. -ac_cv_type_nlink_t=no
  8425. fi
  8426. -rm -f conftest.$ac_objext conftest.$ac_ext
  8427. fi
  8428. -echo "$as_me:$LINENO: result: $ac_cv_type_nlink_t" >&5
  8429. -echo "${ECHO_T}$ac_cv_type_nlink_t" >&6
  8430. -if test $ac_cv_type_nlink_t = yes; then
  8431. -
  8432. -cat >>confdefs.h <<_ACEOF
  8433. -#define HAVE_NLINK_T 1
  8434. -_ACEOF
  8435. +STRIP=$ac_cv_prog_STRIP
  8436. +if test -n "$STRIP"; then
  8437. + { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  8438. +$as_echo "$STRIP" >&6; }
  8439. +else
  8440. + { $as_echo "$as_me:$LINENO: result: no" >&5
  8441. +$as_echo "no" >&6; }
  8442. +fi
  8443. +fi
  8444. +if test -z "$ac_cv_prog_STRIP"; then
  8445. + ac_ct_STRIP=$STRIP
  8446. + # Extract the first word of "strip", so it can be a program name with args.
  8447. +set dummy strip; ac_word=$2
  8448. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8449. +$as_echo_n "checking for $ac_word... " >&6; }
  8450. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  8451. + $as_echo_n "(cached) " >&6
  8452. else
  8453. + if test -n "$ac_ct_STRIP"; then
  8454. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  8455. +else
  8456. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8457. +for as_dir in $PATH
  8458. +do
  8459. + IFS=$as_save_IFS
  8460. + test -z "$as_dir" && as_dir=.
  8461. + for ac_exec_ext in '' $ac_executable_extensions; do
  8462. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8463. + ac_cv_prog_ac_ct_STRIP="strip"
  8464. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8465. + break 2
  8466. + fi
  8467. +done
  8468. +done
  8469. +IFS=$as_save_IFS
  8470. -cat >>confdefs.h <<\_ACEOF
  8471. -#define nlink_t unsigned short
  8472. -_ACEOF
  8473. -
  8474. +fi
  8475. +fi
  8476. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  8477. +if test -n "$ac_ct_STRIP"; then
  8478. + { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  8479. +$as_echo "$ac_ct_STRIP" >&6; }
  8480. +else
  8481. + { $as_echo "$as_me:$LINENO: result: no" >&5
  8482. +$as_echo "no" >&6; }
  8483. fi
  8484. + if test "x$ac_ct_STRIP" = x; then
  8485. + STRIP=":"
  8486. + else
  8487. + case $cross_compiling:$ac_tool_warned in
  8488. +yes:)
  8489. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  8490. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8491. +ac_tool_warned=yes ;;
  8492. +esac
  8493. + STRIP=$ac_ct_STRIP
  8494. + fi
  8495. +else
  8496. + STRIP="$ac_cv_prog_STRIP"
  8497. +fi
  8498. +test -z "$STRIP" && STRIP=:
  8499. -cat >>confdefs.h <<\_ACEOF
  8500. -#define NEED_BASENAME 1
  8501. -_ACEOF
  8502. -for ac_header in libgen.h
  8503. +if test -n "$ac_tool_prefix"; then
  8504. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  8505. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  8506. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8507. +$as_echo_n "checking for $ac_word... " >&6; }
  8508. +if test "${ac_cv_prog_RANLIB+set}" = set; then
  8509. + $as_echo_n "(cached) " >&6
  8510. +else
  8511. + if test -n "$RANLIB"; then
  8512. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  8513. +else
  8514. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8515. +for as_dir in $PATH
  8516. do
  8517. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8518. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8519. - echo "$as_me:$LINENO: checking for $ac_header" >&5
  8520. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8521. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8522. - echo $ECHO_N "(cached) $ECHO_C" >&6
  8523. + IFS=$as_save_IFS
  8524. + test -z "$as_dir" && as_dir=.
  8525. + for ac_exec_ext in '' $ac_executable_extensions; do
  8526. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8527. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  8528. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8529. + break 2
  8530. + fi
  8531. +done
  8532. +done
  8533. +IFS=$as_save_IFS
  8534. +
  8535. fi
  8536. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8537. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8538. +fi
  8539. +RANLIB=$ac_cv_prog_RANLIB
  8540. +if test -n "$RANLIB"; then
  8541. + { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  8542. +$as_echo "$RANLIB" >&6; }
  8543. else
  8544. - # Is the header compilable?
  8545. -echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8546. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8547. -cat >conftest.$ac_ext <<_ACEOF
  8548. -#line $LINENO "configure"
  8549. -/* confdefs.h. */
  8550. -_ACEOF
  8551. -cat confdefs.h >>conftest.$ac_ext
  8552. -cat >>conftest.$ac_ext <<_ACEOF
  8553. -/* end confdefs.h. */
  8554. -$ac_includes_default
  8555. -#include <$ac_header>
  8556. -_ACEOF
  8557. -rm -f conftest.$ac_objext
  8558. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8559. - (eval $ac_compile) 2>&5
  8560. - ac_status=$?
  8561. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8562. - (exit $ac_status); } &&
  8563. - { ac_try='test -s conftest.$ac_objext'
  8564. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8565. - (eval $ac_try) 2>&5
  8566. - ac_status=$?
  8567. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8568. - (exit $ac_status); }; }; then
  8569. - ac_header_compiler=yes
  8570. + { $as_echo "$as_me:$LINENO: result: no" >&5
  8571. +$as_echo "no" >&6; }
  8572. +fi
  8573. +
  8574. +
  8575. +fi
  8576. +if test -z "$ac_cv_prog_RANLIB"; then
  8577. + ac_ct_RANLIB=$RANLIB
  8578. + # Extract the first word of "ranlib", so it can be a program name with args.
  8579. +set dummy ranlib; ac_word=$2
  8580. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8581. +$as_echo_n "checking for $ac_word... " >&6; }
  8582. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  8583. + $as_echo_n "(cached) " >&6
  8584. else
  8585. - echo "$as_me: failed program was:" >&5
  8586. -sed 's/^/| /' conftest.$ac_ext >&5
  8587. + if test -n "$ac_ct_RANLIB"; then
  8588. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  8589. +else
  8590. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8591. +for as_dir in $PATH
  8592. +do
  8593. + IFS=$as_save_IFS
  8594. + test -z "$as_dir" && as_dir=.
  8595. + for ac_exec_ext in '' $ac_executable_extensions; do
  8596. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8597. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  8598. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8599. + break 2
  8600. + fi
  8601. +done
  8602. +done
  8603. +IFS=$as_save_IFS
  8604. -ac_header_compiler=no
  8605. fi
  8606. -rm -f conftest.$ac_objext conftest.$ac_ext
  8607. -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8608. -echo "${ECHO_T}$ac_header_compiler" >&6
  8609. +fi
  8610. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  8611. +if test -n "$ac_ct_RANLIB"; then
  8612. + { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  8613. +$as_echo "$ac_ct_RANLIB" >&6; }
  8614. +else
  8615. + { $as_echo "$as_me:$LINENO: result: no" >&5
  8616. +$as_echo "no" >&6; }
  8617. +fi
  8618. -# Is the header present?
  8619. -echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8620. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8621. -cat >conftest.$ac_ext <<_ACEOF
  8622. -#line $LINENO "configure"
  8623. -/* confdefs.h. */
  8624. -_ACEOF
  8625. -cat confdefs.h >>conftest.$ac_ext
  8626. -cat >>conftest.$ac_ext <<_ACEOF
  8627. -/* end confdefs.h. */
  8628. -#include <$ac_header>
  8629. -_ACEOF
  8630. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8631. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8632. - ac_status=$?
  8633. - grep -v '^ *+' conftest.er1 >conftest.err
  8634. - rm -f conftest.er1
  8635. - cat conftest.err >&5
  8636. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8637. - (exit $ac_status); } >/dev/null; then
  8638. - if test -s conftest.err; then
  8639. - ac_cpp_err=$ac_c_preproc_warn_flag
  8640. + if test "x$ac_ct_RANLIB" = x; then
  8641. + RANLIB=":"
  8642. else
  8643. - ac_cpp_err=
  8644. + case $cross_compiling:$ac_tool_warned in
  8645. +yes:)
  8646. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  8647. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8648. +ac_tool_warned=yes ;;
  8649. +esac
  8650. + RANLIB=$ac_ct_RANLIB
  8651. fi
  8652. else
  8653. - ac_cpp_err=yes
  8654. + RANLIB="$ac_cv_prog_RANLIB"
  8655. fi
  8656. -if test -z "$ac_cpp_err"; then
  8657. - ac_header_preproc=yes
  8658. -else
  8659. - echo "$as_me: failed program was:" >&5
  8660. -sed 's/^/| /' conftest.$ac_ext >&5
  8661. - ac_header_preproc=no
  8662. -fi
  8663. -rm -f conftest.err conftest.$ac_ext
  8664. -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8665. -echo "${ECHO_T}$ac_header_preproc" >&6
  8666. +test -z "$RANLIB" && RANLIB=:
  8667. -# So? What about this header?
  8668. -case $ac_header_compiler:$ac_header_preproc in
  8669. - yes:no )
  8670. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8671. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8672. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8673. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8674. - (
  8675. - cat <<\_ASBOX
  8676. -## ------------------------------------ ##
  8677. -## Report this to bug-autoconf@gnu.org. ##
  8678. -## ------------------------------------ ##
  8679. -_ASBOX
  8680. - ) |
  8681. - sed "s/^/$as_me: WARNING: /" >&2
  8682. +
  8683. +
  8684. +
  8685. +
  8686. +
  8687. +# Determine commands to create old-style static archives.
  8688. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  8689. +old_postinstall_cmds='chmod 644 $oldlib'
  8690. +old_postuninstall_cmds=
  8691. +
  8692. +if test -n "$RANLIB"; then
  8693. + case $host_os in
  8694. + openbsd*)
  8695. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  8696. ;;
  8697. - no:yes )
  8698. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8699. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8700. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8701. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8702. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8703. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8704. - (
  8705. - cat <<\_ASBOX
  8706. -## ------------------------------------ ##
  8707. -## Report this to bug-autoconf@gnu.org. ##
  8708. -## ------------------------------------ ##
  8709. -_ASBOX
  8710. - ) |
  8711. - sed "s/^/$as_me: WARNING: /" >&2
  8712. + *)
  8713. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  8714. ;;
  8715. -esac
  8716. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  8717. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8718. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8719. - echo $ECHO_N "(cached) $ECHO_C" >&6
  8720. -else
  8721. - eval "$as_ac_Header=$ac_header_preproc"
  8722. + esac
  8723. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  8724. fi
  8725. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8726. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8727. -fi
  8728. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8729. - cat >>confdefs.h <<_ACEOF
  8730. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8731. -_ACEOF
  8732. -fi
  8733. -done
  8734. - echo "$as_me:$LINENO: checking for working basename" >&5
  8735. -echo $ECHO_N "checking for working basename... $ECHO_C" >&6
  8736. -if test "${compat_cv_func_basename_works+set}" = set; then
  8737. - echo $ECHO_N "(cached) $ECHO_C" >&6
  8738. -else
  8739. - if test "$cross_compiling" = yes; then
  8740. - compat_cv_func_basename_works=no
  8741. -else
  8742. - cat >conftest.$ac_ext <<_ACEOF
  8743. -#line $LINENO "configure"
  8744. -/* confdefs.h. */
  8745. -_ACEOF
  8746. -cat confdefs.h >>conftest.$ac_ext
  8747. -cat >>conftest.$ac_ext <<_ACEOF
  8748. -/* end confdefs.h. */
  8749. -#include <stdio.h>
  8750. -#ifdef HAVE_LIBGEN_H
  8751. -# include <libgen.h>
  8752. -#endif
  8753. -typedef struct {
  8754. - char *test;
  8755. - char *result;
  8756. -} test_t;
  8757. -const test_t tests[] = {
  8758. - { "/usr/local/foo", "foo" },
  8759. - { "/usr/local/foo/", "foo" },
  8760. - { NULL, NULL }
  8761. -};
  8762. -int main() {
  8763. - char test1[1024];
  8764. - int i;
  8765. - for (i = 0; tests[i].test; i++) {
  8766. - strcpy(test1, tests[i].test);
  8767. - if (strcmp(basename(test1), tests[i].result) ||
  8768. - strcmp(test1, tests[i].test))
  8769. - exit(1);
  8770. - }
  8771. - exit(0);
  8772. -}
  8773. -_ACEOF
  8774. -rm -f conftest$ac_exeext
  8775. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8776. - (eval $ac_link) 2>&5
  8777. - ac_status=$?
  8778. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8779. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8780. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8781. - (eval $ac_try) 2>&5
  8782. - ac_status=$?
  8783. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8784. - (exit $ac_status); }; }; then
  8785. - compat_cv_func_basename_works=yes
  8786. -else
  8787. - echo "$as_me: program exited with status $ac_status" >&5
  8788. -echo "$as_me: failed program was:" >&5
  8789. -sed 's/^/| /' conftest.$ac_ext >&5
  8790. -( exit $ac_status )
  8791. -compat_cv_func_basename_works=no
  8792. -fi
  8793. -rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8794. -fi
  8795. -fi
  8796. -echo "$as_me:$LINENO: result: $compat_cv_func_basename_works" >&5
  8797. -echo "${ECHO_T}$compat_cv_func_basename_works" >&6
  8798. - if test "$compat_cv_func_basename_works" = "yes"; then
  8799. -cat >>confdefs.h <<\_ACEOF
  8800. -#define HAVE_BASENAME 1
  8801. -_ACEOF
  8802. - else
  8803. - LIBOBJS="$LIBOBJS basename.$ac_objext"
  8804. - fi
  8805. -cat >>confdefs.h <<\_ACEOF
  8806. -#define NEED_DIRNAME 1
  8807. -_ACEOF
  8808. -for ac_header in libgen.h
  8809. -do
  8810. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8811. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8812. - echo "$as_me:$LINENO: checking for $ac_header" >&5
  8813. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8814. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8815. - echo $ECHO_N "(cached) $ECHO_C" >&6
  8816. -fi
  8817. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8818. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8819. +
  8820. +
  8821. +
  8822. +
  8823. +
  8824. +
  8825. +
  8826. +
  8827. +
  8828. +
  8829. +
  8830. +
  8831. +
  8832. +# If no C compiler was specified, use CC.
  8833. +LTCC=${LTCC-"$CC"}
  8834. +
  8835. +# If no C compiler flags were specified, use CFLAGS.
  8836. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8837. +
  8838. +# Allow CC to be a program name with arguments.
  8839. +compiler=$CC
  8840. +
  8841. +
  8842. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  8843. +{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  8844. +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  8845. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  8846. + $as_echo_n "(cached) " >&6
  8847. else
  8848. - # Is the header compilable?
  8849. -echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8850. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8851. -cat >conftest.$ac_ext <<_ACEOF
  8852. -#line $LINENO "configure"
  8853. -/* confdefs.h. */
  8854. -_ACEOF
  8855. -cat confdefs.h >>conftest.$ac_ext
  8856. -cat >>conftest.$ac_ext <<_ACEOF
  8857. -/* end confdefs.h. */
  8858. -$ac_includes_default
  8859. -#include <$ac_header>
  8860. -_ACEOF
  8861. -rm -f conftest.$ac_objext
  8862. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8863. +
  8864. +# These are sane defaults that work on at least a few old systems.
  8865. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  8866. +
  8867. +# Character class describing NM global symbol codes.
  8868. +symcode='[BCDEGRST]'
  8869. +
  8870. +# Regexp to match symbols that can be accessed directly from C.
  8871. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  8872. +
  8873. +# Define system-specific variables.
  8874. +case $host_os in
  8875. +aix*)
  8876. + symcode='[BCDT]'
  8877. + ;;
  8878. +cygwin* | mingw* | pw32* | cegcc*)
  8879. + symcode='[ABCDGISTW]'
  8880. + ;;
  8881. +hpux*)
  8882. + if test "$host_cpu" = ia64; then
  8883. + symcode='[ABCDEGRST]'
  8884. + fi
  8885. + ;;
  8886. +irix* | nonstopux*)
  8887. + symcode='[BCDEGRST]'
  8888. + ;;
  8889. +osf*)
  8890. + symcode='[BCDEGQRST]'
  8891. + ;;
  8892. +solaris*)
  8893. + symcode='[BDRT]'
  8894. + ;;
  8895. +sco3.2v5*)
  8896. + symcode='[DT]'
  8897. + ;;
  8898. +sysv4.2uw2*)
  8899. + symcode='[DT]'
  8900. + ;;
  8901. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  8902. + symcode='[ABDT]'
  8903. + ;;
  8904. +sysv4)
  8905. + symcode='[DFNSTU]'
  8906. + ;;
  8907. +esac
  8908. +
  8909. +# If we're using GNU nm, then use its standard symbol codes.
  8910. +case `$NM -V 2>&1` in
  8911. +*GNU* | *'with BFD'*)
  8912. + symcode='[ABCDGIRSTW]' ;;
  8913. +esac
  8914. +
  8915. +# Transform an extracted symbol line into a proper C declaration.
  8916. +# Some systems (esp. on ia64) link data and code symbols differently,
  8917. +# so use this general approach.
  8918. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8919. +
  8920. +# Transform an extracted symbol line into symbol name and symbol address
  8921. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  8922. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  8923. +
  8924. +# Handle CRLF in mingw tool chain
  8925. +opt_cr=
  8926. +case $build_os in
  8927. +mingw*)
  8928. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  8929. + ;;
  8930. +esac
  8931. +
  8932. +# Try without a prefix underscore, then with it.
  8933. +for ac_symprfx in "" "_"; do
  8934. +
  8935. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  8936. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  8937. +
  8938. + # Write the raw and C identifiers.
  8939. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8940. + # Fake it for dumpbin and say T for any non-static function
  8941. + # and D for any global variable.
  8942. + # Also find C++ and __fastcall symbols from MSVC++,
  8943. + # which start with @ or ?.
  8944. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  8945. +" {last_section=section; section=\$ 3};"\
  8946. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  8947. +" \$ 0!~/External *\|/{next};"\
  8948. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  8949. +" {if(hide[section]) next};"\
  8950. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  8951. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  8952. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  8953. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  8954. +" ' prfx=^$ac_symprfx"
  8955. + else
  8956. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  8957. + fi
  8958. +
  8959. + # Check to see that the pipe works correctly.
  8960. + pipe_works=no
  8961. +
  8962. + rm -f conftest*
  8963. + cat > conftest.$ac_ext <<_LT_EOF
  8964. +#ifdef __cplusplus
  8965. +extern "C" {
  8966. +#endif
  8967. +char nm_test_var;
  8968. +void nm_test_func(void);
  8969. +void nm_test_func(void){}
  8970. +#ifdef __cplusplus
  8971. +}
  8972. +#endif
  8973. +int main(){nm_test_var='a';nm_test_func();return(0);}
  8974. +_LT_EOF
  8975. +
  8976. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8977. (eval $ac_compile) 2>&5
  8978. ac_status=$?
  8979. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8980. - (exit $ac_status); } &&
  8981. - { ac_try='test -s conftest.$ac_objext'
  8982. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8983. - (eval $ac_try) 2>&5
  8984. - ac_status=$?
  8985. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8986. - (exit $ac_status); }; }; then
  8987. - ac_header_compiler=yes
  8988. -else
  8989. - echo "$as_me: failed program was:" >&5
  8990. -sed 's/^/| /' conftest.$ac_ext >&5
  8991. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8992. + (exit $ac_status); }; then
  8993. + # Now try to grab the symbols.
  8994. + nlist=conftest.nm
  8995. + if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  8996. + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  8997. + ac_status=$?
  8998. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8999. + (exit $ac_status); } && test -s "$nlist"; then
  9000. + # Try sorting and uniquifying the output.
  9001. + if sort "$nlist" | uniq > "$nlist"T; then
  9002. + mv -f "$nlist"T "$nlist"
  9003. + else
  9004. + rm -f "$nlist"T
  9005. + fi
  9006. -ac_header_compiler=no
  9007. -fi
  9008. -rm -f conftest.$ac_objext conftest.$ac_ext
  9009. -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9010. -echo "${ECHO_T}$ac_header_compiler" >&6
  9011. + # Make sure that we snagged all the symbols we need.
  9012. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  9013. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  9014. + cat <<_LT_EOF > conftest.$ac_ext
  9015. +#ifdef __cplusplus
  9016. +extern "C" {
  9017. +#endif
  9018. -# Is the header present?
  9019. -echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9020. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9021. -cat >conftest.$ac_ext <<_ACEOF
  9022. -#line $LINENO "configure"
  9023. -/* confdefs.h. */
  9024. -_ACEOF
  9025. -cat confdefs.h >>conftest.$ac_ext
  9026. -cat >>conftest.$ac_ext <<_ACEOF
  9027. -/* end confdefs.h. */
  9028. -#include <$ac_header>
  9029. -_ACEOF
  9030. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9031. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9032. +_LT_EOF
  9033. + # Now generate the symbol file.
  9034. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  9035. +
  9036. + cat <<_LT_EOF >> conftest.$ac_ext
  9037. +
  9038. +/* The mapping between symbol names and symbols. */
  9039. +const struct {
  9040. + const char *name;
  9041. + void *address;
  9042. +}
  9043. +lt__PROGRAM__LTX_preloaded_symbols[] =
  9044. +{
  9045. + { "@PROGRAM@", (void *) 0 },
  9046. +_LT_EOF
  9047. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  9048. + cat <<\_LT_EOF >> conftest.$ac_ext
  9049. + {0, (void *) 0}
  9050. +};
  9051. +
  9052. +/* This works around a problem in FreeBSD linker */
  9053. +#ifdef FREEBSD_WORKAROUND
  9054. +static const void *lt_preloaded_setup() {
  9055. + return lt__PROGRAM__LTX_preloaded_symbols;
  9056. +}
  9057. +#endif
  9058. +
  9059. +#ifdef __cplusplus
  9060. +}
  9061. +#endif
  9062. +_LT_EOF
  9063. + # Now try linking the two files.
  9064. + mv conftest.$ac_objext conftstm.$ac_objext
  9065. + lt_save_LIBS="$LIBS"
  9066. + lt_save_CFLAGS="$CFLAGS"
  9067. + LIBS="conftstm.$ac_objext"
  9068. + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  9069. + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9070. + (eval $ac_link) 2>&5
  9071. ac_status=$?
  9072. - grep -v '^ *+' conftest.er1 >conftest.err
  9073. - rm -f conftest.er1
  9074. - cat conftest.err >&5
  9075. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9076. - (exit $ac_status); } >/dev/null; then
  9077. - if test -s conftest.err; then
  9078. - ac_cpp_err=$ac_c_preproc_warn_flag
  9079. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9080. + (exit $ac_status); } && test -s conftest${ac_exeext}; then
  9081. + pipe_works=yes
  9082. + fi
  9083. + LIBS="$lt_save_LIBS"
  9084. + CFLAGS="$lt_save_CFLAGS"
  9085. + else
  9086. + echo "cannot find nm_test_func in $nlist" >&5
  9087. + fi
  9088. + else
  9089. + echo "cannot find nm_test_var in $nlist" >&5
  9090. + fi
  9091. + else
  9092. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  9093. + fi
  9094. else
  9095. - ac_cpp_err=
  9096. + echo "$progname: failed program was:" >&5
  9097. + cat conftest.$ac_ext >&5
  9098. fi
  9099. -else
  9100. - ac_cpp_err=yes
  9101. -fi
  9102. -if test -z "$ac_cpp_err"; then
  9103. - ac_header_preproc=yes
  9104. -else
  9105. - echo "$as_me: failed program was:" >&5
  9106. -sed 's/^/| /' conftest.$ac_ext >&5
  9107. + rm -rf conftest* conftst*
  9108. +
  9109. + # Do not use the global_symbol_pipe unless it works.
  9110. + if test "$pipe_works" = yes; then
  9111. + break
  9112. + else
  9113. + lt_cv_sys_global_symbol_pipe=
  9114. + fi
  9115. +done
  9116. - ac_header_preproc=no
  9117. fi
  9118. -rm -f conftest.err conftest.$ac_ext
  9119. -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9120. -echo "${ECHO_T}$ac_header_preproc" >&6
  9121. -# So? What about this header?
  9122. -case $ac_header_compiler:$ac_header_preproc in
  9123. - yes:no )
  9124. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9125. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9126. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9127. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9128. - (
  9129. - cat <<\_ASBOX
  9130. -## ------------------------------------ ##
  9131. -## Report this to bug-autoconf@gnu.org. ##
  9132. -## ------------------------------------ ##
  9133. -_ASBOX
  9134. - ) |
  9135. - sed "s/^/$as_me: WARNING: /" >&2
  9136. - ;;
  9137. - no:yes )
  9138. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9139. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9140. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9141. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9142. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9143. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9144. - (
  9145. - cat <<\_ASBOX
  9146. -## ------------------------------------ ##
  9147. -## Report this to bug-autoconf@gnu.org. ##
  9148. -## ------------------------------------ ##
  9149. -_ASBOX
  9150. - ) |
  9151. - sed "s/^/$as_me: WARNING: /" >&2
  9152. - ;;
  9153. -esac
  9154. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  9155. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9156. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9157. - echo $ECHO_N "(cached) $ECHO_C" >&6
  9158. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  9159. + lt_cv_sys_global_symbol_to_cdecl=
  9160. +fi
  9161. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  9162. + { $as_echo "$as_me:$LINENO: result: failed" >&5
  9163. +$as_echo "failed" >&6; }
  9164. else
  9165. - eval "$as_ac_Header=$ac_header_preproc"
  9166. + { $as_echo "$as_me:$LINENO: result: ok" >&5
  9167. +$as_echo "ok" >&6; }
  9168. fi
  9169. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9170. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9171. -fi
  9172. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9173. - cat >>confdefs.h <<_ACEOF
  9174. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9175. -_ACEOF
  9176. -fi
  9177. -done
  9178. - echo "$as_me:$LINENO: checking for working dirname" >&5
  9179. -echo $ECHO_N "checking for working dirname... $ECHO_C" >&6
  9180. -if test "${compat_cv_func_dirname_works+set}" = set; then
  9181. - echo $ECHO_N "(cached) $ECHO_C" >&6
  9182. -else
  9183. - if test "$cross_compiling" = yes; then
  9184. - compat_cv_func_dirname_works=no
  9185. -else
  9186. - cat >conftest.$ac_ext <<_ACEOF
  9187. -#line $LINENO "configure"
  9188. -/* confdefs.h. */
  9189. -_ACEOF
  9190. -cat confdefs.h >>conftest.$ac_ext
  9191. -cat >>conftest.$ac_ext <<_ACEOF
  9192. -/* end confdefs.h. */
  9193. -#include <stdio.h>
  9194. -#ifdef HAVE_LIBGEN_H
  9195. -# include <libgen.h>
  9196. -#endif
  9197. -typedef struct {
  9198. - char *test;
  9199. - char *result;
  9200. -} test_t;
  9201. -const test_t tests[] = {
  9202. - { "foobar", "." },
  9203. - { "/usr/local/foo", "/usr/local" },
  9204. - { "/usr/local/foo/", "/usr/local" },
  9205. - { "/", "/" },
  9206. - { "", "." },
  9207. - { NULL, NULL }
  9208. -};
  9209. -int main() {
  9210. - char test1[1024];
  9211. - int i;
  9212. - for (i = 0; tests[i].test; i++) {
  9213. - strcpy(test1, tests[i].test);
  9214. - if (strcmp(dirname(test1), tests[i].result) ||
  9215. - strcmp(test1, tests[i].test))
  9216. - exit(1);
  9217. - }
  9218. - exit(0);
  9219. -}
  9220. -_ACEOF
  9221. -rm -f conftest$ac_exeext
  9222. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9223. - (eval $ac_link) 2>&5
  9224. - ac_status=$?
  9225. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9226. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9227. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9228. - (eval $ac_try) 2>&5
  9229. - ac_status=$?
  9230. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9231. - (exit $ac_status); }; }; then
  9232. - compat_cv_func_dirname_works=yes
  9233. -else
  9234. - echo "$as_me: program exited with status $ac_status" >&5
  9235. -echo "$as_me: failed program was:" >&5
  9236. -sed 's/^/| /' conftest.$ac_ext >&5
  9237. -( exit $ac_status )
  9238. -compat_cv_func_dirname_works=no
  9239. -fi
  9240. -rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9241. -fi
  9242. -fi
  9243. -echo "$as_me:$LINENO: result: $compat_cv_func_dirname_works" >&5
  9244. -echo "${ECHO_T}$compat_cv_func_dirname_works" >&6
  9245. - if test "$compat_cv_func_dirname_works" = "yes"; then
  9246. -cat >>confdefs.h <<\_ACEOF
  9247. -#define HAVE_DIRNAME 1
  9248. -_ACEOF
  9249. - else
  9250. - LIBOBJS="$LIBOBJS dirname.$ac_objext"
  9251. - fi
  9252. -cat >>confdefs.h <<\_ACEOF
  9253. -#define NEED_FNMATCH 1
  9254. -_ACEOF
  9255. -for ac_header in fnmatch.h
  9256. -do
  9257. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9258. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9259. - echo "$as_me:$LINENO: checking for $ac_header" >&5
  9260. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9261. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9262. - echo $ECHO_N "(cached) $ECHO_C" >&6
  9263. +
  9264. +# Check whether --enable-libtool-lock was given.
  9265. +if test "${enable_libtool_lock+set}" = set; then
  9266. + enableval=$enable_libtool_lock;
  9267. fi
  9268. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9269. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9270. -else
  9271. - # Is the header compilable?
  9272. -echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9273. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9274. -cat >conftest.$ac_ext <<_ACEOF
  9275. -#line $LINENO "configure"
  9276. -/* confdefs.h. */
  9277. -_ACEOF
  9278. -cat confdefs.h >>conftest.$ac_ext
  9279. -cat >>conftest.$ac_ext <<_ACEOF
  9280. -/* end confdefs.h. */
  9281. -$ac_includes_default
  9282. -#include <$ac_header>
  9283. -_ACEOF
  9284. -rm -f conftest.$ac_objext
  9285. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9286. +
  9287. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  9288. +
  9289. +# Some flags need to be propagated to the compiler or linker for good
  9290. +# libtool support.
  9291. +case $host in
  9292. +ia64-*-hpux*)
  9293. + # Find out which ABI we are using.
  9294. + echo 'int i;' > conftest.$ac_ext
  9295. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9296. + (eval $ac_compile) 2>&5
  9297. + ac_status=$?
  9298. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9299. + (exit $ac_status); }; then
  9300. + case `/usr/bin/file conftest.$ac_objext` in
  9301. + *ELF-32*)
  9302. + HPUX_IA64_MODE="32"
  9303. + ;;
  9304. + *ELF-64*)
  9305. + HPUX_IA64_MODE="64"
  9306. + ;;
  9307. + esac
  9308. + fi
  9309. + rm -rf conftest*
  9310. + ;;
  9311. +*-*-irix6*)
  9312. + # Find out which ABI we are using.
  9313. + echo '#line 6881 "configure"' > conftest.$ac_ext
  9314. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9315. (eval $ac_compile) 2>&5
  9316. ac_status=$?
  9317. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9318. - (exit $ac_status); } &&
  9319. - { ac_try='test -s conftest.$ac_objext'
  9320. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9321. - (eval $ac_try) 2>&5
  9322. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9323. + (exit $ac_status); }; then
  9324. + if test "$lt_cv_prog_gnu_ld" = yes; then
  9325. + case `/usr/bin/file conftest.$ac_objext` in
  9326. + *32-bit*)
  9327. + LD="${LD-ld} -melf32bsmip"
  9328. + ;;
  9329. + *N32*)
  9330. + LD="${LD-ld} -melf32bmipn32"
  9331. + ;;
  9332. + *64-bit*)
  9333. + LD="${LD-ld} -melf64bmip"
  9334. + ;;
  9335. + esac
  9336. + else
  9337. + case `/usr/bin/file conftest.$ac_objext` in
  9338. + *32-bit*)
  9339. + LD="${LD-ld} -32"
  9340. + ;;
  9341. + *N32*)
  9342. + LD="${LD-ld} -n32"
  9343. + ;;
  9344. + *64-bit*)
  9345. + LD="${LD-ld} -64"
  9346. + ;;
  9347. + esac
  9348. + fi
  9349. + fi
  9350. + rm -rf conftest*
  9351. + ;;
  9352. +
  9353. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  9354. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  9355. + # Find out which ABI we are using.
  9356. + echo 'int i;' > conftest.$ac_ext
  9357. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9358. + (eval $ac_compile) 2>&5
  9359. ac_status=$?
  9360. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9361. - (exit $ac_status); }; }; then
  9362. - ac_header_compiler=yes
  9363. -else
  9364. - echo "$as_me: failed program was:" >&5
  9365. -sed 's/^/| /' conftest.$ac_ext >&5
  9366. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9367. + (exit $ac_status); }; then
  9368. + case `/usr/bin/file conftest.o` in
  9369. + *32-bit*)
  9370. + case $host in
  9371. + x86_64-*kfreebsd*-gnu)
  9372. + LD="${LD-ld} -m elf_i386_fbsd"
  9373. + ;;
  9374. + x86_64-*linux*)
  9375. + LD="${LD-ld} -m elf_i386"
  9376. + ;;
  9377. + ppc64-*linux*|powerpc64-*linux*)
  9378. + LD="${LD-ld} -m elf32ppclinux"
  9379. + ;;
  9380. + s390x-*linux*)
  9381. + LD="${LD-ld} -m elf_s390"
  9382. + ;;
  9383. + sparc64-*linux*)
  9384. + LD="${LD-ld} -m elf32_sparc"
  9385. + ;;
  9386. + esac
  9387. + ;;
  9388. + *64-bit*)
  9389. + case $host in
  9390. + x86_64-*kfreebsd*-gnu)
  9391. + LD="${LD-ld} -m elf_x86_64_fbsd"
  9392. + ;;
  9393. + x86_64-*linux*)
  9394. + LD="${LD-ld} -m elf_x86_64"
  9395. + ;;
  9396. + ppc*-*linux*|powerpc*-*linux*)
  9397. + LD="${LD-ld} -m elf64ppc"
  9398. + ;;
  9399. + s390*-*linux*|s390*-*tpf*)
  9400. + LD="${LD-ld} -m elf64_s390"
  9401. + ;;
  9402. + sparc*-*linux*)
  9403. + LD="${LD-ld} -m elf64_sparc"
  9404. + ;;
  9405. + esac
  9406. + ;;
  9407. + esac
  9408. + fi
  9409. + rm -rf conftest*
  9410. + ;;
  9411. -ac_header_compiler=no
  9412. -fi
  9413. -rm -f conftest.$ac_objext conftest.$ac_ext
  9414. -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9415. -echo "${ECHO_T}$ac_header_compiler" >&6
  9416. +*-*-sco3.2v5*)
  9417. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  9418. + SAVE_CFLAGS="$CFLAGS"
  9419. + CFLAGS="$CFLAGS -belf"
  9420. + { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  9421. +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  9422. +if test "${lt_cv_cc_needs_belf+set}" = set; then
  9423. + $as_echo_n "(cached) " >&6
  9424. +else
  9425. + ac_ext=c
  9426. +ac_cpp='$CPP $CPPFLAGS'
  9427. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9428. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9429. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9430. -# Is the header present?
  9431. -echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9432. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9433. -cat >conftest.$ac_ext <<_ACEOF
  9434. -#line $LINENO "configure"
  9435. + cat >conftest.$ac_ext <<_ACEOF
  9436. /* confdefs.h. */
  9437. _ACEOF
  9438. cat confdefs.h >>conftest.$ac_ext
  9439. cat >>conftest.$ac_ext <<_ACEOF
  9440. /* end confdefs.h. */
  9441. -#include <$ac_header>
  9442. -_ACEOF
  9443. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9444. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9445. +
  9446. +int
  9447. +main ()
  9448. +{
  9449. +
  9450. + ;
  9451. + return 0;
  9452. +}
  9453. +_ACEOF
  9454. +rm -f conftest.$ac_objext conftest$ac_exeext
  9455. +if { (ac_try="$ac_link"
  9456. +case "(($ac_try" in
  9457. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9458. + *) ac_try_echo=$ac_try;;
  9459. +esac
  9460. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9461. +$as_echo "$ac_try_echo") >&5
  9462. + (eval "$ac_link") 2>conftest.er1
  9463. ac_status=$?
  9464. grep -v '^ *+' conftest.er1 >conftest.err
  9465. rm -f conftest.er1
  9466. cat conftest.err >&5
  9467. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9468. - (exit $ac_status); } >/dev/null; then
  9469. - if test -s conftest.err; then
  9470. - ac_cpp_err=$ac_c_preproc_warn_flag
  9471. - else
  9472. - ac_cpp_err=
  9473. - fi
  9474. -else
  9475. - ac_cpp_err=yes
  9476. -fi
  9477. -if test -z "$ac_cpp_err"; then
  9478. - ac_header_preproc=yes
  9479. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9480. + (exit $ac_status); } && {
  9481. + test -z "$ac_c_werror_flag" ||
  9482. + test ! -s conftest.err
  9483. + } && test -s conftest$ac_exeext && {
  9484. + test "$cross_compiling" = yes ||
  9485. + $as_test_x conftest$ac_exeext
  9486. + }; then
  9487. + lt_cv_cc_needs_belf=yes
  9488. else
  9489. - echo "$as_me: failed program was:" >&5
  9490. + $as_echo "$as_me: failed program was:" >&5
  9491. sed 's/^/| /' conftest.$ac_ext >&5
  9492. - ac_header_preproc=no
  9493. + lt_cv_cc_needs_belf=no
  9494. fi
  9495. -rm -f conftest.err conftest.$ac_ext
  9496. -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9497. -echo "${ECHO_T}$ac_header_preproc" >&6
  9498. -# So? What about this header?
  9499. -case $ac_header_compiler:$ac_header_preproc in
  9500. - yes:no )
  9501. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9502. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9503. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9504. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9505. - (
  9506. - cat <<\_ASBOX
  9507. -## ------------------------------------ ##
  9508. -## Report this to bug-autoconf@gnu.org. ##
  9509. -## ------------------------------------ ##
  9510. -_ASBOX
  9511. - ) |
  9512. - sed "s/^/$as_me: WARNING: /" >&2
  9513. - ;;
  9514. - no:yes )
  9515. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9516. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9517. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9518. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9519. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9520. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9521. - (
  9522. - cat <<\_ASBOX
  9523. -## ------------------------------------ ##
  9524. -## Report this to bug-autoconf@gnu.org. ##
  9525. -## ------------------------------------ ##
  9526. -_ASBOX
  9527. - ) |
  9528. - sed "s/^/$as_me: WARNING: /" >&2
  9529. - ;;
  9530. -esac
  9531. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  9532. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9533. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9534. - echo $ECHO_N "(cached) $ECHO_C" >&6
  9535. -else
  9536. - eval "$as_ac_Header=$ac_header_preproc"
  9537. -fi
  9538. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9539. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9540. +rm -rf conftest.dSYM
  9541. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9542. + conftest$ac_exeext conftest.$ac_ext
  9543. + ac_ext=c
  9544. +ac_cpp='$CPP $CPPFLAGS'
  9545. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9546. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9547. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9548. fi
  9549. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9550. - cat >>confdefs.h <<_ACEOF
  9551. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9552. -_ACEOF
  9553. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  9554. +$as_echo "$lt_cv_cc_needs_belf" >&6; }
  9555. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  9556. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  9557. + CFLAGS="$SAVE_CFLAGS"
  9558. + fi
  9559. + ;;
  9560. +sparc*-*solaris*)
  9561. + # Find out which ABI we are using.
  9562. + echo 'int i;' > conftest.$ac_ext
  9563. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9564. + (eval $ac_compile) 2>&5
  9565. + ac_status=$?
  9566. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9567. + (exit $ac_status); }; then
  9568. + case `/usr/bin/file conftest.o` in
  9569. + *64-bit*)
  9570. + case $lt_cv_prog_gnu_ld in
  9571. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  9572. + *)
  9573. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  9574. + LD="${LD-ld} -64"
  9575. + fi
  9576. + ;;
  9577. + esac
  9578. + ;;
  9579. + esac
  9580. + fi
  9581. + rm -rf conftest*
  9582. + ;;
  9583. +esac
  9584. -fi
  9585. +need_locks="$enable_libtool_lock"
  9586. -done
  9587. - if test "$ac_cv_header_fnmatch_h" = "yes"; then
  9588. - echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
  9589. -echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
  9590. -if test "${ac_cv_func_fnmatch_works+set}" = set; then
  9591. - echo $ECHO_N "(cached) $ECHO_C" >&6
  9592. -else
  9593. - # Some versions of Solaris, SCO, and the GNU C Library
  9594. - # have a broken or incompatible fnmatch.
  9595. - # So we run a test program. If we are cross-compiling, take no chance.
  9596. - # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
  9597. - if test "$cross_compiling" = yes; then
  9598. - ac_cv_func_fnmatch_works=cross
  9599. + case $host_os in
  9600. + rhapsody* | darwin*)
  9601. + if test -n "$ac_tool_prefix"; then
  9602. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  9603. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  9604. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9605. +$as_echo_n "checking for $ac_word... " >&6; }
  9606. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  9607. + $as_echo_n "(cached) " >&6
  9608. else
  9609. - cat >conftest.$ac_ext <<_ACEOF
  9610. -#line $LINENO "configure"
  9611. -/* confdefs.h. */
  9612. -_ACEOF
  9613. -cat confdefs.h >>conftest.$ac_ext
  9614. -cat >>conftest.$ac_ext <<_ACEOF
  9615. -/* end confdefs.h. */
  9616. -#include <fnmatch.h>
  9617. -# define y(a, b, c) (fnmatch (a, b, c) == 0)
  9618. -# define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
  9619. -
  9620. -int
  9621. -main ()
  9622. -{
  9623. -exit
  9624. - (!(y ("a*", "abc", 0)
  9625. - && n ("d*/*1", "d/s/1", FNM_PATHNAME)
  9626. - && y ("a\\\\bc", "abc", 0)
  9627. - && n ("a\\\\bc", "abc", FNM_NOESCAPE)
  9628. - && y ("*x", ".x", 0)
  9629. - && n ("*x", ".x", FNM_PERIOD)
  9630. - && 1));
  9631. - ;
  9632. - return 0;
  9633. -}
  9634. -_ACEOF
  9635. -rm -f conftest$ac_exeext
  9636. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9637. - (eval $ac_link) 2>&5
  9638. - ac_status=$?
  9639. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9640. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9641. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9642. - (eval $ac_try) 2>&5
  9643. - ac_status=$?
  9644. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9645. - (exit $ac_status); }; }; then
  9646. - ac_cv_func_fnmatch_works=yes
  9647. + if test -n "$DSYMUTIL"; then
  9648. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  9649. else
  9650. - echo "$as_me: program exited with status $ac_status" >&5
  9651. -echo "$as_me: failed program was:" >&5
  9652. -sed 's/^/| /' conftest.$ac_ext >&5
  9653. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9654. +for as_dir in $PATH
  9655. +do
  9656. + IFS=$as_save_IFS
  9657. + test -z "$as_dir" && as_dir=.
  9658. + for ac_exec_ext in '' $ac_executable_extensions; do
  9659. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9660. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  9661. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9662. + break 2
  9663. + fi
  9664. +done
  9665. +done
  9666. +IFS=$as_save_IFS
  9667. -( exit $ac_status )
  9668. -ac_cv_func_fnmatch_works=no
  9669. fi
  9670. -rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9671. fi
  9672. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  9673. +if test -n "$DSYMUTIL"; then
  9674. + { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  9675. +$as_echo "$DSYMUTIL" >&6; }
  9676. +else
  9677. + { $as_echo "$as_me:$LINENO: result: no" >&5
  9678. +$as_echo "no" >&6; }
  9679. fi
  9680. -echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
  9681. -echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
  9682. -if test $ac_cv_func_fnmatch_works = yes; then
  9683. -cat >>confdefs.h <<\_ACEOF
  9684. -#define HAVE_FNMATCH 1
  9685. -_ACEOF
  9686. fi
  9687. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  9688. + ac_ct_DSYMUTIL=$DSYMUTIL
  9689. + # Extract the first word of "dsymutil", so it can be a program name with args.
  9690. +set dummy dsymutil; ac_word=$2
  9691. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9692. +$as_echo_n "checking for $ac_word... " >&6; }
  9693. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  9694. + $as_echo_n "(cached) " >&6
  9695. +else
  9696. + if test -n "$ac_ct_DSYMUTIL"; then
  9697. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  9698. +else
  9699. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9700. +for as_dir in $PATH
  9701. +do
  9702. + IFS=$as_save_IFS
  9703. + test -z "$as_dir" && as_dir=.
  9704. + for ac_exec_ext in '' $ac_executable_extensions; do
  9705. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9706. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  9707. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9708. + break 2
  9709. + fi
  9710. +done
  9711. +done
  9712. +IFS=$as_save_IFS
  9713. +fi
  9714. +fi
  9715. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  9716. +if test -n "$ac_ct_DSYMUTIL"; then
  9717. + { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  9718. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  9719. +else
  9720. + { $as_echo "$as_me:$LINENO: result: no" >&5
  9721. +$as_echo "no" >&6; }
  9722. +fi
  9723. -
  9724. + if test "x$ac_ct_DSYMUTIL" = x; then
  9725. + DSYMUTIL=":"
  9726. + else
  9727. + case $cross_compiling:$ac_tool_warned in
  9728. +yes:)
  9729. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  9730. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9731. +ac_tool_warned=yes ;;
  9732. +esac
  9733. + DSYMUTIL=$ac_ct_DSYMUTIL
  9734. fi
  9735. - if test "$ac_cv_func_fnmatch_works" != "yes"; then
  9736. +else
  9737. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  9738. +fi
  9739. -for ac_header in ctype.h
  9740. + if test -n "$ac_tool_prefix"; then
  9741. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  9742. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  9743. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9744. +$as_echo_n "checking for $ac_word... " >&6; }
  9745. +if test "${ac_cv_prog_NMEDIT+set}" = set; then
  9746. + $as_echo_n "(cached) " >&6
  9747. +else
  9748. + if test -n "$NMEDIT"; then
  9749. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  9750. +else
  9751. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9752. +for as_dir in $PATH
  9753. do
  9754. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9755. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9756. - echo "$as_me:$LINENO: checking for $ac_header" >&5
  9757. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9758. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9759. - echo $ECHO_N "(cached) $ECHO_C" >&6
  9760. + IFS=$as_save_IFS
  9761. + test -z "$as_dir" && as_dir=.
  9762. + for ac_exec_ext in '' $ac_executable_extensions; do
  9763. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9764. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  9765. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9766. + break 2
  9767. + fi
  9768. +done
  9769. +done
  9770. +IFS=$as_save_IFS
  9771. +
  9772. fi
  9773. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9774. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9775. +fi
  9776. +NMEDIT=$ac_cv_prog_NMEDIT
  9777. +if test -n "$NMEDIT"; then
  9778. + { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  9779. +$as_echo "$NMEDIT" >&6; }
  9780. else
  9781. - # Is the header compilable?
  9782. -echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9783. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9784. -cat >conftest.$ac_ext <<_ACEOF
  9785. -#line $LINENO "configure"
  9786. -/* confdefs.h. */
  9787. -_ACEOF
  9788. -cat confdefs.h >>conftest.$ac_ext
  9789. -cat >>conftest.$ac_ext <<_ACEOF
  9790. -/* end confdefs.h. */
  9791. -$ac_includes_default
  9792. -#include <$ac_header>
  9793. -_ACEOF
  9794. -rm -f conftest.$ac_objext
  9795. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9796. - (eval $ac_compile) 2>&5
  9797. - ac_status=$?
  9798. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9799. - (exit $ac_status); } &&
  9800. - { ac_try='test -s conftest.$ac_objext'
  9801. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9802. - (eval $ac_try) 2>&5
  9803. - ac_status=$?
  9804. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9805. - (exit $ac_status); }; }; then
  9806. - ac_header_compiler=yes
  9807. + { $as_echo "$as_me:$LINENO: result: no" >&5
  9808. +$as_echo "no" >&6; }
  9809. +fi
  9810. +
  9811. +
  9812. +fi
  9813. +if test -z "$ac_cv_prog_NMEDIT"; then
  9814. + ac_ct_NMEDIT=$NMEDIT
  9815. + # Extract the first word of "nmedit", so it can be a program name with args.
  9816. +set dummy nmedit; ac_word=$2
  9817. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9818. +$as_echo_n "checking for $ac_word... " >&6; }
  9819. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  9820. + $as_echo_n "(cached) " >&6
  9821. else
  9822. - echo "$as_me: failed program was:" >&5
  9823. -sed 's/^/| /' conftest.$ac_ext >&5
  9824. + if test -n "$ac_ct_NMEDIT"; then
  9825. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  9826. +else
  9827. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9828. +for as_dir in $PATH
  9829. +do
  9830. + IFS=$as_save_IFS
  9831. + test -z "$as_dir" && as_dir=.
  9832. + for ac_exec_ext in '' $ac_executable_extensions; do
  9833. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9834. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  9835. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9836. + break 2
  9837. + fi
  9838. +done
  9839. +done
  9840. +IFS=$as_save_IFS
  9841. -ac_header_compiler=no
  9842. fi
  9843. -rm -f conftest.$ac_objext conftest.$ac_ext
  9844. -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9845. -echo "${ECHO_T}$ac_header_compiler" >&6
  9846. +fi
  9847. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  9848. +if test -n "$ac_ct_NMEDIT"; then
  9849. + { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  9850. +$as_echo "$ac_ct_NMEDIT" >&6; }
  9851. +else
  9852. + { $as_echo "$as_me:$LINENO: result: no" >&5
  9853. +$as_echo "no" >&6; }
  9854. +fi
  9855. -# Is the header present?
  9856. -echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9857. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9858. -cat >conftest.$ac_ext <<_ACEOF
  9859. -#line $LINENO "configure"
  9860. -/* confdefs.h. */
  9861. -_ACEOF
  9862. -cat confdefs.h >>conftest.$ac_ext
  9863. -cat >>conftest.$ac_ext <<_ACEOF
  9864. -/* end confdefs.h. */
  9865. -#include <$ac_header>
  9866. -_ACEOF
  9867. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9868. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9869. - ac_status=$?
  9870. - grep -v '^ *+' conftest.er1 >conftest.err
  9871. - rm -f conftest.er1
  9872. - cat conftest.err >&5
  9873. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9874. - (exit $ac_status); } >/dev/null; then
  9875. - if test -s conftest.err; then
  9876. - ac_cpp_err=$ac_c_preproc_warn_flag
  9877. + if test "x$ac_ct_NMEDIT" = x; then
  9878. + NMEDIT=":"
  9879. else
  9880. - ac_cpp_err=
  9881. + case $cross_compiling:$ac_tool_warned in
  9882. +yes:)
  9883. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  9884. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9885. +ac_tool_warned=yes ;;
  9886. +esac
  9887. + NMEDIT=$ac_ct_NMEDIT
  9888. fi
  9889. else
  9890. - ac_cpp_err=yes
  9891. + NMEDIT="$ac_cv_prog_NMEDIT"
  9892. fi
  9893. -if test -z "$ac_cpp_err"; then
  9894. - ac_header_preproc=yes
  9895. +
  9896. + if test -n "$ac_tool_prefix"; then
  9897. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  9898. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  9899. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9900. +$as_echo_n "checking for $ac_word... " >&6; }
  9901. +if test "${ac_cv_prog_LIPO+set}" = set; then
  9902. + $as_echo_n "(cached) " >&6
  9903. else
  9904. - echo "$as_me: failed program was:" >&5
  9905. -sed 's/^/| /' conftest.$ac_ext >&5
  9906. + if test -n "$LIPO"; then
  9907. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  9908. +else
  9909. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9910. +for as_dir in $PATH
  9911. +do
  9912. + IFS=$as_save_IFS
  9913. + test -z "$as_dir" && as_dir=.
  9914. + for ac_exec_ext in '' $ac_executable_extensions; do
  9915. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9916. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  9917. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9918. + break 2
  9919. + fi
  9920. +done
  9921. +done
  9922. +IFS=$as_save_IFS
  9923. - ac_header_preproc=no
  9924. fi
  9925. -rm -f conftest.err conftest.$ac_ext
  9926. -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9927. -echo "${ECHO_T}$ac_header_preproc" >&6
  9928. -
  9929. -# So? What about this header?
  9930. -case $ac_header_compiler:$ac_header_preproc in
  9931. - yes:no )
  9932. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9933. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9934. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9935. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9936. - (
  9937. - cat <<\_ASBOX
  9938. -## ------------------------------------ ##
  9939. -## Report this to bug-autoconf@gnu.org. ##
  9940. -## ------------------------------------ ##
  9941. -_ASBOX
  9942. - ) |
  9943. - sed "s/^/$as_me: WARNING: /" >&2
  9944. - ;;
  9945. - no:yes )
  9946. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9947. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9948. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9949. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9950. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9951. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9952. - (
  9953. - cat <<\_ASBOX
  9954. -## ------------------------------------ ##
  9955. -## Report this to bug-autoconf@gnu.org. ##
  9956. -## ------------------------------------ ##
  9957. -_ASBOX
  9958. - ) |
  9959. - sed "s/^/$as_me: WARNING: /" >&2
  9960. - ;;
  9961. -esac
  9962. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  9963. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9964. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9965. - echo $ECHO_N "(cached) $ECHO_C" >&6
  9966. +fi
  9967. +LIPO=$ac_cv_prog_LIPO
  9968. +if test -n "$LIPO"; then
  9969. + { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
  9970. +$as_echo "$LIPO" >&6; }
  9971. else
  9972. - eval "$as_ac_Header=$ac_header_preproc"
  9973. + { $as_echo "$as_me:$LINENO: result: no" >&5
  9974. +$as_echo "no" >&6; }
  9975. fi
  9976. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9977. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9978. -fi
  9979. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9980. - cat >>confdefs.h <<_ACEOF
  9981. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9982. -_ACEOF
  9983. fi
  9984. -
  9985. +if test -z "$ac_cv_prog_LIPO"; then
  9986. + ac_ct_LIPO=$LIPO
  9987. + # Extract the first word of "lipo", so it can be a program name with args.
  9988. +set dummy lipo; ac_word=$2
  9989. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9990. +$as_echo_n "checking for $ac_word... " >&6; }
  9991. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  9992. + $as_echo_n "(cached) " >&6
  9993. +else
  9994. + if test -n "$ac_ct_LIPO"; then
  9995. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  9996. +else
  9997. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9998. +for as_dir in $PATH
  9999. +do
  10000. + IFS=$as_save_IFS
  10001. + test -z "$as_dir" && as_dir=.
  10002. + for ac_exec_ext in '' $ac_executable_extensions; do
  10003. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10004. + ac_cv_prog_ac_ct_LIPO="lipo"
  10005. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10006. + break 2
  10007. + fi
  10008. done
  10009. +done
  10010. +IFS=$as_save_IFS
  10011. - LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
  10012. - fi
  10013. +fi
  10014. +fi
  10015. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  10016. +if test -n "$ac_ct_LIPO"; then
  10017. + { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  10018. +$as_echo "$ac_ct_LIPO" >&6; }
  10019. +else
  10020. + { $as_echo "$as_me:$LINENO: result: no" >&5
  10021. +$as_echo "no" >&6; }
  10022. +fi
  10023. + if test "x$ac_ct_LIPO" = x; then
  10024. + LIPO=":"
  10025. + else
  10026. + case $cross_compiling:$ac_tool_warned in
  10027. +yes:)
  10028. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  10029. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10030. +ac_tool_warned=yes ;;
  10031. +esac
  10032. + LIPO=$ac_ct_LIPO
  10033. + fi
  10034. +else
  10035. + LIPO="$ac_cv_prog_LIPO"
  10036. +fi
  10037. -for ac_func in lchown
  10038. + if test -n "$ac_tool_prefix"; then
  10039. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  10040. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  10041. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10042. +$as_echo_n "checking for $ac_word... " >&6; }
  10043. +if test "${ac_cv_prog_OTOOL+set}" = set; then
  10044. + $as_echo_n "(cached) " >&6
  10045. +else
  10046. + if test -n "$OTOOL"; then
  10047. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  10048. +else
  10049. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10050. +for as_dir in $PATH
  10051. do
  10052. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10053. -echo "$as_me:$LINENO: checking for $ac_func" >&5
  10054. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10055. -if eval "test \"\${$as_ac_var+set}\" = set"; then
  10056. - echo $ECHO_N "(cached) $ECHO_C" >&6
  10057. + IFS=$as_save_IFS
  10058. + test -z "$as_dir" && as_dir=.
  10059. + for ac_exec_ext in '' $ac_executable_extensions; do
  10060. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10061. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  10062. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10063. + break 2
  10064. + fi
  10065. +done
  10066. +done
  10067. +IFS=$as_save_IFS
  10068. +
  10069. +fi
  10070. +fi
  10071. +OTOOL=$ac_cv_prog_OTOOL
  10072. +if test -n "$OTOOL"; then
  10073. + { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
  10074. +$as_echo "$OTOOL" >&6; }
  10075. else
  10076. - cat >conftest.$ac_ext <<_ACEOF
  10077. -#line $LINENO "configure"
  10078. -/* confdefs.h. */
  10079. -_ACEOF
  10080. -cat confdefs.h >>conftest.$ac_ext
  10081. -cat >>conftest.$ac_ext <<_ACEOF
  10082. -/* end confdefs.h. */
  10083. -/* System header to define __stub macros and hopefully few prototypes,
  10084. - which can conflict with char $ac_func (); below.
  10085. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10086. - <limits.h> exists even on freestanding compilers. */
  10087. -#ifdef __STDC__
  10088. -# include <limits.h>
  10089. -#else
  10090. -# include <assert.h>
  10091. -#endif
  10092. -/* Override any gcc2 internal prototype to avoid an error. */
  10093. -#ifdef __cplusplus
  10094. -extern "C"
  10095. -{
  10096. -#endif
  10097. -/* We use char because int might match the return type of a gcc2
  10098. - builtin and then its argument prototype would still apply. */
  10099. -char $ac_func ();
  10100. -/* The GNU C library defines this for functions which it implements
  10101. - to always fail with ENOSYS. Some functions are actually named
  10102. - something starting with __ and the normal name is an alias. */
  10103. -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10104. -choke me
  10105. -#else
  10106. -char (*f) () = $ac_func;
  10107. -#endif
  10108. -#ifdef __cplusplus
  10109. -}
  10110. -#endif
  10111. + { $as_echo "$as_me:$LINENO: result: no" >&5
  10112. +$as_echo "no" >&6; }
  10113. +fi
  10114. -int
  10115. -main ()
  10116. -{
  10117. -return f != $ac_func;
  10118. - ;
  10119. - return 0;
  10120. -}
  10121. -_ACEOF
  10122. -rm -f conftest.$ac_objext conftest$ac_exeext
  10123. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10124. - (eval $ac_link) 2>&5
  10125. - ac_status=$?
  10126. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10127. - (exit $ac_status); } &&
  10128. - { ac_try='test -s conftest$ac_exeext'
  10129. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10130. - (eval $ac_try) 2>&5
  10131. - ac_status=$?
  10132. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10133. - (exit $ac_status); }; }; then
  10134. - eval "$as_ac_var=yes"
  10135. +
  10136. +fi
  10137. +if test -z "$ac_cv_prog_OTOOL"; then
  10138. + ac_ct_OTOOL=$OTOOL
  10139. + # Extract the first word of "otool", so it can be a program name with args.
  10140. +set dummy otool; ac_word=$2
  10141. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10142. +$as_echo_n "checking for $ac_word... " >&6; }
  10143. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  10144. + $as_echo_n "(cached) " >&6
  10145. else
  10146. - echo "$as_me: failed program was:" >&5
  10147. -sed 's/^/| /' conftest.$ac_ext >&5
  10148. + if test -n "$ac_ct_OTOOL"; then
  10149. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  10150. +else
  10151. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10152. +for as_dir in $PATH
  10153. +do
  10154. + IFS=$as_save_IFS
  10155. + test -z "$as_dir" && as_dir=.
  10156. + for ac_exec_ext in '' $ac_executable_extensions; do
  10157. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10158. + ac_cv_prog_ac_ct_OTOOL="otool"
  10159. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10160. + break 2
  10161. + fi
  10162. +done
  10163. +done
  10164. +IFS=$as_save_IFS
  10165. -eval "$as_ac_var=no"
  10166. fi
  10167. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10168. fi
  10169. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10170. -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10171. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  10172. - cat >>confdefs.h <<_ACEOF
  10173. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10174. -_ACEOF
  10175. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  10176. +if test -n "$ac_ct_OTOOL"; then
  10177. + { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  10178. +$as_echo "$ac_ct_OTOOL" >&6; }
  10179. +else
  10180. + { $as_echo "$as_me:$LINENO: result: no" >&5
  10181. +$as_echo "no" >&6; }
  10182. +fi
  10183. + if test "x$ac_ct_OTOOL" = x; then
  10184. + OTOOL=":"
  10185. + else
  10186. + case $cross_compiling:$ac_tool_warned in
  10187. +yes:)
  10188. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  10189. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10190. +ac_tool_warned=yes ;;
  10191. +esac
  10192. + OTOOL=$ac_ct_OTOOL
  10193. + fi
  10194. +else
  10195. + OTOOL="$ac_cv_prog_OTOOL"
  10196. fi
  10197. -done
  10198. + if test -n "$ac_tool_prefix"; then
  10199. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  10200. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  10201. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10202. +$as_echo_n "checking for $ac_word... " >&6; }
  10203. +if test "${ac_cv_prog_OTOOL64+set}" = set; then
  10204. + $as_echo_n "(cached) " >&6
  10205. +else
  10206. + if test -n "$OTOOL64"; then
  10207. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  10208. +else
  10209. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10210. +for as_dir in $PATH
  10211. +do
  10212. + IFS=$as_save_IFS
  10213. + test -z "$as_dir" && as_dir=.
  10214. + for ac_exec_ext in '' $ac_executable_extensions; do
  10215. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10216. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  10217. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10218. + break 2
  10219. + fi
  10220. +done
  10221. +done
  10222. +IFS=$as_save_IFS
  10223. +fi
  10224. +fi
  10225. +OTOOL64=$ac_cv_prog_OTOOL64
  10226. +if test -n "$OTOOL64"; then
  10227. + { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
  10228. +$as_echo "$OTOOL64" >&6; }
  10229. +else
  10230. + { $as_echo "$as_me:$LINENO: result: no" >&5
  10231. +$as_echo "no" >&6; }
  10232. +fi
  10233. -cat >>confdefs.h <<\_ACEOF
  10234. -#define NEED_MAKEDEV 1
  10235. -_ACEOF
  10236. +fi
  10237. +if test -z "$ac_cv_prog_OTOOL64"; then
  10238. + ac_ct_OTOOL64=$OTOOL64
  10239. + # Extract the first word of "otool64", so it can be a program name with args.
  10240. +set dummy otool64; ac_word=$2
  10241. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10242. +$as_echo_n "checking for $ac_word... " >&6; }
  10243. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  10244. + $as_echo_n "(cached) " >&6
  10245. +else
  10246. + if test -n "$ac_ct_OTOOL64"; then
  10247. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  10248. +else
  10249. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10250. +for as_dir in $PATH
  10251. +do
  10252. + IFS=$as_save_IFS
  10253. + test -z "$as_dir" && as_dir=.
  10254. + for ac_exec_ext in '' $ac_executable_extensions; do
  10255. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10256. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  10257. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10258. + break 2
  10259. + fi
  10260. +done
  10261. +done
  10262. +IFS=$as_save_IFS
  10263. - echo "$as_me:$LINENO: checking whether makedev expects three arguments" >&5
  10264. -echo $ECHO_N "checking whether makedev expects three arguments... $ECHO_C" >&6
  10265. -if test "${compat_cv_func_makedev_three_args+set}" = set; then
  10266. - echo $ECHO_N "(cached) $ECHO_C" >&6
  10267. +fi
  10268. +fi
  10269. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  10270. +if test -n "$ac_ct_OTOOL64"; then
  10271. + { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  10272. +$as_echo "$ac_ct_OTOOL64" >&6; }
  10273. else
  10274. - if test "$cross_compiling" = yes; then
  10275. - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  10276. -See \`config.log' for more details." >&5
  10277. -echo "$as_me: error: cannot run test program while cross compiling
  10278. -See \`config.log' for more details." >&2;}
  10279. - { (exit 1); exit 1; }; }
  10280. + { $as_echo "$as_me:$LINENO: result: no" >&5
  10281. +$as_echo "no" >&6; }
  10282. +fi
  10283. +
  10284. + if test "x$ac_ct_OTOOL64" = x; then
  10285. + OTOOL64=":"
  10286. + else
  10287. + case $cross_compiling:$ac_tool_warned in
  10288. +yes:)
  10289. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  10290. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10291. +ac_tool_warned=yes ;;
  10292. +esac
  10293. + OTOOL64=$ac_ct_OTOOL64
  10294. + fi
  10295. else
  10296. - cat >conftest.$ac_ext <<_ACEOF
  10297. + OTOOL64="$ac_cv_prog_OTOOL64"
  10298. +fi
  10299. +
  10300. +
  10301. +
  10302. +
  10303. +
  10304. +
  10305. +
  10306. +
  10307. +
  10308. +
  10309. +
  10310. +
  10311. +
  10312. +
  10313. +
  10314. - #line $LINENO "configure"
  10315. +
  10316. +
  10317. +
  10318. +
  10319. +
  10320. +
  10321. +
  10322. +
  10323. +
  10324. +
  10325. +
  10326. + { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  10327. +$as_echo_n "checking for -single_module linker flag... " >&6; }
  10328. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  10329. + $as_echo_n "(cached) " >&6
  10330. +else
  10331. + lt_cv_apple_cc_single_mod=no
  10332. + if test -z "${LT_MULTI_MODULE}"; then
  10333. + # By default we will add the -single_module flag. You can override
  10334. + # by either setting the environment variable LT_MULTI_MODULE
  10335. + # non-empty at configure time, or by adding -multi_module to the
  10336. + # link flags.
  10337. + rm -rf libconftest.dylib*
  10338. + echo "int foo(void){return 1;}" > conftest.c
  10339. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  10340. +-dynamiclib -Wl,-single_module conftest.c" >&5
  10341. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  10342. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  10343. + _lt_result=$?
  10344. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  10345. + lt_cv_apple_cc_single_mod=yes
  10346. + else
  10347. + cat conftest.err >&5
  10348. + fi
  10349. + rm -rf libconftest.dylib*
  10350. + rm -f conftest.*
  10351. + fi
  10352. +fi
  10353. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  10354. +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  10355. + { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  10356. +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  10357. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  10358. + $as_echo_n "(cached) " >&6
  10359. +else
  10360. + lt_cv_ld_exported_symbols_list=no
  10361. + save_LDFLAGS=$LDFLAGS
  10362. + echo "_main" > conftest.sym
  10363. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  10364. + cat >conftest.$ac_ext <<_ACEOF
  10365. /* confdefs.h. */
  10366. _ACEOF
  10367. cat confdefs.h >>conftest.$ac_ext
  10368. cat >>conftest.$ac_ext <<_ACEOF
  10369. /* end confdefs.h. */
  10370. -#include <sys/types.h>
  10371. -#ifdef MAJOR_IN_MKDEV
  10372. -# include <sys/mkdev.h>
  10373. -#else
  10374. -# ifdef MAJOR_IN_SYSMACROS
  10375. -# include <sys/sysmacros.h>
  10376. -# endif
  10377. -#endif
  10378. -
  10379. int
  10380. main ()
  10381. {
  10382. -dev_t dev;
  10383. -major_t maj = 5;
  10384. -minor_t min = 7;
  10385. -
  10386. -dev = makedev(0, maj, min);
  10387. -if (major(dev) != maj
  10388. - || minor(dev) != min)
  10389. - exit(1);
  10390. -exit(0);
  10391. -
  10392. ;
  10393. return 0;
  10394. }
  10395. _ACEOF
  10396. -rm -f conftest$ac_exeext
  10397. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10398. - (eval $ac_link) 2>&5
  10399. - ac_status=$?
  10400. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10401. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10402. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10403. - (eval $ac_try) 2>&5
  10404. +rm -f conftest.$ac_objext conftest$ac_exeext
  10405. +if { (ac_try="$ac_link"
  10406. +case "(($ac_try" in
  10407. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10408. + *) ac_try_echo=$ac_try;;
  10409. +esac
  10410. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10411. +$as_echo "$ac_try_echo") >&5
  10412. + (eval "$ac_link") 2>conftest.er1
  10413. ac_status=$?
  10414. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10415. - (exit $ac_status); }; }; then
  10416. - compat_cv_func_makedev_three_args=yes
  10417. + grep -v '^ *+' conftest.er1 >conftest.err
  10418. + rm -f conftest.er1
  10419. + cat conftest.err >&5
  10420. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10421. + (exit $ac_status); } && {
  10422. + test -z "$ac_c_werror_flag" ||
  10423. + test ! -s conftest.err
  10424. + } && test -s conftest$ac_exeext && {
  10425. + test "$cross_compiling" = yes ||
  10426. + $as_test_x conftest$ac_exeext
  10427. + }; then
  10428. + lt_cv_ld_exported_symbols_list=yes
  10429. else
  10430. - echo "$as_me: program exited with status $ac_status" >&5
  10431. -echo "$as_me: failed program was:" >&5
  10432. + $as_echo "$as_me: failed program was:" >&5
  10433. sed 's/^/| /' conftest.$ac_ext >&5
  10434. -( exit $ac_status )
  10435. -compat_cv_func_makedev_three_args=no
  10436. -
  10437. -fi
  10438. -rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10439. -fi
  10440. -
  10441. + lt_cv_ld_exported_symbols_list=no
  10442. fi
  10443. -echo "$as_me:$LINENO: result: $compat_cv_func_makedev_three_args" >&5
  10444. -echo "${ECHO_T}$compat_cv_func_makedev_three_args" >&6
  10445. - if test "$compat_cv_func_makedev_three_args" = "yes"; then
  10446. -
  10447. -cat >>confdefs.h <<\_ACEOF
  10448. -#define MAKEDEV_THREE_ARGS 1
  10449. -_ACEOF
  10450. -
  10451. - fi
  10452. -
  10453. +rm -rf conftest.dSYM
  10454. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10455. + conftest$ac_exeext conftest.$ac_ext
  10456. + LDFLAGS="$save_LDFLAGS"
  10457. +
  10458. +fi
  10459. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  10460. +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  10461. + case $host_os in
  10462. + rhapsody* | darwin1.[012])
  10463. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  10464. + darwin1.*)
  10465. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  10466. + darwin*) # darwin 5.x on
  10467. + # if running on 10.5 or later, the deployment target defaults
  10468. + # to the OS version, if on x86, and 10.4, the deployment
  10469. + # target defaults to 10.4. Don't you love it?
  10470. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  10471. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  10472. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  10473. + 10.[012]*)
  10474. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  10475. + 10.*)
  10476. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  10477. + esac
  10478. + ;;
  10479. + esac
  10480. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  10481. + _lt_dar_single_mod='$single_module'
  10482. + fi
  10483. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  10484. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  10485. + else
  10486. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10487. + fi
  10488. + if test "$DSYMUTIL" != ":"; then
  10489. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  10490. + else
  10491. + _lt_dsymutil=
  10492. + fi
  10493. + ;;
  10494. + esac
  10495. -cat >>confdefs.h <<\_ACEOF
  10496. -#define NEED_SNPRINTF 1
  10497. -_ACEOF
  10498. -
  10499. - echo "$as_me:$LINENO: checking for working snprintf" >&5
  10500. -echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
  10501. -if test "${compat_cv_func_snprintf_works+set}" = set; then
  10502. - echo $ECHO_N "(cached) $ECHO_C" >&6
  10503. -else
  10504. - if test "$cross_compiling" = yes; then
  10505. - compat_cv_func_snprintf_works=no
  10506. +for ac_header in dlfcn.h
  10507. +do
  10508. +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10509. +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10510. +$as_echo_n "checking for $ac_header... " >&6; }
  10511. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10512. + $as_echo_n "(cached) " >&6
  10513. else
  10514. cat >conftest.$ac_ext <<_ACEOF
  10515. -#line $LINENO "configure"
  10516. /* confdefs.h. */
  10517. _ACEOF
  10518. cat confdefs.h >>conftest.$ac_ext
  10519. cat >>conftest.$ac_ext <<_ACEOF
  10520. /* end confdefs.h. */
  10521. +$ac_includes_default
  10522. -#include <stdio.h>
  10523. -
  10524. -typedef struct {
  10525. - int length;
  10526. - char *test;
  10527. - int retval;
  10528. - char *result;
  10529. -} test_t;
  10530. -
  10531. -const test_t tests[] = {
  10532. - { 10, "12345678901234567890", 20, "123456789" },
  10533. -#if 0
  10534. - { 0, "12345678901234567890", 20, NULL },
  10535. - { -1, "12345678901234567890", -1, NULL },
  10536. -#endif
  10537. - { 0, NULL, 0, NULL }
  10538. -};
  10539. -
  10540. -int main() {
  10541. - char test1[1024];
  10542. - int i;
  10543. -
  10544. - for (i = 0; tests[i].test; i++) {
  10545. - memset(test1, 'X', sizeof(test1));
  10546. - if ((snprintf(test1, tests[i].length, "%s", tests[i].test)
  10547. - != tests[i].retval) ||
  10548. - (tests[i].result && strcmp(tests[i].result, test1)))
  10549. - exit(1);
  10550. - }
  10551. -
  10552. - exit(0);
  10553. -}
  10554. -
  10555. +#include <$ac_header>
  10556. _ACEOF
  10557. -rm -f conftest$ac_exeext
  10558. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10559. - (eval $ac_link) 2>&5
  10560. - ac_status=$?
  10561. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10562. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10563. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10564. - (eval $ac_try) 2>&5
  10565. +rm -f conftest.$ac_objext
  10566. +if { (ac_try="$ac_compile"
  10567. +case "(($ac_try" in
  10568. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10569. + *) ac_try_echo=$ac_try;;
  10570. +esac
  10571. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10572. +$as_echo "$ac_try_echo") >&5
  10573. + (eval "$ac_compile") 2>conftest.er1
  10574. ac_status=$?
  10575. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10576. - (exit $ac_status); }; }; then
  10577. - compat_cv_func_snprintf_works=yes
  10578. + grep -v '^ *+' conftest.er1 >conftest.err
  10579. + rm -f conftest.er1
  10580. + cat conftest.err >&5
  10581. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10582. + (exit $ac_status); } && {
  10583. + test -z "$ac_c_werror_flag" ||
  10584. + test ! -s conftest.err
  10585. + } && test -s conftest.$ac_objext; then
  10586. + eval "$as_ac_Header=yes"
  10587. else
  10588. - echo "$as_me: program exited with status $ac_status" >&5
  10589. -echo "$as_me: failed program was:" >&5
  10590. + $as_echo "$as_me: failed program was:" >&5
  10591. sed 's/^/| /' conftest.$ac_ext >&5
  10592. -( exit $ac_status )
  10593. -compat_cv_func_snprintf_works=no
  10594. -fi
  10595. -rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10596. + eval "$as_ac_Header=no"
  10597. fi
  10598. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10599. fi
  10600. -echo "$as_me:$LINENO: result: $compat_cv_func_snprintf_works" >&5
  10601. -echo "${ECHO_T}$compat_cv_func_snprintf_works" >&6
  10602. - if test "$compat_cv_func_snprintf_works" = "yes"; then
  10603. -
  10604. -cat >>confdefs.h <<\_ACEOF
  10605. -#define HAVE_SNPRINTF 1
  10606. +ac_res=`eval 'as_val=${'$as_ac_Header'}
  10607. + $as_echo "$as_val"'`
  10608. + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10609. +$as_echo "$ac_res" >&6; }
  10610. +as_val=`eval 'as_val=${'$as_ac_Header'}
  10611. + $as_echo "$as_val"'`
  10612. + if test "x$as_val" = x""yes; then
  10613. + cat >>confdefs.h <<_ACEOF
  10614. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10615. _ACEOF
  10616. - else
  10617. - LIBOBJS="$LIBOBJS snprintf.$ac_objext"
  10618. - fi
  10619. +fi
  10620. +done
  10621. -cat >>confdefs.h <<\_ACEOF
  10622. -#define NEED_STRDUP 1
  10623. -_ACEOF
  10624. +# Set options
  10625. - echo "$as_me:$LINENO: checking for strdup" >&5
  10626. -echo $ECHO_N "checking for strdup... $ECHO_C" >&6
  10627. -if test "${ac_cv_func_strdup+set}" = set; then
  10628. - echo $ECHO_N "(cached) $ECHO_C" >&6
  10629. -else
  10630. - cat >conftest.$ac_ext <<_ACEOF
  10631. -#line $LINENO "configure"
  10632. -/* confdefs.h. */
  10633. -_ACEOF
  10634. -cat confdefs.h >>conftest.$ac_ext
  10635. -cat >>conftest.$ac_ext <<_ACEOF
  10636. -/* end confdefs.h. */
  10637. -/* System header to define __stub macros and hopefully few prototypes,
  10638. - which can conflict with char strdup (); below.
  10639. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10640. - <limits.h> exists even on freestanding compilers. */
  10641. -#ifdef __STDC__
  10642. -# include <limits.h>
  10643. -#else
  10644. -# include <assert.h>
  10645. -#endif
  10646. -/* Override any gcc2 internal prototype to avoid an error. */
  10647. -#ifdef __cplusplus
  10648. -extern "C"
  10649. -{
  10650. -#endif
  10651. -/* We use char because int might match the return type of a gcc2
  10652. - builtin and then its argument prototype would still apply. */
  10653. -char strdup ();
  10654. -/* The GNU C library defines this for functions which it implements
  10655. - to always fail with ENOSYS. Some functions are actually named
  10656. - something starting with __ and the normal name is an alias. */
  10657. -#if defined (__stub_strdup) || defined (__stub___strdup)
  10658. -choke me
  10659. -#else
  10660. -char (*f) () = strdup;
  10661. -#endif
  10662. -#ifdef __cplusplus
  10663. -}
  10664. -#endif
  10665. -int
  10666. -main ()
  10667. -{
  10668. -return f != strdup;
  10669. - ;
  10670. - return 0;
  10671. -}
  10672. -_ACEOF
  10673. -rm -f conftest.$ac_objext conftest$ac_exeext
  10674. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10675. - (eval $ac_link) 2>&5
  10676. - ac_status=$?
  10677. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10678. - (exit $ac_status); } &&
  10679. - { ac_try='test -s conftest$ac_exeext'
  10680. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10681. - (eval $ac_try) 2>&5
  10682. - ac_status=$?
  10683. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10684. - (exit $ac_status); }; }; then
  10685. - ac_cv_func_strdup=yes
  10686. -else
  10687. - echo "$as_me: failed program was:" >&5
  10688. -sed 's/^/| /' conftest.$ac_ext >&5
  10689. -ac_cv_func_strdup=no
  10690. -fi
  10691. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10692. -fi
  10693. -echo "$as_me:$LINENO: result: $ac_cv_func_strdup" >&5
  10694. -echo "${ECHO_T}$ac_cv_func_strdup" >&6
  10695. -if test $ac_cv_func_strdup = yes; then
  10696. + enable_dlopen=no
  10697. -cat >>confdefs.h <<\_ACEOF
  10698. -#define HAVE_STRDUP 1
  10699. -_ACEOF
  10700. -else
  10701. - LIBOBJS="$LIBOBJS strdup.$ac_objext"
  10702. + enable_win32_dll=no
  10703. +
  10704. + # Check whether --enable-shared was given.
  10705. +if test "${enable_shared+set}" = set; then
  10706. + enableval=$enable_shared; p=${PACKAGE-default}
  10707. + case $enableval in
  10708. + yes) enable_shared=yes ;;
  10709. + no) enable_shared=no ;;
  10710. + *)
  10711. + enable_shared=no
  10712. + # Look at the argument we got. We use all the common list separators.
  10713. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10714. + for pkg in $enableval; do
  10715. + IFS="$lt_save_ifs"
  10716. + if test "X$pkg" = "X$p"; then
  10717. + enable_shared=yes
  10718. + fi
  10719. + done
  10720. + IFS="$lt_save_ifs"
  10721. + ;;
  10722. + esac
  10723. +else
  10724. + enable_shared=yes
  10725. fi
  10726. -for ac_func in strftime
  10727. -do
  10728. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10729. -echo "$as_me:$LINENO: checking for $ac_func" >&5
  10730. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10731. -if eval "test \"\${$as_ac_var+set}\" = set"; then
  10732. - echo $ECHO_N "(cached) $ECHO_C" >&6
  10733. -else
  10734. - cat >conftest.$ac_ext <<_ACEOF
  10735. -#line $LINENO "configure"
  10736. -/* confdefs.h. */
  10737. -_ACEOF
  10738. -cat confdefs.h >>conftest.$ac_ext
  10739. -cat >>conftest.$ac_ext <<_ACEOF
  10740. -/* end confdefs.h. */
  10741. -/* System header to define __stub macros and hopefully few prototypes,
  10742. - which can conflict with char $ac_func (); below.
  10743. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10744. - <limits.h> exists even on freestanding compilers. */
  10745. -#ifdef __STDC__
  10746. -# include <limits.h>
  10747. -#else
  10748. -# include <assert.h>
  10749. -#endif
  10750. -/* Override any gcc2 internal prototype to avoid an error. */
  10751. -#ifdef __cplusplus
  10752. -extern "C"
  10753. -{
  10754. -#endif
  10755. -/* We use char because int might match the return type of a gcc2
  10756. - builtin and then its argument prototype would still apply. */
  10757. -char $ac_func ();
  10758. -/* The GNU C library defines this for functions which it implements
  10759. - to always fail with ENOSYS. Some functions are actually named
  10760. - something starting with __ and the normal name is an alias. */
  10761. -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10762. -choke me
  10763. -#else
  10764. -char (*f) () = $ac_func;
  10765. -#endif
  10766. -#ifdef __cplusplus
  10767. -}
  10768. -#endif
  10769. -int
  10770. -main ()
  10771. -{
  10772. -return f != $ac_func;
  10773. - ;
  10774. - return 0;
  10775. -}
  10776. -_ACEOF
  10777. -rm -f conftest.$ac_objext conftest$ac_exeext
  10778. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10779. - (eval $ac_link) 2>&5
  10780. - ac_status=$?
  10781. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10782. - (exit $ac_status); } &&
  10783. - { ac_try='test -s conftest$ac_exeext'
  10784. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10785. - (eval $ac_try) 2>&5
  10786. - ac_status=$?
  10787. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10788. - (exit $ac_status); }; }; then
  10789. - eval "$as_ac_var=yes"
  10790. -else
  10791. - echo "$as_me: failed program was:" >&5
  10792. -sed 's/^/| /' conftest.$ac_ext >&5
  10793. -eval "$as_ac_var=no"
  10794. -fi
  10795. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10796. -fi
  10797. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10798. -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10799. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  10800. - cat >>confdefs.h <<_ACEOF
  10801. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10802. -_ACEOF
  10803. -else
  10804. - # strftime is in -lintl on SCO UNIX.
  10805. -echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  10806. -echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  10807. -if test "${ac_cv_lib_intl_strftime+set}" = set; then
  10808. - echo $ECHO_N "(cached) $ECHO_C" >&6
  10809. -else
  10810. - ac_check_lib_save_LIBS=$LIBS
  10811. -LIBS="-lintl $LIBS"
  10812. -cat >conftest.$ac_ext <<_ACEOF
  10813. -#line $LINENO "configure"
  10814. -/* confdefs.h. */
  10815. -_ACEOF
  10816. -cat confdefs.h >>conftest.$ac_ext
  10817. -cat >>conftest.$ac_ext <<_ACEOF
  10818. -/* end confdefs.h. */
  10819. -/* Override any gcc2 internal prototype to avoid an error. */
  10820. -#ifdef __cplusplus
  10821. -extern "C"
  10822. -#endif
  10823. -/* We use char because int might match the return type of a gcc2
  10824. - builtin and then its argument prototype would still apply. */
  10825. -char strftime ();
  10826. -int
  10827. -main ()
  10828. -{
  10829. -strftime ();
  10830. - ;
  10831. - return 0;
  10832. -}
  10833. -_ACEOF
  10834. -rm -f conftest.$ac_objext conftest$ac_exeext
  10835. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10836. - (eval $ac_link) 2>&5
  10837. - ac_status=$?
  10838. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10839. - (exit $ac_status); } &&
  10840. - { ac_try='test -s conftest$ac_exeext'
  10841. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10842. - (eval $ac_try) 2>&5
  10843. - ac_status=$?
  10844. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10845. - (exit $ac_status); }; }; then
  10846. - ac_cv_lib_intl_strftime=yes
  10847. -else
  10848. - echo "$as_me: failed program was:" >&5
  10849. -sed 's/^/| /' conftest.$ac_ext >&5
  10850. -ac_cv_lib_intl_strftime=no
  10851. -fi
  10852. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10853. -LIBS=$ac_check_lib_save_LIBS
  10854. + # Check whether --enable-static was given.
  10855. +if test "${enable_static+set}" = set; then
  10856. + enableval=$enable_static; p=${PACKAGE-default}
  10857. + case $enableval in
  10858. + yes) enable_static=yes ;;
  10859. + no) enable_static=no ;;
  10860. + *)
  10861. + enable_static=no
  10862. + # Look at the argument we got. We use all the common list separators.
  10863. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10864. + for pkg in $enableval; do
  10865. + IFS="$lt_save_ifs"
  10866. + if test "X$pkg" = "X$p"; then
  10867. + enable_static=yes
  10868. + fi
  10869. + done
  10870. + IFS="$lt_save_ifs"
  10871. + ;;
  10872. + esac
  10873. +else
  10874. + enable_static=yes
  10875. fi
  10876. -echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  10877. -echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  10878. -if test $ac_cv_lib_intl_strftime = yes; then
  10879. - cat >>confdefs.h <<\_ACEOF
  10880. -#define HAVE_STRFTIME 1
  10881. -_ACEOF
  10882. -LIBS="-lintl $LIBS"
  10883. -fi
  10884. -fi
  10885. -done
  10886. -cat >>confdefs.h <<\_ACEOF
  10887. -#define NEED_STRLCPY 1
  10888. -_ACEOF
  10889. - echo "$as_me:$LINENO: checking for strlcpy" >&5
  10890. -echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
  10891. -if test "${ac_cv_func_strlcpy+set}" = set; then
  10892. - echo $ECHO_N "(cached) $ECHO_C" >&6
  10893. -else
  10894. - cat >conftest.$ac_ext <<_ACEOF
  10895. -#line $LINENO "configure"
  10896. -/* confdefs.h. */
  10897. -_ACEOF
  10898. -cat confdefs.h >>conftest.$ac_ext
  10899. -cat >>conftest.$ac_ext <<_ACEOF
  10900. -/* end confdefs.h. */
  10901. -/* System header to define __stub macros and hopefully few prototypes,
  10902. - which can conflict with char strlcpy (); below.
  10903. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10904. - <limits.h> exists even on freestanding compilers. */
  10905. -#ifdef __STDC__
  10906. -# include <limits.h>
  10907. -#else
  10908. -# include <assert.h>
  10909. -#endif
  10910. -/* Override any gcc2 internal prototype to avoid an error. */
  10911. -#ifdef __cplusplus
  10912. -extern "C"
  10913. -{
  10914. -#endif
  10915. -/* We use char because int might match the return type of a gcc2
  10916. - builtin and then its argument prototype would still apply. */
  10917. -char strlcpy ();
  10918. -/* The GNU C library defines this for functions which it implements
  10919. - to always fail with ENOSYS. Some functions are actually named
  10920. - something starting with __ and the normal name is an alias. */
  10921. -#if defined (__stub_strlcpy) || defined (__stub___strlcpy)
  10922. -choke me
  10923. -#else
  10924. -char (*f) () = strlcpy;
  10925. -#endif
  10926. -#ifdef __cplusplus
  10927. -}
  10928. -#endif
  10929. -int
  10930. -main ()
  10931. -{
  10932. -return f != strlcpy;
  10933. - ;
  10934. - return 0;
  10935. -}
  10936. -_ACEOF
  10937. -rm -f conftest.$ac_objext conftest$ac_exeext
  10938. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10939. - (eval $ac_link) 2>&5
  10940. - ac_status=$?
  10941. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10942. - (exit $ac_status); } &&
  10943. - { ac_try='test -s conftest$ac_exeext'
  10944. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10945. - (eval $ac_try) 2>&5
  10946. - ac_status=$?
  10947. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10948. - (exit $ac_status); }; }; then
  10949. - ac_cv_func_strlcpy=yes
  10950. -else
  10951. - echo "$as_me: failed program was:" >&5
  10952. -sed 's/^/| /' conftest.$ac_ext >&5
  10953. -ac_cv_func_strlcpy=no
  10954. -fi
  10955. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10956. +
  10957. +# Check whether --with-pic was given.
  10958. +if test "${with_pic+set}" = set; then
  10959. + withval=$with_pic; pic_mode="$withval"
  10960. +else
  10961. + pic_mode=default
  10962. fi
  10963. -echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
  10964. -echo "${ECHO_T}$ac_cv_func_strlcpy" >&6
  10965. -if test $ac_cv_func_strlcpy = yes; then
  10966. -cat >>confdefs.h <<\_ACEOF
  10967. -#define HAVE_STRLCPY 1
  10968. -_ACEOF
  10969. -else
  10970. - LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
  10971. +test -z "$pic_mode" && pic_mode=default
  10972. +
  10973. +
  10974. +
  10975. +
  10976. +
  10977. +
  10978. + # Check whether --enable-fast-install was given.
  10979. +if test "${enable_fast_install+set}" = set; then
  10980. + enableval=$enable_fast_install; p=${PACKAGE-default}
  10981. + case $enableval in
  10982. + yes) enable_fast_install=yes ;;
  10983. + no) enable_fast_install=no ;;
  10984. + *)
  10985. + enable_fast_install=no
  10986. + # Look at the argument we got. We use all the common list separators.
  10987. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10988. + for pkg in $enableval; do
  10989. + IFS="$lt_save_ifs"
  10990. + if test "X$pkg" = "X$p"; then
  10991. + enable_fast_install=yes
  10992. + fi
  10993. + done
  10994. + IFS="$lt_save_ifs"
  10995. + ;;
  10996. + esac
  10997. +else
  10998. + enable_fast_install=yes
  10999. fi
  11000. @@ -6737,1346 +7864,9854 @@
  11001. -cat >>confdefs.h <<\_ACEOF
  11002. -#define NEED_STRMODE 1
  11003. -_ACEOF
  11004. - echo "$as_me:$LINENO: checking for strmode" >&5
  11005. -echo $ECHO_N "checking for strmode... $ECHO_C" >&6
  11006. -if test "${ac_cv_func_strmode+set}" = set; then
  11007. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11008. -else
  11009. - cat >conftest.$ac_ext <<_ACEOF
  11010. -#line $LINENO "configure"
  11011. -/* confdefs.h. */
  11012. -_ACEOF
  11013. -cat confdefs.h >>conftest.$ac_ext
  11014. -cat >>conftest.$ac_ext <<_ACEOF
  11015. -/* end confdefs.h. */
  11016. -/* System header to define __stub macros and hopefully few prototypes,
  11017. - which can conflict with char strmode (); below.
  11018. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11019. - <limits.h> exists even on freestanding compilers. */
  11020. -#ifdef __STDC__
  11021. -# include <limits.h>
  11022. -#else
  11023. -# include <assert.h>
  11024. -#endif
  11025. -/* Override any gcc2 internal prototype to avoid an error. */
  11026. +
  11027. +
  11028. +
  11029. +
  11030. +# This can be used to rebuild libtool when needed
  11031. +LIBTOOL_DEPS="$ltmain"
  11032. +
  11033. +# Always use our own libtool.
  11034. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  11035. +
  11036. +
  11037. +
  11038. +
  11039. +
  11040. +
  11041. +
  11042. +
  11043. +
  11044. +
  11045. +
  11046. +
  11047. +
  11048. +
  11049. +
  11050. +
  11051. +
  11052. +
  11053. +
  11054. +
  11055. +
  11056. +
  11057. +
  11058. +
  11059. +
  11060. +test -z "$LN_S" && LN_S="ln -s"
  11061. +
  11062. +
  11063. +
  11064. +
  11065. +
  11066. +
  11067. +
  11068. +
  11069. +
  11070. +
  11071. +
  11072. +
  11073. +
  11074. +
  11075. +if test -n "${ZSH_VERSION+set}" ; then
  11076. + setopt NO_GLOB_SUBST
  11077. +fi
  11078. +
  11079. +{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
  11080. +$as_echo_n "checking for objdir... " >&6; }
  11081. +if test "${lt_cv_objdir+set}" = set; then
  11082. + $as_echo_n "(cached) " >&6
  11083. +else
  11084. + rm -f .libs 2>/dev/null
  11085. +mkdir .libs 2>/dev/null
  11086. +if test -d .libs; then
  11087. + lt_cv_objdir=.libs
  11088. +else
  11089. + # MS-DOS does not allow filenames that begin with a dot.
  11090. + lt_cv_objdir=_libs
  11091. +fi
  11092. +rmdir .libs 2>/dev/null
  11093. +fi
  11094. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  11095. +$as_echo "$lt_cv_objdir" >&6; }
  11096. +objdir=$lt_cv_objdir
  11097. +
  11098. +
  11099. +
  11100. +
  11101. +
  11102. +cat >>confdefs.h <<_ACEOF
  11103. +#define LT_OBJDIR "$lt_cv_objdir/"
  11104. +_ACEOF
  11105. +
  11106. +
  11107. +
  11108. +
  11109. +
  11110. +
  11111. +
  11112. +
  11113. +
  11114. +
  11115. +
  11116. +
  11117. +
  11118. +
  11119. +
  11120. +
  11121. +
  11122. +case $host_os in
  11123. +aix3*)
  11124. + # AIX sometimes has problems with the GCC collect2 program. For some
  11125. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  11126. + # vanish in a puff of smoke.
  11127. + if test "X${COLLECT_NAMES+set}" != Xset; then
  11128. + COLLECT_NAMES=
  11129. + export COLLECT_NAMES
  11130. + fi
  11131. + ;;
  11132. +esac
  11133. +
  11134. +# Sed substitution that helps us do robust quoting. It backslashifies
  11135. +# metacharacters that are still active within double-quoted strings.
  11136. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  11137. +
  11138. +# Same as above, but do not quote variable references.
  11139. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  11140. +
  11141. +# Sed substitution to delay expansion of an escaped shell variable in a
  11142. +# double_quote_subst'ed string.
  11143. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  11144. +
  11145. +# Sed substitution to delay expansion of an escaped single quote.
  11146. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  11147. +
  11148. +# Sed substitution to avoid accidental globbing in evaled expressions
  11149. +no_glob_subst='s/\*/\\\*/g'
  11150. +
  11151. +# Global variables:
  11152. +ofile=libtool
  11153. +can_build_shared=yes
  11154. +
  11155. +# All known linkers require a `.a' archive for static linking (except MSVC,
  11156. +# which needs '.lib').
  11157. +libext=a
  11158. +
  11159. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  11160. +
  11161. +old_CC="$CC"
  11162. +old_CFLAGS="$CFLAGS"
  11163. +
  11164. +# Set sane defaults for various variables
  11165. +test -z "$CC" && CC=cc
  11166. +test -z "$LTCC" && LTCC=$CC
  11167. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  11168. +test -z "$LD" && LD=ld
  11169. +test -z "$ac_objext" && ac_objext=o
  11170. +
  11171. +for cc_temp in $compiler""; do
  11172. + case $cc_temp in
  11173. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11174. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11175. + \-*) ;;
  11176. + *) break;;
  11177. + esac
  11178. +done
  11179. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11180. +
  11181. +
  11182. +# Only perform the check for file, if the check method requires it
  11183. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  11184. +case $deplibs_check_method in
  11185. +file_magic*)
  11186. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  11187. + { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  11188. +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  11189. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  11190. + $as_echo_n "(cached) " >&6
  11191. +else
  11192. + case $MAGIC_CMD in
  11193. +[\\/*] | ?:[\\/]*)
  11194. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  11195. + ;;
  11196. +*)
  11197. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  11198. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11199. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  11200. + for ac_dir in $ac_dummy; do
  11201. + IFS="$lt_save_ifs"
  11202. + test -z "$ac_dir" && ac_dir=.
  11203. + if test -f $ac_dir/${ac_tool_prefix}file; then
  11204. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  11205. + if test -n "$file_magic_test_file"; then
  11206. + case $deplibs_check_method in
  11207. + "file_magic "*)
  11208. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  11209. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  11210. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  11211. + $EGREP "$file_magic_regex" > /dev/null; then
  11212. + :
  11213. + else
  11214. + cat <<_LT_EOF 1>&2
  11215. +
  11216. +*** Warning: the command libtool uses to detect shared libraries,
  11217. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  11218. +*** The result is that libtool may fail to recognize shared libraries
  11219. +*** as such. This will affect the creation of libtool libraries that
  11220. +*** depend on shared libraries, but programs linked with such libtool
  11221. +*** libraries will work regardless of this problem. Nevertheless, you
  11222. +*** may want to report the problem to your system manager and/or to
  11223. +*** bug-libtool@gnu.org
  11224. +
  11225. +_LT_EOF
  11226. + fi ;;
  11227. + esac
  11228. + fi
  11229. + break
  11230. + fi
  11231. + done
  11232. + IFS="$lt_save_ifs"
  11233. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  11234. + ;;
  11235. +esac
  11236. +fi
  11237. +
  11238. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  11239. +if test -n "$MAGIC_CMD"; then
  11240. + { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  11241. +$as_echo "$MAGIC_CMD" >&6; }
  11242. +else
  11243. + { $as_echo "$as_me:$LINENO: result: no" >&5
  11244. +$as_echo "no" >&6; }
  11245. +fi
  11246. +
  11247. +
  11248. +
  11249. +
  11250. +
  11251. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  11252. + if test -n "$ac_tool_prefix"; then
  11253. + { $as_echo "$as_me:$LINENO: checking for file" >&5
  11254. +$as_echo_n "checking for file... " >&6; }
  11255. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  11256. + $as_echo_n "(cached) " >&6
  11257. +else
  11258. + case $MAGIC_CMD in
  11259. +[\\/*] | ?:[\\/]*)
  11260. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  11261. + ;;
  11262. +*)
  11263. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  11264. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11265. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  11266. + for ac_dir in $ac_dummy; do
  11267. + IFS="$lt_save_ifs"
  11268. + test -z "$ac_dir" && ac_dir=.
  11269. + if test -f $ac_dir/file; then
  11270. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  11271. + if test -n "$file_magic_test_file"; then
  11272. + case $deplibs_check_method in
  11273. + "file_magic "*)
  11274. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  11275. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  11276. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  11277. + $EGREP "$file_magic_regex" > /dev/null; then
  11278. + :
  11279. + else
  11280. + cat <<_LT_EOF 1>&2
  11281. +
  11282. +*** Warning: the command libtool uses to detect shared libraries,
  11283. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  11284. +*** The result is that libtool may fail to recognize shared libraries
  11285. +*** as such. This will affect the creation of libtool libraries that
  11286. +*** depend on shared libraries, but programs linked with such libtool
  11287. +*** libraries will work regardless of this problem. Nevertheless, you
  11288. +*** may want to report the problem to your system manager and/or to
  11289. +*** bug-libtool@gnu.org
  11290. +
  11291. +_LT_EOF
  11292. + fi ;;
  11293. + esac
  11294. + fi
  11295. + break
  11296. + fi
  11297. + done
  11298. + IFS="$lt_save_ifs"
  11299. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  11300. + ;;
  11301. +esac
  11302. +fi
  11303. +
  11304. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  11305. +if test -n "$MAGIC_CMD"; then
  11306. + { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  11307. +$as_echo "$MAGIC_CMD" >&6; }
  11308. +else
  11309. + { $as_echo "$as_me:$LINENO: result: no" >&5
  11310. +$as_echo "no" >&6; }
  11311. +fi
  11312. +
  11313. +
  11314. + else
  11315. + MAGIC_CMD=:
  11316. + fi
  11317. +fi
  11318. +
  11319. + fi
  11320. + ;;
  11321. +esac
  11322. +
  11323. +# Use C for the default configuration in the libtool script
  11324. +
  11325. +lt_save_CC="$CC"
  11326. +ac_ext=c
  11327. +ac_cpp='$CPP $CPPFLAGS'
  11328. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11329. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11330. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11331. +
  11332. +
  11333. +# Source file extension for C test sources.
  11334. +ac_ext=c
  11335. +
  11336. +# Object file extension for compiled C test sources.
  11337. +objext=o
  11338. +objext=$objext
  11339. +
  11340. +# Code to be used in simple compile tests
  11341. +lt_simple_compile_test_code="int some_variable = 0;"
  11342. +
  11343. +# Code to be used in simple link tests
  11344. +lt_simple_link_test_code='int main(){return(0);}'
  11345. +
  11346. +
  11347. +
  11348. +
  11349. +
  11350. +
  11351. +
  11352. +# If no C compiler was specified, use CC.
  11353. +LTCC=${LTCC-"$CC"}
  11354. +
  11355. +# If no C compiler flags were specified, use CFLAGS.
  11356. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11357. +
  11358. +# Allow CC to be a program name with arguments.
  11359. +compiler=$CC
  11360. +
  11361. +# Save the default compiler, since it gets overwritten when the other
  11362. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  11363. +compiler_DEFAULT=$CC
  11364. +
  11365. +# save warnings/boilerplate of simple test code
  11366. +ac_outfile=conftest.$ac_objext
  11367. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11368. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11369. +_lt_compiler_boilerplate=`cat conftest.err`
  11370. +$RM conftest*
  11371. +
  11372. +ac_outfile=conftest.$ac_objext
  11373. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11374. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11375. +_lt_linker_boilerplate=`cat conftest.err`
  11376. +$RM -r conftest*
  11377. +
  11378. +
  11379. +## CAVEAT EMPTOR:
  11380. +## There is no encapsulation within the following macros, do not change
  11381. +## the running order or otherwise move them around unless you know exactly
  11382. +## what you are doing...
  11383. +if test -n "$compiler"; then
  11384. +
  11385. +lt_prog_compiler_no_builtin_flag=
  11386. +
  11387. +if test "$GCC" = yes; then
  11388. + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  11389. +
  11390. + { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  11391. +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  11392. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  11393. + $as_echo_n "(cached) " >&6
  11394. +else
  11395. + lt_cv_prog_compiler_rtti_exceptions=no
  11396. + ac_outfile=conftest.$ac_objext
  11397. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11398. + lt_compiler_flag="-fno-rtti -fno-exceptions"
  11399. + # Insert the option either (1) after the last *FLAGS variable, or
  11400. + # (2) before a word containing "conftest.", or (3) at the end.
  11401. + # Note that $ac_compile itself does not contain backslashes and begins
  11402. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  11403. + # The option is referenced via a variable to avoid confusing sed.
  11404. + lt_compile=`echo "$ac_compile" | $SED \
  11405. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11406. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11407. + -e 's:$: $lt_compiler_flag:'`
  11408. + (eval echo "\"\$as_me:8250: $lt_compile\"" >&5)
  11409. + (eval "$lt_compile" 2>conftest.err)
  11410. + ac_status=$?
  11411. + cat conftest.err >&5
  11412. + echo "$as_me:8254: \$? = $ac_status" >&5
  11413. + if (exit $ac_status) && test -s "$ac_outfile"; then
  11414. + # The compiler can only warn and ignore the option if not recognized
  11415. + # So say no if there are warnings other than the usual output.
  11416. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11417. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11418. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11419. + lt_cv_prog_compiler_rtti_exceptions=yes
  11420. + fi
  11421. + fi
  11422. + $RM conftest*
  11423. +
  11424. +fi
  11425. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  11426. +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  11427. +
  11428. +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  11429. + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  11430. +else
  11431. + :
  11432. +fi
  11433. +
  11434. +fi
  11435. +
  11436. +
  11437. +
  11438. +
  11439. +
  11440. +
  11441. + lt_prog_compiler_wl=
  11442. +lt_prog_compiler_pic=
  11443. +lt_prog_compiler_static=
  11444. +
  11445. +{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11446. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11447. +
  11448. + if test "$GCC" = yes; then
  11449. + lt_prog_compiler_wl='-Wl,'
  11450. + lt_prog_compiler_static='-static'
  11451. +
  11452. + case $host_os in
  11453. + aix*)
  11454. + # All AIX code is PIC.
  11455. + if test "$host_cpu" = ia64; then
  11456. + # AIX 5 now supports IA64 processor
  11457. + lt_prog_compiler_static='-Bstatic'
  11458. + fi
  11459. + ;;
  11460. +
  11461. + amigaos*)
  11462. + case $host_cpu in
  11463. + powerpc)
  11464. + # see comment about AmigaOS4 .so support
  11465. + lt_prog_compiler_pic='-fPIC'
  11466. + ;;
  11467. + m68k)
  11468. + # FIXME: we need at least 68020 code to build shared libraries, but
  11469. + # adding the `-m68020' flag to GCC prevents building anything better,
  11470. + # like `-m68040'.
  11471. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  11472. + ;;
  11473. + esac
  11474. + ;;
  11475. +
  11476. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11477. + # PIC is the default for these OSes.
  11478. + ;;
  11479. +
  11480. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  11481. + # This hack is so that the source file can tell whether it is being
  11482. + # built for inclusion in a dll (and should export symbols for example).
  11483. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11484. + # (--disable-auto-import) libraries
  11485. + lt_prog_compiler_pic='-DDLL_EXPORT'
  11486. + ;;
  11487. +
  11488. + darwin* | rhapsody*)
  11489. + # PIC is the default on this platform
  11490. + # Common symbols not allowed in MH_DYLIB files
  11491. + lt_prog_compiler_pic='-fno-common'
  11492. + ;;
  11493. +
  11494. + hpux*)
  11495. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11496. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11497. + # sets the default TLS model and affects inlining.
  11498. + case $host_cpu in
  11499. + hppa*64*)
  11500. + # +Z the default
  11501. + ;;
  11502. + *)
  11503. + lt_prog_compiler_pic='-fPIC'
  11504. + ;;
  11505. + esac
  11506. + ;;
  11507. +
  11508. + interix[3-9]*)
  11509. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11510. + # Instead, we relocate shared libraries at runtime.
  11511. + ;;
  11512. +
  11513. + msdosdjgpp*)
  11514. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  11515. + # on systems that don't support them.
  11516. + lt_prog_compiler_can_build_shared=no
  11517. + enable_shared=no
  11518. + ;;
  11519. +
  11520. + *nto* | *qnx*)
  11521. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  11522. + # it will coredump.
  11523. + lt_prog_compiler_pic='-fPIC -shared'
  11524. + ;;
  11525. +
  11526. + sysv4*MP*)
  11527. + if test -d /usr/nec; then
  11528. + lt_prog_compiler_pic=-Kconform_pic
  11529. + fi
  11530. + ;;
  11531. +
  11532. + *)
  11533. + lt_prog_compiler_pic='-fPIC'
  11534. + ;;
  11535. + esac
  11536. + else
  11537. + # PORTME Check for flag to pass linker flags through the system compiler.
  11538. + case $host_os in
  11539. + aix*)
  11540. + lt_prog_compiler_wl='-Wl,'
  11541. + if test "$host_cpu" = ia64; then
  11542. + # AIX 5 now supports IA64 processor
  11543. + lt_prog_compiler_static='-Bstatic'
  11544. + else
  11545. + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  11546. + fi
  11547. + ;;
  11548. +
  11549. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  11550. + # This hack is so that the source file can tell whether it is being
  11551. + # built for inclusion in a dll (and should export symbols for example).
  11552. + lt_prog_compiler_pic='-DDLL_EXPORT'
  11553. + ;;
  11554. +
  11555. + hpux9* | hpux10* | hpux11*)
  11556. + lt_prog_compiler_wl='-Wl,'
  11557. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11558. + # not for PA HP-UX.
  11559. + case $host_cpu in
  11560. + hppa*64*|ia64*)
  11561. + # +Z the default
  11562. + ;;
  11563. + *)
  11564. + lt_prog_compiler_pic='+Z'
  11565. + ;;
  11566. + esac
  11567. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11568. + lt_prog_compiler_static='${wl}-a ${wl}archive'
  11569. + ;;
  11570. +
  11571. + irix5* | irix6* | nonstopux*)
  11572. + lt_prog_compiler_wl='-Wl,'
  11573. + # PIC (with -KPIC) is the default.
  11574. + lt_prog_compiler_static='-non_shared'
  11575. + ;;
  11576. +
  11577. + linux* | k*bsd*-gnu)
  11578. + case $cc_basename in
  11579. + # old Intel for x86_64 which still supported -KPIC.
  11580. + ecc*)
  11581. + lt_prog_compiler_wl='-Wl,'
  11582. + lt_prog_compiler_pic='-KPIC'
  11583. + lt_prog_compiler_static='-static'
  11584. + ;;
  11585. + # icc used to be incompatible with GCC.
  11586. + # ICC 10 doesn't accept -KPIC any more.
  11587. + icc* | ifort*)
  11588. + lt_prog_compiler_wl='-Wl,'
  11589. + lt_prog_compiler_pic='-fPIC'
  11590. + lt_prog_compiler_static='-static'
  11591. + ;;
  11592. + # Lahey Fortran 8.1.
  11593. + lf95*)
  11594. + lt_prog_compiler_wl='-Wl,'
  11595. + lt_prog_compiler_pic='--shared'
  11596. + lt_prog_compiler_static='--static'
  11597. + ;;
  11598. + pgcc* | pgf77* | pgf90* | pgf95*)
  11599. + # Portland Group compilers (*not* the Pentium gcc compiler,
  11600. + # which looks to be a dead project)
  11601. + lt_prog_compiler_wl='-Wl,'
  11602. + lt_prog_compiler_pic='-fpic'
  11603. + lt_prog_compiler_static='-Bstatic'
  11604. + ;;
  11605. + ccc*)
  11606. + lt_prog_compiler_wl='-Wl,'
  11607. + # All Alpha code is PIC.
  11608. + lt_prog_compiler_static='-non_shared'
  11609. + ;;
  11610. + xl*)
  11611. + # IBM XL C 8.0/Fortran 10.1 on PPC
  11612. + lt_prog_compiler_wl='-Wl,'
  11613. + lt_prog_compiler_pic='-qpic'
  11614. + lt_prog_compiler_static='-qstaticlink'
  11615. + ;;
  11616. + *)
  11617. + case `$CC -V 2>&1 | sed 5q` in
  11618. + *Sun\ C*)
  11619. + # Sun C 5.9
  11620. + lt_prog_compiler_pic='-KPIC'
  11621. + lt_prog_compiler_static='-Bstatic'
  11622. + lt_prog_compiler_wl='-Wl,'
  11623. + ;;
  11624. + *Sun\ F*)
  11625. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  11626. + lt_prog_compiler_pic='-KPIC'
  11627. + lt_prog_compiler_static='-Bstatic'
  11628. + lt_prog_compiler_wl=''
  11629. + ;;
  11630. + esac
  11631. + ;;
  11632. + esac
  11633. + ;;
  11634. +
  11635. + newsos6)
  11636. + lt_prog_compiler_pic='-KPIC'
  11637. + lt_prog_compiler_static='-Bstatic'
  11638. + ;;
  11639. +
  11640. + *nto* | *qnx*)
  11641. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  11642. + # it will coredump.
  11643. + lt_prog_compiler_pic='-fPIC -shared'
  11644. + ;;
  11645. +
  11646. + osf3* | osf4* | osf5*)
  11647. + lt_prog_compiler_wl='-Wl,'
  11648. + # All OSF/1 code is PIC.
  11649. + lt_prog_compiler_static='-non_shared'
  11650. + ;;
  11651. +
  11652. + rdos*)
  11653. + lt_prog_compiler_static='-non_shared'
  11654. + ;;
  11655. +
  11656. + solaris*)
  11657. + lt_prog_compiler_pic='-KPIC'
  11658. + lt_prog_compiler_static='-Bstatic'
  11659. + case $cc_basename in
  11660. + f77* | f90* | f95*)
  11661. + lt_prog_compiler_wl='-Qoption ld ';;
  11662. + *)
  11663. + lt_prog_compiler_wl='-Wl,';;
  11664. + esac
  11665. + ;;
  11666. +
  11667. + sunos4*)
  11668. + lt_prog_compiler_wl='-Qoption ld '
  11669. + lt_prog_compiler_pic='-PIC'
  11670. + lt_prog_compiler_static='-Bstatic'
  11671. + ;;
  11672. +
  11673. + sysv4 | sysv4.2uw2* | sysv4.3*)
  11674. + lt_prog_compiler_wl='-Wl,'
  11675. + lt_prog_compiler_pic='-KPIC'
  11676. + lt_prog_compiler_static='-Bstatic'
  11677. + ;;
  11678. +
  11679. + sysv4*MP*)
  11680. + if test -d /usr/nec ;then
  11681. + lt_prog_compiler_pic='-Kconform_pic'
  11682. + lt_prog_compiler_static='-Bstatic'
  11683. + fi
  11684. + ;;
  11685. +
  11686. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11687. + lt_prog_compiler_wl='-Wl,'
  11688. + lt_prog_compiler_pic='-KPIC'
  11689. + lt_prog_compiler_static='-Bstatic'
  11690. + ;;
  11691. +
  11692. + unicos*)
  11693. + lt_prog_compiler_wl='-Wl,'
  11694. + lt_prog_compiler_can_build_shared=no
  11695. + ;;
  11696. +
  11697. + uts4*)
  11698. + lt_prog_compiler_pic='-pic'
  11699. + lt_prog_compiler_static='-Bstatic'
  11700. + ;;
  11701. +
  11702. + *)
  11703. + lt_prog_compiler_can_build_shared=no
  11704. + ;;
  11705. + esac
  11706. + fi
  11707. +
  11708. +case $host_os in
  11709. + # For platforms which do not support PIC, -DPIC is meaningless:
  11710. + *djgpp*)
  11711. + lt_prog_compiler_pic=
  11712. + ;;
  11713. + *)
  11714. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  11715. + ;;
  11716. +esac
  11717. +{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  11718. +$as_echo "$lt_prog_compiler_pic" >&6; }
  11719. +
  11720. +
  11721. +
  11722. +
  11723. +
  11724. +
  11725. +#
  11726. +# Check to make sure the PIC flag actually works.
  11727. +#
  11728. +if test -n "$lt_prog_compiler_pic"; then
  11729. + { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  11730. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  11731. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  11732. + $as_echo_n "(cached) " >&6
  11733. +else
  11734. + lt_cv_prog_compiler_pic_works=no
  11735. + ac_outfile=conftest.$ac_objext
  11736. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11737. + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  11738. + # Insert the option either (1) after the last *FLAGS variable, or
  11739. + # (2) before a word containing "conftest.", or (3) at the end.
  11740. + # Note that $ac_compile itself does not contain backslashes and begins
  11741. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  11742. + # The option is referenced via a variable to avoid confusing sed.
  11743. + lt_compile=`echo "$ac_compile" | $SED \
  11744. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11745. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11746. + -e 's:$: $lt_compiler_flag:'`
  11747. + (eval echo "\"\$as_me:8589: $lt_compile\"" >&5)
  11748. + (eval "$lt_compile" 2>conftest.err)
  11749. + ac_status=$?
  11750. + cat conftest.err >&5
  11751. + echo "$as_me:8593: \$? = $ac_status" >&5
  11752. + if (exit $ac_status) && test -s "$ac_outfile"; then
  11753. + # The compiler can only warn and ignore the option if not recognized
  11754. + # So say no if there are warnings other than the usual output.
  11755. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11756. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11757. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11758. + lt_cv_prog_compiler_pic_works=yes
  11759. + fi
  11760. + fi
  11761. + $RM conftest*
  11762. +
  11763. +fi
  11764. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  11765. +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  11766. +
  11767. +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  11768. + case $lt_prog_compiler_pic in
  11769. + "" | " "*) ;;
  11770. + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  11771. + esac
  11772. +else
  11773. + lt_prog_compiler_pic=
  11774. + lt_prog_compiler_can_build_shared=no
  11775. +fi
  11776. +
  11777. +fi
  11778. +
  11779. +
  11780. +
  11781. +
  11782. +
  11783. +
  11784. +#
  11785. +# Check to make sure the static flag actually works.
  11786. +#
  11787. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  11788. +{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11789. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11790. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  11791. + $as_echo_n "(cached) " >&6
  11792. +else
  11793. + lt_cv_prog_compiler_static_works=no
  11794. + save_LDFLAGS="$LDFLAGS"
  11795. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11796. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11797. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11798. + # The linker can only warn and ignore the option if not recognized
  11799. + # So say no if there are warnings
  11800. + if test -s conftest.err; then
  11801. + # Append any errors to the config.log.
  11802. + cat conftest.err 1>&5
  11803. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11804. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11805. + if diff conftest.exp conftest.er2 >/dev/null; then
  11806. + lt_cv_prog_compiler_static_works=yes
  11807. + fi
  11808. + else
  11809. + lt_cv_prog_compiler_static_works=yes
  11810. + fi
  11811. + fi
  11812. + $RM -r conftest*
  11813. + LDFLAGS="$save_LDFLAGS"
  11814. +
  11815. +fi
  11816. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  11817. +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  11818. +
  11819. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  11820. + :
  11821. +else
  11822. + lt_prog_compiler_static=
  11823. +fi
  11824. +
  11825. +
  11826. +
  11827. +
  11828. +
  11829. +
  11830. +
  11831. + { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11832. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11833. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  11834. + $as_echo_n "(cached) " >&6
  11835. +else
  11836. + lt_cv_prog_compiler_c_o=no
  11837. + $RM -r conftest 2>/dev/null
  11838. + mkdir conftest
  11839. + cd conftest
  11840. + mkdir out
  11841. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11842. +
  11843. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  11844. + # Insert the option either (1) after the last *FLAGS variable, or
  11845. + # (2) before a word containing "conftest.", or (3) at the end.
  11846. + # Note that $ac_compile itself does not contain backslashes and begins
  11847. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  11848. + lt_compile=`echo "$ac_compile" | $SED \
  11849. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11850. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11851. + -e 's:$: $lt_compiler_flag:'`
  11852. + (eval echo "\"\$as_me:8694: $lt_compile\"" >&5)
  11853. + (eval "$lt_compile" 2>out/conftest.err)
  11854. + ac_status=$?
  11855. + cat out/conftest.err >&5
  11856. + echo "$as_me:8698: \$? = $ac_status" >&5
  11857. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11858. + then
  11859. + # The compiler can only warn and ignore the option if not recognized
  11860. + # So say no if there are warnings
  11861. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11862. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11863. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11864. + lt_cv_prog_compiler_c_o=yes
  11865. + fi
  11866. + fi
  11867. + chmod u+w . 2>&5
  11868. + $RM conftest*
  11869. + # SGI C++ compiler will create directory out/ii_files/ for
  11870. + # template instantiation
  11871. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11872. + $RM out/* && rmdir out
  11873. + cd ..
  11874. + $RM -r conftest
  11875. + $RM conftest*
  11876. +
  11877. +fi
  11878. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  11879. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  11880. +
  11881. +
  11882. +
  11883. +
  11884. +
  11885. +
  11886. + { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11887. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11888. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  11889. + $as_echo_n "(cached) " >&6
  11890. +else
  11891. + lt_cv_prog_compiler_c_o=no
  11892. + $RM -r conftest 2>/dev/null
  11893. + mkdir conftest
  11894. + cd conftest
  11895. + mkdir out
  11896. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11897. +
  11898. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  11899. + # Insert the option either (1) after the last *FLAGS variable, or
  11900. + # (2) before a word containing "conftest.", or (3) at the end.
  11901. + # Note that $ac_compile itself does not contain backslashes and begins
  11902. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  11903. + lt_compile=`echo "$ac_compile" | $SED \
  11904. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11905. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11906. + -e 's:$: $lt_compiler_flag:'`
  11907. + (eval echo "\"\$as_me:8749: $lt_compile\"" >&5)
  11908. + (eval "$lt_compile" 2>out/conftest.err)
  11909. + ac_status=$?
  11910. + cat out/conftest.err >&5
  11911. + echo "$as_me:8753: \$? = $ac_status" >&5
  11912. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11913. + then
  11914. + # The compiler can only warn and ignore the option if not recognized
  11915. + # So say no if there are warnings
  11916. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11917. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11918. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11919. + lt_cv_prog_compiler_c_o=yes
  11920. + fi
  11921. + fi
  11922. + chmod u+w . 2>&5
  11923. + $RM conftest*
  11924. + # SGI C++ compiler will create directory out/ii_files/ for
  11925. + # template instantiation
  11926. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11927. + $RM out/* && rmdir out
  11928. + cd ..
  11929. + $RM -r conftest
  11930. + $RM conftest*
  11931. +
  11932. +fi
  11933. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  11934. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  11935. +
  11936. +
  11937. +
  11938. +
  11939. +hard_links="nottested"
  11940. +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  11941. + # do not overwrite the value of need_locks provided by the user
  11942. + { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11943. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  11944. + hard_links=yes
  11945. + $RM conftest*
  11946. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11947. + touch conftest.a
  11948. + ln conftest.a conftest.b 2>&5 || hard_links=no
  11949. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11950. + { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  11951. +$as_echo "$hard_links" >&6; }
  11952. + if test "$hard_links" = no; then
  11953. + { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11954. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11955. + need_locks=warn
  11956. + fi
  11957. +else
  11958. + need_locks=no
  11959. +fi
  11960. +
  11961. +
  11962. +
  11963. +
  11964. +
  11965. +
  11966. + { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11967. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11968. +
  11969. + runpath_var=
  11970. + allow_undefined_flag=
  11971. + always_export_symbols=no
  11972. + archive_cmds=
  11973. + archive_expsym_cmds=
  11974. + compiler_needs_object=no
  11975. + enable_shared_with_static_runtimes=no
  11976. + export_dynamic_flag_spec=
  11977. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11978. + hardcode_automatic=no
  11979. + hardcode_direct=no
  11980. + hardcode_direct_absolute=no
  11981. + hardcode_libdir_flag_spec=
  11982. + hardcode_libdir_flag_spec_ld=
  11983. + hardcode_libdir_separator=
  11984. + hardcode_minus_L=no
  11985. + hardcode_shlibpath_var=unsupported
  11986. + inherit_rpath=no
  11987. + link_all_deplibs=unknown
  11988. + module_cmds=
  11989. + module_expsym_cmds=
  11990. + old_archive_from_new_cmds=
  11991. + old_archive_from_expsyms_cmds=
  11992. + thread_safe_flag_spec=
  11993. + whole_archive_flag_spec=
  11994. + # include_expsyms should be a list of space-separated symbols to be *always*
  11995. + # included in the symbol list
  11996. + include_expsyms=
  11997. + # exclude_expsyms can be an extended regexp of symbols to exclude
  11998. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  11999. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12000. + # as well as any symbol that contains `d'.
  12001. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12002. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12003. + # platforms (ab)use it in PIC code, but their linkers get confused if
  12004. + # the symbol is explicitly referenced. Since portable code cannot
  12005. + # rely on this symbol name, it's probably fine to never include it in
  12006. + # preloaded symbol tables.
  12007. + # Exclude shared library initialization/finalization symbols.
  12008. + extract_expsyms_cmds=
  12009. +
  12010. + case $host_os in
  12011. + cygwin* | mingw* | pw32* | cegcc*)
  12012. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12013. + # When not using gcc, we currently assume that we are using
  12014. + # Microsoft Visual C++.
  12015. + if test "$GCC" != yes; then
  12016. + with_gnu_ld=no
  12017. + fi
  12018. + ;;
  12019. + interix*)
  12020. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  12021. + with_gnu_ld=yes
  12022. + ;;
  12023. + openbsd*)
  12024. + with_gnu_ld=no
  12025. + ;;
  12026. + linux* | k*bsd*-gnu)
  12027. + link_all_deplibs=no
  12028. + ;;
  12029. + esac
  12030. +
  12031. + ld_shlibs=yes
  12032. + if test "$with_gnu_ld" = yes; then
  12033. + # If archive_cmds runs LD, not CC, wlarc should be empty
  12034. + wlarc='${wl}'
  12035. +
  12036. + # Set some defaults for GNU ld with shared library support. These
  12037. + # are reset later if shared libraries are not supported. Putting them
  12038. + # here allows them to be overridden if necessary.
  12039. + runpath_var=LD_RUN_PATH
  12040. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  12041. + export_dynamic_flag_spec='${wl}--export-dynamic'
  12042. + # ancient GNU ld didn't support --whole-archive et. al.
  12043. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  12044. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12045. + else
  12046. + whole_archive_flag_spec=
  12047. + fi
  12048. + supports_anon_versioning=no
  12049. + case `$LD -v 2>&1` in
  12050. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12051. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12052. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12053. + *\ 2.11.*) ;; # other 2.11 versions
  12054. + *) supports_anon_versioning=yes ;;
  12055. + esac
  12056. +
  12057. + # See if GNU ld supports shared libraries.
  12058. + case $host_os in
  12059. + aix[3-9]*)
  12060. + # On AIX/PPC, the GNU linker is very broken
  12061. + if test "$host_cpu" != ia64; then
  12062. + ld_shlibs=no
  12063. + cat <<_LT_EOF 1>&2
  12064. +
  12065. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  12066. +*** to be unable to reliably create shared libraries on AIX.
  12067. +*** Therefore, libtool is disabling shared libraries support. If you
  12068. +*** really care for shared libraries, you may want to modify your PATH
  12069. +*** so that a non-GNU linker is found, and then restart.
  12070. +
  12071. +_LT_EOF
  12072. + fi
  12073. + ;;
  12074. +
  12075. + amigaos*)
  12076. + case $host_cpu in
  12077. + powerpc)
  12078. + # see comment about AmigaOS4 .so support
  12079. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12080. + archive_expsym_cmds=''
  12081. + ;;
  12082. + m68k)
  12083. + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  12084. + hardcode_libdir_flag_spec='-L$libdir'
  12085. + hardcode_minus_L=yes
  12086. + ;;
  12087. + esac
  12088. + ;;
  12089. +
  12090. + beos*)
  12091. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12092. + allow_undefined_flag=unsupported
  12093. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12094. + # support --undefined. This deserves some investigation. FIXME
  12095. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12096. + else
  12097. + ld_shlibs=no
  12098. + fi
  12099. + ;;
  12100. +
  12101. + cygwin* | mingw* | pw32* | cegcc*)
  12102. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  12103. + # as there is no search path for DLLs.
  12104. + hardcode_libdir_flag_spec='-L$libdir'
  12105. + allow_undefined_flag=unsupported
  12106. + always_export_symbols=no
  12107. + enable_shared_with_static_runtimes=yes
  12108. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  12109. +
  12110. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12111. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12112. + # If the export-symbols file already is a .def file (1st line
  12113. + # is EXPORTS), use it as is; otherwise, prepend...
  12114. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12115. + cp $export_symbols $output_objdir/$soname.def;
  12116. + else
  12117. + echo EXPORTS > $output_objdir/$soname.def;
  12118. + cat $export_symbols >> $output_objdir/$soname.def;
  12119. + fi~
  12120. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12121. + else
  12122. + ld_shlibs=no
  12123. + fi
  12124. + ;;
  12125. +
  12126. + interix[3-9]*)
  12127. + hardcode_direct=no
  12128. + hardcode_shlibpath_var=no
  12129. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  12130. + export_dynamic_flag_spec='${wl}-E'
  12131. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12132. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  12133. + # default) and relocated if they conflict, which is a slow very memory
  12134. + # consuming and fragmenting process. To avoid this, we pick a random,
  12135. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12136. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12137. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  12138. + archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  12139. + ;;
  12140. +
  12141. + gnu* | linux* | tpf* | k*bsd*-gnu)
  12142. + tmp_diet=no
  12143. + if test "$host_os" = linux-dietlibc; then
  12144. + case $cc_basename in
  12145. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  12146. + esac
  12147. + fi
  12148. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  12149. + && test "$tmp_diet" = no
  12150. + then
  12151. + tmp_addflag=
  12152. + tmp_sharedflag='-shared'
  12153. + case $cc_basename,$host_cpu in
  12154. + pgcc*) # Portland Group C compiler
  12155. + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  12156. + tmp_addflag=' $pic_flag'
  12157. + ;;
  12158. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  12159. + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  12160. + tmp_addflag=' $pic_flag -Mnomain' ;;
  12161. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  12162. + tmp_addflag=' -i_dynamic' ;;
  12163. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  12164. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  12165. + ifc* | ifort*) # Intel Fortran compiler
  12166. + tmp_addflag=' -nofor_main' ;;
  12167. + lf95*) # Lahey Fortran 8.1
  12168. + whole_archive_flag_spec=
  12169. + tmp_sharedflag='--shared' ;;
  12170. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  12171. + tmp_sharedflag='-qmkshrobj'
  12172. + tmp_addflag= ;;
  12173. + esac
  12174. + case `$CC -V 2>&1 | sed 5q` in
  12175. + *Sun\ C*) # Sun C 5.9
  12176. + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  12177. + compiler_needs_object=yes
  12178. + tmp_sharedflag='-G' ;;
  12179. + *Sun\ F*) # Sun Fortran 8.3
  12180. + tmp_sharedflag='-G' ;;
  12181. + esac
  12182. + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12183. +
  12184. + if test "x$supports_anon_versioning" = xyes; then
  12185. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  12186. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12187. + echo "local: *; };" >> $output_objdir/$libname.ver~
  12188. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12189. + fi
  12190. +
  12191. + case $cc_basename in
  12192. + xlf*)
  12193. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  12194. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  12195. + hardcode_libdir_flag_spec=
  12196. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  12197. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  12198. + if test "x$supports_anon_versioning" = xyes; then
  12199. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  12200. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12201. + echo "local: *; };" >> $output_objdir/$libname.ver~
  12202. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  12203. + fi
  12204. + ;;
  12205. + esac
  12206. + else
  12207. + ld_shlibs=no
  12208. + fi
  12209. + ;;
  12210. +
  12211. + netbsd* | netbsdelf*-gnu)
  12212. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12213. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12214. + wlarc=
  12215. + else
  12216. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12217. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12218. + fi
  12219. + ;;
  12220. +
  12221. + solaris*)
  12222. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  12223. + ld_shlibs=no
  12224. + cat <<_LT_EOF 1>&2
  12225. +
  12226. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12227. +*** create shared libraries on Solaris systems. Therefore, libtool
  12228. +*** is disabling shared libraries support. We urge you to upgrade GNU
  12229. +*** binutils to release 2.9.1 or newer. Another option is to modify
  12230. +*** your PATH or compiler configuration so that the native linker is
  12231. +*** used, and then restart.
  12232. +
  12233. +_LT_EOF
  12234. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12235. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12236. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12237. + else
  12238. + ld_shlibs=no
  12239. + fi
  12240. + ;;
  12241. +
  12242. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  12243. + case `$LD -v 2>&1` in
  12244. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  12245. + ld_shlibs=no
  12246. + cat <<_LT_EOF 1>&2
  12247. +
  12248. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  12249. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  12250. +*** is disabling shared libraries support. We urge you to upgrade GNU
  12251. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  12252. +*** your PATH or compiler configuration so that the native linker is
  12253. +*** used, and then restart.
  12254. +
  12255. +_LT_EOF
  12256. + ;;
  12257. + *)
  12258. + # For security reasons, it is highly recommended that you always
  12259. + # use absolute paths for naming shared libraries, and exclude the
  12260. + # DT_RUNPATH tag from executables and libraries. But doing so
  12261. + # requires that you compile everything twice, which is a pain.
  12262. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12263. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  12264. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12265. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12266. + else
  12267. + ld_shlibs=no
  12268. + fi
  12269. + ;;
  12270. + esac
  12271. + ;;
  12272. +
  12273. + sunos4*)
  12274. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12275. + wlarc=
  12276. + hardcode_direct=yes
  12277. + hardcode_shlibpath_var=no
  12278. + ;;
  12279. +
  12280. + *)
  12281. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12282. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12283. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12284. + else
  12285. + ld_shlibs=no
  12286. + fi
  12287. + ;;
  12288. + esac
  12289. +
  12290. + if test "$ld_shlibs" = no; then
  12291. + runpath_var=
  12292. + hardcode_libdir_flag_spec=
  12293. + export_dynamic_flag_spec=
  12294. + whole_archive_flag_spec=
  12295. + fi
  12296. + else
  12297. + # PORTME fill in a description of your system's linker (not GNU ld)
  12298. + case $host_os in
  12299. + aix3*)
  12300. + allow_undefined_flag=unsupported
  12301. + always_export_symbols=yes
  12302. + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  12303. + # Note: this linker hardcodes the directories in LIBPATH if there
  12304. + # are no directories specified by -L.
  12305. + hardcode_minus_L=yes
  12306. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  12307. + # Neither direct hardcoding nor static linking is supported with a
  12308. + # broken collect2.
  12309. + hardcode_direct=unsupported
  12310. + fi
  12311. + ;;
  12312. +
  12313. + aix[4-9]*)
  12314. + if test "$host_cpu" = ia64; then
  12315. + # On IA64, the linker does run time linking by default, so we don't
  12316. + # have to do anything special.
  12317. + aix_use_runtimelinking=no
  12318. + exp_sym_flag='-Bexport'
  12319. + no_entry_flag=""
  12320. + else
  12321. + # If we're using GNU nm, then we don't want the "-C" option.
  12322. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12323. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12324. + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12325. + else
  12326. + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12327. + fi
  12328. + aix_use_runtimelinking=no
  12329. +
  12330. + # Test if we are trying to use run time linking or normal
  12331. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12332. + # need to do runtime linking.
  12333. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12334. + for ld_flag in $LDFLAGS; do
  12335. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12336. + aix_use_runtimelinking=yes
  12337. + break
  12338. + fi
  12339. + done
  12340. + ;;
  12341. + esac
  12342. +
  12343. + exp_sym_flag='-bexport'
  12344. + no_entry_flag='-bnoentry'
  12345. + fi
  12346. +
  12347. + # When large executables or shared objects are built, AIX ld can
  12348. + # have problems creating the table of contents. If linking a library
  12349. + # or program results in "error TOC overflow" add -mminimal-toc to
  12350. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12351. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12352. +
  12353. + archive_cmds=''
  12354. + hardcode_direct=yes
  12355. + hardcode_direct_absolute=yes
  12356. + hardcode_libdir_separator=':'
  12357. + link_all_deplibs=yes
  12358. + file_list_spec='${wl}-f,'
  12359. +
  12360. + if test "$GCC" = yes; then
  12361. + case $host_os in aix4.[012]|aix4.[012].*)
  12362. + # We only want to do this on AIX 4.2 and lower, the check
  12363. + # below for broken collect2 doesn't work under 4.3+
  12364. + collect2name=`${CC} -print-prog-name=collect2`
  12365. + if test -f "$collect2name" &&
  12366. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12367. + then
  12368. + # We have reworked collect2
  12369. + :
  12370. + else
  12371. + # We have old collect2
  12372. + hardcode_direct=unsupported
  12373. + # It fails to find uninstalled libraries when the uninstalled
  12374. + # path is not listed in the libpath. Setting hardcode_minus_L
  12375. + # to unsupported forces relinking
  12376. + hardcode_minus_L=yes
  12377. + hardcode_libdir_flag_spec='-L$libdir'
  12378. + hardcode_libdir_separator=
  12379. + fi
  12380. + ;;
  12381. + esac
  12382. + shared_flag='-shared'
  12383. + if test "$aix_use_runtimelinking" = yes; then
  12384. + shared_flag="$shared_flag "'${wl}-G'
  12385. + fi
  12386. + link_all_deplibs=no
  12387. + else
  12388. + # not using gcc
  12389. + if test "$host_cpu" = ia64; then
  12390. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12391. + # chokes on -Wl,-G. The following line is correct:
  12392. + shared_flag='-G'
  12393. + else
  12394. + if test "$aix_use_runtimelinking" = yes; then
  12395. + shared_flag='${wl}-G'
  12396. + else
  12397. + shared_flag='${wl}-bM:SRE'
  12398. + fi
  12399. + fi
  12400. + fi
  12401. +
  12402. + export_dynamic_flag_spec='${wl}-bexpall'
  12403. + # It seems that -bexpall does not export symbols beginning with
  12404. + # underscore (_), so it is better to generate a list of symbols to export.
  12405. + always_export_symbols=yes
  12406. + if test "$aix_use_runtimelinking" = yes; then
  12407. + # Warning - without using the other runtime loading flags (-brtl),
  12408. + # -berok will link without error, but may produce a broken library.
  12409. + allow_undefined_flag='-berok'
  12410. + # Determine the default libpath from the value encoded in an
  12411. + # empty executable.
  12412. + cat >conftest.$ac_ext <<_ACEOF
  12413. +/* confdefs.h. */
  12414. +_ACEOF
  12415. +cat confdefs.h >>conftest.$ac_ext
  12416. +cat >>conftest.$ac_ext <<_ACEOF
  12417. +/* end confdefs.h. */
  12418. +
  12419. +int
  12420. +main ()
  12421. +{
  12422. +
  12423. + ;
  12424. + return 0;
  12425. +}
  12426. +_ACEOF
  12427. +rm -f conftest.$ac_objext conftest$ac_exeext
  12428. +if { (ac_try="$ac_link"
  12429. +case "(($ac_try" in
  12430. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12431. + *) ac_try_echo=$ac_try;;
  12432. +esac
  12433. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12434. +$as_echo "$ac_try_echo") >&5
  12435. + (eval "$ac_link") 2>conftest.er1
  12436. + ac_status=$?
  12437. + grep -v '^ *+' conftest.er1 >conftest.err
  12438. + rm -f conftest.er1
  12439. + cat conftest.err >&5
  12440. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12441. + (exit $ac_status); } && {
  12442. + test -z "$ac_c_werror_flag" ||
  12443. + test ! -s conftest.err
  12444. + } && test -s conftest$ac_exeext && {
  12445. + test "$cross_compiling" = yes ||
  12446. + $as_test_x conftest$ac_exeext
  12447. + }; then
  12448. +
  12449. +lt_aix_libpath_sed='
  12450. + /Import File Strings/,/^$/ {
  12451. + /^0/ {
  12452. + s/^0 *\(.*\)$/\1/
  12453. + p
  12454. + }
  12455. + }'
  12456. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12457. +# Check for a 64-bit object if we didn't find anything.
  12458. +if test -z "$aix_libpath"; then
  12459. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12460. +fi
  12461. +else
  12462. + $as_echo "$as_me: failed program was:" >&5
  12463. +sed 's/^/| /' conftest.$ac_ext >&5
  12464. +
  12465. +
  12466. +fi
  12467. +
  12468. +rm -rf conftest.dSYM
  12469. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12470. + conftest$ac_exeext conftest.$ac_ext
  12471. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12472. +
  12473. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  12474. + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  12475. + else
  12476. + if test "$host_cpu" = ia64; then
  12477. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  12478. + allow_undefined_flag="-z nodefs"
  12479. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  12480. + else
  12481. + # Determine the default libpath from the value encoded in an
  12482. + # empty executable.
  12483. + cat >conftest.$ac_ext <<_ACEOF
  12484. +/* confdefs.h. */
  12485. +_ACEOF
  12486. +cat confdefs.h >>conftest.$ac_ext
  12487. +cat >>conftest.$ac_ext <<_ACEOF
  12488. +/* end confdefs.h. */
  12489. +
  12490. +int
  12491. +main ()
  12492. +{
  12493. +
  12494. + ;
  12495. + return 0;
  12496. +}
  12497. +_ACEOF
  12498. +rm -f conftest.$ac_objext conftest$ac_exeext
  12499. +if { (ac_try="$ac_link"
  12500. +case "(($ac_try" in
  12501. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12502. + *) ac_try_echo=$ac_try;;
  12503. +esac
  12504. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12505. +$as_echo "$ac_try_echo") >&5
  12506. + (eval "$ac_link") 2>conftest.er1
  12507. + ac_status=$?
  12508. + grep -v '^ *+' conftest.er1 >conftest.err
  12509. + rm -f conftest.er1
  12510. + cat conftest.err >&5
  12511. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12512. + (exit $ac_status); } && {
  12513. + test -z "$ac_c_werror_flag" ||
  12514. + test ! -s conftest.err
  12515. + } && test -s conftest$ac_exeext && {
  12516. + test "$cross_compiling" = yes ||
  12517. + $as_test_x conftest$ac_exeext
  12518. + }; then
  12519. +
  12520. +lt_aix_libpath_sed='
  12521. + /Import File Strings/,/^$/ {
  12522. + /^0/ {
  12523. + s/^0 *\(.*\)$/\1/
  12524. + p
  12525. + }
  12526. + }'
  12527. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12528. +# Check for a 64-bit object if we didn't find anything.
  12529. +if test -z "$aix_libpath"; then
  12530. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12531. +fi
  12532. +else
  12533. + $as_echo "$as_me: failed program was:" >&5
  12534. +sed 's/^/| /' conftest.$ac_ext >&5
  12535. +
  12536. +
  12537. +fi
  12538. +
  12539. +rm -rf conftest.dSYM
  12540. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12541. + conftest$ac_exeext conftest.$ac_ext
  12542. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12543. +
  12544. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  12545. + # Warning - without using the other run time loading flags,
  12546. + # -berok will link without error, but may produce a broken library.
  12547. + no_undefined_flag=' ${wl}-bernotok'
  12548. + allow_undefined_flag=' ${wl}-berok'
  12549. + # Exported symbols can be pulled into shared objects from archives
  12550. + whole_archive_flag_spec='$convenience'
  12551. + archive_cmds_need_lc=yes
  12552. + # This is similar to how AIX traditionally builds its shared libraries.
  12553. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  12554. + fi
  12555. + fi
  12556. + ;;
  12557. +
  12558. + amigaos*)
  12559. + case $host_cpu in
  12560. + powerpc)
  12561. + # see comment about AmigaOS4 .so support
  12562. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12563. + archive_expsym_cmds=''
  12564. + ;;
  12565. + m68k)
  12566. + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  12567. + hardcode_libdir_flag_spec='-L$libdir'
  12568. + hardcode_minus_L=yes
  12569. + ;;
  12570. + esac
  12571. + ;;
  12572. +
  12573. + bsdi[45]*)
  12574. + export_dynamic_flag_spec=-rdynamic
  12575. + ;;
  12576. +
  12577. + cygwin* | mingw* | pw32* | cegcc*)
  12578. + # When not using gcc, we currently assume that we are using
  12579. + # Microsoft Visual C++.
  12580. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  12581. + # no search path for DLLs.
  12582. + hardcode_libdir_flag_spec=' '
  12583. + allow_undefined_flag=unsupported
  12584. + # Tell ltmain to make .lib files, not .a files.
  12585. + libext=lib
  12586. + # Tell ltmain to make .dll files, not .so files.
  12587. + shrext_cmds=".dll"
  12588. + # FIXME: Setting linknames here is a bad hack.
  12589. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  12590. + # The linker will automatically build a .lib file if we build a DLL.
  12591. + old_archive_from_new_cmds='true'
  12592. + # FIXME: Should let the user specify the lib program.
  12593. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  12594. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  12595. + enable_shared_with_static_runtimes=yes
  12596. + ;;
  12597. +
  12598. + darwin* | rhapsody*)
  12599. +
  12600. +
  12601. + archive_cmds_need_lc=no
  12602. + hardcode_direct=no
  12603. + hardcode_automatic=yes
  12604. + hardcode_shlibpath_var=unsupported
  12605. + whole_archive_flag_spec=''
  12606. + link_all_deplibs=yes
  12607. + allow_undefined_flag="$_lt_dar_allow_undefined"
  12608. + case $cc_basename in
  12609. + ifort*) _lt_dar_can_shared=yes ;;
  12610. + *) _lt_dar_can_shared=$GCC ;;
  12611. + esac
  12612. + if test "$_lt_dar_can_shared" = "yes"; then
  12613. + output_verbose_link_cmd=echo
  12614. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  12615. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  12616. + archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  12617. + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  12618. +
  12619. + else
  12620. + ld_shlibs=no
  12621. + fi
  12622. +
  12623. + ;;
  12624. +
  12625. + dgux*)
  12626. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12627. + hardcode_libdir_flag_spec='-L$libdir'
  12628. + hardcode_shlibpath_var=no
  12629. + ;;
  12630. +
  12631. + freebsd1*)
  12632. + ld_shlibs=no
  12633. + ;;
  12634. +
  12635. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12636. + # support. Future versions do this automatically, but an explicit c++rt0.o
  12637. + # does not break anything, and helps significantly (at the cost of a little
  12638. + # extra space).
  12639. + freebsd2.2*)
  12640. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12641. + hardcode_libdir_flag_spec='-R$libdir'
  12642. + hardcode_direct=yes
  12643. + hardcode_shlibpath_var=no
  12644. + ;;
  12645. +
  12646. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12647. + freebsd2*)
  12648. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12649. + hardcode_direct=yes
  12650. + hardcode_minus_L=yes
  12651. + hardcode_shlibpath_var=no
  12652. + ;;
  12653. +
  12654. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12655. + freebsd* | dragonfly*)
  12656. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12657. + hardcode_libdir_flag_spec='-R$libdir'
  12658. + hardcode_direct=yes
  12659. + hardcode_shlibpath_var=no
  12660. + ;;
  12661. +
  12662. + hpux9*)
  12663. + if test "$GCC" = yes; then
  12664. + archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  12665. + else
  12666. + archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  12667. + fi
  12668. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  12669. + hardcode_libdir_separator=:
  12670. + hardcode_direct=yes
  12671. +
  12672. + # hardcode_minus_L: Not really in the search PATH,
  12673. + # but as the default location of the library.
  12674. + hardcode_minus_L=yes
  12675. + export_dynamic_flag_spec='${wl}-E'
  12676. + ;;
  12677. +
  12678. + hpux10*)
  12679. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12680. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12681. + else
  12682. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12683. + fi
  12684. + if test "$with_gnu_ld" = no; then
  12685. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  12686. + hardcode_libdir_flag_spec_ld='+b $libdir'
  12687. + hardcode_libdir_separator=:
  12688. + hardcode_direct=yes
  12689. + hardcode_direct_absolute=yes
  12690. + export_dynamic_flag_spec='${wl}-E'
  12691. + # hardcode_minus_L: Not really in the search PATH,
  12692. + # but as the default location of the library.
  12693. + hardcode_minus_L=yes
  12694. + fi
  12695. + ;;
  12696. +
  12697. + hpux11*)
  12698. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12699. + case $host_cpu in
  12700. + hppa*64*)
  12701. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12702. + ;;
  12703. + ia64*)
  12704. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12705. + ;;
  12706. + *)
  12707. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12708. + ;;
  12709. + esac
  12710. + else
  12711. + case $host_cpu in
  12712. + hppa*64*)
  12713. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12714. + ;;
  12715. + ia64*)
  12716. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12717. + ;;
  12718. + *)
  12719. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12720. + ;;
  12721. + esac
  12722. + fi
  12723. + if test "$with_gnu_ld" = no; then
  12724. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  12725. + hardcode_libdir_separator=:
  12726. +
  12727. + case $host_cpu in
  12728. + hppa*64*|ia64*)
  12729. + hardcode_direct=no
  12730. + hardcode_shlibpath_var=no
  12731. + ;;
  12732. + *)
  12733. + hardcode_direct=yes
  12734. + hardcode_direct_absolute=yes
  12735. + export_dynamic_flag_spec='${wl}-E'
  12736. +
  12737. + # hardcode_minus_L: Not really in the search PATH,
  12738. + # but as the default location of the library.
  12739. + hardcode_minus_L=yes
  12740. + ;;
  12741. + esac
  12742. + fi
  12743. + ;;
  12744. +
  12745. + irix5* | irix6* | nonstopux*)
  12746. + if test "$GCC" = yes; then
  12747. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12748. + # Try to use the -exported_symbol ld option, if it does not
  12749. + # work, assume that -exports_file does not work either and
  12750. + # implicitly export all symbols.
  12751. + save_LDFLAGS="$LDFLAGS"
  12752. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  12753. + cat >conftest.$ac_ext <<_ACEOF
  12754. +int foo(void) {}
  12755. +_ACEOF
  12756. +rm -f conftest.$ac_objext conftest$ac_exeext
  12757. +if { (ac_try="$ac_link"
  12758. +case "(($ac_try" in
  12759. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12760. + *) ac_try_echo=$ac_try;;
  12761. +esac
  12762. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12763. +$as_echo "$ac_try_echo") >&5
  12764. + (eval "$ac_link") 2>conftest.er1
  12765. + ac_status=$?
  12766. + grep -v '^ *+' conftest.er1 >conftest.err
  12767. + rm -f conftest.er1
  12768. + cat conftest.err >&5
  12769. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12770. + (exit $ac_status); } && {
  12771. + test -z "$ac_c_werror_flag" ||
  12772. + test ! -s conftest.err
  12773. + } && test -s conftest$ac_exeext && {
  12774. + test "$cross_compiling" = yes ||
  12775. + $as_test_x conftest$ac_exeext
  12776. + }; then
  12777. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  12778. +
  12779. +else
  12780. + $as_echo "$as_me: failed program was:" >&5
  12781. +sed 's/^/| /' conftest.$ac_ext >&5
  12782. +
  12783. +
  12784. +fi
  12785. +
  12786. +rm -rf conftest.dSYM
  12787. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12788. + conftest$ac_exeext conftest.$ac_ext
  12789. + LDFLAGS="$save_LDFLAGS"
  12790. + else
  12791. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  12792. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  12793. + fi
  12794. + archive_cmds_need_lc='no'
  12795. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  12796. + hardcode_libdir_separator=:
  12797. + inherit_rpath=yes
  12798. + link_all_deplibs=yes
  12799. + ;;
  12800. +
  12801. + netbsd* | netbsdelf*-gnu)
  12802. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12803. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12804. + else
  12805. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12806. + fi
  12807. + hardcode_libdir_flag_spec='-R$libdir'
  12808. + hardcode_direct=yes
  12809. + hardcode_shlibpath_var=no
  12810. + ;;
  12811. +
  12812. + newsos6)
  12813. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12814. + hardcode_direct=yes
  12815. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  12816. + hardcode_libdir_separator=:
  12817. + hardcode_shlibpath_var=no
  12818. + ;;
  12819. +
  12820. + *nto* | *qnx*)
  12821. + ;;
  12822. +
  12823. + openbsd*)
  12824. + if test -f /usr/libexec/ld.so; then
  12825. + hardcode_direct=yes
  12826. + hardcode_shlibpath_var=no
  12827. + hardcode_direct_absolute=yes
  12828. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12829. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12830. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12831. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  12832. + export_dynamic_flag_spec='${wl}-E'
  12833. + else
  12834. + case $host_os in
  12835. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  12836. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12837. + hardcode_libdir_flag_spec='-R$libdir'
  12838. + ;;
  12839. + *)
  12840. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12841. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  12842. + ;;
  12843. + esac
  12844. + fi
  12845. + else
  12846. + ld_shlibs=no
  12847. + fi
  12848. + ;;
  12849. +
  12850. + os2*)
  12851. + hardcode_libdir_flag_spec='-L$libdir'
  12852. + hardcode_minus_L=yes
  12853. + allow_undefined_flag=unsupported
  12854. + archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  12855. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12856. + ;;
  12857. +
  12858. + osf3*)
  12859. + if test "$GCC" = yes; then
  12860. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  12861. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12862. + else
  12863. + allow_undefined_flag=' -expect_unresolved \*'
  12864. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  12865. + fi
  12866. + archive_cmds_need_lc='no'
  12867. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  12868. + hardcode_libdir_separator=:
  12869. + ;;
  12870. +
  12871. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  12872. + if test "$GCC" = yes; then
  12873. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  12874. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12875. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  12876. + else
  12877. + allow_undefined_flag=' -expect_unresolved \*'
  12878. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  12879. + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  12880. + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  12881. +
  12882. + # Both c and cxx compiler support -rpath directly
  12883. + hardcode_libdir_flag_spec='-rpath $libdir'
  12884. + fi
  12885. + archive_cmds_need_lc='no'
  12886. + hardcode_libdir_separator=:
  12887. + ;;
  12888. +
  12889. + solaris*)
  12890. + no_undefined_flag=' -z defs'
  12891. + if test "$GCC" = yes; then
  12892. + wlarc='${wl}'
  12893. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12894. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12895. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  12896. + else
  12897. + case `$CC -V 2>&1` in
  12898. + *"Compilers 5.0"*)
  12899. + wlarc=''
  12900. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12901. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12902. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  12903. + ;;
  12904. + *)
  12905. + wlarc='${wl}'
  12906. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12907. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12908. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  12909. + ;;
  12910. + esac
  12911. + fi
  12912. + hardcode_libdir_flag_spec='-R$libdir'
  12913. + hardcode_shlibpath_var=no
  12914. + case $host_os in
  12915. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  12916. + *)
  12917. + # The compiler driver will combine and reorder linker options,
  12918. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  12919. + # but is careful enough not to reorder.
  12920. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  12921. + if test "$GCC" = yes; then
  12922. + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12923. + else
  12924. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  12925. + fi
  12926. + ;;
  12927. + esac
  12928. + link_all_deplibs=yes
  12929. + ;;
  12930. +
  12931. + sunos4*)
  12932. + if test "x$host_vendor" = xsequent; then
  12933. + # Use $CC to link under sequent, because it throws in some extra .o
  12934. + # files that make .init and .fini sections work.
  12935. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12936. + else
  12937. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12938. + fi
  12939. + hardcode_libdir_flag_spec='-L$libdir'
  12940. + hardcode_direct=yes
  12941. + hardcode_minus_L=yes
  12942. + hardcode_shlibpath_var=no
  12943. + ;;
  12944. +
  12945. + sysv4)
  12946. + case $host_vendor in
  12947. + sni)
  12948. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12949. + hardcode_direct=yes # is this really true???
  12950. + ;;
  12951. + siemens)
  12952. + ## LD is ld it makes a PLAMLIB
  12953. + ## CC just makes a GrossModule.
  12954. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12955. + reload_cmds='$CC -r -o $output$reload_objs'
  12956. + hardcode_direct=no
  12957. + ;;
  12958. + motorola)
  12959. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12960. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  12961. + ;;
  12962. + esac
  12963. + runpath_var='LD_RUN_PATH'
  12964. + hardcode_shlibpath_var=no
  12965. + ;;
  12966. +
  12967. + sysv4.3*)
  12968. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12969. + hardcode_shlibpath_var=no
  12970. + export_dynamic_flag_spec='-Bexport'
  12971. + ;;
  12972. +
  12973. + sysv4*MP*)
  12974. + if test -d /usr/nec; then
  12975. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12976. + hardcode_shlibpath_var=no
  12977. + runpath_var=LD_RUN_PATH
  12978. + hardcode_runpath_var=yes
  12979. + ld_shlibs=yes
  12980. + fi
  12981. + ;;
  12982. +
  12983. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12984. + no_undefined_flag='${wl}-z,text'
  12985. + archive_cmds_need_lc=no
  12986. + hardcode_shlibpath_var=no
  12987. + runpath_var='LD_RUN_PATH'
  12988. +
  12989. + if test "$GCC" = yes; then
  12990. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12991. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12992. + else
  12993. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12994. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12995. + fi
  12996. + ;;
  12997. +
  12998. + sysv5* | sco3.2v5* | sco5v6*)
  12999. + # Note: We can NOT use -z defs as we might desire, because we do not
  13000. + # link with -lc, and that would cause any symbols used from libc to
  13001. + # always be unresolved, which means just about no library would
  13002. + # ever link correctly. If we're not using GNU ld we use -z text
  13003. + # though, which does catch some bad symbols but isn't as heavy-handed
  13004. + # as -z defs.
  13005. + no_undefined_flag='${wl}-z,text'
  13006. + allow_undefined_flag='${wl}-z,nodefs'
  13007. + archive_cmds_need_lc=no
  13008. + hardcode_shlibpath_var=no
  13009. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  13010. + hardcode_libdir_separator=':'
  13011. + link_all_deplibs=yes
  13012. + export_dynamic_flag_spec='${wl}-Bexport'
  13013. + runpath_var='LD_RUN_PATH'
  13014. +
  13015. + if test "$GCC" = yes; then
  13016. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13017. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13018. + else
  13019. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13020. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13021. + fi
  13022. + ;;
  13023. +
  13024. + uts4*)
  13025. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13026. + hardcode_libdir_flag_spec='-L$libdir'
  13027. + hardcode_shlibpath_var=no
  13028. + ;;
  13029. +
  13030. + *)
  13031. + ld_shlibs=no
  13032. + ;;
  13033. + esac
  13034. +
  13035. + if test x$host_vendor = xsni; then
  13036. + case $host in
  13037. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  13038. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  13039. + ;;
  13040. + esac
  13041. + fi
  13042. + fi
  13043. +
  13044. +{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  13045. +$as_echo "$ld_shlibs" >&6; }
  13046. +test "$ld_shlibs" = no && can_build_shared=no
  13047. +
  13048. +with_gnu_ld=$with_gnu_ld
  13049. +
  13050. +
  13051. +
  13052. +
  13053. +
  13054. +
  13055. +
  13056. +
  13057. +
  13058. +
  13059. +
  13060. +
  13061. +
  13062. +
  13063. +
  13064. +#
  13065. +# Do we need to explicitly link libc?
  13066. +#
  13067. +case "x$archive_cmds_need_lc" in
  13068. +x|xyes)
  13069. + # Assume -lc should be added
  13070. + archive_cmds_need_lc=yes
  13071. +
  13072. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  13073. + case $archive_cmds in
  13074. + *'~'*)
  13075. + # FIXME: we may have to deal with multi-command sequences.
  13076. + ;;
  13077. + '$CC '*)
  13078. + # Test whether the compiler implicitly links with -lc since on some
  13079. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13080. + # to ld, don't add -lc before -lgcc.
  13081. + { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13082. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13083. + $RM conftest*
  13084. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13085. +
  13086. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13087. + (eval $ac_compile) 2>&5
  13088. + ac_status=$?
  13089. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13090. + (exit $ac_status); } 2>conftest.err; then
  13091. + soname=conftest
  13092. + lib=conftest
  13093. + libobjs=conftest.$ac_objext
  13094. + deplibs=
  13095. + wl=$lt_prog_compiler_wl
  13096. + pic_flag=$lt_prog_compiler_pic
  13097. + compiler_flags=-v
  13098. + linker_flags=-v
  13099. + verstring=
  13100. + output_objdir=.
  13101. + libname=conftest
  13102. + lt_save_allow_undefined_flag=$allow_undefined_flag
  13103. + allow_undefined_flag=
  13104. + if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13105. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13106. + ac_status=$?
  13107. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13108. + (exit $ac_status); }
  13109. + then
  13110. + archive_cmds_need_lc=no
  13111. + else
  13112. + archive_cmds_need_lc=yes
  13113. + fi
  13114. + allow_undefined_flag=$lt_save_allow_undefined_flag
  13115. + else
  13116. + cat conftest.err 1>&5
  13117. + fi
  13118. + $RM conftest*
  13119. + { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  13120. +$as_echo "$archive_cmds_need_lc" >&6; }
  13121. + ;;
  13122. + esac
  13123. + fi
  13124. + ;;
  13125. +esac
  13126. +
  13127. +
  13128. +
  13129. +
  13130. +
  13131. +
  13132. +
  13133. +
  13134. +
  13135. +
  13136. +
  13137. +
  13138. +
  13139. +
  13140. +
  13141. +
  13142. +
  13143. +
  13144. +
  13145. +
  13146. +
  13147. +
  13148. +
  13149. +
  13150. +
  13151. +
  13152. +
  13153. +
  13154. +
  13155. +
  13156. +
  13157. +
  13158. +
  13159. +
  13160. +
  13161. +
  13162. +
  13163. +
  13164. +
  13165. +
  13166. +
  13167. +
  13168. +
  13169. +
  13170. +
  13171. +
  13172. +
  13173. +
  13174. +
  13175. +
  13176. +
  13177. +
  13178. +
  13179. +
  13180. +
  13181. +
  13182. +
  13183. +
  13184. +
  13185. +
  13186. +
  13187. +
  13188. +
  13189. +
  13190. +
  13191. +
  13192. +
  13193. +
  13194. +
  13195. +
  13196. +
  13197. +
  13198. +
  13199. +
  13200. +
  13201. +
  13202. +
  13203. +
  13204. +
  13205. +
  13206. +
  13207. +
  13208. +
  13209. +
  13210. +
  13211. +
  13212. +
  13213. +
  13214. +
  13215. +
  13216. +
  13217. +
  13218. +
  13219. +
  13220. +
  13221. +
  13222. +
  13223. +
  13224. +
  13225. +
  13226. +
  13227. +
  13228. +
  13229. +
  13230. +
  13231. +
  13232. +
  13233. +
  13234. +
  13235. +
  13236. +
  13237. +
  13238. +
  13239. +
  13240. +
  13241. +
  13242. +
  13243. +
  13244. +
  13245. +
  13246. +
  13247. +
  13248. +
  13249. +
  13250. +
  13251. +
  13252. +
  13253. +
  13254. +
  13255. +
  13256. +
  13257. +
  13258. +
  13259. +
  13260. +
  13261. +
  13262. +
  13263. +
  13264. +
  13265. +
  13266. +
  13267. +
  13268. +
  13269. +
  13270. +
  13271. +
  13272. +
  13273. +
  13274. +
  13275. +
  13276. +
  13277. +
  13278. +
  13279. +
  13280. +
  13281. +
  13282. +
  13283. + { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13284. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  13285. +
  13286. +if test "$GCC" = yes; then
  13287. + case $host_os in
  13288. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  13289. + *) lt_awk_arg="/^libraries:/" ;;
  13290. + esac
  13291. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13292. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  13293. + # if the path contains ";" then we assume it to be the separator
  13294. + # otherwise default to the standard path separator (i.e. ":") - it is
  13295. + # assumed that no part of a normal pathname contains ";" but that should
  13296. + # okay in the real world where ";" in dirpaths is itself problematic.
  13297. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  13298. + else
  13299. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13300. + fi
  13301. + # Ok, now we have the path, separated by spaces, we can step through it
  13302. + # and add multilib dir if necessary.
  13303. + lt_tmp_lt_search_path_spec=
  13304. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  13305. + for lt_sys_path in $lt_search_path_spec; do
  13306. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  13307. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  13308. + else
  13309. + test -d "$lt_sys_path" && \
  13310. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  13311. + fi
  13312. + done
  13313. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  13314. +BEGIN {RS=" "; FS="/|\n";} {
  13315. + lt_foo="";
  13316. + lt_count=0;
  13317. + for (lt_i = NF; lt_i > 0; lt_i--) {
  13318. + if ($lt_i != "" && $lt_i != ".") {
  13319. + if ($lt_i == "..") {
  13320. + lt_count++;
  13321. + } else {
  13322. + if (lt_count == 0) {
  13323. + lt_foo="/" $lt_i lt_foo;
  13324. + } else {
  13325. + lt_count--;
  13326. + }
  13327. + }
  13328. + }
  13329. + }
  13330. + if (lt_foo != "") { lt_freq[lt_foo]++; }
  13331. + if (lt_freq[lt_foo] == 1) { print lt_foo; }
  13332. +}'`
  13333. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  13334. +else
  13335. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13336. +fi
  13337. +library_names_spec=
  13338. +libname_spec='lib$name'
  13339. +soname_spec=
  13340. +shrext_cmds=".so"
  13341. +postinstall_cmds=
  13342. +postuninstall_cmds=
  13343. +finish_cmds=
  13344. +finish_eval=
  13345. +shlibpath_var=
  13346. +shlibpath_overrides_runpath=unknown
  13347. +version_type=none
  13348. +dynamic_linker="$host_os ld.so"
  13349. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13350. +need_lib_prefix=unknown
  13351. +hardcode_into_libs=no
  13352. +
  13353. +# when you set need_version to no, make sure it does not cause -set_version
  13354. +# flags to be left without arguments
  13355. +need_version=unknown
  13356. +
  13357. +case $host_os in
  13358. +aix3*)
  13359. + version_type=linux
  13360. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13361. + shlibpath_var=LIBPATH
  13362. +
  13363. + # AIX 3 has no versioning support, so we append a major version to the name.
  13364. + soname_spec='${libname}${release}${shared_ext}$major'
  13365. + ;;
  13366. +
  13367. +aix[4-9]*)
  13368. + version_type=linux
  13369. + need_lib_prefix=no
  13370. + need_version=no
  13371. + hardcode_into_libs=yes
  13372. + if test "$host_cpu" = ia64; then
  13373. + # AIX 5 supports IA64
  13374. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13375. + shlibpath_var=LD_LIBRARY_PATH
  13376. + else
  13377. + # With GCC up to 2.95.x, collect2 would create an import file
  13378. + # for dependence libraries. The import file would start with
  13379. + # the line `#! .'. This would cause the generated library to
  13380. + # depend on `.', always an invalid library. This was fixed in
  13381. + # development snapshots of GCC prior to 3.0.
  13382. + case $host_os in
  13383. + aix4 | aix4.[01] | aix4.[01].*)
  13384. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13385. + echo ' yes '
  13386. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  13387. + :
  13388. + else
  13389. + can_build_shared=no
  13390. + fi
  13391. + ;;
  13392. + esac
  13393. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13394. + # soname into executable. Probably we can add versioning support to
  13395. + # collect2, so additional links can be useful in future.
  13396. + if test "$aix_use_runtimelinking" = yes; then
  13397. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13398. + # instead of lib<name>.a to let people know that these are not
  13399. + # typical AIX shared libraries.
  13400. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13401. + else
  13402. + # We preserve .a as extension for shared libraries through AIX4.2
  13403. + # and later when we are not doing run time linking.
  13404. + library_names_spec='${libname}${release}.a $libname.a'
  13405. + soname_spec='${libname}${release}${shared_ext}$major'
  13406. + fi
  13407. + shlibpath_var=LIBPATH
  13408. + fi
  13409. + ;;
  13410. +
  13411. +amigaos*)
  13412. + case $host_cpu in
  13413. + powerpc)
  13414. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  13415. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13416. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13417. + ;;
  13418. + m68k)
  13419. + library_names_spec='$libname.ixlibrary $libname.a'
  13420. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13421. + 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'
  13422. + ;;
  13423. + esac
  13424. + ;;
  13425. +
  13426. +beos*)
  13427. + library_names_spec='${libname}${shared_ext}'
  13428. + dynamic_linker="$host_os ld.so"
  13429. + shlibpath_var=LIBRARY_PATH
  13430. + ;;
  13431. +
  13432. +bsdi[45]*)
  13433. + version_type=linux
  13434. + need_version=no
  13435. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13436. + soname_spec='${libname}${release}${shared_ext}$major'
  13437. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13438. + shlibpath_var=LD_LIBRARY_PATH
  13439. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13440. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13441. + # the default ld.so.conf also contains /usr/contrib/lib and
  13442. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13443. + # libtool to hard-code these into programs
  13444. + ;;
  13445. +
  13446. +cygwin* | mingw* | pw32* | cegcc*)
  13447. + version_type=windows
  13448. + shrext_cmds=".dll"
  13449. + need_version=no
  13450. + need_lib_prefix=no
  13451. +
  13452. + case $GCC,$host_os in
  13453. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  13454. + library_names_spec='$libname.dll.a'
  13455. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13456. + postinstall_cmds='base_file=`basename \${file}`~
  13457. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13458. + dldir=$destdir/`dirname \$dlpath`~
  13459. + test -d \$dldir || mkdir -p \$dldir~
  13460. + $install_prog $dir/$dlname \$dldir/$dlname~
  13461. + chmod a+x \$dldir/$dlname~
  13462. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13463. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13464. + fi'
  13465. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13466. + dlpath=$dir/\$dldll~
  13467. + $RM \$dlpath'
  13468. + shlibpath_overrides_runpath=yes
  13469. +
  13470. + case $host_os in
  13471. + cygwin*)
  13472. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13473. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13474. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13475. + ;;
  13476. + mingw* | cegcc*)
  13477. + # MinGW DLLs use traditional 'lib' prefix
  13478. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13479. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13480. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13481. + # It is most probably a Windows format PATH printed by
  13482. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13483. + # path with ; separators, and with drive letters. We can handle the
  13484. + # drive letters (cygwin fileutils understands them), so leave them,
  13485. + # especially as we might pass files found there to a mingw objdump,
  13486. + # which wouldn't understand a cygwinified path. Ahh.
  13487. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13488. + else
  13489. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13490. + fi
  13491. + ;;
  13492. + pw32*)
  13493. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  13494. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13495. + ;;
  13496. + esac
  13497. + ;;
  13498. +
  13499. + *)
  13500. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13501. + ;;
  13502. + esac
  13503. + dynamic_linker='Win32 ld.exe'
  13504. + # FIXME: first we should search . and the directory the executable is in
  13505. + shlibpath_var=PATH
  13506. + ;;
  13507. +
  13508. +darwin* | rhapsody*)
  13509. + dynamic_linker="$host_os dyld"
  13510. + version_type=darwin
  13511. + need_lib_prefix=no
  13512. + need_version=no
  13513. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13514. + soname_spec='${libname}${release}${major}$shared_ext'
  13515. + shlibpath_overrides_runpath=yes
  13516. + shlibpath_var=DYLD_LIBRARY_PATH
  13517. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13518. +
  13519. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  13520. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13521. + ;;
  13522. +
  13523. +dgux*)
  13524. + version_type=linux
  13525. + need_lib_prefix=no
  13526. + need_version=no
  13527. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13528. + soname_spec='${libname}${release}${shared_ext}$major'
  13529. + shlibpath_var=LD_LIBRARY_PATH
  13530. + ;;
  13531. +
  13532. +freebsd1*)
  13533. + dynamic_linker=no
  13534. + ;;
  13535. +
  13536. +freebsd* | dragonfly*)
  13537. + # DragonFly does not have aout. When/if they implement a new
  13538. + # versioning mechanism, adjust this.
  13539. + if test -x /usr/bin/objformat; then
  13540. + objformat=`/usr/bin/objformat`
  13541. + else
  13542. + case $host_os in
  13543. + freebsd[123]*) objformat=aout ;;
  13544. + *) objformat=elf ;;
  13545. + esac
  13546. + fi
  13547. + version_type=freebsd-$objformat
  13548. + case $version_type in
  13549. + freebsd-elf*)
  13550. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13551. + need_version=no
  13552. + need_lib_prefix=no
  13553. + ;;
  13554. + freebsd-*)
  13555. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13556. + need_version=yes
  13557. + ;;
  13558. + esac
  13559. + shlibpath_var=LD_LIBRARY_PATH
  13560. + case $host_os in
  13561. + freebsd2*)
  13562. + shlibpath_overrides_runpath=yes
  13563. + ;;
  13564. + freebsd3.[01]* | freebsdelf3.[01]*)
  13565. + shlibpath_overrides_runpath=yes
  13566. + hardcode_into_libs=yes
  13567. + ;;
  13568. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13569. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13570. + shlibpath_overrides_runpath=no
  13571. + hardcode_into_libs=yes
  13572. + ;;
  13573. + *) # from 4.6 on, and DragonFly
  13574. + shlibpath_overrides_runpath=yes
  13575. + hardcode_into_libs=yes
  13576. + ;;
  13577. + esac
  13578. + ;;
  13579. +
  13580. +gnu*)
  13581. + version_type=linux
  13582. + need_lib_prefix=no
  13583. + need_version=no
  13584. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13585. + soname_spec='${libname}${release}${shared_ext}$major'
  13586. + shlibpath_var=LD_LIBRARY_PATH
  13587. + hardcode_into_libs=yes
  13588. + ;;
  13589. +
  13590. +hpux9* | hpux10* | hpux11*)
  13591. + # Give a soname corresponding to the major version so that dld.sl refuses to
  13592. + # link against other versions.
  13593. + version_type=sunos
  13594. + need_lib_prefix=no
  13595. + need_version=no
  13596. + case $host_cpu in
  13597. + ia64*)
  13598. + shrext_cmds='.so'
  13599. + hardcode_into_libs=yes
  13600. + dynamic_linker="$host_os dld.so"
  13601. + shlibpath_var=LD_LIBRARY_PATH
  13602. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13603. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13604. + soname_spec='${libname}${release}${shared_ext}$major'
  13605. + if test "X$HPUX_IA64_MODE" = X32; then
  13606. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13607. + else
  13608. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13609. + fi
  13610. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13611. + ;;
  13612. + hppa*64*)
  13613. + shrext_cmds='.sl'
  13614. + hardcode_into_libs=yes
  13615. + dynamic_linker="$host_os dld.sl"
  13616. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13617. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13618. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13619. + soname_spec='${libname}${release}${shared_ext}$major'
  13620. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13621. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13622. + ;;
  13623. + *)
  13624. + shrext_cmds='.sl'
  13625. + dynamic_linker="$host_os dld.sl"
  13626. + shlibpath_var=SHLIB_PATH
  13627. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13628. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13629. + soname_spec='${libname}${release}${shared_ext}$major'
  13630. + ;;
  13631. + esac
  13632. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13633. + postinstall_cmds='chmod 555 $lib'
  13634. + ;;
  13635. +
  13636. +interix[3-9]*)
  13637. + version_type=linux
  13638. + need_lib_prefix=no
  13639. + need_version=no
  13640. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13641. + soname_spec='${libname}${release}${shared_ext}$major'
  13642. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13643. + shlibpath_var=LD_LIBRARY_PATH
  13644. + shlibpath_overrides_runpath=no
  13645. + hardcode_into_libs=yes
  13646. + ;;
  13647. +
  13648. +irix5* | irix6* | nonstopux*)
  13649. + case $host_os in
  13650. + nonstopux*) version_type=nonstopux ;;
  13651. + *)
  13652. + if test "$lt_cv_prog_gnu_ld" = yes; then
  13653. + version_type=linux
  13654. + else
  13655. + version_type=irix
  13656. + fi ;;
  13657. + esac
  13658. + need_lib_prefix=no
  13659. + need_version=no
  13660. + soname_spec='${libname}${release}${shared_ext}$major'
  13661. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13662. + case $host_os in
  13663. + irix5* | nonstopux*)
  13664. + libsuff= shlibsuff=
  13665. + ;;
  13666. + *)
  13667. + case $LD in # libtool.m4 will add one of these switches to LD
  13668. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13669. + libsuff= shlibsuff= libmagic=32-bit;;
  13670. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13671. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  13672. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13673. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13674. + *) libsuff= shlibsuff= libmagic=never-match;;
  13675. + esac
  13676. + ;;
  13677. + esac
  13678. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13679. + shlibpath_overrides_runpath=no
  13680. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13681. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13682. + hardcode_into_libs=yes
  13683. + ;;
  13684. +
  13685. +# No shared lib support for Linux oldld, aout, or coff.
  13686. +linux*oldld* | linux*aout* | linux*coff*)
  13687. + dynamic_linker=no
  13688. + ;;
  13689. +
  13690. +# This must be Linux ELF.
  13691. +linux* | k*bsd*-gnu)
  13692. + version_type=linux
  13693. + need_lib_prefix=no
  13694. + need_version=no
  13695. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13696. + soname_spec='${libname}${release}${shared_ext}$major'
  13697. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13698. + shlibpath_var=LD_LIBRARY_PATH
  13699. + shlibpath_overrides_runpath=no
  13700. + # Some binutils ld are patched to set DT_RUNPATH
  13701. + save_LDFLAGS=$LDFLAGS
  13702. + save_libdir=$libdir
  13703. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  13704. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  13705. + cat >conftest.$ac_ext <<_ACEOF
  13706. +/* confdefs.h. */
  13707. +_ACEOF
  13708. +cat confdefs.h >>conftest.$ac_ext
  13709. +cat >>conftest.$ac_ext <<_ACEOF
  13710. +/* end confdefs.h. */
  13711. +
  13712. +int
  13713. +main ()
  13714. +{
  13715. +
  13716. + ;
  13717. + return 0;
  13718. +}
  13719. +_ACEOF
  13720. +rm -f conftest.$ac_objext conftest$ac_exeext
  13721. +if { (ac_try="$ac_link"
  13722. +case "(($ac_try" in
  13723. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13724. + *) ac_try_echo=$ac_try;;
  13725. +esac
  13726. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13727. +$as_echo "$ac_try_echo") >&5
  13728. + (eval "$ac_link") 2>conftest.er1
  13729. + ac_status=$?
  13730. + grep -v '^ *+' conftest.er1 >conftest.err
  13731. + rm -f conftest.er1
  13732. + cat conftest.err >&5
  13733. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13734. + (exit $ac_status); } && {
  13735. + test -z "$ac_c_werror_flag" ||
  13736. + test ! -s conftest.err
  13737. + } && test -s conftest$ac_exeext && {
  13738. + test "$cross_compiling" = yes ||
  13739. + $as_test_x conftest$ac_exeext
  13740. + }; then
  13741. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  13742. + shlibpath_overrides_runpath=yes
  13743. +fi
  13744. +
  13745. +else
  13746. + $as_echo "$as_me: failed program was:" >&5
  13747. +sed 's/^/| /' conftest.$ac_ext >&5
  13748. +
  13749. +
  13750. +fi
  13751. +
  13752. +rm -rf conftest.dSYM
  13753. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13754. + conftest$ac_exeext conftest.$ac_ext
  13755. + LDFLAGS=$save_LDFLAGS
  13756. + libdir=$save_libdir
  13757. +
  13758. + # This implies no fast_install, which is unacceptable.
  13759. + # Some rework will be needed to allow for fast_install
  13760. + # before this can be enabled.
  13761. + hardcode_into_libs=yes
  13762. +
  13763. + # Append ld.so.conf contents to the search path
  13764. + if test -f /etc/ld.so.conf; then
  13765. + 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' ' '`
  13766. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13767. + fi
  13768. +
  13769. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  13770. + # powerpc, because MkLinux only supported shared libraries with the
  13771. + # GNU dynamic linker. Since this was broken with cross compilers,
  13772. + # most powerpc-linux boxes support dynamic linking these days and
  13773. + # people can always --disable-shared, the test was removed, and we
  13774. + # assume the GNU/Linux dynamic linker is in use.
  13775. + dynamic_linker='GNU/Linux ld.so'
  13776. + ;;
  13777. +
  13778. +netbsdelf*-gnu)
  13779. + version_type=linux
  13780. + need_lib_prefix=no
  13781. + need_version=no
  13782. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13783. + soname_spec='${libname}${release}${shared_ext}$major'
  13784. + shlibpath_var=LD_LIBRARY_PATH
  13785. + shlibpath_overrides_runpath=no
  13786. + hardcode_into_libs=yes
  13787. + dynamic_linker='NetBSD ld.elf_so'
  13788. + ;;
  13789. +
  13790. +netbsd*)
  13791. + version_type=sunos
  13792. + need_lib_prefix=no
  13793. + need_version=no
  13794. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13795. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13796. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13797. + dynamic_linker='NetBSD (a.out) ld.so'
  13798. + else
  13799. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13800. + soname_spec='${libname}${release}${shared_ext}$major'
  13801. + dynamic_linker='NetBSD ld.elf_so'
  13802. + fi
  13803. + shlibpath_var=LD_LIBRARY_PATH
  13804. + shlibpath_overrides_runpath=yes
  13805. + hardcode_into_libs=yes
  13806. + ;;
  13807. +
  13808. +newsos6)
  13809. + version_type=linux
  13810. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13811. + shlibpath_var=LD_LIBRARY_PATH
  13812. + shlibpath_overrides_runpath=yes
  13813. + ;;
  13814. +
  13815. +*nto* | *qnx*)
  13816. + version_type=qnx
  13817. + need_lib_prefix=no
  13818. + need_version=no
  13819. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13820. + soname_spec='${libname}${release}${shared_ext}$major'
  13821. + shlibpath_var=LD_LIBRARY_PATH
  13822. + shlibpath_overrides_runpath=no
  13823. + hardcode_into_libs=yes
  13824. + dynamic_linker='ldqnx.so'
  13825. + ;;
  13826. +
  13827. +openbsd*)
  13828. + version_type=sunos
  13829. + sys_lib_dlsearch_path_spec="/usr/lib"
  13830. + need_lib_prefix=no
  13831. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13832. + case $host_os in
  13833. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13834. + *) need_version=no ;;
  13835. + esac
  13836. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13837. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13838. + shlibpath_var=LD_LIBRARY_PATH
  13839. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13840. + case $host_os in
  13841. + openbsd2.[89] | openbsd2.[89].*)
  13842. + shlibpath_overrides_runpath=no
  13843. + ;;
  13844. + *)
  13845. + shlibpath_overrides_runpath=yes
  13846. + ;;
  13847. + esac
  13848. + else
  13849. + shlibpath_overrides_runpath=yes
  13850. + fi
  13851. + ;;
  13852. +
  13853. +os2*)
  13854. + libname_spec='$name'
  13855. + shrext_cmds=".dll"
  13856. + need_lib_prefix=no
  13857. + library_names_spec='$libname${shared_ext} $libname.a'
  13858. + dynamic_linker='OS/2 ld.exe'
  13859. + shlibpath_var=LIBPATH
  13860. + ;;
  13861. +
  13862. +osf3* | osf4* | osf5*)
  13863. + version_type=osf
  13864. + need_lib_prefix=no
  13865. + need_version=no
  13866. + soname_spec='${libname}${release}${shared_ext}$major'
  13867. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13868. + shlibpath_var=LD_LIBRARY_PATH
  13869. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13870. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13871. + ;;
  13872. +
  13873. +rdos*)
  13874. + dynamic_linker=no
  13875. + ;;
  13876. +
  13877. +solaris*)
  13878. + version_type=linux
  13879. + need_lib_prefix=no
  13880. + need_version=no
  13881. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13882. + soname_spec='${libname}${release}${shared_ext}$major'
  13883. + shlibpath_var=LD_LIBRARY_PATH
  13884. + shlibpath_overrides_runpath=yes
  13885. + hardcode_into_libs=yes
  13886. + # ldd complains unless libraries are executable
  13887. + postinstall_cmds='chmod +x $lib'
  13888. + ;;
  13889. +
  13890. +sunos4*)
  13891. + version_type=sunos
  13892. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13893. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13894. + shlibpath_var=LD_LIBRARY_PATH
  13895. + shlibpath_overrides_runpath=yes
  13896. + if test "$with_gnu_ld" = yes; then
  13897. + need_lib_prefix=no
  13898. + fi
  13899. + need_version=yes
  13900. + ;;
  13901. +
  13902. +sysv4 | sysv4.3*)
  13903. + version_type=linux
  13904. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13905. + soname_spec='${libname}${release}${shared_ext}$major'
  13906. + shlibpath_var=LD_LIBRARY_PATH
  13907. + case $host_vendor in
  13908. + sni)
  13909. + shlibpath_overrides_runpath=no
  13910. + need_lib_prefix=no
  13911. + runpath_var=LD_RUN_PATH
  13912. + ;;
  13913. + siemens)
  13914. + need_lib_prefix=no
  13915. + ;;
  13916. + motorola)
  13917. + need_lib_prefix=no
  13918. + need_version=no
  13919. + shlibpath_overrides_runpath=no
  13920. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13921. + ;;
  13922. + esac
  13923. + ;;
  13924. +
  13925. +sysv4*MP*)
  13926. + if test -d /usr/nec ;then
  13927. + version_type=linux
  13928. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13929. + soname_spec='$libname${shared_ext}.$major'
  13930. + shlibpath_var=LD_LIBRARY_PATH
  13931. + fi
  13932. + ;;
  13933. +
  13934. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13935. + version_type=freebsd-elf
  13936. + need_lib_prefix=no
  13937. + need_version=no
  13938. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13939. + soname_spec='${libname}${release}${shared_ext}$major'
  13940. + shlibpath_var=LD_LIBRARY_PATH
  13941. + shlibpath_overrides_runpath=yes
  13942. + hardcode_into_libs=yes
  13943. + if test "$with_gnu_ld" = yes; then
  13944. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13945. + else
  13946. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13947. + case $host_os in
  13948. + sco3.2v5*)
  13949. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13950. + ;;
  13951. + esac
  13952. + fi
  13953. + sys_lib_dlsearch_path_spec='/usr/lib'
  13954. + ;;
  13955. +
  13956. +tpf*)
  13957. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13958. + version_type=linux
  13959. + need_lib_prefix=no
  13960. + need_version=no
  13961. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13962. + shlibpath_var=LD_LIBRARY_PATH
  13963. + shlibpath_overrides_runpath=no
  13964. + hardcode_into_libs=yes
  13965. + ;;
  13966. +
  13967. +uts4*)
  13968. + version_type=linux
  13969. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13970. + soname_spec='${libname}${release}${shared_ext}$major'
  13971. + shlibpath_var=LD_LIBRARY_PATH
  13972. + ;;
  13973. +
  13974. +*)
  13975. + dynamic_linker=no
  13976. + ;;
  13977. +esac
  13978. +{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13979. +$as_echo "$dynamic_linker" >&6; }
  13980. +test "$dynamic_linker" = no && can_build_shared=no
  13981. +
  13982. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13983. +if test "$GCC" = yes; then
  13984. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13985. +fi
  13986. +
  13987. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13988. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13989. +fi
  13990. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13991. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13992. +fi
  13993. +
  13994. +
  13995. +
  13996. +
  13997. +
  13998. +
  13999. +
  14000. +
  14001. +
  14002. +
  14003. +
  14004. +
  14005. +
  14006. +
  14007. +
  14008. +
  14009. +
  14010. +
  14011. +
  14012. +
  14013. +
  14014. +
  14015. +
  14016. +
  14017. +
  14018. +
  14019. +
  14020. +
  14021. +
  14022. +
  14023. +
  14024. +
  14025. +
  14026. +
  14027. +
  14028. +
  14029. +
  14030. +
  14031. +
  14032. +
  14033. +
  14034. +
  14035. +
  14036. +
  14037. +
  14038. +
  14039. +
  14040. +
  14041. +
  14042. +
  14043. +
  14044. +
  14045. +
  14046. +
  14047. +
  14048. +
  14049. +
  14050. +
  14051. +
  14052. +
  14053. +
  14054. +
  14055. +
  14056. +
  14057. +
  14058. +
  14059. +
  14060. +
  14061. +
  14062. +
  14063. +
  14064. +
  14065. +
  14066. +
  14067. +
  14068. +
  14069. +
  14070. +
  14071. +
  14072. +
  14073. +
  14074. +
  14075. +
  14076. +
  14077. +
  14078. +
  14079. +
  14080. + { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  14081. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14082. +hardcode_action=
  14083. +if test -n "$hardcode_libdir_flag_spec" ||
  14084. + test -n "$runpath_var" ||
  14085. + test "X$hardcode_automatic" = "Xyes" ; then
  14086. +
  14087. + # We can hardcode non-existent directories.
  14088. + if test "$hardcode_direct" != no &&
  14089. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14090. + # have to relink, otherwise we might link with an installed library
  14091. + # when we should be linking with a yet-to-be-installed one
  14092. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  14093. + test "$hardcode_minus_L" != no; then
  14094. + # Linking always hardcodes the temporary library directory.
  14095. + hardcode_action=relink
  14096. + else
  14097. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14098. + hardcode_action=immediate
  14099. + fi
  14100. +else
  14101. + # We cannot hardcode anything, or else we can only hardcode existing
  14102. + # directories.
  14103. + hardcode_action=unsupported
  14104. +fi
  14105. +{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  14106. +$as_echo "$hardcode_action" >&6; }
  14107. +
  14108. +if test "$hardcode_action" = relink ||
  14109. + test "$inherit_rpath" = yes; then
  14110. + # Fast installation is not supported
  14111. + enable_fast_install=no
  14112. +elif test "$shlibpath_overrides_runpath" = yes ||
  14113. + test "$enable_shared" = no; then
  14114. + # Fast installation is not necessary
  14115. + enable_fast_install=needless
  14116. +fi
  14117. +
  14118. +
  14119. +
  14120. +
  14121. +
  14122. +
  14123. + if test "x$enable_dlopen" != xyes; then
  14124. + enable_dlopen=unknown
  14125. + enable_dlopen_self=unknown
  14126. + enable_dlopen_self_static=unknown
  14127. +else
  14128. + lt_cv_dlopen=no
  14129. + lt_cv_dlopen_libs=
  14130. +
  14131. + case $host_os in
  14132. + beos*)
  14133. + lt_cv_dlopen="load_add_on"
  14134. + lt_cv_dlopen_libs=
  14135. + lt_cv_dlopen_self=yes
  14136. + ;;
  14137. +
  14138. + mingw* | pw32* | cegcc*)
  14139. + lt_cv_dlopen="LoadLibrary"
  14140. + lt_cv_dlopen_libs=
  14141. + ;;
  14142. +
  14143. + cygwin*)
  14144. + lt_cv_dlopen="dlopen"
  14145. + lt_cv_dlopen_libs=
  14146. + ;;
  14147. +
  14148. + darwin*)
  14149. + # if libdl is installed we need to link against it
  14150. + { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  14151. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  14152. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  14153. + $as_echo_n "(cached) " >&6
  14154. +else
  14155. + ac_check_lib_save_LIBS=$LIBS
  14156. +LIBS="-ldl $LIBS"
  14157. +cat >conftest.$ac_ext <<_ACEOF
  14158. +/* confdefs.h. */
  14159. +_ACEOF
  14160. +cat confdefs.h >>conftest.$ac_ext
  14161. +cat >>conftest.$ac_ext <<_ACEOF
  14162. +/* end confdefs.h. */
  14163. +
  14164. +/* Override any GCC internal prototype to avoid an error.
  14165. + Use char because int might match the return type of a GCC
  14166. + builtin and then its argument prototype would still apply. */
  14167. +#ifdef __cplusplus
  14168. +extern "C"
  14169. +#endif
  14170. +char dlopen ();
  14171. +int
  14172. +main ()
  14173. +{
  14174. +return dlopen ();
  14175. + ;
  14176. + return 0;
  14177. +}
  14178. +_ACEOF
  14179. +rm -f conftest.$ac_objext conftest$ac_exeext
  14180. +if { (ac_try="$ac_link"
  14181. +case "(($ac_try" in
  14182. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14183. + *) ac_try_echo=$ac_try;;
  14184. +esac
  14185. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14186. +$as_echo "$ac_try_echo") >&5
  14187. + (eval "$ac_link") 2>conftest.er1
  14188. + ac_status=$?
  14189. + grep -v '^ *+' conftest.er1 >conftest.err
  14190. + rm -f conftest.er1
  14191. + cat conftest.err >&5
  14192. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14193. + (exit $ac_status); } && {
  14194. + test -z "$ac_c_werror_flag" ||
  14195. + test ! -s conftest.err
  14196. + } && test -s conftest$ac_exeext && {
  14197. + test "$cross_compiling" = yes ||
  14198. + $as_test_x conftest$ac_exeext
  14199. + }; then
  14200. + ac_cv_lib_dl_dlopen=yes
  14201. +else
  14202. + $as_echo "$as_me: failed program was:" >&5
  14203. +sed 's/^/| /' conftest.$ac_ext >&5
  14204. +
  14205. + ac_cv_lib_dl_dlopen=no
  14206. +fi
  14207. +
  14208. +rm -rf conftest.dSYM
  14209. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14210. + conftest$ac_exeext conftest.$ac_ext
  14211. +LIBS=$ac_check_lib_save_LIBS
  14212. +fi
  14213. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  14214. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  14215. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  14216. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  14217. +else
  14218. +
  14219. + lt_cv_dlopen="dyld"
  14220. + lt_cv_dlopen_libs=
  14221. + lt_cv_dlopen_self=yes
  14222. +
  14223. +fi
  14224. +
  14225. + ;;
  14226. +
  14227. + *)
  14228. + { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  14229. +$as_echo_n "checking for shl_load... " >&6; }
  14230. +if test "${ac_cv_func_shl_load+set}" = set; then
  14231. + $as_echo_n "(cached) " >&6
  14232. +else
  14233. + cat >conftest.$ac_ext <<_ACEOF
  14234. +/* confdefs.h. */
  14235. +_ACEOF
  14236. +cat confdefs.h >>conftest.$ac_ext
  14237. +cat >>conftest.$ac_ext <<_ACEOF
  14238. +/* end confdefs.h. */
  14239. +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  14240. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14241. +#define shl_load innocuous_shl_load
  14242. +
  14243. +/* System header to define __stub macros and hopefully few prototypes,
  14244. + which can conflict with char shl_load (); below.
  14245. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14246. + <limits.h> exists even on freestanding compilers. */
  14247. +
  14248. +#ifdef __STDC__
  14249. +# include <limits.h>
  14250. +#else
  14251. +# include <assert.h>
  14252. +#endif
  14253. +
  14254. +#undef shl_load
  14255. +
  14256. +/* Override any GCC internal prototype to avoid an error.
  14257. + Use char because int might match the return type of a GCC
  14258. + builtin and then its argument prototype would still apply. */
  14259. +#ifdef __cplusplus
  14260. +extern "C"
  14261. +#endif
  14262. +char shl_load ();
  14263. +/* The GNU C library defines this for functions which it implements
  14264. + to always fail with ENOSYS. Some functions are actually named
  14265. + something starting with __ and the normal name is an alias. */
  14266. +#if defined __stub_shl_load || defined __stub___shl_load
  14267. +choke me
  14268. +#endif
  14269. +
  14270. +int
  14271. +main ()
  14272. +{
  14273. +return shl_load ();
  14274. + ;
  14275. + return 0;
  14276. +}
  14277. +_ACEOF
  14278. +rm -f conftest.$ac_objext conftest$ac_exeext
  14279. +if { (ac_try="$ac_link"
  14280. +case "(($ac_try" in
  14281. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14282. + *) ac_try_echo=$ac_try;;
  14283. +esac
  14284. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14285. +$as_echo "$ac_try_echo") >&5
  14286. + (eval "$ac_link") 2>conftest.er1
  14287. + ac_status=$?
  14288. + grep -v '^ *+' conftest.er1 >conftest.err
  14289. + rm -f conftest.er1
  14290. + cat conftest.err >&5
  14291. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14292. + (exit $ac_status); } && {
  14293. + test -z "$ac_c_werror_flag" ||
  14294. + test ! -s conftest.err
  14295. + } && test -s conftest$ac_exeext && {
  14296. + test "$cross_compiling" = yes ||
  14297. + $as_test_x conftest$ac_exeext
  14298. + }; then
  14299. + ac_cv_func_shl_load=yes
  14300. +else
  14301. + $as_echo "$as_me: failed program was:" >&5
  14302. +sed 's/^/| /' conftest.$ac_ext >&5
  14303. +
  14304. + ac_cv_func_shl_load=no
  14305. +fi
  14306. +
  14307. +rm -rf conftest.dSYM
  14308. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14309. + conftest$ac_exeext conftest.$ac_ext
  14310. +fi
  14311. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  14312. +$as_echo "$ac_cv_func_shl_load" >&6; }
  14313. +if test "x$ac_cv_func_shl_load" = x""yes; then
  14314. + lt_cv_dlopen="shl_load"
  14315. +else
  14316. + { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  14317. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  14318. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  14319. + $as_echo_n "(cached) " >&6
  14320. +else
  14321. + ac_check_lib_save_LIBS=$LIBS
  14322. +LIBS="-ldld $LIBS"
  14323. +cat >conftest.$ac_ext <<_ACEOF
  14324. +/* confdefs.h. */
  14325. +_ACEOF
  14326. +cat confdefs.h >>conftest.$ac_ext
  14327. +cat >>conftest.$ac_ext <<_ACEOF
  14328. +/* end confdefs.h. */
  14329. +
  14330. +/* Override any GCC internal prototype to avoid an error.
  14331. + Use char because int might match the return type of a GCC
  14332. + builtin and then its argument prototype would still apply. */
  14333. +#ifdef __cplusplus
  14334. +extern "C"
  14335. +#endif
  14336. +char shl_load ();
  14337. +int
  14338. +main ()
  14339. +{
  14340. +return shl_load ();
  14341. + ;
  14342. + return 0;
  14343. +}
  14344. +_ACEOF
  14345. +rm -f conftest.$ac_objext conftest$ac_exeext
  14346. +if { (ac_try="$ac_link"
  14347. +case "(($ac_try" in
  14348. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14349. + *) ac_try_echo=$ac_try;;
  14350. +esac
  14351. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14352. +$as_echo "$ac_try_echo") >&5
  14353. + (eval "$ac_link") 2>conftest.er1
  14354. + ac_status=$?
  14355. + grep -v '^ *+' conftest.er1 >conftest.err
  14356. + rm -f conftest.er1
  14357. + cat conftest.err >&5
  14358. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14359. + (exit $ac_status); } && {
  14360. + test -z "$ac_c_werror_flag" ||
  14361. + test ! -s conftest.err
  14362. + } && test -s conftest$ac_exeext && {
  14363. + test "$cross_compiling" = yes ||
  14364. + $as_test_x conftest$ac_exeext
  14365. + }; then
  14366. + ac_cv_lib_dld_shl_load=yes
  14367. +else
  14368. + $as_echo "$as_me: failed program was:" >&5
  14369. +sed 's/^/| /' conftest.$ac_ext >&5
  14370. +
  14371. + ac_cv_lib_dld_shl_load=no
  14372. +fi
  14373. +
  14374. +rm -rf conftest.dSYM
  14375. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14376. + conftest$ac_exeext conftest.$ac_ext
  14377. +LIBS=$ac_check_lib_save_LIBS
  14378. +fi
  14379. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  14380. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  14381. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  14382. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  14383. +else
  14384. + { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  14385. +$as_echo_n "checking for dlopen... " >&6; }
  14386. +if test "${ac_cv_func_dlopen+set}" = set; then
  14387. + $as_echo_n "(cached) " >&6
  14388. +else
  14389. + cat >conftest.$ac_ext <<_ACEOF
  14390. +/* confdefs.h. */
  14391. +_ACEOF
  14392. +cat confdefs.h >>conftest.$ac_ext
  14393. +cat >>conftest.$ac_ext <<_ACEOF
  14394. +/* end confdefs.h. */
  14395. +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  14396. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14397. +#define dlopen innocuous_dlopen
  14398. +
  14399. +/* System header to define __stub macros and hopefully few prototypes,
  14400. + which can conflict with char dlopen (); below.
  14401. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14402. + <limits.h> exists even on freestanding compilers. */
  14403. +
  14404. +#ifdef __STDC__
  14405. +# include <limits.h>
  14406. +#else
  14407. +# include <assert.h>
  14408. +#endif
  14409. +
  14410. +#undef dlopen
  14411. +
  14412. +/* Override any GCC internal prototype to avoid an error.
  14413. + Use char because int might match the return type of a GCC
  14414. + builtin and then its argument prototype would still apply. */
  14415. +#ifdef __cplusplus
  14416. +extern "C"
  14417. +#endif
  14418. +char dlopen ();
  14419. +/* The GNU C library defines this for functions which it implements
  14420. + to always fail with ENOSYS. Some functions are actually named
  14421. + something starting with __ and the normal name is an alias. */
  14422. +#if defined __stub_dlopen || defined __stub___dlopen
  14423. +choke me
  14424. +#endif
  14425. +
  14426. +int
  14427. +main ()
  14428. +{
  14429. +return dlopen ();
  14430. + ;
  14431. + return 0;
  14432. +}
  14433. +_ACEOF
  14434. +rm -f conftest.$ac_objext conftest$ac_exeext
  14435. +if { (ac_try="$ac_link"
  14436. +case "(($ac_try" in
  14437. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14438. + *) ac_try_echo=$ac_try;;
  14439. +esac
  14440. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14441. +$as_echo "$ac_try_echo") >&5
  14442. + (eval "$ac_link") 2>conftest.er1
  14443. + ac_status=$?
  14444. + grep -v '^ *+' conftest.er1 >conftest.err
  14445. + rm -f conftest.er1
  14446. + cat conftest.err >&5
  14447. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14448. + (exit $ac_status); } && {
  14449. + test -z "$ac_c_werror_flag" ||
  14450. + test ! -s conftest.err
  14451. + } && test -s conftest$ac_exeext && {
  14452. + test "$cross_compiling" = yes ||
  14453. + $as_test_x conftest$ac_exeext
  14454. + }; then
  14455. + ac_cv_func_dlopen=yes
  14456. +else
  14457. + $as_echo "$as_me: failed program was:" >&5
  14458. +sed 's/^/| /' conftest.$ac_ext >&5
  14459. +
  14460. + ac_cv_func_dlopen=no
  14461. +fi
  14462. +
  14463. +rm -rf conftest.dSYM
  14464. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14465. + conftest$ac_exeext conftest.$ac_ext
  14466. +fi
  14467. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  14468. +$as_echo "$ac_cv_func_dlopen" >&6; }
  14469. +if test "x$ac_cv_func_dlopen" = x""yes; then
  14470. + lt_cv_dlopen="dlopen"
  14471. +else
  14472. + { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  14473. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  14474. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  14475. + $as_echo_n "(cached) " >&6
  14476. +else
  14477. + ac_check_lib_save_LIBS=$LIBS
  14478. +LIBS="-ldl $LIBS"
  14479. +cat >conftest.$ac_ext <<_ACEOF
  14480. +/* confdefs.h. */
  14481. +_ACEOF
  14482. +cat confdefs.h >>conftest.$ac_ext
  14483. +cat >>conftest.$ac_ext <<_ACEOF
  14484. +/* end confdefs.h. */
  14485. +
  14486. +/* Override any GCC internal prototype to avoid an error.
  14487. + Use char because int might match the return type of a GCC
  14488. + builtin and then its argument prototype would still apply. */
  14489. +#ifdef __cplusplus
  14490. +extern "C"
  14491. +#endif
  14492. +char dlopen ();
  14493. +int
  14494. +main ()
  14495. +{
  14496. +return dlopen ();
  14497. + ;
  14498. + return 0;
  14499. +}
  14500. +_ACEOF
  14501. +rm -f conftest.$ac_objext conftest$ac_exeext
  14502. +if { (ac_try="$ac_link"
  14503. +case "(($ac_try" in
  14504. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14505. + *) ac_try_echo=$ac_try;;
  14506. +esac
  14507. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14508. +$as_echo "$ac_try_echo") >&5
  14509. + (eval "$ac_link") 2>conftest.er1
  14510. + ac_status=$?
  14511. + grep -v '^ *+' conftest.er1 >conftest.err
  14512. + rm -f conftest.er1
  14513. + cat conftest.err >&5
  14514. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14515. + (exit $ac_status); } && {
  14516. + test -z "$ac_c_werror_flag" ||
  14517. + test ! -s conftest.err
  14518. + } && test -s conftest$ac_exeext && {
  14519. + test "$cross_compiling" = yes ||
  14520. + $as_test_x conftest$ac_exeext
  14521. + }; then
  14522. + ac_cv_lib_dl_dlopen=yes
  14523. +else
  14524. + $as_echo "$as_me: failed program was:" >&5
  14525. +sed 's/^/| /' conftest.$ac_ext >&5
  14526. +
  14527. + ac_cv_lib_dl_dlopen=no
  14528. +fi
  14529. +
  14530. +rm -rf conftest.dSYM
  14531. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14532. + conftest$ac_exeext conftest.$ac_ext
  14533. +LIBS=$ac_check_lib_save_LIBS
  14534. +fi
  14535. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  14536. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  14537. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  14538. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  14539. +else
  14540. + { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  14541. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  14542. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  14543. + $as_echo_n "(cached) " >&6
  14544. +else
  14545. + ac_check_lib_save_LIBS=$LIBS
  14546. +LIBS="-lsvld $LIBS"
  14547. +cat >conftest.$ac_ext <<_ACEOF
  14548. +/* confdefs.h. */
  14549. +_ACEOF
  14550. +cat confdefs.h >>conftest.$ac_ext
  14551. +cat >>conftest.$ac_ext <<_ACEOF
  14552. +/* end confdefs.h. */
  14553. +
  14554. +/* Override any GCC internal prototype to avoid an error.
  14555. + Use char because int might match the return type of a GCC
  14556. + builtin and then its argument prototype would still apply. */
  14557. +#ifdef __cplusplus
  14558. +extern "C"
  14559. +#endif
  14560. +char dlopen ();
  14561. +int
  14562. +main ()
  14563. +{
  14564. +return dlopen ();
  14565. + ;
  14566. + return 0;
  14567. +}
  14568. +_ACEOF
  14569. +rm -f conftest.$ac_objext conftest$ac_exeext
  14570. +if { (ac_try="$ac_link"
  14571. +case "(($ac_try" in
  14572. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14573. + *) ac_try_echo=$ac_try;;
  14574. +esac
  14575. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14576. +$as_echo "$ac_try_echo") >&5
  14577. + (eval "$ac_link") 2>conftest.er1
  14578. + ac_status=$?
  14579. + grep -v '^ *+' conftest.er1 >conftest.err
  14580. + rm -f conftest.er1
  14581. + cat conftest.err >&5
  14582. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14583. + (exit $ac_status); } && {
  14584. + test -z "$ac_c_werror_flag" ||
  14585. + test ! -s conftest.err
  14586. + } && test -s conftest$ac_exeext && {
  14587. + test "$cross_compiling" = yes ||
  14588. + $as_test_x conftest$ac_exeext
  14589. + }; then
  14590. + ac_cv_lib_svld_dlopen=yes
  14591. +else
  14592. + $as_echo "$as_me: failed program was:" >&5
  14593. +sed 's/^/| /' conftest.$ac_ext >&5
  14594. +
  14595. + ac_cv_lib_svld_dlopen=no
  14596. +fi
  14597. +
  14598. +rm -rf conftest.dSYM
  14599. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14600. + conftest$ac_exeext conftest.$ac_ext
  14601. +LIBS=$ac_check_lib_save_LIBS
  14602. +fi
  14603. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  14604. +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  14605. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  14606. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  14607. +else
  14608. + { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  14609. +$as_echo_n "checking for dld_link in -ldld... " >&6; }
  14610. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  14611. + $as_echo_n "(cached) " >&6
  14612. +else
  14613. + ac_check_lib_save_LIBS=$LIBS
  14614. +LIBS="-ldld $LIBS"
  14615. +cat >conftest.$ac_ext <<_ACEOF
  14616. +/* confdefs.h. */
  14617. +_ACEOF
  14618. +cat confdefs.h >>conftest.$ac_ext
  14619. +cat >>conftest.$ac_ext <<_ACEOF
  14620. +/* end confdefs.h. */
  14621. +
  14622. +/* Override any GCC internal prototype to avoid an error.
  14623. + Use char because int might match the return type of a GCC
  14624. + builtin and then its argument prototype would still apply. */
  14625. +#ifdef __cplusplus
  14626. +extern "C"
  14627. +#endif
  14628. +char dld_link ();
  14629. +int
  14630. +main ()
  14631. +{
  14632. +return dld_link ();
  14633. + ;
  14634. + return 0;
  14635. +}
  14636. +_ACEOF
  14637. +rm -f conftest.$ac_objext conftest$ac_exeext
  14638. +if { (ac_try="$ac_link"
  14639. +case "(($ac_try" in
  14640. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14641. + *) ac_try_echo=$ac_try;;
  14642. +esac
  14643. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14644. +$as_echo "$ac_try_echo") >&5
  14645. + (eval "$ac_link") 2>conftest.er1
  14646. + ac_status=$?
  14647. + grep -v '^ *+' conftest.er1 >conftest.err
  14648. + rm -f conftest.er1
  14649. + cat conftest.err >&5
  14650. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14651. + (exit $ac_status); } && {
  14652. + test -z "$ac_c_werror_flag" ||
  14653. + test ! -s conftest.err
  14654. + } && test -s conftest$ac_exeext && {
  14655. + test "$cross_compiling" = yes ||
  14656. + $as_test_x conftest$ac_exeext
  14657. + }; then
  14658. + ac_cv_lib_dld_dld_link=yes
  14659. +else
  14660. + $as_echo "$as_me: failed program was:" >&5
  14661. +sed 's/^/| /' conftest.$ac_ext >&5
  14662. +
  14663. + ac_cv_lib_dld_dld_link=no
  14664. +fi
  14665. +
  14666. +rm -rf conftest.dSYM
  14667. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14668. + conftest$ac_exeext conftest.$ac_ext
  14669. +LIBS=$ac_check_lib_save_LIBS
  14670. +fi
  14671. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  14672. +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  14673. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  14674. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  14675. +fi
  14676. +
  14677. +
  14678. +fi
  14679. +
  14680. +
  14681. +fi
  14682. +
  14683. +
  14684. +fi
  14685. +
  14686. +
  14687. +fi
  14688. +
  14689. +
  14690. +fi
  14691. +
  14692. + ;;
  14693. + esac
  14694. +
  14695. + if test "x$lt_cv_dlopen" != xno; then
  14696. + enable_dlopen=yes
  14697. + else
  14698. + enable_dlopen=no
  14699. + fi
  14700. +
  14701. + case $lt_cv_dlopen in
  14702. + dlopen)
  14703. + save_CPPFLAGS="$CPPFLAGS"
  14704. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  14705. +
  14706. + save_LDFLAGS="$LDFLAGS"
  14707. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  14708. +
  14709. + save_LIBS="$LIBS"
  14710. + LIBS="$lt_cv_dlopen_libs $LIBS"
  14711. +
  14712. + { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  14713. +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  14714. +if test "${lt_cv_dlopen_self+set}" = set; then
  14715. + $as_echo_n "(cached) " >&6
  14716. +else
  14717. + if test "$cross_compiling" = yes; then :
  14718. + lt_cv_dlopen_self=cross
  14719. +else
  14720. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  14721. + lt_status=$lt_dlunknown
  14722. + cat > conftest.$ac_ext <<_LT_EOF
  14723. +#line 11565 "configure"
  14724. +#include "confdefs.h"
  14725. +
  14726. +#if HAVE_DLFCN_H
  14727. +#include <dlfcn.h>
  14728. +#endif
  14729. +
  14730. +#include <stdio.h>
  14731. +
  14732. +#ifdef RTLD_GLOBAL
  14733. +# define LT_DLGLOBAL RTLD_GLOBAL
  14734. +#else
  14735. +# ifdef DL_GLOBAL
  14736. +# define LT_DLGLOBAL DL_GLOBAL
  14737. +# else
  14738. +# define LT_DLGLOBAL 0
  14739. +# endif
  14740. +#endif
  14741. +
  14742. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  14743. + find out it does not work in some platform. */
  14744. +#ifndef LT_DLLAZY_OR_NOW
  14745. +# ifdef RTLD_LAZY
  14746. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  14747. +# else
  14748. +# ifdef DL_LAZY
  14749. +# define LT_DLLAZY_OR_NOW DL_LAZY
  14750. +# else
  14751. +# ifdef RTLD_NOW
  14752. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  14753. +# else
  14754. +# ifdef DL_NOW
  14755. +# define LT_DLLAZY_OR_NOW DL_NOW
  14756. +# else
  14757. +# define LT_DLLAZY_OR_NOW 0
  14758. +# endif
  14759. +# endif
  14760. +# endif
  14761. +# endif
  14762. +#endif
  14763. +
  14764. +void fnord() { int i=42;}
  14765. +int main ()
  14766. +{
  14767. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  14768. + int status = $lt_dlunknown;
  14769. +
  14770. + if (self)
  14771. + {
  14772. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  14773. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  14774. + /* dlclose (self); */
  14775. + }
  14776. + else
  14777. + puts (dlerror ());
  14778. +
  14779. + return status;
  14780. +}
  14781. +_LT_EOF
  14782. + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14783. + (eval $ac_link) 2>&5
  14784. + ac_status=$?
  14785. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14786. + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  14787. + (./conftest; exit; ) >&5 2>/dev/null
  14788. + lt_status=$?
  14789. + case x$lt_status in
  14790. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  14791. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  14792. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  14793. + esac
  14794. + else :
  14795. + # compilation failed
  14796. + lt_cv_dlopen_self=no
  14797. + fi
  14798. +fi
  14799. +rm -fr conftest*
  14800. +
  14801. +
  14802. +fi
  14803. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  14804. +$as_echo "$lt_cv_dlopen_self" >&6; }
  14805. +
  14806. + if test "x$lt_cv_dlopen_self" = xyes; then
  14807. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  14808. + { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  14809. +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  14810. +if test "${lt_cv_dlopen_self_static+set}" = set; then
  14811. + $as_echo_n "(cached) " >&6
  14812. +else
  14813. + if test "$cross_compiling" = yes; then :
  14814. + lt_cv_dlopen_self_static=cross
  14815. +else
  14816. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  14817. + lt_status=$lt_dlunknown
  14818. + cat > conftest.$ac_ext <<_LT_EOF
  14819. +#line 11661 "configure"
  14820. +#include "confdefs.h"
  14821. +
  14822. +#if HAVE_DLFCN_H
  14823. +#include <dlfcn.h>
  14824. +#endif
  14825. +
  14826. +#include <stdio.h>
  14827. +
  14828. +#ifdef RTLD_GLOBAL
  14829. +# define LT_DLGLOBAL RTLD_GLOBAL
  14830. +#else
  14831. +# ifdef DL_GLOBAL
  14832. +# define LT_DLGLOBAL DL_GLOBAL
  14833. +# else
  14834. +# define LT_DLGLOBAL 0
  14835. +# endif
  14836. +#endif
  14837. +
  14838. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  14839. + find out it does not work in some platform. */
  14840. +#ifndef LT_DLLAZY_OR_NOW
  14841. +# ifdef RTLD_LAZY
  14842. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  14843. +# else
  14844. +# ifdef DL_LAZY
  14845. +# define LT_DLLAZY_OR_NOW DL_LAZY
  14846. +# else
  14847. +# ifdef RTLD_NOW
  14848. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  14849. +# else
  14850. +# ifdef DL_NOW
  14851. +# define LT_DLLAZY_OR_NOW DL_NOW
  14852. +# else
  14853. +# define LT_DLLAZY_OR_NOW 0
  14854. +# endif
  14855. +# endif
  14856. +# endif
  14857. +# endif
  14858. +#endif
  14859. +
  14860. +void fnord() { int i=42;}
  14861. +int main ()
  14862. +{
  14863. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  14864. + int status = $lt_dlunknown;
  14865. +
  14866. + if (self)
  14867. + {
  14868. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  14869. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  14870. + /* dlclose (self); */
  14871. + }
  14872. + else
  14873. + puts (dlerror ());
  14874. +
  14875. + return status;
  14876. +}
  14877. +_LT_EOF
  14878. + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14879. + (eval $ac_link) 2>&5
  14880. + ac_status=$?
  14881. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14882. + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  14883. + (./conftest; exit; ) >&5 2>/dev/null
  14884. + lt_status=$?
  14885. + case x$lt_status in
  14886. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  14887. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  14888. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  14889. + esac
  14890. + else :
  14891. + # compilation failed
  14892. + lt_cv_dlopen_self_static=no
  14893. + fi
  14894. +fi
  14895. +rm -fr conftest*
  14896. +
  14897. +
  14898. +fi
  14899. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  14900. +$as_echo "$lt_cv_dlopen_self_static" >&6; }
  14901. + fi
  14902. +
  14903. + CPPFLAGS="$save_CPPFLAGS"
  14904. + LDFLAGS="$save_LDFLAGS"
  14905. + LIBS="$save_LIBS"
  14906. + ;;
  14907. + esac
  14908. +
  14909. + case $lt_cv_dlopen_self in
  14910. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  14911. + *) enable_dlopen_self=unknown ;;
  14912. + esac
  14913. +
  14914. + case $lt_cv_dlopen_self_static in
  14915. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  14916. + *) enable_dlopen_self_static=unknown ;;
  14917. + esac
  14918. +fi
  14919. +
  14920. +
  14921. +
  14922. +
  14923. +
  14924. +
  14925. +
  14926. +
  14927. +
  14928. +
  14929. +
  14930. +
  14931. +
  14932. +
  14933. +
  14934. +
  14935. +
  14936. +striplib=
  14937. +old_striplib=
  14938. +{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  14939. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  14940. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  14941. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  14942. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  14943. + { $as_echo "$as_me:$LINENO: result: yes" >&5
  14944. +$as_echo "yes" >&6; }
  14945. +else
  14946. +# FIXME - insert some real tests, host_os isn't really good enough
  14947. + case $host_os in
  14948. + darwin*)
  14949. + if test -n "$STRIP" ; then
  14950. + striplib="$STRIP -x"
  14951. + old_striplib="$STRIP -S"
  14952. + { $as_echo "$as_me:$LINENO: result: yes" >&5
  14953. +$as_echo "yes" >&6; }
  14954. + else
  14955. + { $as_echo "$as_me:$LINENO: result: no" >&5
  14956. +$as_echo "no" >&6; }
  14957. + fi
  14958. + ;;
  14959. + *)
  14960. + { $as_echo "$as_me:$LINENO: result: no" >&5
  14961. +$as_echo "no" >&6; }
  14962. + ;;
  14963. + esac
  14964. +fi
  14965. +
  14966. +
  14967. +
  14968. +
  14969. +
  14970. +
  14971. +
  14972. +
  14973. +
  14974. +
  14975. +
  14976. +
  14977. + # Report which library types will actually be built
  14978. + { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  14979. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  14980. + { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  14981. +$as_echo "$can_build_shared" >&6; }
  14982. +
  14983. + { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  14984. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  14985. + test "$can_build_shared" = "no" && enable_shared=no
  14986. +
  14987. + # On AIX, shared libraries and static libraries use the same namespace, and
  14988. + # are all built from PIC.
  14989. + case $host_os in
  14990. + aix3*)
  14991. + test "$enable_shared" = yes && enable_static=no
  14992. + if test -n "$RANLIB"; then
  14993. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  14994. + postinstall_cmds='$RANLIB $lib'
  14995. + fi
  14996. + ;;
  14997. +
  14998. + aix[4-9]*)
  14999. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  15000. + test "$enable_shared" = yes && enable_static=no
  15001. + fi
  15002. + ;;
  15003. + esac
  15004. + { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  15005. +$as_echo "$enable_shared" >&6; }
  15006. +
  15007. + { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  15008. +$as_echo_n "checking whether to build static libraries... " >&6; }
  15009. + # Make sure either enable_shared or enable_static is yes.
  15010. + test "$enable_shared" = yes || enable_static=yes
  15011. + { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  15012. +$as_echo "$enable_static" >&6; }
  15013. +
  15014. +
  15015. +
  15016. +
  15017. +fi
  15018. +ac_ext=c
  15019. +ac_cpp='$CPP $CPPFLAGS'
  15020. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15021. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15022. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15023. +
  15024. +CC="$lt_save_CC"
  15025. +
  15026. +
  15027. +
  15028. +
  15029. +
  15030. +
  15031. +
  15032. +
  15033. +
  15034. +
  15035. +
  15036. +
  15037. +
  15038. + ac_config_commands="$ac_config_commands libtool"
  15039. +
  15040. +
  15041. +
  15042. +
  15043. +# Only expand once:
  15044. +
  15045. +
  15046. +# Find a good install program. We prefer a C program (faster),
  15047. +# so one script is as good as another. But avoid the broken or
  15048. +# incompatible versions:
  15049. +# SysV /etc/install, /usr/sbin/install
  15050. +# SunOS /usr/etc/install
  15051. +# IRIX /sbin/install
  15052. +# AIX /bin/install
  15053. +# AmigaOS /C/install, which installs bootblocks on floppy discs
  15054. +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15055. +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15056. +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15057. +# OS/2's system install, which has a completely different semantic
  15058. +# ./install, which can be erroneously created by make from ./install.sh.
  15059. +# Reject install programs that cannot install multiple files.
  15060. +{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  15061. +$as_echo_n "checking for a BSD-compatible install... " >&6; }
  15062. +if test -z "$INSTALL"; then
  15063. +if test "${ac_cv_path_install+set}" = set; then
  15064. + $as_echo_n "(cached) " >&6
  15065. +else
  15066. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15067. +for as_dir in $PATH
  15068. +do
  15069. + IFS=$as_save_IFS
  15070. + test -z "$as_dir" && as_dir=.
  15071. + # Account for people who put trailing slashes in PATH elements.
  15072. +case $as_dir/ in
  15073. + ./ | .// | /cC/* | \
  15074. + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15075. + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  15076. + /usr/ucb/* ) ;;
  15077. + *)
  15078. + # OSF1 and SCO ODT 3.0 have their own names for install.
  15079. + # Don't use installbsd from OSF since it installs stuff as root
  15080. + # by default.
  15081. + for ac_prog in ginstall scoinst install; do
  15082. + for ac_exec_ext in '' $ac_executable_extensions; do
  15083. + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  15084. + if test $ac_prog = install &&
  15085. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15086. + # AIX install. It has an incompatible calling convention.
  15087. + :
  15088. + elif test $ac_prog = install &&
  15089. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15090. + # program-specific install script used by HP pwplus--don't use.
  15091. + :
  15092. + else
  15093. + rm -rf conftest.one conftest.two conftest.dir
  15094. + echo one > conftest.one
  15095. + echo two > conftest.two
  15096. + mkdir conftest.dir
  15097. + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  15098. + test -s conftest.one && test -s conftest.two &&
  15099. + test -s conftest.dir/conftest.one &&
  15100. + test -s conftest.dir/conftest.two
  15101. + then
  15102. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  15103. + break 3
  15104. + fi
  15105. + fi
  15106. + fi
  15107. + done
  15108. + done
  15109. + ;;
  15110. +esac
  15111. +
  15112. +done
  15113. +IFS=$as_save_IFS
  15114. +
  15115. +rm -rf conftest.one conftest.two conftest.dir
  15116. +
  15117. +fi
  15118. + if test "${ac_cv_path_install+set}" = set; then
  15119. + INSTALL=$ac_cv_path_install
  15120. + else
  15121. + # As a last resort, use the slow shell script. Don't cache a
  15122. + # value for INSTALL within a source directory, because that will
  15123. + # break other packages using the cache if that directory is
  15124. + # removed, or if the value is a relative name.
  15125. + INSTALL=$ac_install_sh
  15126. + fi
  15127. +fi
  15128. +{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  15129. +$as_echo "$INSTALL" >&6; }
  15130. +
  15131. +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15132. +# It thinks the first close brace ends the variable substitution.
  15133. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15134. +
  15135. +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15136. +
  15137. +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15138. +
  15139. +{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  15140. +$as_echo_n "checking whether ln -s works... " >&6; }
  15141. +LN_S=$as_ln_s
  15142. +if test "$LN_S" = "ln -s"; then
  15143. + { $as_echo "$as_me:$LINENO: result: yes" >&5
  15144. +$as_echo "yes" >&6; }
  15145. +else
  15146. + { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  15147. +$as_echo "no, using $LN_S" >&6; }
  15148. +fi
  15149. +
  15150. +{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15151. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15152. +set x ${MAKE-make}
  15153. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15154. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  15155. + $as_echo_n "(cached) " >&6
  15156. +else
  15157. + cat >conftest.make <<\_ACEOF
  15158. +SHELL = /bin/sh
  15159. +all:
  15160. + @echo '@@@%%%=$(MAKE)=@@@%%%'
  15161. +_ACEOF
  15162. +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  15163. +case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15164. + *@@@%%%=?*=@@@%%%*)
  15165. + eval ac_cv_prog_make_${ac_make}_set=yes;;
  15166. + *)
  15167. + eval ac_cv_prog_make_${ac_make}_set=no;;
  15168. +esac
  15169. +rm -f conftest.make
  15170. +fi
  15171. +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15172. + { $as_echo "$as_me:$LINENO: result: yes" >&5
  15173. +$as_echo "yes" >&6; }
  15174. + SET_MAKE=
  15175. +else
  15176. + { $as_echo "$as_me:$LINENO: result: no" >&5
  15177. +$as_echo "no" >&6; }
  15178. + SET_MAKE="MAKE=${MAKE-make}"
  15179. +fi
  15180. +
  15181. +
  15182. +
  15183. +{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  15184. +$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  15185. +if test "${ac_cv_c_const+set}" = set; then
  15186. + $as_echo_n "(cached) " >&6
  15187. +else
  15188. + cat >conftest.$ac_ext <<_ACEOF
  15189. +/* confdefs.h. */
  15190. +_ACEOF
  15191. +cat confdefs.h >>conftest.$ac_ext
  15192. +cat >>conftest.$ac_ext <<_ACEOF
  15193. +/* end confdefs.h. */
  15194. +
  15195. +int
  15196. +main ()
  15197. +{
  15198. +/* FIXME: Include the comments suggested by Paul. */
  15199. +#ifndef __cplusplus
  15200. + /* Ultrix mips cc rejects this. */
  15201. + typedef int charset[2];
  15202. + const charset cs;
  15203. + /* SunOS 4.1.1 cc rejects this. */
  15204. + char const *const *pcpcc;
  15205. + char **ppc;
  15206. + /* NEC SVR4.0.2 mips cc rejects this. */
  15207. + struct point {int x, y;};
  15208. + static struct point const zero = {0,0};
  15209. + /* AIX XL C 1.02.0.0 rejects this.
  15210. + It does not let you subtract one const X* pointer from another in
  15211. + an arm of an if-expression whose if-part is not a constant
  15212. + expression */
  15213. + const char *g = "string";
  15214. + pcpcc = &g + (g ? g-g : 0);
  15215. + /* HPUX 7.0 cc rejects these. */
  15216. + ++pcpcc;
  15217. + ppc = (char**) pcpcc;
  15218. + pcpcc = (char const *const *) ppc;
  15219. + { /* SCO 3.2v4 cc rejects this. */
  15220. + char *t;
  15221. + char const *s = 0 ? (char *) 0 : (char const *) 0;
  15222. +
  15223. + *t++ = 0;
  15224. + if (s) return 0;
  15225. + }
  15226. + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15227. + int x[] = {25, 17};
  15228. + const int *foo = &x[0];
  15229. + ++foo;
  15230. + }
  15231. + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  15232. + typedef const int *iptr;
  15233. + iptr p = 0;
  15234. + ++p;
  15235. + }
  15236. + { /* AIX XL C 1.02.0.0 rejects this saying
  15237. + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  15238. + struct s { int j; const int *ap[3]; };
  15239. + struct s *b; b->j = 5;
  15240. + }
  15241. + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  15242. + const int foo = 10;
  15243. + if (!foo) return 0;
  15244. + }
  15245. + return !cs[0] && !zero.x;
  15246. +#endif
  15247. +
  15248. + ;
  15249. + return 0;
  15250. +}
  15251. +_ACEOF
  15252. +rm -f conftest.$ac_objext
  15253. +if { (ac_try="$ac_compile"
  15254. +case "(($ac_try" in
  15255. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15256. + *) ac_try_echo=$ac_try;;
  15257. +esac
  15258. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15259. +$as_echo "$ac_try_echo") >&5
  15260. + (eval "$ac_compile") 2>conftest.er1
  15261. + ac_status=$?
  15262. + grep -v '^ *+' conftest.er1 >conftest.err
  15263. + rm -f conftest.er1
  15264. + cat conftest.err >&5
  15265. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15266. + (exit $ac_status); } && {
  15267. + test -z "$ac_c_werror_flag" ||
  15268. + test ! -s conftest.err
  15269. + } && test -s conftest.$ac_objext; then
  15270. + ac_cv_c_const=yes
  15271. +else
  15272. + $as_echo "$as_me: failed program was:" >&5
  15273. +sed 's/^/| /' conftest.$ac_ext >&5
  15274. +
  15275. + ac_cv_c_const=no
  15276. +fi
  15277. +
  15278. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15279. +fi
  15280. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  15281. +$as_echo "$ac_cv_c_const" >&6; }
  15282. +if test $ac_cv_c_const = no; then
  15283. +
  15284. +cat >>confdefs.h <<\_ACEOF
  15285. +#define const /**/
  15286. +_ACEOF
  15287. +
  15288. +fi
  15289. +
  15290. +
  15291. +
  15292. +{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  15293. +$as_echo_n "checking for ANSI C header files... " >&6; }
  15294. +if test "${ac_cv_header_stdc+set}" = set; then
  15295. + $as_echo_n "(cached) " >&6
  15296. +else
  15297. + cat >conftest.$ac_ext <<_ACEOF
  15298. +/* confdefs.h. */
  15299. +_ACEOF
  15300. +cat confdefs.h >>conftest.$ac_ext
  15301. +cat >>conftest.$ac_ext <<_ACEOF
  15302. +/* end confdefs.h. */
  15303. +#include <stdlib.h>
  15304. +#include <stdarg.h>
  15305. +#include <string.h>
  15306. +#include <float.h>
  15307. +
  15308. +int
  15309. +main ()
  15310. +{
  15311. +
  15312. + ;
  15313. + return 0;
  15314. +}
  15315. +_ACEOF
  15316. +rm -f conftest.$ac_objext
  15317. +if { (ac_try="$ac_compile"
  15318. +case "(($ac_try" in
  15319. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15320. + *) ac_try_echo=$ac_try;;
  15321. +esac
  15322. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15323. +$as_echo "$ac_try_echo") >&5
  15324. + (eval "$ac_compile") 2>conftest.er1
  15325. + ac_status=$?
  15326. + grep -v '^ *+' conftest.er1 >conftest.err
  15327. + rm -f conftest.er1
  15328. + cat conftest.err >&5
  15329. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15330. + (exit $ac_status); } && {
  15331. + test -z "$ac_c_werror_flag" ||
  15332. + test ! -s conftest.err
  15333. + } && test -s conftest.$ac_objext; then
  15334. + ac_cv_header_stdc=yes
  15335. +else
  15336. + $as_echo "$as_me: failed program was:" >&5
  15337. +sed 's/^/| /' conftest.$ac_ext >&5
  15338. +
  15339. + ac_cv_header_stdc=no
  15340. +fi
  15341. +
  15342. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15343. +
  15344. +if test $ac_cv_header_stdc = yes; then
  15345. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  15346. + cat >conftest.$ac_ext <<_ACEOF
  15347. +/* confdefs.h. */
  15348. +_ACEOF
  15349. +cat confdefs.h >>conftest.$ac_ext
  15350. +cat >>conftest.$ac_ext <<_ACEOF
  15351. +/* end confdefs.h. */
  15352. +#include <string.h>
  15353. +
  15354. +_ACEOF
  15355. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15356. + $EGREP "memchr" >/dev/null 2>&1; then
  15357. + :
  15358. +else
  15359. + ac_cv_header_stdc=no
  15360. +fi
  15361. +rm -f conftest*
  15362. +
  15363. +fi
  15364. +
  15365. +if test $ac_cv_header_stdc = yes; then
  15366. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  15367. + cat >conftest.$ac_ext <<_ACEOF
  15368. +/* confdefs.h. */
  15369. +_ACEOF
  15370. +cat confdefs.h >>conftest.$ac_ext
  15371. +cat >>conftest.$ac_ext <<_ACEOF
  15372. +/* end confdefs.h. */
  15373. +#include <stdlib.h>
  15374. +
  15375. +_ACEOF
  15376. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15377. + $EGREP "free" >/dev/null 2>&1; then
  15378. + :
  15379. +else
  15380. + ac_cv_header_stdc=no
  15381. +fi
  15382. +rm -f conftest*
  15383. +
  15384. +fi
  15385. +
  15386. +if test $ac_cv_header_stdc = yes; then
  15387. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  15388. + if test "$cross_compiling" = yes; then
  15389. + :
  15390. +else
  15391. + cat >conftest.$ac_ext <<_ACEOF
  15392. +/* confdefs.h. */
  15393. +_ACEOF
  15394. +cat confdefs.h >>conftest.$ac_ext
  15395. +cat >>conftest.$ac_ext <<_ACEOF
  15396. +/* end confdefs.h. */
  15397. +#include <ctype.h>
  15398. +#include <stdlib.h>
  15399. +#if ((' ' & 0x0FF) == 0x020)
  15400. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  15401. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  15402. +#else
  15403. +# define ISLOWER(c) \
  15404. + (('a' <= (c) && (c) <= 'i') \
  15405. + || ('j' <= (c) && (c) <= 'r') \
  15406. + || ('s' <= (c) && (c) <= 'z'))
  15407. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  15408. +#endif
  15409. +
  15410. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  15411. +int
  15412. +main ()
  15413. +{
  15414. + int i;
  15415. + for (i = 0; i < 256; i++)
  15416. + if (XOR (islower (i), ISLOWER (i))
  15417. + || toupper (i) != TOUPPER (i))
  15418. + return 2;
  15419. + return 0;
  15420. +}
  15421. +_ACEOF
  15422. +rm -f conftest$ac_exeext
  15423. +if { (ac_try="$ac_link"
  15424. +case "(($ac_try" in
  15425. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15426. + *) ac_try_echo=$ac_try;;
  15427. +esac
  15428. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15429. +$as_echo "$ac_try_echo") >&5
  15430. + (eval "$ac_link") 2>&5
  15431. + ac_status=$?
  15432. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15433. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15434. + { (case "(($ac_try" in
  15435. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15436. + *) ac_try_echo=$ac_try;;
  15437. +esac
  15438. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15439. +$as_echo "$ac_try_echo") >&5
  15440. + (eval "$ac_try") 2>&5
  15441. + ac_status=$?
  15442. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15443. + (exit $ac_status); }; }; then
  15444. + :
  15445. +else
  15446. + $as_echo "$as_me: program exited with status $ac_status" >&5
  15447. +$as_echo "$as_me: failed program was:" >&5
  15448. +sed 's/^/| /' conftest.$ac_ext >&5
  15449. +
  15450. +( exit $ac_status )
  15451. +ac_cv_header_stdc=no
  15452. +fi
  15453. +rm -rf conftest.dSYM
  15454. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15455. +fi
  15456. +
  15457. +
  15458. +fi
  15459. +fi
  15460. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  15461. +$as_echo "$ac_cv_header_stdc" >&6; }
  15462. +if test $ac_cv_header_stdc = yes; then
  15463. +
  15464. +cat >>confdefs.h <<\_ACEOF
  15465. +#define STDC_HEADERS 1
  15466. +_ACEOF
  15467. +
  15468. +fi
  15469. +
  15470. +
  15471. +for ac_header in unistd.h
  15472. +do
  15473. +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15474. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15475. + { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15476. +$as_echo_n "checking for $ac_header... " >&6; }
  15477. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15478. + $as_echo_n "(cached) " >&6
  15479. +fi
  15480. +ac_res=`eval 'as_val=${'$as_ac_Header'}
  15481. + $as_echo "$as_val"'`
  15482. + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15483. +$as_echo "$ac_res" >&6; }
  15484. +else
  15485. + # Is the header compilable?
  15486. +{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15487. +$as_echo_n "checking $ac_header usability... " >&6; }
  15488. +cat >conftest.$ac_ext <<_ACEOF
  15489. +/* confdefs.h. */
  15490. +_ACEOF
  15491. +cat confdefs.h >>conftest.$ac_ext
  15492. +cat >>conftest.$ac_ext <<_ACEOF
  15493. +/* end confdefs.h. */
  15494. +$ac_includes_default
  15495. +#include <$ac_header>
  15496. +_ACEOF
  15497. +rm -f conftest.$ac_objext
  15498. +if { (ac_try="$ac_compile"
  15499. +case "(($ac_try" in
  15500. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15501. + *) ac_try_echo=$ac_try;;
  15502. +esac
  15503. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15504. +$as_echo "$ac_try_echo") >&5
  15505. + (eval "$ac_compile") 2>conftest.er1
  15506. + ac_status=$?
  15507. + grep -v '^ *+' conftest.er1 >conftest.err
  15508. + rm -f conftest.er1
  15509. + cat conftest.err >&5
  15510. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15511. + (exit $ac_status); } && {
  15512. + test -z "$ac_c_werror_flag" ||
  15513. + test ! -s conftest.err
  15514. + } && test -s conftest.$ac_objext; then
  15515. + ac_header_compiler=yes
  15516. +else
  15517. + $as_echo "$as_me: failed program was:" >&5
  15518. +sed 's/^/| /' conftest.$ac_ext >&5
  15519. +
  15520. + ac_header_compiler=no
  15521. +fi
  15522. +
  15523. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15524. +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15525. +$as_echo "$ac_header_compiler" >&6; }
  15526. +
  15527. +# Is the header present?
  15528. +{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15529. +$as_echo_n "checking $ac_header presence... " >&6; }
  15530. +cat >conftest.$ac_ext <<_ACEOF
  15531. +/* confdefs.h. */
  15532. +_ACEOF
  15533. +cat confdefs.h >>conftest.$ac_ext
  15534. +cat >>conftest.$ac_ext <<_ACEOF
  15535. +/* end confdefs.h. */
  15536. +#include <$ac_header>
  15537. +_ACEOF
  15538. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  15539. +case "(($ac_try" in
  15540. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15541. + *) ac_try_echo=$ac_try;;
  15542. +esac
  15543. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15544. +$as_echo "$ac_try_echo") >&5
  15545. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15546. + ac_status=$?
  15547. + grep -v '^ *+' conftest.er1 >conftest.err
  15548. + rm -f conftest.er1
  15549. + cat conftest.err >&5
  15550. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15551. + (exit $ac_status); } >/dev/null && {
  15552. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15553. + test ! -s conftest.err
  15554. + }; then
  15555. + ac_header_preproc=yes
  15556. +else
  15557. + $as_echo "$as_me: failed program was:" >&5
  15558. +sed 's/^/| /' conftest.$ac_ext >&5
  15559. +
  15560. + ac_header_preproc=no
  15561. +fi
  15562. +
  15563. +rm -f conftest.err conftest.$ac_ext
  15564. +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15565. +$as_echo "$ac_header_preproc" >&6; }
  15566. +
  15567. +# So? What about this header?
  15568. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  15569. + yes:no: )
  15570. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15571. +$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15572. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15573. +$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15574. + ac_header_preproc=yes
  15575. + ;;
  15576. + no:yes:* )
  15577. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15578. +$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15579. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15580. +$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15581. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15582. +$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15583. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15584. +$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15585. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15586. +$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15587. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15588. +$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15589. +
  15590. + ;;
  15591. +esac
  15592. +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15593. +$as_echo_n "checking for $ac_header... " >&6; }
  15594. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15595. + $as_echo_n "(cached) " >&6
  15596. +else
  15597. + eval "$as_ac_Header=\$ac_header_preproc"
  15598. +fi
  15599. +ac_res=`eval 'as_val=${'$as_ac_Header'}
  15600. + $as_echo "$as_val"'`
  15601. + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15602. +$as_echo "$ac_res" >&6; }
  15603. +
  15604. +fi
  15605. +as_val=`eval 'as_val=${'$as_ac_Header'}
  15606. + $as_echo "$as_val"'`
  15607. + if test "x$as_val" = x""yes; then
  15608. + cat >>confdefs.h <<_ACEOF
  15609. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15610. +_ACEOF
  15611. +
  15612. +fi
  15613. +
  15614. +done
  15615. +
  15616. +{ $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
  15617. +$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
  15618. +if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
  15619. + $as_echo_n "(cached) " >&6
  15620. +else
  15621. + cat >conftest.$ac_ext <<_ACEOF
  15622. +/* confdefs.h. */
  15623. +_ACEOF
  15624. +cat confdefs.h >>conftest.$ac_ext
  15625. +cat >>conftest.$ac_ext <<_ACEOF
  15626. +/* end confdefs.h. */
  15627. +#include <sys/types.h>
  15628. +int
  15629. +main ()
  15630. +{
  15631. +return makedev(0, 0);
  15632. + ;
  15633. + return 0;
  15634. +}
  15635. +_ACEOF
  15636. +rm -f conftest.$ac_objext conftest$ac_exeext
  15637. +if { (ac_try="$ac_link"
  15638. +case "(($ac_try" in
  15639. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15640. + *) ac_try_echo=$ac_try;;
  15641. +esac
  15642. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15643. +$as_echo "$ac_try_echo") >&5
  15644. + (eval "$ac_link") 2>conftest.er1
  15645. + ac_status=$?
  15646. + grep -v '^ *+' conftest.er1 >conftest.err
  15647. + rm -f conftest.er1
  15648. + cat conftest.err >&5
  15649. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15650. + (exit $ac_status); } && {
  15651. + test -z "$ac_c_werror_flag" ||
  15652. + test ! -s conftest.err
  15653. + } && test -s conftest$ac_exeext && {
  15654. + test "$cross_compiling" = yes ||
  15655. + $as_test_x conftest$ac_exeext
  15656. + }; then
  15657. + ac_cv_header_sys_types_h_makedev=yes
  15658. +else
  15659. + $as_echo "$as_me: failed program was:" >&5
  15660. +sed 's/^/| /' conftest.$ac_ext >&5
  15661. +
  15662. + ac_cv_header_sys_types_h_makedev=no
  15663. +fi
  15664. +
  15665. +rm -rf conftest.dSYM
  15666. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15667. + conftest$ac_exeext conftest.$ac_ext
  15668. +
  15669. +fi
  15670. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
  15671. +$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
  15672. +
  15673. +if test $ac_cv_header_sys_types_h_makedev = no; then
  15674. +if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  15675. + { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  15676. +$as_echo_n "checking for sys/mkdev.h... " >&6; }
  15677. +if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  15678. + $as_echo_n "(cached) " >&6
  15679. +fi
  15680. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  15681. +$as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
  15682. +else
  15683. + # Is the header compilable?
  15684. +{ $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
  15685. +$as_echo_n "checking sys/mkdev.h usability... " >&6; }
  15686. +cat >conftest.$ac_ext <<_ACEOF
  15687. +/* confdefs.h. */
  15688. +_ACEOF
  15689. +cat confdefs.h >>conftest.$ac_ext
  15690. +cat >>conftest.$ac_ext <<_ACEOF
  15691. +/* end confdefs.h. */
  15692. +$ac_includes_default
  15693. +#include <sys/mkdev.h>
  15694. +_ACEOF
  15695. +rm -f conftest.$ac_objext
  15696. +if { (ac_try="$ac_compile"
  15697. +case "(($ac_try" in
  15698. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15699. + *) ac_try_echo=$ac_try;;
  15700. +esac
  15701. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15702. +$as_echo "$ac_try_echo") >&5
  15703. + (eval "$ac_compile") 2>conftest.er1
  15704. + ac_status=$?
  15705. + grep -v '^ *+' conftest.er1 >conftest.err
  15706. + rm -f conftest.er1
  15707. + cat conftest.err >&5
  15708. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15709. + (exit $ac_status); } && {
  15710. + test -z "$ac_c_werror_flag" ||
  15711. + test ! -s conftest.err
  15712. + } && test -s conftest.$ac_objext; then
  15713. + ac_header_compiler=yes
  15714. +else
  15715. + $as_echo "$as_me: failed program was:" >&5
  15716. +sed 's/^/| /' conftest.$ac_ext >&5
  15717. +
  15718. + ac_header_compiler=no
  15719. +fi
  15720. +
  15721. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15722. +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15723. +$as_echo "$ac_header_compiler" >&6; }
  15724. +
  15725. +# Is the header present?
  15726. +{ $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
  15727. +$as_echo_n "checking sys/mkdev.h presence... " >&6; }
  15728. +cat >conftest.$ac_ext <<_ACEOF
  15729. +/* confdefs.h. */
  15730. +_ACEOF
  15731. +cat confdefs.h >>conftest.$ac_ext
  15732. +cat >>conftest.$ac_ext <<_ACEOF
  15733. +/* end confdefs.h. */
  15734. +#include <sys/mkdev.h>
  15735. +_ACEOF
  15736. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  15737. +case "(($ac_try" in
  15738. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15739. + *) ac_try_echo=$ac_try;;
  15740. +esac
  15741. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15742. +$as_echo "$ac_try_echo") >&5
  15743. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15744. + ac_status=$?
  15745. + grep -v '^ *+' conftest.er1 >conftest.err
  15746. + rm -f conftest.er1
  15747. + cat conftest.err >&5
  15748. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15749. + (exit $ac_status); } >/dev/null && {
  15750. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15751. + test ! -s conftest.err
  15752. + }; then
  15753. + ac_header_preproc=yes
  15754. +else
  15755. + $as_echo "$as_me: failed program was:" >&5
  15756. +sed 's/^/| /' conftest.$ac_ext >&5
  15757. +
  15758. + ac_header_preproc=no
  15759. +fi
  15760. +
  15761. +rm -f conftest.err conftest.$ac_ext
  15762. +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15763. +$as_echo "$ac_header_preproc" >&6; }
  15764. +
  15765. +# So? What about this header?
  15766. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  15767. + yes:no: )
  15768. + { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
  15769. +$as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15770. + { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
  15771. +$as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
  15772. + ac_header_preproc=yes
  15773. + ;;
  15774. + no:yes:* )
  15775. + { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
  15776. +$as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
  15777. + { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
  15778. +$as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
  15779. + { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
  15780. +$as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
  15781. + { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
  15782. +$as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
  15783. + { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
  15784. +$as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
  15785. + { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
  15786. +$as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
  15787. +
  15788. + ;;
  15789. +esac
  15790. +{ $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  15791. +$as_echo_n "checking for sys/mkdev.h... " >&6; }
  15792. +if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  15793. + $as_echo_n "(cached) " >&6
  15794. +else
  15795. + ac_cv_header_sys_mkdev_h=$ac_header_preproc
  15796. +fi
  15797. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  15798. +$as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
  15799. +
  15800. +fi
  15801. +if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
  15802. +
  15803. +cat >>confdefs.h <<\_ACEOF
  15804. +#define MAJOR_IN_MKDEV 1
  15805. +_ACEOF
  15806. +
  15807. +fi
  15808. +
  15809. +
  15810. +
  15811. + if test $ac_cv_header_sys_mkdev_h = no; then
  15812. + if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  15813. + { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  15814. +$as_echo_n "checking for sys/sysmacros.h... " >&6; }
  15815. +if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  15816. + $as_echo_n "(cached) " >&6
  15817. +fi
  15818. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  15819. +$as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
  15820. +else
  15821. + # Is the header compilable?
  15822. +{ $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
  15823. +$as_echo_n "checking sys/sysmacros.h usability... " >&6; }
  15824. +cat >conftest.$ac_ext <<_ACEOF
  15825. +/* confdefs.h. */
  15826. +_ACEOF
  15827. +cat confdefs.h >>conftest.$ac_ext
  15828. +cat >>conftest.$ac_ext <<_ACEOF
  15829. +/* end confdefs.h. */
  15830. +$ac_includes_default
  15831. +#include <sys/sysmacros.h>
  15832. +_ACEOF
  15833. +rm -f conftest.$ac_objext
  15834. +if { (ac_try="$ac_compile"
  15835. +case "(($ac_try" in
  15836. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15837. + *) ac_try_echo=$ac_try;;
  15838. +esac
  15839. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15840. +$as_echo "$ac_try_echo") >&5
  15841. + (eval "$ac_compile") 2>conftest.er1
  15842. + ac_status=$?
  15843. + grep -v '^ *+' conftest.er1 >conftest.err
  15844. + rm -f conftest.er1
  15845. + cat conftest.err >&5
  15846. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15847. + (exit $ac_status); } && {
  15848. + test -z "$ac_c_werror_flag" ||
  15849. + test ! -s conftest.err
  15850. + } && test -s conftest.$ac_objext; then
  15851. + ac_header_compiler=yes
  15852. +else
  15853. + $as_echo "$as_me: failed program was:" >&5
  15854. +sed 's/^/| /' conftest.$ac_ext >&5
  15855. +
  15856. + ac_header_compiler=no
  15857. +fi
  15858. +
  15859. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15860. +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15861. +$as_echo "$ac_header_compiler" >&6; }
  15862. +
  15863. +# Is the header present?
  15864. +{ $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
  15865. +$as_echo_n "checking sys/sysmacros.h presence... " >&6; }
  15866. +cat >conftest.$ac_ext <<_ACEOF
  15867. +/* confdefs.h. */
  15868. +_ACEOF
  15869. +cat confdefs.h >>conftest.$ac_ext
  15870. +cat >>conftest.$ac_ext <<_ACEOF
  15871. +/* end confdefs.h. */
  15872. +#include <sys/sysmacros.h>
  15873. +_ACEOF
  15874. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  15875. +case "(($ac_try" in
  15876. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15877. + *) ac_try_echo=$ac_try;;
  15878. +esac
  15879. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15880. +$as_echo "$ac_try_echo") >&5
  15881. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15882. + ac_status=$?
  15883. + grep -v '^ *+' conftest.er1 >conftest.err
  15884. + rm -f conftest.er1
  15885. + cat conftest.err >&5
  15886. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15887. + (exit $ac_status); } >/dev/null && {
  15888. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15889. + test ! -s conftest.err
  15890. + }; then
  15891. + ac_header_preproc=yes
  15892. +else
  15893. + $as_echo "$as_me: failed program was:" >&5
  15894. +sed 's/^/| /' conftest.$ac_ext >&5
  15895. +
  15896. + ac_header_preproc=no
  15897. +fi
  15898. +
  15899. +rm -f conftest.err conftest.$ac_ext
  15900. +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15901. +$as_echo "$ac_header_preproc" >&6; }
  15902. +
  15903. +# So? What about this header?
  15904. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  15905. + yes:no: )
  15906. + { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
  15907. +$as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15908. + { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
  15909. +$as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
  15910. + ac_header_preproc=yes
  15911. + ;;
  15912. + no:yes:* )
  15913. + { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
  15914. +$as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
  15915. + { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
  15916. +$as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
  15917. + { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
  15918. +$as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
  15919. + { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
  15920. +$as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
  15921. + { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
  15922. +$as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
  15923. + { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
  15924. +$as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
  15925. +
  15926. + ;;
  15927. +esac
  15928. +{ $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  15929. +$as_echo_n "checking for sys/sysmacros.h... " >&6; }
  15930. +if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  15931. + $as_echo_n "(cached) " >&6
  15932. +else
  15933. + ac_cv_header_sys_sysmacros_h=$ac_header_preproc
  15934. +fi
  15935. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  15936. +$as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
  15937. +
  15938. +fi
  15939. +if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
  15940. +
  15941. +cat >>confdefs.h <<\_ACEOF
  15942. +#define MAJOR_IN_SYSMACROS 1
  15943. +_ACEOF
  15944. +
  15945. +fi
  15946. +
  15947. +
  15948. + fi
  15949. +fi
  15950. +
  15951. +{ $as_echo "$as_me:$LINENO: checking for major_t" >&5
  15952. +$as_echo_n "checking for major_t... " >&6; }
  15953. +if test "${ac_cv_type_major_t+set}" = set; then
  15954. + $as_echo_n "(cached) " >&6
  15955. +else
  15956. + ac_cv_type_major_t=no
  15957. +cat >conftest.$ac_ext <<_ACEOF
  15958. +/* confdefs.h. */
  15959. +_ACEOF
  15960. +cat confdefs.h >>conftest.$ac_ext
  15961. +cat >>conftest.$ac_ext <<_ACEOF
  15962. +/* end confdefs.h. */
  15963. +#include <sys/types.h>
  15964. + #ifdef MAJOR_IN_MKDEV
  15965. + # include <sys/mkdev.h>
  15966. + #else
  15967. + # ifdef MAJOR_IN_SYSMACROS
  15968. + # include <sys/sysmacros.h>
  15969. + # endif
  15970. + #endif
  15971. +
  15972. +
  15973. +
  15974. +int
  15975. +main ()
  15976. +{
  15977. +if (sizeof (major_t))
  15978. + return 0;
  15979. + ;
  15980. + return 0;
  15981. +}
  15982. +_ACEOF
  15983. +rm -f conftest.$ac_objext
  15984. +if { (ac_try="$ac_compile"
  15985. +case "(($ac_try" in
  15986. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15987. + *) ac_try_echo=$ac_try;;
  15988. +esac
  15989. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15990. +$as_echo "$ac_try_echo") >&5
  15991. + (eval "$ac_compile") 2>conftest.er1
  15992. + ac_status=$?
  15993. + grep -v '^ *+' conftest.er1 >conftest.err
  15994. + rm -f conftest.er1
  15995. + cat conftest.err >&5
  15996. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15997. + (exit $ac_status); } && {
  15998. + test -z "$ac_c_werror_flag" ||
  15999. + test ! -s conftest.err
  16000. + } && test -s conftest.$ac_objext; then
  16001. + cat >conftest.$ac_ext <<_ACEOF
  16002. +/* confdefs.h. */
  16003. +_ACEOF
  16004. +cat confdefs.h >>conftest.$ac_ext
  16005. +cat >>conftest.$ac_ext <<_ACEOF
  16006. +/* end confdefs.h. */
  16007. +#include <sys/types.h>
  16008. + #ifdef MAJOR_IN_MKDEV
  16009. + # include <sys/mkdev.h>
  16010. + #else
  16011. + # ifdef MAJOR_IN_SYSMACROS
  16012. + # include <sys/sysmacros.h>
  16013. + # endif
  16014. + #endif
  16015. +
  16016. +
  16017. +
  16018. +int
  16019. +main ()
  16020. +{
  16021. +if (sizeof ((major_t)))
  16022. + return 0;
  16023. + ;
  16024. + return 0;
  16025. +}
  16026. +_ACEOF
  16027. +rm -f conftest.$ac_objext
  16028. +if { (ac_try="$ac_compile"
  16029. +case "(($ac_try" in
  16030. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16031. + *) ac_try_echo=$ac_try;;
  16032. +esac
  16033. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16034. +$as_echo "$ac_try_echo") >&5
  16035. + (eval "$ac_compile") 2>conftest.er1
  16036. + ac_status=$?
  16037. + grep -v '^ *+' conftest.er1 >conftest.err
  16038. + rm -f conftest.er1
  16039. + cat conftest.err >&5
  16040. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16041. + (exit $ac_status); } && {
  16042. + test -z "$ac_c_werror_flag" ||
  16043. + test ! -s conftest.err
  16044. + } && test -s conftest.$ac_objext; then
  16045. + :
  16046. +else
  16047. + $as_echo "$as_me: failed program was:" >&5
  16048. +sed 's/^/| /' conftest.$ac_ext >&5
  16049. +
  16050. + ac_cv_type_major_t=yes
  16051. +fi
  16052. +
  16053. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16054. +else
  16055. + $as_echo "$as_me: failed program was:" >&5
  16056. +sed 's/^/| /' conftest.$ac_ext >&5
  16057. +
  16058. +
  16059. +fi
  16060. +
  16061. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16062. +fi
  16063. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
  16064. +$as_echo "$ac_cv_type_major_t" >&6; }
  16065. +if test "x$ac_cv_type_major_t" = x""yes; then
  16066. +
  16067. +cat >>confdefs.h <<_ACEOF
  16068. +#define HAVE_MAJOR_T 1
  16069. +_ACEOF
  16070. +
  16071. +
  16072. +else
  16073. +
  16074. +cat >>confdefs.h <<\_ACEOF
  16075. +#define major_t unsigned int
  16076. +_ACEOF
  16077. +
  16078. +fi
  16079. +
  16080. +
  16081. +{ $as_echo "$as_me:$LINENO: checking for minor_t" >&5
  16082. +$as_echo_n "checking for minor_t... " >&6; }
  16083. +if test "${ac_cv_type_minor_t+set}" = set; then
  16084. + $as_echo_n "(cached) " >&6
  16085. +else
  16086. + ac_cv_type_minor_t=no
  16087. +cat >conftest.$ac_ext <<_ACEOF
  16088. +/* confdefs.h. */
  16089. +_ACEOF
  16090. +cat confdefs.h >>conftest.$ac_ext
  16091. +cat >>conftest.$ac_ext <<_ACEOF
  16092. +/* end confdefs.h. */
  16093. +#include <sys/types.h>
  16094. + #ifdef MAJOR_IN_MKDEV
  16095. + # include <sys/mkdev.h>
  16096. + #else
  16097. + # ifdef MAJOR_IN_SYSMACROS
  16098. + # include <sys/sysmacros.h>
  16099. + # endif
  16100. + #endif
  16101. +
  16102. +
  16103. +
  16104. +int
  16105. +main ()
  16106. +{
  16107. +if (sizeof (minor_t))
  16108. + return 0;
  16109. + ;
  16110. + return 0;
  16111. +}
  16112. +_ACEOF
  16113. +rm -f conftest.$ac_objext
  16114. +if { (ac_try="$ac_compile"
  16115. +case "(($ac_try" in
  16116. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16117. + *) ac_try_echo=$ac_try;;
  16118. +esac
  16119. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16120. +$as_echo "$ac_try_echo") >&5
  16121. + (eval "$ac_compile") 2>conftest.er1
  16122. + ac_status=$?
  16123. + grep -v '^ *+' conftest.er1 >conftest.err
  16124. + rm -f conftest.er1
  16125. + cat conftest.err >&5
  16126. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16127. + (exit $ac_status); } && {
  16128. + test -z "$ac_c_werror_flag" ||
  16129. + test ! -s conftest.err
  16130. + } && test -s conftest.$ac_objext; then
  16131. + cat >conftest.$ac_ext <<_ACEOF
  16132. +/* confdefs.h. */
  16133. +_ACEOF
  16134. +cat confdefs.h >>conftest.$ac_ext
  16135. +cat >>conftest.$ac_ext <<_ACEOF
  16136. +/* end confdefs.h. */
  16137. +#include <sys/types.h>
  16138. + #ifdef MAJOR_IN_MKDEV
  16139. + # include <sys/mkdev.h>
  16140. + #else
  16141. + # ifdef MAJOR_IN_SYSMACROS
  16142. + # include <sys/sysmacros.h>
  16143. + # endif
  16144. + #endif
  16145. +
  16146. +
  16147. +
  16148. +int
  16149. +main ()
  16150. +{
  16151. +if (sizeof ((minor_t)))
  16152. + return 0;
  16153. + ;
  16154. + return 0;
  16155. +}
  16156. +_ACEOF
  16157. +rm -f conftest.$ac_objext
  16158. +if { (ac_try="$ac_compile"
  16159. +case "(($ac_try" in
  16160. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16161. + *) ac_try_echo=$ac_try;;
  16162. +esac
  16163. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16164. +$as_echo "$ac_try_echo") >&5
  16165. + (eval "$ac_compile") 2>conftest.er1
  16166. + ac_status=$?
  16167. + grep -v '^ *+' conftest.er1 >conftest.err
  16168. + rm -f conftest.er1
  16169. + cat conftest.err >&5
  16170. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16171. + (exit $ac_status); } && {
  16172. + test -z "$ac_c_werror_flag" ||
  16173. + test ! -s conftest.err
  16174. + } && test -s conftest.$ac_objext; then
  16175. + :
  16176. +else
  16177. + $as_echo "$as_me: failed program was:" >&5
  16178. +sed 's/^/| /' conftest.$ac_ext >&5
  16179. +
  16180. + ac_cv_type_minor_t=yes
  16181. +fi
  16182. +
  16183. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16184. +else
  16185. + $as_echo "$as_me: failed program was:" >&5
  16186. +sed 's/^/| /' conftest.$ac_ext >&5
  16187. +
  16188. +
  16189. +fi
  16190. +
  16191. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16192. +fi
  16193. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
  16194. +$as_echo "$ac_cv_type_minor_t" >&6; }
  16195. +if test "x$ac_cv_type_minor_t" = x""yes; then
  16196. +
  16197. +cat >>confdefs.h <<_ACEOF
  16198. +#define HAVE_MINOR_T 1
  16199. +_ACEOF
  16200. +
  16201. +
  16202. +else
  16203. +
  16204. +cat >>confdefs.h <<\_ACEOF
  16205. +#define minor_t unsigned int
  16206. +_ACEOF
  16207. +
  16208. +fi
  16209. +
  16210. +
  16211. +{ $as_echo "$as_me:$LINENO: checking for dev_t" >&5
  16212. +$as_echo_n "checking for dev_t... " >&6; }
  16213. +if test "${ac_cv_type_dev_t+set}" = set; then
  16214. + $as_echo_n "(cached) " >&6
  16215. +else
  16216. + ac_cv_type_dev_t=no
  16217. +cat >conftest.$ac_ext <<_ACEOF
  16218. +/* confdefs.h. */
  16219. +_ACEOF
  16220. +cat confdefs.h >>conftest.$ac_ext
  16221. +cat >>conftest.$ac_ext <<_ACEOF
  16222. +/* end confdefs.h. */
  16223. +#include <sys/types.h>
  16224. + #ifdef MAJOR_IN_MKDEV
  16225. + # include <sys/mkdev.h>
  16226. + #else
  16227. + # ifdef MAJOR_IN_SYSMACROS
  16228. + # include <sys/sysmacros.h>
  16229. + # endif
  16230. + #endif
  16231. +
  16232. +
  16233. +
  16234. +int
  16235. +main ()
  16236. +{
  16237. +if (sizeof (dev_t))
  16238. + return 0;
  16239. + ;
  16240. + return 0;
  16241. +}
  16242. +_ACEOF
  16243. +rm -f conftest.$ac_objext
  16244. +if { (ac_try="$ac_compile"
  16245. +case "(($ac_try" in
  16246. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16247. + *) ac_try_echo=$ac_try;;
  16248. +esac
  16249. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16250. +$as_echo "$ac_try_echo") >&5
  16251. + (eval "$ac_compile") 2>conftest.er1
  16252. + ac_status=$?
  16253. + grep -v '^ *+' conftest.er1 >conftest.err
  16254. + rm -f conftest.er1
  16255. + cat conftest.err >&5
  16256. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16257. + (exit $ac_status); } && {
  16258. + test -z "$ac_c_werror_flag" ||
  16259. + test ! -s conftest.err
  16260. + } && test -s conftest.$ac_objext; then
  16261. + cat >conftest.$ac_ext <<_ACEOF
  16262. +/* confdefs.h. */
  16263. +_ACEOF
  16264. +cat confdefs.h >>conftest.$ac_ext
  16265. +cat >>conftest.$ac_ext <<_ACEOF
  16266. +/* end confdefs.h. */
  16267. +#include <sys/types.h>
  16268. + #ifdef MAJOR_IN_MKDEV
  16269. + # include <sys/mkdev.h>
  16270. + #else
  16271. + # ifdef MAJOR_IN_SYSMACROS
  16272. + # include <sys/sysmacros.h>
  16273. + # endif
  16274. + #endif
  16275. +
  16276. +
  16277. +
  16278. +int
  16279. +main ()
  16280. +{
  16281. +if (sizeof ((dev_t)))
  16282. + return 0;
  16283. + ;
  16284. + return 0;
  16285. +}
  16286. +_ACEOF
  16287. +rm -f conftest.$ac_objext
  16288. +if { (ac_try="$ac_compile"
  16289. +case "(($ac_try" in
  16290. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16291. + *) ac_try_echo=$ac_try;;
  16292. +esac
  16293. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16294. +$as_echo "$ac_try_echo") >&5
  16295. + (eval "$ac_compile") 2>conftest.er1
  16296. + ac_status=$?
  16297. + grep -v '^ *+' conftest.er1 >conftest.err
  16298. + rm -f conftest.er1
  16299. + cat conftest.err >&5
  16300. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16301. + (exit $ac_status); } && {
  16302. + test -z "$ac_c_werror_flag" ||
  16303. + test ! -s conftest.err
  16304. + } && test -s conftest.$ac_objext; then
  16305. + :
  16306. +else
  16307. + $as_echo "$as_me: failed program was:" >&5
  16308. +sed 's/^/| /' conftest.$ac_ext >&5
  16309. +
  16310. + ac_cv_type_dev_t=yes
  16311. +fi
  16312. +
  16313. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16314. +else
  16315. + $as_echo "$as_me: failed program was:" >&5
  16316. +sed 's/^/| /' conftest.$ac_ext >&5
  16317. +
  16318. +
  16319. +fi
  16320. +
  16321. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16322. +fi
  16323. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
  16324. +$as_echo "$ac_cv_type_dev_t" >&6; }
  16325. +if test "x$ac_cv_type_dev_t" = x""yes; then
  16326. +
  16327. +cat >>confdefs.h <<_ACEOF
  16328. +#define HAVE_DEV_T 1
  16329. +_ACEOF
  16330. +
  16331. +
  16332. +else
  16333. +
  16334. +cat >>confdefs.h <<\_ACEOF
  16335. +#define dev_t unsigned long
  16336. +_ACEOF
  16337. +
  16338. +fi
  16339. +
  16340. +
  16341. +{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
  16342. +$as_echo_n "checking for socklen_t... " >&6; }
  16343. +if test "${ac_cv_type_socklen_t+set}" = set; then
  16344. + $as_echo_n "(cached) " >&6
  16345. +else
  16346. + ac_cv_type_socklen_t=no
  16347. +cat >conftest.$ac_ext <<_ACEOF
  16348. +/* confdefs.h. */
  16349. +_ACEOF
  16350. +cat confdefs.h >>conftest.$ac_ext
  16351. +cat >>conftest.$ac_ext <<_ACEOF
  16352. +/* end confdefs.h. */
  16353. +#include <sys/types.h>
  16354. + #include <sys/socket.h>
  16355. +
  16356. +
  16357. +
  16358. +int
  16359. +main ()
  16360. +{
  16361. +if (sizeof (socklen_t))
  16362. + return 0;
  16363. + ;
  16364. + return 0;
  16365. +}
  16366. +_ACEOF
  16367. +rm -f conftest.$ac_objext
  16368. +if { (ac_try="$ac_compile"
  16369. +case "(($ac_try" in
  16370. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16371. + *) ac_try_echo=$ac_try;;
  16372. +esac
  16373. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16374. +$as_echo "$ac_try_echo") >&5
  16375. + (eval "$ac_compile") 2>conftest.er1
  16376. + ac_status=$?
  16377. + grep -v '^ *+' conftest.er1 >conftest.err
  16378. + rm -f conftest.er1
  16379. + cat conftest.err >&5
  16380. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16381. + (exit $ac_status); } && {
  16382. + test -z "$ac_c_werror_flag" ||
  16383. + test ! -s conftest.err
  16384. + } && test -s conftest.$ac_objext; then
  16385. + cat >conftest.$ac_ext <<_ACEOF
  16386. +/* confdefs.h. */
  16387. +_ACEOF
  16388. +cat confdefs.h >>conftest.$ac_ext
  16389. +cat >>conftest.$ac_ext <<_ACEOF
  16390. +/* end confdefs.h. */
  16391. +#include <sys/types.h>
  16392. + #include <sys/socket.h>
  16393. +
  16394. +
  16395. +
  16396. +int
  16397. +main ()
  16398. +{
  16399. +if (sizeof ((socklen_t)))
  16400. + return 0;
  16401. + ;
  16402. + return 0;
  16403. +}
  16404. +_ACEOF
  16405. +rm -f conftest.$ac_objext
  16406. +if { (ac_try="$ac_compile"
  16407. +case "(($ac_try" in
  16408. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16409. + *) ac_try_echo=$ac_try;;
  16410. +esac
  16411. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16412. +$as_echo "$ac_try_echo") >&5
  16413. + (eval "$ac_compile") 2>conftest.er1
  16414. + ac_status=$?
  16415. + grep -v '^ *+' conftest.er1 >conftest.err
  16416. + rm -f conftest.er1
  16417. + cat conftest.err >&5
  16418. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16419. + (exit $ac_status); } && {
  16420. + test -z "$ac_c_werror_flag" ||
  16421. + test ! -s conftest.err
  16422. + } && test -s conftest.$ac_objext; then
  16423. + :
  16424. +else
  16425. + $as_echo "$as_me: failed program was:" >&5
  16426. +sed 's/^/| /' conftest.$ac_ext >&5
  16427. +
  16428. + ac_cv_type_socklen_t=yes
  16429. +fi
  16430. +
  16431. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16432. +else
  16433. + $as_echo "$as_me: failed program was:" >&5
  16434. +sed 's/^/| /' conftest.$ac_ext >&5
  16435. +
  16436. +
  16437. +fi
  16438. +
  16439. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16440. +fi
  16441. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
  16442. +$as_echo "$ac_cv_type_socklen_t" >&6; }
  16443. +if test "x$ac_cv_type_socklen_t" = x""yes; then
  16444. +
  16445. +cat >>confdefs.h <<_ACEOF
  16446. +#define HAVE_SOCKLEN_T 1
  16447. +_ACEOF
  16448. +
  16449. +
  16450. +else
  16451. +
  16452. +cat >>confdefs.h <<\_ACEOF
  16453. +#define socklen_t unsigned long
  16454. +_ACEOF
  16455. +
  16456. +fi
  16457. +
  16458. +
  16459. +{ $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
  16460. +$as_echo_n "checking for uint64_t... " >&6; }
  16461. +if test "${ac_cv_type_uint64_t+set}" = set; then
  16462. + $as_echo_n "(cached) " >&6
  16463. +else
  16464. + ac_cv_type_uint64_t=no
  16465. +cat >conftest.$ac_ext <<_ACEOF
  16466. +/* confdefs.h. */
  16467. +_ACEOF
  16468. +cat confdefs.h >>conftest.$ac_ext
  16469. +cat >>conftest.$ac_ext <<_ACEOF
  16470. +/* end confdefs.h. */
  16471. +$ac_includes_default
  16472. +int
  16473. +main ()
  16474. +{
  16475. +if (sizeof (uint64_t))
  16476. + return 0;
  16477. + ;
  16478. + return 0;
  16479. +}
  16480. +_ACEOF
  16481. +rm -f conftest.$ac_objext
  16482. +if { (ac_try="$ac_compile"
  16483. +case "(($ac_try" in
  16484. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16485. + *) ac_try_echo=$ac_try;;
  16486. +esac
  16487. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16488. +$as_echo "$ac_try_echo") >&5
  16489. + (eval "$ac_compile") 2>conftest.er1
  16490. + ac_status=$?
  16491. + grep -v '^ *+' conftest.er1 >conftest.err
  16492. + rm -f conftest.er1
  16493. + cat conftest.err >&5
  16494. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16495. + (exit $ac_status); } && {
  16496. + test -z "$ac_c_werror_flag" ||
  16497. + test ! -s conftest.err
  16498. + } && test -s conftest.$ac_objext; then
  16499. + cat >conftest.$ac_ext <<_ACEOF
  16500. +/* confdefs.h. */
  16501. +_ACEOF
  16502. +cat confdefs.h >>conftest.$ac_ext
  16503. +cat >>conftest.$ac_ext <<_ACEOF
  16504. +/* end confdefs.h. */
  16505. +$ac_includes_default
  16506. +int
  16507. +main ()
  16508. +{
  16509. +if (sizeof ((uint64_t)))
  16510. + return 0;
  16511. + ;
  16512. + return 0;
  16513. +}
  16514. +_ACEOF
  16515. +rm -f conftest.$ac_objext
  16516. +if { (ac_try="$ac_compile"
  16517. +case "(($ac_try" in
  16518. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16519. + *) ac_try_echo=$ac_try;;
  16520. +esac
  16521. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16522. +$as_echo "$ac_try_echo") >&5
  16523. + (eval "$ac_compile") 2>conftest.er1
  16524. + ac_status=$?
  16525. + grep -v '^ *+' conftest.er1 >conftest.err
  16526. + rm -f conftest.er1
  16527. + cat conftest.err >&5
  16528. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16529. + (exit $ac_status); } && {
  16530. + test -z "$ac_c_werror_flag" ||
  16531. + test ! -s conftest.err
  16532. + } && test -s conftest.$ac_objext; then
  16533. + :
  16534. +else
  16535. + $as_echo "$as_me: failed program was:" >&5
  16536. +sed 's/^/| /' conftest.$ac_ext >&5
  16537. +
  16538. + ac_cv_type_uint64_t=yes
  16539. +fi
  16540. +
  16541. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16542. +else
  16543. + $as_echo "$as_me: failed program was:" >&5
  16544. +sed 's/^/| /' conftest.$ac_ext >&5
  16545. +
  16546. +
  16547. +fi
  16548. +
  16549. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16550. +fi
  16551. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
  16552. +$as_echo "$ac_cv_type_uint64_t" >&6; }
  16553. +if test "x$ac_cv_type_uint64_t" = x""yes; then
  16554. +
  16555. +cat >>confdefs.h <<_ACEOF
  16556. +#define HAVE_UINT64_T 1
  16557. +_ACEOF
  16558. +
  16559. +
  16560. +else
  16561. +
  16562. +cat >>confdefs.h <<\_ACEOF
  16563. +#define uint64_t long long
  16564. +_ACEOF
  16565. +
  16566. +fi
  16567. +
  16568. +
  16569. +{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
  16570. +$as_echo_n "checking for mode_t... " >&6; }
  16571. +if test "${ac_cv_type_mode_t+set}" = set; then
  16572. + $as_echo_n "(cached) " >&6
  16573. +else
  16574. + ac_cv_type_mode_t=no
  16575. +cat >conftest.$ac_ext <<_ACEOF
  16576. +/* confdefs.h. */
  16577. +_ACEOF
  16578. +cat confdefs.h >>conftest.$ac_ext
  16579. +cat >>conftest.$ac_ext <<_ACEOF
  16580. +/* end confdefs.h. */
  16581. +$ac_includes_default
  16582. +int
  16583. +main ()
  16584. +{
  16585. +if (sizeof (mode_t))
  16586. + return 0;
  16587. + ;
  16588. + return 0;
  16589. +}
  16590. +_ACEOF
  16591. +rm -f conftest.$ac_objext
  16592. +if { (ac_try="$ac_compile"
  16593. +case "(($ac_try" in
  16594. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16595. + *) ac_try_echo=$ac_try;;
  16596. +esac
  16597. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16598. +$as_echo "$ac_try_echo") >&5
  16599. + (eval "$ac_compile") 2>conftest.er1
  16600. + ac_status=$?
  16601. + grep -v '^ *+' conftest.er1 >conftest.err
  16602. + rm -f conftest.er1
  16603. + cat conftest.err >&5
  16604. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16605. + (exit $ac_status); } && {
  16606. + test -z "$ac_c_werror_flag" ||
  16607. + test ! -s conftest.err
  16608. + } && test -s conftest.$ac_objext; then
  16609. + cat >conftest.$ac_ext <<_ACEOF
  16610. +/* confdefs.h. */
  16611. +_ACEOF
  16612. +cat confdefs.h >>conftest.$ac_ext
  16613. +cat >>conftest.$ac_ext <<_ACEOF
  16614. +/* end confdefs.h. */
  16615. +$ac_includes_default
  16616. +int
  16617. +main ()
  16618. +{
  16619. +if (sizeof ((mode_t)))
  16620. + return 0;
  16621. + ;
  16622. + return 0;
  16623. +}
  16624. +_ACEOF
  16625. +rm -f conftest.$ac_objext
  16626. +if { (ac_try="$ac_compile"
  16627. +case "(($ac_try" in
  16628. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16629. + *) ac_try_echo=$ac_try;;
  16630. +esac
  16631. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16632. +$as_echo "$ac_try_echo") >&5
  16633. + (eval "$ac_compile") 2>conftest.er1
  16634. + ac_status=$?
  16635. + grep -v '^ *+' conftest.er1 >conftest.err
  16636. + rm -f conftest.er1
  16637. + cat conftest.err >&5
  16638. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16639. + (exit $ac_status); } && {
  16640. + test -z "$ac_c_werror_flag" ||
  16641. + test ! -s conftest.err
  16642. + } && test -s conftest.$ac_objext; then
  16643. + :
  16644. +else
  16645. + $as_echo "$as_me: failed program was:" >&5
  16646. +sed 's/^/| /' conftest.$ac_ext >&5
  16647. +
  16648. + ac_cv_type_mode_t=yes
  16649. +fi
  16650. +
  16651. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16652. +else
  16653. + $as_echo "$as_me: failed program was:" >&5
  16654. +sed 's/^/| /' conftest.$ac_ext >&5
  16655. +
  16656. +
  16657. +fi
  16658. +
  16659. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16660. +fi
  16661. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  16662. +$as_echo "$ac_cv_type_mode_t" >&6; }
  16663. +if test "x$ac_cv_type_mode_t" = x""yes; then
  16664. + :
  16665. +else
  16666. +
  16667. +cat >>confdefs.h <<_ACEOF
  16668. +#define mode_t int
  16669. +_ACEOF
  16670. +
  16671. +fi
  16672. +
  16673. +{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
  16674. +$as_echo_n "checking for off_t... " >&6; }
  16675. +if test "${ac_cv_type_off_t+set}" = set; then
  16676. + $as_echo_n "(cached) " >&6
  16677. +else
  16678. + ac_cv_type_off_t=no
  16679. +cat >conftest.$ac_ext <<_ACEOF
  16680. +/* confdefs.h. */
  16681. +_ACEOF
  16682. +cat confdefs.h >>conftest.$ac_ext
  16683. +cat >>conftest.$ac_ext <<_ACEOF
  16684. +/* end confdefs.h. */
  16685. +$ac_includes_default
  16686. +int
  16687. +main ()
  16688. +{
  16689. +if (sizeof (off_t))
  16690. + return 0;
  16691. + ;
  16692. + return 0;
  16693. +}
  16694. +_ACEOF
  16695. +rm -f conftest.$ac_objext
  16696. +if { (ac_try="$ac_compile"
  16697. +case "(($ac_try" in
  16698. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16699. + *) ac_try_echo=$ac_try;;
  16700. +esac
  16701. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16702. +$as_echo "$ac_try_echo") >&5
  16703. + (eval "$ac_compile") 2>conftest.er1
  16704. + ac_status=$?
  16705. + grep -v '^ *+' conftest.er1 >conftest.err
  16706. + rm -f conftest.er1
  16707. + cat conftest.err >&5
  16708. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16709. + (exit $ac_status); } && {
  16710. + test -z "$ac_c_werror_flag" ||
  16711. + test ! -s conftest.err
  16712. + } && test -s conftest.$ac_objext; then
  16713. + cat >conftest.$ac_ext <<_ACEOF
  16714. +/* confdefs.h. */
  16715. +_ACEOF
  16716. +cat confdefs.h >>conftest.$ac_ext
  16717. +cat >>conftest.$ac_ext <<_ACEOF
  16718. +/* end confdefs.h. */
  16719. +$ac_includes_default
  16720. +int
  16721. +main ()
  16722. +{
  16723. +if (sizeof ((off_t)))
  16724. + return 0;
  16725. + ;
  16726. + return 0;
  16727. +}
  16728. +_ACEOF
  16729. +rm -f conftest.$ac_objext
  16730. +if { (ac_try="$ac_compile"
  16731. +case "(($ac_try" in
  16732. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16733. + *) ac_try_echo=$ac_try;;
  16734. +esac
  16735. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16736. +$as_echo "$ac_try_echo") >&5
  16737. + (eval "$ac_compile") 2>conftest.er1
  16738. + ac_status=$?
  16739. + grep -v '^ *+' conftest.er1 >conftest.err
  16740. + rm -f conftest.er1
  16741. + cat conftest.err >&5
  16742. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16743. + (exit $ac_status); } && {
  16744. + test -z "$ac_c_werror_flag" ||
  16745. + test ! -s conftest.err
  16746. + } && test -s conftest.$ac_objext; then
  16747. + :
  16748. +else
  16749. + $as_echo "$as_me: failed program was:" >&5
  16750. +sed 's/^/| /' conftest.$ac_ext >&5
  16751. +
  16752. + ac_cv_type_off_t=yes
  16753. +fi
  16754. +
  16755. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16756. +else
  16757. + $as_echo "$as_me: failed program was:" >&5
  16758. +sed 's/^/| /' conftest.$ac_ext >&5
  16759. +
  16760. +
  16761. +fi
  16762. +
  16763. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16764. +fi
  16765. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  16766. +$as_echo "$ac_cv_type_off_t" >&6; }
  16767. +if test "x$ac_cv_type_off_t" = x""yes; then
  16768. + :
  16769. +else
  16770. +
  16771. +cat >>confdefs.h <<_ACEOF
  16772. +#define off_t long int
  16773. +_ACEOF
  16774. +
  16775. +fi
  16776. +
  16777. +{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
  16778. +$as_echo_n "checking for size_t... " >&6; }
  16779. +if test "${ac_cv_type_size_t+set}" = set; then
  16780. + $as_echo_n "(cached) " >&6
  16781. +else
  16782. + ac_cv_type_size_t=no
  16783. +cat >conftest.$ac_ext <<_ACEOF
  16784. +/* confdefs.h. */
  16785. +_ACEOF
  16786. +cat confdefs.h >>conftest.$ac_ext
  16787. +cat >>conftest.$ac_ext <<_ACEOF
  16788. +/* end confdefs.h. */
  16789. +$ac_includes_default
  16790. +int
  16791. +main ()
  16792. +{
  16793. +if (sizeof (size_t))
  16794. + return 0;
  16795. + ;
  16796. + return 0;
  16797. +}
  16798. +_ACEOF
  16799. +rm -f conftest.$ac_objext
  16800. +if { (ac_try="$ac_compile"
  16801. +case "(($ac_try" in
  16802. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16803. + *) ac_try_echo=$ac_try;;
  16804. +esac
  16805. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16806. +$as_echo "$ac_try_echo") >&5
  16807. + (eval "$ac_compile") 2>conftest.er1
  16808. + ac_status=$?
  16809. + grep -v '^ *+' conftest.er1 >conftest.err
  16810. + rm -f conftest.er1
  16811. + cat conftest.err >&5
  16812. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16813. + (exit $ac_status); } && {
  16814. + test -z "$ac_c_werror_flag" ||
  16815. + test ! -s conftest.err
  16816. + } && test -s conftest.$ac_objext; then
  16817. + cat >conftest.$ac_ext <<_ACEOF
  16818. +/* confdefs.h. */
  16819. +_ACEOF
  16820. +cat confdefs.h >>conftest.$ac_ext
  16821. +cat >>conftest.$ac_ext <<_ACEOF
  16822. +/* end confdefs.h. */
  16823. +$ac_includes_default
  16824. +int
  16825. +main ()
  16826. +{
  16827. +if (sizeof ((size_t)))
  16828. + return 0;
  16829. + ;
  16830. + return 0;
  16831. +}
  16832. +_ACEOF
  16833. +rm -f conftest.$ac_objext
  16834. +if { (ac_try="$ac_compile"
  16835. +case "(($ac_try" in
  16836. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16837. + *) ac_try_echo=$ac_try;;
  16838. +esac
  16839. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16840. +$as_echo "$ac_try_echo") >&5
  16841. + (eval "$ac_compile") 2>conftest.er1
  16842. + ac_status=$?
  16843. + grep -v '^ *+' conftest.er1 >conftest.err
  16844. + rm -f conftest.er1
  16845. + cat conftest.err >&5
  16846. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16847. + (exit $ac_status); } && {
  16848. + test -z "$ac_c_werror_flag" ||
  16849. + test ! -s conftest.err
  16850. + } && test -s conftest.$ac_objext; then
  16851. + :
  16852. +else
  16853. + $as_echo "$as_me: failed program was:" >&5
  16854. +sed 's/^/| /' conftest.$ac_ext >&5
  16855. +
  16856. + ac_cv_type_size_t=yes
  16857. +fi
  16858. +
  16859. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16860. +else
  16861. + $as_echo "$as_me: failed program was:" >&5
  16862. +sed 's/^/| /' conftest.$ac_ext >&5
  16863. +
  16864. +
  16865. +fi
  16866. +
  16867. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16868. +fi
  16869. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  16870. +$as_echo "$ac_cv_type_size_t" >&6; }
  16871. +if test "x$ac_cv_type_size_t" = x""yes; then
  16872. + :
  16873. +else
  16874. +
  16875. +cat >>confdefs.h <<_ACEOF
  16876. +#define size_t unsigned int
  16877. +_ACEOF
  16878. +
  16879. +fi
  16880. +
  16881. +{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  16882. +$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  16883. +if test "${ac_cv_type_uid_t+set}" = set; then
  16884. + $as_echo_n "(cached) " >&6
  16885. +else
  16886. + cat >conftest.$ac_ext <<_ACEOF
  16887. +/* confdefs.h. */
  16888. +_ACEOF
  16889. +cat confdefs.h >>conftest.$ac_ext
  16890. +cat >>conftest.$ac_ext <<_ACEOF
  16891. +/* end confdefs.h. */
  16892. +#include <sys/types.h>
  16893. +
  16894. +_ACEOF
  16895. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16896. + $EGREP "uid_t" >/dev/null 2>&1; then
  16897. + ac_cv_type_uid_t=yes
  16898. +else
  16899. + ac_cv_type_uid_t=no
  16900. +fi
  16901. +rm -f conftest*
  16902. +
  16903. +fi
  16904. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  16905. +$as_echo "$ac_cv_type_uid_t" >&6; }
  16906. +if test $ac_cv_type_uid_t = no; then
  16907. +
  16908. +cat >>confdefs.h <<\_ACEOF
  16909. +#define uid_t int
  16910. +_ACEOF
  16911. +
  16912. +
  16913. +cat >>confdefs.h <<\_ACEOF
  16914. +#define gid_t int
  16915. +_ACEOF
  16916. +
  16917. +fi
  16918. +
  16919. +{ $as_echo "$as_me:$LINENO: checking for nlink_t" >&5
  16920. +$as_echo_n "checking for nlink_t... " >&6; }
  16921. +if test "${ac_cv_type_nlink_t+set}" = set; then
  16922. + $as_echo_n "(cached) " >&6
  16923. +else
  16924. + ac_cv_type_nlink_t=no
  16925. +cat >conftest.$ac_ext <<_ACEOF
  16926. +/* confdefs.h. */
  16927. +_ACEOF
  16928. +cat confdefs.h >>conftest.$ac_ext
  16929. +cat >>conftest.$ac_ext <<_ACEOF
  16930. +/* end confdefs.h. */
  16931. +$ac_includes_default
  16932. +int
  16933. +main ()
  16934. +{
  16935. +if (sizeof (nlink_t))
  16936. + return 0;
  16937. + ;
  16938. + return 0;
  16939. +}
  16940. +_ACEOF
  16941. +rm -f conftest.$ac_objext
  16942. +if { (ac_try="$ac_compile"
  16943. +case "(($ac_try" in
  16944. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16945. + *) ac_try_echo=$ac_try;;
  16946. +esac
  16947. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16948. +$as_echo "$ac_try_echo") >&5
  16949. + (eval "$ac_compile") 2>conftest.er1
  16950. + ac_status=$?
  16951. + grep -v '^ *+' conftest.er1 >conftest.err
  16952. + rm -f conftest.er1
  16953. + cat conftest.err >&5
  16954. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16955. + (exit $ac_status); } && {
  16956. + test -z "$ac_c_werror_flag" ||
  16957. + test ! -s conftest.err
  16958. + } && test -s conftest.$ac_objext; then
  16959. + cat >conftest.$ac_ext <<_ACEOF
  16960. +/* confdefs.h. */
  16961. +_ACEOF
  16962. +cat confdefs.h >>conftest.$ac_ext
  16963. +cat >>conftest.$ac_ext <<_ACEOF
  16964. +/* end confdefs.h. */
  16965. +$ac_includes_default
  16966. +int
  16967. +main ()
  16968. +{
  16969. +if (sizeof ((nlink_t)))
  16970. + return 0;
  16971. + ;
  16972. + return 0;
  16973. +}
  16974. +_ACEOF
  16975. +rm -f conftest.$ac_objext
  16976. +if { (ac_try="$ac_compile"
  16977. +case "(($ac_try" in
  16978. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16979. + *) ac_try_echo=$ac_try;;
  16980. +esac
  16981. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16982. +$as_echo "$ac_try_echo") >&5
  16983. + (eval "$ac_compile") 2>conftest.er1
  16984. + ac_status=$?
  16985. + grep -v '^ *+' conftest.er1 >conftest.err
  16986. + rm -f conftest.er1
  16987. + cat conftest.err >&5
  16988. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16989. + (exit $ac_status); } && {
  16990. + test -z "$ac_c_werror_flag" ||
  16991. + test ! -s conftest.err
  16992. + } && test -s conftest.$ac_objext; then
  16993. + :
  16994. +else
  16995. + $as_echo "$as_me: failed program was:" >&5
  16996. +sed 's/^/| /' conftest.$ac_ext >&5
  16997. +
  16998. + ac_cv_type_nlink_t=yes
  16999. +fi
  17000. +
  17001. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17002. +else
  17003. + $as_echo "$as_me: failed program was:" >&5
  17004. +sed 's/^/| /' conftest.$ac_ext >&5
  17005. +
  17006. +
  17007. +fi
  17008. +
  17009. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17010. +fi
  17011. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_nlink_t" >&5
  17012. +$as_echo "$ac_cv_type_nlink_t" >&6; }
  17013. +if test "x$ac_cv_type_nlink_t" = x""yes; then
  17014. +
  17015. +cat >>confdefs.h <<_ACEOF
  17016. +#define HAVE_NLINK_T 1
  17017. +_ACEOF
  17018. +
  17019. +
  17020. +else
  17021. +
  17022. +cat >>confdefs.h <<\_ACEOF
  17023. +#define nlink_t unsigned short
  17024. +_ACEOF
  17025. +
  17026. +fi
  17027. +
  17028. +
  17029. +
  17030. +
  17031. +
  17032. +
  17033. +cat >>confdefs.h <<\_ACEOF
  17034. +#define NEED_BASENAME 1
  17035. +_ACEOF
  17036. +
  17037. +
  17038. +for ac_header in libgen.h
  17039. +do
  17040. +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17041. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17042. + { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17043. +$as_echo_n "checking for $ac_header... " >&6; }
  17044. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17045. + $as_echo_n "(cached) " >&6
  17046. +fi
  17047. +ac_res=`eval 'as_val=${'$as_ac_Header'}
  17048. + $as_echo "$as_val"'`
  17049. + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17050. +$as_echo "$ac_res" >&6; }
  17051. +else
  17052. + # Is the header compilable?
  17053. +{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17054. +$as_echo_n "checking $ac_header usability... " >&6; }
  17055. +cat >conftest.$ac_ext <<_ACEOF
  17056. +/* confdefs.h. */
  17057. +_ACEOF
  17058. +cat confdefs.h >>conftest.$ac_ext
  17059. +cat >>conftest.$ac_ext <<_ACEOF
  17060. +/* end confdefs.h. */
  17061. +$ac_includes_default
  17062. +#include <$ac_header>
  17063. +_ACEOF
  17064. +rm -f conftest.$ac_objext
  17065. +if { (ac_try="$ac_compile"
  17066. +case "(($ac_try" in
  17067. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17068. + *) ac_try_echo=$ac_try;;
  17069. +esac
  17070. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17071. +$as_echo "$ac_try_echo") >&5
  17072. + (eval "$ac_compile") 2>conftest.er1
  17073. + ac_status=$?
  17074. + grep -v '^ *+' conftest.er1 >conftest.err
  17075. + rm -f conftest.er1
  17076. + cat conftest.err >&5
  17077. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17078. + (exit $ac_status); } && {
  17079. + test -z "$ac_c_werror_flag" ||
  17080. + test ! -s conftest.err
  17081. + } && test -s conftest.$ac_objext; then
  17082. + ac_header_compiler=yes
  17083. +else
  17084. + $as_echo "$as_me: failed program was:" >&5
  17085. +sed 's/^/| /' conftest.$ac_ext >&5
  17086. +
  17087. + ac_header_compiler=no
  17088. +fi
  17089. +
  17090. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17091. +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17092. +$as_echo "$ac_header_compiler" >&6; }
  17093. +
  17094. +# Is the header present?
  17095. +{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17096. +$as_echo_n "checking $ac_header presence... " >&6; }
  17097. +cat >conftest.$ac_ext <<_ACEOF
  17098. +/* confdefs.h. */
  17099. +_ACEOF
  17100. +cat confdefs.h >>conftest.$ac_ext
  17101. +cat >>conftest.$ac_ext <<_ACEOF
  17102. +/* end confdefs.h. */
  17103. +#include <$ac_header>
  17104. +_ACEOF
  17105. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  17106. +case "(($ac_try" in
  17107. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17108. + *) ac_try_echo=$ac_try;;
  17109. +esac
  17110. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17111. +$as_echo "$ac_try_echo") >&5
  17112. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17113. + ac_status=$?
  17114. + grep -v '^ *+' conftest.er1 >conftest.err
  17115. + rm -f conftest.er1
  17116. + cat conftest.err >&5
  17117. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17118. + (exit $ac_status); } >/dev/null && {
  17119. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17120. + test ! -s conftest.err
  17121. + }; then
  17122. + ac_header_preproc=yes
  17123. +else
  17124. + $as_echo "$as_me: failed program was:" >&5
  17125. +sed 's/^/| /' conftest.$ac_ext >&5
  17126. +
  17127. + ac_header_preproc=no
  17128. +fi
  17129. +
  17130. +rm -f conftest.err conftest.$ac_ext
  17131. +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17132. +$as_echo "$ac_header_preproc" >&6; }
  17133. +
  17134. +# So? What about this header?
  17135. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17136. + yes:no: )
  17137. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17138. +$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17139. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17140. +$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17141. + ac_header_preproc=yes
  17142. + ;;
  17143. + no:yes:* )
  17144. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17145. +$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17146. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17147. +$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17148. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17149. +$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17150. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17151. +$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17152. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17153. +$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17154. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17155. +$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17156. +
  17157. + ;;
  17158. +esac
  17159. +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17160. +$as_echo_n "checking for $ac_header... " >&6; }
  17161. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17162. + $as_echo_n "(cached) " >&6
  17163. +else
  17164. + eval "$as_ac_Header=\$ac_header_preproc"
  17165. +fi
  17166. +ac_res=`eval 'as_val=${'$as_ac_Header'}
  17167. + $as_echo "$as_val"'`
  17168. + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17169. +$as_echo "$ac_res" >&6; }
  17170. +
  17171. +fi
  17172. +as_val=`eval 'as_val=${'$as_ac_Header'}
  17173. + $as_echo "$as_val"'`
  17174. + if test "x$as_val" = x""yes; then
  17175. + cat >>confdefs.h <<_ACEOF
  17176. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17177. +_ACEOF
  17178. +
  17179. +fi
  17180. +
  17181. +done
  17182. +
  17183. + { $as_echo "$as_me:$LINENO: checking for working basename" >&5
  17184. +$as_echo_n "checking for working basename... " >&6; }
  17185. +if test "${compat_cv_func_basename_works+set}" = set; then
  17186. + $as_echo_n "(cached) " >&6
  17187. +else
  17188. + if test "$cross_compiling" = yes; then
  17189. + compat_cv_func_basename_works=no
  17190. +
  17191. +else
  17192. + cat >conftest.$ac_ext <<_ACEOF
  17193. +/* confdefs.h. */
  17194. +_ACEOF
  17195. +cat confdefs.h >>conftest.$ac_ext
  17196. +cat >>conftest.$ac_ext <<_ACEOF
  17197. +/* end confdefs.h. */
  17198. +
  17199. +#include <stdio.h>
  17200. +#ifdef HAVE_LIBGEN_H
  17201. +# include <libgen.h>
  17202. +#endif
  17203. +
  17204. +typedef struct {
  17205. + char *test;
  17206. + char *result;
  17207. +} test_t;
  17208. +
  17209. +const test_t tests[] = {
  17210. + { "/usr/local/foo", "foo" },
  17211. + { "/usr/local/foo/", "foo" },
  17212. + { NULL, NULL }
  17213. +};
  17214. +
  17215. +int main() {
  17216. + char test1[1024];
  17217. + int i;
  17218. +
  17219. + for (i = 0; tests[i].test; i++) {
  17220. + strcpy(test1, tests[i].test);
  17221. + if (strcmp(basename(test1), tests[i].result) ||
  17222. + strcmp(test1, tests[i].test))
  17223. + exit(1);
  17224. + }
  17225. +
  17226. + exit(0);
  17227. +}
  17228. +
  17229. +_ACEOF
  17230. +rm -f conftest$ac_exeext
  17231. +if { (ac_try="$ac_link"
  17232. +case "(($ac_try" in
  17233. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17234. + *) ac_try_echo=$ac_try;;
  17235. +esac
  17236. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17237. +$as_echo "$ac_try_echo") >&5
  17238. + (eval "$ac_link") 2>&5
  17239. + ac_status=$?
  17240. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17241. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17242. + { (case "(($ac_try" in
  17243. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17244. + *) ac_try_echo=$ac_try;;
  17245. +esac
  17246. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17247. +$as_echo "$ac_try_echo") >&5
  17248. + (eval "$ac_try") 2>&5
  17249. + ac_status=$?
  17250. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17251. + (exit $ac_status); }; }; then
  17252. + compat_cv_func_basename_works=yes
  17253. +else
  17254. + $as_echo "$as_me: program exited with status $ac_status" >&5
  17255. +$as_echo "$as_me: failed program was:" >&5
  17256. +sed 's/^/| /' conftest.$ac_ext >&5
  17257. +
  17258. +( exit $ac_status )
  17259. +compat_cv_func_basename_works=no
  17260. +fi
  17261. +rm -rf conftest.dSYM
  17262. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17263. +fi
  17264. +
  17265. +
  17266. +
  17267. +fi
  17268. +{ $as_echo "$as_me:$LINENO: result: $compat_cv_func_basename_works" >&5
  17269. +$as_echo "$compat_cv_func_basename_works" >&6; }
  17270. + if test "$compat_cv_func_basename_works" = "yes"; then
  17271. +
  17272. +cat >>confdefs.h <<\_ACEOF
  17273. +#define HAVE_BASENAME 1
  17274. +_ACEOF
  17275. +
  17276. + else
  17277. + case " $LIBOBJS " in
  17278. + *" basename.$ac_objext "* ) ;;
  17279. + *) LIBOBJS="$LIBOBJS basename.$ac_objext"
  17280. + ;;
  17281. +esac
  17282. +
  17283. + fi
  17284. +
  17285. +
  17286. +
  17287. +cat >>confdefs.h <<\_ACEOF
  17288. +#define NEED_DIRNAME 1
  17289. +_ACEOF
  17290. +
  17291. +
  17292. +for ac_header in libgen.h
  17293. +do
  17294. +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17295. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17296. + { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17297. +$as_echo_n "checking for $ac_header... " >&6; }
  17298. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17299. + $as_echo_n "(cached) " >&6
  17300. +fi
  17301. +ac_res=`eval 'as_val=${'$as_ac_Header'}
  17302. + $as_echo "$as_val"'`
  17303. + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17304. +$as_echo "$ac_res" >&6; }
  17305. +else
  17306. + # Is the header compilable?
  17307. +{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17308. +$as_echo_n "checking $ac_header usability... " >&6; }
  17309. +cat >conftest.$ac_ext <<_ACEOF
  17310. +/* confdefs.h. */
  17311. +_ACEOF
  17312. +cat confdefs.h >>conftest.$ac_ext
  17313. +cat >>conftest.$ac_ext <<_ACEOF
  17314. +/* end confdefs.h. */
  17315. +$ac_includes_default
  17316. +#include <$ac_header>
  17317. +_ACEOF
  17318. +rm -f conftest.$ac_objext
  17319. +if { (ac_try="$ac_compile"
  17320. +case "(($ac_try" in
  17321. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17322. + *) ac_try_echo=$ac_try;;
  17323. +esac
  17324. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17325. +$as_echo "$ac_try_echo") >&5
  17326. + (eval "$ac_compile") 2>conftest.er1
  17327. + ac_status=$?
  17328. + grep -v '^ *+' conftest.er1 >conftest.err
  17329. + rm -f conftest.er1
  17330. + cat conftest.err >&5
  17331. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17332. + (exit $ac_status); } && {
  17333. + test -z "$ac_c_werror_flag" ||
  17334. + test ! -s conftest.err
  17335. + } && test -s conftest.$ac_objext; then
  17336. + ac_header_compiler=yes
  17337. +else
  17338. + $as_echo "$as_me: failed program was:" >&5
  17339. +sed 's/^/| /' conftest.$ac_ext >&5
  17340. +
  17341. + ac_header_compiler=no
  17342. +fi
  17343. +
  17344. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17345. +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17346. +$as_echo "$ac_header_compiler" >&6; }
  17347. +
  17348. +# Is the header present?
  17349. +{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17350. +$as_echo_n "checking $ac_header presence... " >&6; }
  17351. +cat >conftest.$ac_ext <<_ACEOF
  17352. +/* confdefs.h. */
  17353. +_ACEOF
  17354. +cat confdefs.h >>conftest.$ac_ext
  17355. +cat >>conftest.$ac_ext <<_ACEOF
  17356. +/* end confdefs.h. */
  17357. +#include <$ac_header>
  17358. +_ACEOF
  17359. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  17360. +case "(($ac_try" in
  17361. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17362. + *) ac_try_echo=$ac_try;;
  17363. +esac
  17364. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17365. +$as_echo "$ac_try_echo") >&5
  17366. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17367. + ac_status=$?
  17368. + grep -v '^ *+' conftest.er1 >conftest.err
  17369. + rm -f conftest.er1
  17370. + cat conftest.err >&5
  17371. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17372. + (exit $ac_status); } >/dev/null && {
  17373. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17374. + test ! -s conftest.err
  17375. + }; then
  17376. + ac_header_preproc=yes
  17377. +else
  17378. + $as_echo "$as_me: failed program was:" >&5
  17379. +sed 's/^/| /' conftest.$ac_ext >&5
  17380. +
  17381. + ac_header_preproc=no
  17382. +fi
  17383. +
  17384. +rm -f conftest.err conftest.$ac_ext
  17385. +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17386. +$as_echo "$ac_header_preproc" >&6; }
  17387. +
  17388. +# So? What about this header?
  17389. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17390. + yes:no: )
  17391. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17392. +$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17393. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17394. +$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17395. + ac_header_preproc=yes
  17396. + ;;
  17397. + no:yes:* )
  17398. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17399. +$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17400. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17401. +$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17402. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17403. +$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17404. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17405. +$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17406. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17407. +$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17408. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17409. +$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17410. +
  17411. + ;;
  17412. +esac
  17413. +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17414. +$as_echo_n "checking for $ac_header... " >&6; }
  17415. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17416. + $as_echo_n "(cached) " >&6
  17417. +else
  17418. + eval "$as_ac_Header=\$ac_header_preproc"
  17419. +fi
  17420. +ac_res=`eval 'as_val=${'$as_ac_Header'}
  17421. + $as_echo "$as_val"'`
  17422. + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17423. +$as_echo "$ac_res" >&6; }
  17424. +
  17425. +fi
  17426. +as_val=`eval 'as_val=${'$as_ac_Header'}
  17427. + $as_echo "$as_val"'`
  17428. + if test "x$as_val" = x""yes; then
  17429. + cat >>confdefs.h <<_ACEOF
  17430. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17431. +_ACEOF
  17432. +
  17433. +fi
  17434. +
  17435. +done
  17436. +
  17437. + { $as_echo "$as_me:$LINENO: checking for working dirname" >&5
  17438. +$as_echo_n "checking for working dirname... " >&6; }
  17439. +if test "${compat_cv_func_dirname_works+set}" = set; then
  17440. + $as_echo_n "(cached) " >&6
  17441. +else
  17442. + if test "$cross_compiling" = yes; then
  17443. + compat_cv_func_dirname_works=no
  17444. +
  17445. +else
  17446. + cat >conftest.$ac_ext <<_ACEOF
  17447. +/* confdefs.h. */
  17448. +_ACEOF
  17449. +cat confdefs.h >>conftest.$ac_ext
  17450. +cat >>conftest.$ac_ext <<_ACEOF
  17451. +/* end confdefs.h. */
  17452. +
  17453. +#include <stdio.h>
  17454. +#ifdef HAVE_LIBGEN_H
  17455. +# include <libgen.h>
  17456. +#endif
  17457. +
  17458. +typedef struct {
  17459. + char *test;
  17460. + char *result;
  17461. +} test_t;
  17462. +
  17463. +const test_t tests[] = {
  17464. + { "foobar", "." },
  17465. + { "/usr/local/foo", "/usr/local" },
  17466. + { "/usr/local/foo/", "/usr/local" },
  17467. + { "/", "/" },
  17468. + { "", "." },
  17469. + { NULL, NULL }
  17470. +};
  17471. +
  17472. +int main() {
  17473. + char test1[1024];
  17474. + int i;
  17475. +
  17476. + for (i = 0; tests[i].test; i++) {
  17477. + strcpy(test1, tests[i].test);
  17478. + if (strcmp(dirname(test1), tests[i].result) ||
  17479. + strcmp(test1, tests[i].test))
  17480. + exit(1);
  17481. + }
  17482. +
  17483. + exit(0);
  17484. +}
  17485. +
  17486. +_ACEOF
  17487. +rm -f conftest$ac_exeext
  17488. +if { (ac_try="$ac_link"
  17489. +case "(($ac_try" in
  17490. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17491. + *) ac_try_echo=$ac_try;;
  17492. +esac
  17493. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17494. +$as_echo "$ac_try_echo") >&5
  17495. + (eval "$ac_link") 2>&5
  17496. + ac_status=$?
  17497. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17498. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17499. + { (case "(($ac_try" in
  17500. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17501. + *) ac_try_echo=$ac_try;;
  17502. +esac
  17503. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17504. +$as_echo "$ac_try_echo") >&5
  17505. + (eval "$ac_try") 2>&5
  17506. + ac_status=$?
  17507. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17508. + (exit $ac_status); }; }; then
  17509. + compat_cv_func_dirname_works=yes
  17510. +else
  17511. + $as_echo "$as_me: program exited with status $ac_status" >&5
  17512. +$as_echo "$as_me: failed program was:" >&5
  17513. +sed 's/^/| /' conftest.$ac_ext >&5
  17514. +
  17515. +( exit $ac_status )
  17516. +compat_cv_func_dirname_works=no
  17517. +fi
  17518. +rm -rf conftest.dSYM
  17519. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17520. +fi
  17521. +
  17522. +
  17523. +
  17524. +fi
  17525. +{ $as_echo "$as_me:$LINENO: result: $compat_cv_func_dirname_works" >&5
  17526. +$as_echo "$compat_cv_func_dirname_works" >&6; }
  17527. + if test "$compat_cv_func_dirname_works" = "yes"; then
  17528. +
  17529. +cat >>confdefs.h <<\_ACEOF
  17530. +#define HAVE_DIRNAME 1
  17531. +_ACEOF
  17532. +
  17533. + else
  17534. + case " $LIBOBJS " in
  17535. + *" dirname.$ac_objext "* ) ;;
  17536. + *) LIBOBJS="$LIBOBJS dirname.$ac_objext"
  17537. + ;;
  17538. +esac
  17539. +
  17540. + fi
  17541. +
  17542. +
  17543. +
  17544. +cat >>confdefs.h <<\_ACEOF
  17545. +#define NEED_FNMATCH 1
  17546. +_ACEOF
  17547. +
  17548. +
  17549. +for ac_header in fnmatch.h
  17550. +do
  17551. +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17552. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17553. + { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17554. +$as_echo_n "checking for $ac_header... " >&6; }
  17555. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17556. + $as_echo_n "(cached) " >&6
  17557. +fi
  17558. +ac_res=`eval 'as_val=${'$as_ac_Header'}
  17559. + $as_echo "$as_val"'`
  17560. + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17561. +$as_echo "$ac_res" >&6; }
  17562. +else
  17563. + # Is the header compilable?
  17564. +{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17565. +$as_echo_n "checking $ac_header usability... " >&6; }
  17566. +cat >conftest.$ac_ext <<_ACEOF
  17567. +/* confdefs.h. */
  17568. +_ACEOF
  17569. +cat confdefs.h >>conftest.$ac_ext
  17570. +cat >>conftest.$ac_ext <<_ACEOF
  17571. +/* end confdefs.h. */
  17572. +$ac_includes_default
  17573. +#include <$ac_header>
  17574. +_ACEOF
  17575. +rm -f conftest.$ac_objext
  17576. +if { (ac_try="$ac_compile"
  17577. +case "(($ac_try" in
  17578. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17579. + *) ac_try_echo=$ac_try;;
  17580. +esac
  17581. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17582. +$as_echo "$ac_try_echo") >&5
  17583. + (eval "$ac_compile") 2>conftest.er1
  17584. + ac_status=$?
  17585. + grep -v '^ *+' conftest.er1 >conftest.err
  17586. + rm -f conftest.er1
  17587. + cat conftest.err >&5
  17588. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17589. + (exit $ac_status); } && {
  17590. + test -z "$ac_c_werror_flag" ||
  17591. + test ! -s conftest.err
  17592. + } && test -s conftest.$ac_objext; then
  17593. + ac_header_compiler=yes
  17594. +else
  17595. + $as_echo "$as_me: failed program was:" >&5
  17596. +sed 's/^/| /' conftest.$ac_ext >&5
  17597. +
  17598. + ac_header_compiler=no
  17599. +fi
  17600. +
  17601. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17602. +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17603. +$as_echo "$ac_header_compiler" >&6; }
  17604. +
  17605. +# Is the header present?
  17606. +{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17607. +$as_echo_n "checking $ac_header presence... " >&6; }
  17608. +cat >conftest.$ac_ext <<_ACEOF
  17609. +/* confdefs.h. */
  17610. +_ACEOF
  17611. +cat confdefs.h >>conftest.$ac_ext
  17612. +cat >>conftest.$ac_ext <<_ACEOF
  17613. +/* end confdefs.h. */
  17614. +#include <$ac_header>
  17615. +_ACEOF
  17616. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  17617. +case "(($ac_try" in
  17618. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17619. + *) ac_try_echo=$ac_try;;
  17620. +esac
  17621. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17622. +$as_echo "$ac_try_echo") >&5
  17623. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17624. + ac_status=$?
  17625. + grep -v '^ *+' conftest.er1 >conftest.err
  17626. + rm -f conftest.er1
  17627. + cat conftest.err >&5
  17628. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17629. + (exit $ac_status); } >/dev/null && {
  17630. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17631. + test ! -s conftest.err
  17632. + }; then
  17633. + ac_header_preproc=yes
  17634. +else
  17635. + $as_echo "$as_me: failed program was:" >&5
  17636. +sed 's/^/| /' conftest.$ac_ext >&5
  17637. +
  17638. + ac_header_preproc=no
  17639. +fi
  17640. +
  17641. +rm -f conftest.err conftest.$ac_ext
  17642. +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17643. +$as_echo "$ac_header_preproc" >&6; }
  17644. +
  17645. +# So? What about this header?
  17646. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17647. + yes:no: )
  17648. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17649. +$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17650. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17651. +$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17652. + ac_header_preproc=yes
  17653. + ;;
  17654. + no:yes:* )
  17655. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17656. +$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17657. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17658. +$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17659. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17660. +$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17661. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17662. +$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17663. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17664. +$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17665. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17666. +$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17667. +
  17668. + ;;
  17669. +esac
  17670. +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17671. +$as_echo_n "checking for $ac_header... " >&6; }
  17672. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17673. + $as_echo_n "(cached) " >&6
  17674. +else
  17675. + eval "$as_ac_Header=\$ac_header_preproc"
  17676. +fi
  17677. +ac_res=`eval 'as_val=${'$as_ac_Header'}
  17678. + $as_echo "$as_val"'`
  17679. + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17680. +$as_echo "$ac_res" >&6; }
  17681. +
  17682. +fi
  17683. +as_val=`eval 'as_val=${'$as_ac_Header'}
  17684. + $as_echo "$as_val"'`
  17685. + if test "x$as_val" = x""yes; then
  17686. + cat >>confdefs.h <<_ACEOF
  17687. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17688. +_ACEOF
  17689. +
  17690. +fi
  17691. +
  17692. +done
  17693. +
  17694. + if test "$ac_cv_header_fnmatch_h" = "yes"; then
  17695. + { $as_echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
  17696. +$as_echo_n "checking for working POSIX fnmatch... " >&6; }
  17697. +if test "${ac_cv_func_fnmatch_works+set}" = set; then
  17698. + $as_echo_n "(cached) " >&6
  17699. +else
  17700. + # Some versions of Solaris, SCO, and the GNU C Library
  17701. + # have a broken or incompatible fnmatch.
  17702. + # So we run a test program. If we are cross-compiling, take no chance.
  17703. + # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
  17704. + if test "$cross_compiling" = yes; then
  17705. + ac_cv_func_fnmatch_works=cross
  17706. +else
  17707. + cat >conftest.$ac_ext <<_ACEOF
  17708. +/* confdefs.h. */
  17709. +_ACEOF
  17710. +cat confdefs.h >>conftest.$ac_ext
  17711. +cat >>conftest.$ac_ext <<_ACEOF
  17712. +/* end confdefs.h. */
  17713. +#include <fnmatch.h>
  17714. +# define y(a, b, c) (fnmatch (a, b, c) == 0)
  17715. +# define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
  17716. +
  17717. +int
  17718. +main ()
  17719. +{
  17720. +return
  17721. + (!(y ("a*", "abc", 0)
  17722. + && n ("d*/*1", "d/s/1", FNM_PATHNAME)
  17723. + && y ("a\\\\bc", "abc", 0)
  17724. + && n ("a\\\\bc", "abc", FNM_NOESCAPE)
  17725. + && y ("*x", ".x", 0)
  17726. + && n ("*x", ".x", FNM_PERIOD)
  17727. + && 1));
  17728. + ;
  17729. + return 0;
  17730. +}
  17731. +_ACEOF
  17732. +rm -f conftest$ac_exeext
  17733. +if { (ac_try="$ac_link"
  17734. +case "(($ac_try" in
  17735. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17736. + *) ac_try_echo=$ac_try;;
  17737. +esac
  17738. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17739. +$as_echo "$ac_try_echo") >&5
  17740. + (eval "$ac_link") 2>&5
  17741. + ac_status=$?
  17742. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17743. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17744. + { (case "(($ac_try" in
  17745. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17746. + *) ac_try_echo=$ac_try;;
  17747. +esac
  17748. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17749. +$as_echo "$ac_try_echo") >&5
  17750. + (eval "$ac_try") 2>&5
  17751. + ac_status=$?
  17752. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17753. + (exit $ac_status); }; }; then
  17754. + ac_cv_func_fnmatch_works=yes
  17755. +else
  17756. + $as_echo "$as_me: program exited with status $ac_status" >&5
  17757. +$as_echo "$as_me: failed program was:" >&5
  17758. +sed 's/^/| /' conftest.$ac_ext >&5
  17759. +
  17760. +( exit $ac_status )
  17761. +ac_cv_func_fnmatch_works=no
  17762. +fi
  17763. +rm -rf conftest.dSYM
  17764. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17765. +fi
  17766. +
  17767. +
  17768. +fi
  17769. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
  17770. +$as_echo "$ac_cv_func_fnmatch_works" >&6; }
  17771. +if test $ac_cv_func_fnmatch_works = yes; then
  17772. +
  17773. +cat >>confdefs.h <<\_ACEOF
  17774. +#define HAVE_FNMATCH 1
  17775. +_ACEOF
  17776. +
  17777. +fi
  17778. +
  17779. +
  17780. +
  17781. + fi
  17782. + if test "$ac_cv_func_fnmatch_works" != "yes"; then
  17783. +
  17784. +for ac_header in ctype.h
  17785. +do
  17786. +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17787. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17788. + { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17789. +$as_echo_n "checking for $ac_header... " >&6; }
  17790. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17791. + $as_echo_n "(cached) " >&6
  17792. +fi
  17793. +ac_res=`eval 'as_val=${'$as_ac_Header'}
  17794. + $as_echo "$as_val"'`
  17795. + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17796. +$as_echo "$ac_res" >&6; }
  17797. +else
  17798. + # Is the header compilable?
  17799. +{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17800. +$as_echo_n "checking $ac_header usability... " >&6; }
  17801. +cat >conftest.$ac_ext <<_ACEOF
  17802. +/* confdefs.h. */
  17803. +_ACEOF
  17804. +cat confdefs.h >>conftest.$ac_ext
  17805. +cat >>conftest.$ac_ext <<_ACEOF
  17806. +/* end confdefs.h. */
  17807. +$ac_includes_default
  17808. +#include <$ac_header>
  17809. +_ACEOF
  17810. +rm -f conftest.$ac_objext
  17811. +if { (ac_try="$ac_compile"
  17812. +case "(($ac_try" in
  17813. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17814. + *) ac_try_echo=$ac_try;;
  17815. +esac
  17816. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17817. +$as_echo "$ac_try_echo") >&5
  17818. + (eval "$ac_compile") 2>conftest.er1
  17819. + ac_status=$?
  17820. + grep -v '^ *+' conftest.er1 >conftest.err
  17821. + rm -f conftest.er1
  17822. + cat conftest.err >&5
  17823. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17824. + (exit $ac_status); } && {
  17825. + test -z "$ac_c_werror_flag" ||
  17826. + test ! -s conftest.err
  17827. + } && test -s conftest.$ac_objext; then
  17828. + ac_header_compiler=yes
  17829. +else
  17830. + $as_echo "$as_me: failed program was:" >&5
  17831. +sed 's/^/| /' conftest.$ac_ext >&5
  17832. +
  17833. + ac_header_compiler=no
  17834. +fi
  17835. +
  17836. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17837. +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17838. +$as_echo "$ac_header_compiler" >&6; }
  17839. +
  17840. +# Is the header present?
  17841. +{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17842. +$as_echo_n "checking $ac_header presence... " >&6; }
  17843. +cat >conftest.$ac_ext <<_ACEOF
  17844. +/* confdefs.h. */
  17845. +_ACEOF
  17846. +cat confdefs.h >>conftest.$ac_ext
  17847. +cat >>conftest.$ac_ext <<_ACEOF
  17848. +/* end confdefs.h. */
  17849. +#include <$ac_header>
  17850. +_ACEOF
  17851. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  17852. +case "(($ac_try" in
  17853. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17854. + *) ac_try_echo=$ac_try;;
  17855. +esac
  17856. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17857. +$as_echo "$ac_try_echo") >&5
  17858. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17859. + ac_status=$?
  17860. + grep -v '^ *+' conftest.er1 >conftest.err
  17861. + rm -f conftest.er1
  17862. + cat conftest.err >&5
  17863. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17864. + (exit $ac_status); } >/dev/null && {
  17865. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17866. + test ! -s conftest.err
  17867. + }; then
  17868. + ac_header_preproc=yes
  17869. +else
  17870. + $as_echo "$as_me: failed program was:" >&5
  17871. +sed 's/^/| /' conftest.$ac_ext >&5
  17872. +
  17873. + ac_header_preproc=no
  17874. +fi
  17875. +
  17876. +rm -f conftest.err conftest.$ac_ext
  17877. +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17878. +$as_echo "$ac_header_preproc" >&6; }
  17879. +
  17880. +# So? What about this header?
  17881. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17882. + yes:no: )
  17883. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17884. +$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17885. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17886. +$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17887. + ac_header_preproc=yes
  17888. + ;;
  17889. + no:yes:* )
  17890. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17891. +$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17892. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17893. +$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17894. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17895. +$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17896. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17897. +$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17898. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17899. +$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17900. + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17901. +$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17902. +
  17903. + ;;
  17904. +esac
  17905. +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17906. +$as_echo_n "checking for $ac_header... " >&6; }
  17907. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17908. + $as_echo_n "(cached) " >&6
  17909. +else
  17910. + eval "$as_ac_Header=\$ac_header_preproc"
  17911. +fi
  17912. +ac_res=`eval 'as_val=${'$as_ac_Header'}
  17913. + $as_echo "$as_val"'`
  17914. + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17915. +$as_echo "$ac_res" >&6; }
  17916. +
  17917. +fi
  17918. +as_val=`eval 'as_val=${'$as_ac_Header'}
  17919. + $as_echo "$as_val"'`
  17920. + if test "x$as_val" = x""yes; then
  17921. + cat >>confdefs.h <<_ACEOF
  17922. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17923. +_ACEOF
  17924. +
  17925. +fi
  17926. +
  17927. +done
  17928. +
  17929. + case " $LIBOBJS " in
  17930. + *" fnmatch.$ac_objext "* ) ;;
  17931. + *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
  17932. + ;;
  17933. +esac
  17934. +
  17935. + fi
  17936. +
  17937. +
  17938. +for ac_func in lchown
  17939. +do
  17940. +as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17941. +{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17942. +$as_echo_n "checking for $ac_func... " >&6; }
  17943. +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17944. + $as_echo_n "(cached) " >&6
  17945. +else
  17946. + cat >conftest.$ac_ext <<_ACEOF
  17947. +/* confdefs.h. */
  17948. +_ACEOF
  17949. +cat confdefs.h >>conftest.$ac_ext
  17950. +cat >>conftest.$ac_ext <<_ACEOF
  17951. +/* end confdefs.h. */
  17952. +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17953. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17954. +#define $ac_func innocuous_$ac_func
  17955. +
  17956. +/* System header to define __stub macros and hopefully few prototypes,
  17957. + which can conflict with char $ac_func (); below.
  17958. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17959. + <limits.h> exists even on freestanding compilers. */
  17960. +
  17961. +#ifdef __STDC__
  17962. +# include <limits.h>
  17963. +#else
  17964. +# include <assert.h>
  17965. +#endif
  17966. +
  17967. +#undef $ac_func
  17968. +
  17969. +/* Override any GCC internal prototype to avoid an error.
  17970. + Use char because int might match the return type of a GCC
  17971. + builtin and then its argument prototype would still apply. */
  17972. +#ifdef __cplusplus
  17973. +extern "C"
  17974. +#endif
  17975. +char $ac_func ();
  17976. +/* The GNU C library defines this for functions which it implements
  17977. + to always fail with ENOSYS. Some functions are actually named
  17978. + something starting with __ and the normal name is an alias. */
  17979. +#if defined __stub_$ac_func || defined __stub___$ac_func
  17980. +choke me
  17981. +#endif
  17982. +
  17983. +int
  17984. +main ()
  17985. +{
  17986. +return $ac_func ();
  17987. + ;
  17988. + return 0;
  17989. +}
  17990. +_ACEOF
  17991. +rm -f conftest.$ac_objext conftest$ac_exeext
  17992. +if { (ac_try="$ac_link"
  17993. +case "(($ac_try" in
  17994. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17995. + *) ac_try_echo=$ac_try;;
  17996. +esac
  17997. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17998. +$as_echo "$ac_try_echo") >&5
  17999. + (eval "$ac_link") 2>conftest.er1
  18000. + ac_status=$?
  18001. + grep -v '^ *+' conftest.er1 >conftest.err
  18002. + rm -f conftest.er1
  18003. + cat conftest.err >&5
  18004. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18005. + (exit $ac_status); } && {
  18006. + test -z "$ac_c_werror_flag" ||
  18007. + test ! -s conftest.err
  18008. + } && test -s conftest$ac_exeext && {
  18009. + test "$cross_compiling" = yes ||
  18010. + $as_test_x conftest$ac_exeext
  18011. + }; then
  18012. + eval "$as_ac_var=yes"
  18013. +else
  18014. + $as_echo "$as_me: failed program was:" >&5
  18015. +sed 's/^/| /' conftest.$ac_ext >&5
  18016. +
  18017. + eval "$as_ac_var=no"
  18018. +fi
  18019. +
  18020. +rm -rf conftest.dSYM
  18021. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18022. + conftest$ac_exeext conftest.$ac_ext
  18023. +fi
  18024. +ac_res=`eval 'as_val=${'$as_ac_var'}
  18025. + $as_echo "$as_val"'`
  18026. + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18027. +$as_echo "$ac_res" >&6; }
  18028. +as_val=`eval 'as_val=${'$as_ac_var'}
  18029. + $as_echo "$as_val"'`
  18030. + if test "x$as_val" = x""yes; then
  18031. + cat >>confdefs.h <<_ACEOF
  18032. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18033. +_ACEOF
  18034. +
  18035. +fi
  18036. +done
  18037. +
  18038. +
  18039. +
  18040. +
  18041. +cat >>confdefs.h <<\_ACEOF
  18042. +#define NEED_MAKEDEV 1
  18043. +_ACEOF
  18044. +
  18045. + { $as_echo "$as_me:$LINENO: checking whether makedev expects three arguments" >&5
  18046. +$as_echo_n "checking whether makedev expects three arguments... " >&6; }
  18047. +if test "${compat_cv_func_makedev_three_args+set}" = set; then
  18048. + $as_echo_n "(cached) " >&6
  18049. +else
  18050. + if test "$cross_compiling" = yes; then
  18051. + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  18052. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18053. +{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  18054. +See \`config.log' for more details." >&5
  18055. +$as_echo "$as_me: error: cannot run test program while cross compiling
  18056. +See \`config.log' for more details." >&2;}
  18057. + { (exit 1); exit 1; }; }; }
  18058. +else
  18059. + cat >conftest.$ac_ext <<_ACEOF
  18060. +
  18061. + /* confdefs.h. */
  18062. +_ACEOF
  18063. +cat confdefs.h >>conftest.$ac_ext
  18064. +cat >>conftest.$ac_ext <<_ACEOF
  18065. +/* end confdefs.h. */
  18066. +
  18067. +#include <sys/types.h>
  18068. +#ifdef MAJOR_IN_MKDEV
  18069. +# include <sys/mkdev.h>
  18070. +#else
  18071. +# ifdef MAJOR_IN_SYSMACROS
  18072. +# include <sys/sysmacros.h>
  18073. +# endif
  18074. +#endif
  18075. +
  18076. +int
  18077. +main ()
  18078. +{
  18079. +
  18080. +dev_t dev;
  18081. +major_t maj = 5;
  18082. +minor_t min = 7;
  18083. +
  18084. +dev = makedev(0, maj, min);
  18085. +if (major(dev) != maj
  18086. + || minor(dev) != min)
  18087. + exit(1);
  18088. +exit(0);
  18089. +
  18090. + ;
  18091. + return 0;
  18092. +}
  18093. +_ACEOF
  18094. +rm -f conftest$ac_exeext
  18095. +if { (ac_try="$ac_link"
  18096. +case "(($ac_try" in
  18097. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18098. + *) ac_try_echo=$ac_try;;
  18099. +esac
  18100. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18101. +$as_echo "$ac_try_echo") >&5
  18102. + (eval "$ac_link") 2>&5
  18103. + ac_status=$?
  18104. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18105. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18106. + { (case "(($ac_try" in
  18107. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18108. + *) ac_try_echo=$ac_try;;
  18109. +esac
  18110. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18111. +$as_echo "$ac_try_echo") >&5
  18112. + (eval "$ac_try") 2>&5
  18113. + ac_status=$?
  18114. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18115. + (exit $ac_status); }; }; then
  18116. + compat_cv_func_makedev_three_args=yes
  18117. +else
  18118. + $as_echo "$as_me: program exited with status $ac_status" >&5
  18119. +$as_echo "$as_me: failed program was:" >&5
  18120. +sed 's/^/| /' conftest.$ac_ext >&5
  18121. +
  18122. +( exit $ac_status )
  18123. +compat_cv_func_makedev_three_args=no
  18124. +
  18125. +fi
  18126. +rm -rf conftest.dSYM
  18127. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18128. +fi
  18129. +
  18130. +
  18131. +
  18132. +fi
  18133. +{ $as_echo "$as_me:$LINENO: result: $compat_cv_func_makedev_three_args" >&5
  18134. +$as_echo "$compat_cv_func_makedev_three_args" >&6; }
  18135. + if test "$compat_cv_func_makedev_three_args" = "yes"; then
  18136. +
  18137. +cat >>confdefs.h <<\_ACEOF
  18138. +#define MAKEDEV_THREE_ARGS 1
  18139. +_ACEOF
  18140. +
  18141. + fi
  18142. +
  18143. +
  18144. +
  18145. +cat >>confdefs.h <<\_ACEOF
  18146. +#define NEED_SNPRINTF 1
  18147. +_ACEOF
  18148. +
  18149. + { $as_echo "$as_me:$LINENO: checking for working snprintf" >&5
  18150. +$as_echo_n "checking for working snprintf... " >&6; }
  18151. +if test "${compat_cv_func_snprintf_works+set}" = set; then
  18152. + $as_echo_n "(cached) " >&6
  18153. +else
  18154. + if test "$cross_compiling" = yes; then
  18155. + compat_cv_func_snprintf_works=no
  18156. +
  18157. +else
  18158. + cat >conftest.$ac_ext <<_ACEOF
  18159. +/* confdefs.h. */
  18160. +_ACEOF
  18161. +cat confdefs.h >>conftest.$ac_ext
  18162. +cat >>conftest.$ac_ext <<_ACEOF
  18163. +/* end confdefs.h. */
  18164. +
  18165. +#include <stdio.h>
  18166. +
  18167. +typedef struct {
  18168. + int length;
  18169. + char *test;
  18170. + int retval;
  18171. + char *result;
  18172. +} test_t;
  18173. +
  18174. +const test_t tests[] = {
  18175. + { 10, "12345678901234567890", 20, "123456789" },
  18176. +#if 0
  18177. + { 0, "12345678901234567890", 20, NULL },
  18178. + { -1, "12345678901234567890", -1, NULL },
  18179. +#endif
  18180. + { 0, NULL, 0, NULL }
  18181. +};
  18182. +
  18183. +int main() {
  18184. + char test1[1024];
  18185. + int i;
  18186. +
  18187. + for (i = 0; tests[i].test; i++) {
  18188. + memset(test1, 'X', sizeof(test1));
  18189. + if ((snprintf(test1, tests[i].length, "%s", tests[i].test)
  18190. + != tests[i].retval) ||
  18191. + (tests[i].result && strcmp(tests[i].result, test1)))
  18192. + exit(1);
  18193. + }
  18194. +
  18195. + exit(0);
  18196. +}
  18197. +
  18198. +_ACEOF
  18199. +rm -f conftest$ac_exeext
  18200. +if { (ac_try="$ac_link"
  18201. +case "(($ac_try" in
  18202. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18203. + *) ac_try_echo=$ac_try;;
  18204. +esac
  18205. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18206. +$as_echo "$ac_try_echo") >&5
  18207. + (eval "$ac_link") 2>&5
  18208. + ac_status=$?
  18209. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18210. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18211. + { (case "(($ac_try" in
  18212. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18213. + *) ac_try_echo=$ac_try;;
  18214. +esac
  18215. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18216. +$as_echo "$ac_try_echo") >&5
  18217. + (eval "$ac_try") 2>&5
  18218. + ac_status=$?
  18219. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18220. + (exit $ac_status); }; }; then
  18221. + compat_cv_func_snprintf_works=yes
  18222. +else
  18223. + $as_echo "$as_me: program exited with status $ac_status" >&5
  18224. +$as_echo "$as_me: failed program was:" >&5
  18225. +sed 's/^/| /' conftest.$ac_ext >&5
  18226. +
  18227. +( exit $ac_status )
  18228. +compat_cv_func_snprintf_works=no
  18229. +fi
  18230. +rm -rf conftest.dSYM
  18231. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18232. +fi
  18233. +
  18234. +
  18235. +
  18236. +fi
  18237. +{ $as_echo "$as_me:$LINENO: result: $compat_cv_func_snprintf_works" >&5
  18238. +$as_echo "$compat_cv_func_snprintf_works" >&6; }
  18239. + if test "$compat_cv_func_snprintf_works" = "yes"; then
  18240. +
  18241. +cat >>confdefs.h <<\_ACEOF
  18242. +#define HAVE_SNPRINTF 1
  18243. +_ACEOF
  18244. +
  18245. + else
  18246. + case " $LIBOBJS " in
  18247. + *" snprintf.$ac_objext "* ) ;;
  18248. + *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
  18249. + ;;
  18250. +esac
  18251. +
  18252. + fi
  18253. +
  18254. +
  18255. +
  18256. +
  18257. +cat >>confdefs.h <<\_ACEOF
  18258. +#define NEED_STRDUP 1
  18259. +_ACEOF
  18260. +
  18261. + { $as_echo "$as_me:$LINENO: checking for strdup" >&5
  18262. +$as_echo_n "checking for strdup... " >&6; }
  18263. +if test "${ac_cv_func_strdup+set}" = set; then
  18264. + $as_echo_n "(cached) " >&6
  18265. +else
  18266. + cat >conftest.$ac_ext <<_ACEOF
  18267. +/* confdefs.h. */
  18268. +_ACEOF
  18269. +cat confdefs.h >>conftest.$ac_ext
  18270. +cat >>conftest.$ac_ext <<_ACEOF
  18271. +/* end confdefs.h. */
  18272. +/* Define strdup to an innocuous variant, in case <limits.h> declares strdup.
  18273. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18274. +#define strdup innocuous_strdup
  18275. +
  18276. +/* System header to define __stub macros and hopefully few prototypes,
  18277. + which can conflict with char strdup (); below.
  18278. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18279. + <limits.h> exists even on freestanding compilers. */
  18280. +
  18281. +#ifdef __STDC__
  18282. +# include <limits.h>
  18283. +#else
  18284. +# include <assert.h>
  18285. +#endif
  18286. +
  18287. +#undef strdup
  18288. +
  18289. +/* Override any GCC internal prototype to avoid an error.
  18290. + Use char because int might match the return type of a GCC
  18291. + builtin and then its argument prototype would still apply. */
  18292. +#ifdef __cplusplus
  18293. +extern "C"
  18294. +#endif
  18295. +char strdup ();
  18296. +/* The GNU C library defines this for functions which it implements
  18297. + to always fail with ENOSYS. Some functions are actually named
  18298. + something starting with __ and the normal name is an alias. */
  18299. +#if defined __stub_strdup || defined __stub___strdup
  18300. +choke me
  18301. +#endif
  18302. +
  18303. +int
  18304. +main ()
  18305. +{
  18306. +return strdup ();
  18307. + ;
  18308. + return 0;
  18309. +}
  18310. +_ACEOF
  18311. +rm -f conftest.$ac_objext conftest$ac_exeext
  18312. +if { (ac_try="$ac_link"
  18313. +case "(($ac_try" in
  18314. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18315. + *) ac_try_echo=$ac_try;;
  18316. +esac
  18317. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18318. +$as_echo "$ac_try_echo") >&5
  18319. + (eval "$ac_link") 2>conftest.er1
  18320. + ac_status=$?
  18321. + grep -v '^ *+' conftest.er1 >conftest.err
  18322. + rm -f conftest.er1
  18323. + cat conftest.err >&5
  18324. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18325. + (exit $ac_status); } && {
  18326. + test -z "$ac_c_werror_flag" ||
  18327. + test ! -s conftest.err
  18328. + } && test -s conftest$ac_exeext && {
  18329. + test "$cross_compiling" = yes ||
  18330. + $as_test_x conftest$ac_exeext
  18331. + }; then
  18332. + ac_cv_func_strdup=yes
  18333. +else
  18334. + $as_echo "$as_me: failed program was:" >&5
  18335. +sed 's/^/| /' conftest.$ac_ext >&5
  18336. +
  18337. + ac_cv_func_strdup=no
  18338. +fi
  18339. +
  18340. +rm -rf conftest.dSYM
  18341. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18342. + conftest$ac_exeext conftest.$ac_ext
  18343. +fi
  18344. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strdup" >&5
  18345. +$as_echo "$ac_cv_func_strdup" >&6; }
  18346. +if test "x$ac_cv_func_strdup" = x""yes; then
  18347. +
  18348. +cat >>confdefs.h <<\_ACEOF
  18349. +#define HAVE_STRDUP 1
  18350. +_ACEOF
  18351. +
  18352. +else
  18353. + case " $LIBOBJS " in
  18354. + *" strdup.$ac_objext "* ) ;;
  18355. + *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
  18356. + ;;
  18357. +esac
  18358. +
  18359. +
  18360. +fi
  18361. +
  18362. +
  18363. +
  18364. +
  18365. +for ac_func in strftime
  18366. +do
  18367. +as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18368. +{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  18369. +$as_echo_n "checking for $ac_func... " >&6; }
  18370. +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18371. + $as_echo_n "(cached) " >&6
  18372. +else
  18373. + cat >conftest.$ac_ext <<_ACEOF
  18374. +/* confdefs.h. */
  18375. +_ACEOF
  18376. +cat confdefs.h >>conftest.$ac_ext
  18377. +cat >>conftest.$ac_ext <<_ACEOF
  18378. +/* end confdefs.h. */
  18379. +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18380. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18381. +#define $ac_func innocuous_$ac_func
  18382. +
  18383. +/* System header to define __stub macros and hopefully few prototypes,
  18384. + which can conflict with char $ac_func (); below.
  18385. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18386. + <limits.h> exists even on freestanding compilers. */
  18387. +
  18388. +#ifdef __STDC__
  18389. +# include <limits.h>
  18390. +#else
  18391. +# include <assert.h>
  18392. +#endif
  18393. +
  18394. +#undef $ac_func
  18395. +
  18396. +/* Override any GCC internal prototype to avoid an error.
  18397. + Use char because int might match the return type of a GCC
  18398. + builtin and then its argument prototype would still apply. */
  18399. +#ifdef __cplusplus
  18400. +extern "C"
  18401. +#endif
  18402. +char $ac_func ();
  18403. +/* The GNU C library defines this for functions which it implements
  18404. + to always fail with ENOSYS. Some functions are actually named
  18405. + something starting with __ and the normal name is an alias. */
  18406. +#if defined __stub_$ac_func || defined __stub___$ac_func
  18407. +choke me
  18408. +#endif
  18409. +
  18410. +int
  18411. +main ()
  18412. +{
  18413. +return $ac_func ();
  18414. + ;
  18415. + return 0;
  18416. +}
  18417. +_ACEOF
  18418. +rm -f conftest.$ac_objext conftest$ac_exeext
  18419. +if { (ac_try="$ac_link"
  18420. +case "(($ac_try" in
  18421. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18422. + *) ac_try_echo=$ac_try;;
  18423. +esac
  18424. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18425. +$as_echo "$ac_try_echo") >&5
  18426. + (eval "$ac_link") 2>conftest.er1
  18427. + ac_status=$?
  18428. + grep -v '^ *+' conftest.er1 >conftest.err
  18429. + rm -f conftest.er1
  18430. + cat conftest.err >&5
  18431. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18432. + (exit $ac_status); } && {
  18433. + test -z "$ac_c_werror_flag" ||
  18434. + test ! -s conftest.err
  18435. + } && test -s conftest$ac_exeext && {
  18436. + test "$cross_compiling" = yes ||
  18437. + $as_test_x conftest$ac_exeext
  18438. + }; then
  18439. + eval "$as_ac_var=yes"
  18440. +else
  18441. + $as_echo "$as_me: failed program was:" >&5
  18442. +sed 's/^/| /' conftest.$ac_ext >&5
  18443. +
  18444. + eval "$as_ac_var=no"
  18445. +fi
  18446. +
  18447. +rm -rf conftest.dSYM
  18448. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18449. + conftest$ac_exeext conftest.$ac_ext
  18450. +fi
  18451. +ac_res=`eval 'as_val=${'$as_ac_var'}
  18452. + $as_echo "$as_val"'`
  18453. + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18454. +$as_echo "$ac_res" >&6; }
  18455. +as_val=`eval 'as_val=${'$as_ac_var'}
  18456. + $as_echo "$as_val"'`
  18457. + if test "x$as_val" = x""yes; then
  18458. + cat >>confdefs.h <<_ACEOF
  18459. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18460. +_ACEOF
  18461. +
  18462. +else
  18463. + # strftime is in -lintl on SCO UNIX.
  18464. +{ $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  18465. +$as_echo_n "checking for strftime in -lintl... " >&6; }
  18466. +if test "${ac_cv_lib_intl_strftime+set}" = set; then
  18467. + $as_echo_n "(cached) " >&6
  18468. +else
  18469. + ac_check_lib_save_LIBS=$LIBS
  18470. +LIBS="-lintl $LIBS"
  18471. +cat >conftest.$ac_ext <<_ACEOF
  18472. +/* confdefs.h. */
  18473. +_ACEOF
  18474. +cat confdefs.h >>conftest.$ac_ext
  18475. +cat >>conftest.$ac_ext <<_ACEOF
  18476. +/* end confdefs.h. */
  18477. +
  18478. +/* Override any GCC internal prototype to avoid an error.
  18479. + Use char because int might match the return type of a GCC
  18480. + builtin and then its argument prototype would still apply. */
  18481. +#ifdef __cplusplus
  18482. +extern "C"
  18483. +#endif
  18484. +char strftime ();
  18485. +int
  18486. +main ()
  18487. +{
  18488. +return strftime ();
  18489. + ;
  18490. + return 0;
  18491. +}
  18492. +_ACEOF
  18493. +rm -f conftest.$ac_objext conftest$ac_exeext
  18494. +if { (ac_try="$ac_link"
  18495. +case "(($ac_try" in
  18496. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18497. + *) ac_try_echo=$ac_try;;
  18498. +esac
  18499. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18500. +$as_echo "$ac_try_echo") >&5
  18501. + (eval "$ac_link") 2>conftest.er1
  18502. + ac_status=$?
  18503. + grep -v '^ *+' conftest.er1 >conftest.err
  18504. + rm -f conftest.er1
  18505. + cat conftest.err >&5
  18506. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18507. + (exit $ac_status); } && {
  18508. + test -z "$ac_c_werror_flag" ||
  18509. + test ! -s conftest.err
  18510. + } && test -s conftest$ac_exeext && {
  18511. + test "$cross_compiling" = yes ||
  18512. + $as_test_x conftest$ac_exeext
  18513. + }; then
  18514. + ac_cv_lib_intl_strftime=yes
  18515. +else
  18516. + $as_echo "$as_me: failed program was:" >&5
  18517. +sed 's/^/| /' conftest.$ac_ext >&5
  18518. +
  18519. + ac_cv_lib_intl_strftime=no
  18520. +fi
  18521. +
  18522. +rm -rf conftest.dSYM
  18523. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18524. + conftest$ac_exeext conftest.$ac_ext
  18525. +LIBS=$ac_check_lib_save_LIBS
  18526. +fi
  18527. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  18528. +$as_echo "$ac_cv_lib_intl_strftime" >&6; }
  18529. +if test "x$ac_cv_lib_intl_strftime" = x""yes; then
  18530. + cat >>confdefs.h <<\_ACEOF
  18531. +#define HAVE_STRFTIME 1
  18532. +_ACEOF
  18533. +
  18534. +LIBS="-lintl $LIBS"
  18535. +fi
  18536. +
  18537. +fi
  18538. +done
  18539. +
  18540. +
  18541. +
  18542. +
  18543. +cat >>confdefs.h <<\_ACEOF
  18544. +#define NEED_STRMODE 1
  18545. +_ACEOF
  18546. +
  18547. + { $as_echo "$as_me:$LINENO: checking for strmode" >&5
  18548. +$as_echo_n "checking for strmode... " >&6; }
  18549. +if test "${ac_cv_func_strmode+set}" = set; then
  18550. + $as_echo_n "(cached) " >&6
  18551. +else
  18552. + cat >conftest.$ac_ext <<_ACEOF
  18553. +/* confdefs.h. */
  18554. +_ACEOF
  18555. +cat confdefs.h >>conftest.$ac_ext
  18556. +cat >>conftest.$ac_ext <<_ACEOF
  18557. +/* end confdefs.h. */
  18558. +/* Define strmode to an innocuous variant, in case <limits.h> declares strmode.
  18559. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18560. +#define strmode innocuous_strmode
  18561. +
  18562. +/* System header to define __stub macros and hopefully few prototypes,
  18563. + which can conflict with char strmode (); below.
  18564. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18565. + <limits.h> exists even on freestanding compilers. */
  18566. +
  18567. +#ifdef __STDC__
  18568. +# include <limits.h>
  18569. +#else
  18570. +# include <assert.h>
  18571. +#endif
  18572. +
  18573. +#undef strmode
  18574. +
  18575. +/* Override any GCC internal prototype to avoid an error.
  18576. + Use char because int might match the return type of a GCC
  18577. + builtin and then its argument prototype would still apply. */
  18578. +#ifdef __cplusplus
  18579. +extern "C"
  18580. +#endif
  18581. +char strmode ();
  18582. +/* The GNU C library defines this for functions which it implements
  18583. + to always fail with ENOSYS. Some functions are actually named
  18584. + something starting with __ and the normal name is an alias. */
  18585. +#if defined __stub_strmode || defined __stub___strmode
  18586. +choke me
  18587. +#endif
  18588. +
  18589. +int
  18590. +main ()
  18591. +{
  18592. +return strmode ();
  18593. + ;
  18594. + return 0;
  18595. +}
  18596. +_ACEOF
  18597. +rm -f conftest.$ac_objext conftest$ac_exeext
  18598. +if { (ac_try="$ac_link"
  18599. +case "(($ac_try" in
  18600. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18601. + *) ac_try_echo=$ac_try;;
  18602. +esac
  18603. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18604. +$as_echo "$ac_try_echo") >&5
  18605. + (eval "$ac_link") 2>conftest.er1
  18606. + ac_status=$?
  18607. + grep -v '^ *+' conftest.er1 >conftest.err
  18608. + rm -f conftest.er1
  18609. + cat conftest.err >&5
  18610. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18611. + (exit $ac_status); } && {
  18612. + test -z "$ac_c_werror_flag" ||
  18613. + test ! -s conftest.err
  18614. + } && test -s conftest$ac_exeext && {
  18615. + test "$cross_compiling" = yes ||
  18616. + $as_test_x conftest$ac_exeext
  18617. + }; then
  18618. + ac_cv_func_strmode=yes
  18619. +else
  18620. + $as_echo "$as_me: failed program was:" >&5
  18621. +sed 's/^/| /' conftest.$ac_ext >&5
  18622. +
  18623. + ac_cv_func_strmode=no
  18624. +fi
  18625. +
  18626. +rm -rf conftest.dSYM
  18627. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18628. + conftest$ac_exeext conftest.$ac_ext
  18629. +fi
  18630. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strmode" >&5
  18631. +$as_echo "$ac_cv_func_strmode" >&6; }
  18632. +if test "x$ac_cv_func_strmode" = x""yes; then
  18633. +
  18634. +cat >>confdefs.h <<\_ACEOF
  18635. +#define HAVE_STRMODE 1
  18636. +_ACEOF
  18637. +
  18638. +else
  18639. + case " $LIBOBJS " in
  18640. + *" strmode.$ac_objext "* ) ;;
  18641. + *) LIBOBJS="$LIBOBJS strmode.$ac_objext"
  18642. + ;;
  18643. +esac
  18644. +
  18645. +
  18646. +fi
  18647. +
  18648. +
  18649. +
  18650. +
  18651. +
  18652. +
  18653. +# Check whether --with-zlib was given.
  18654. +if test "${with_zlib+set}" = set; then
  18655. + withval=$with_zlib;
  18656. +else
  18657. + with_zlib=yes
  18658. +fi
  18659. +
  18660. +if test "$with_zlib" = "yes"; then
  18661. +
  18662. +{ $as_echo "$as_me:$LINENO: checking for gzread in -lz" >&5
  18663. +$as_echo_n "checking for gzread in -lz... " >&6; }
  18664. +if test "${ac_cv_lib_z_gzread+set}" = set; then
  18665. + $as_echo_n "(cached) " >&6
  18666. +else
  18667. + ac_check_lib_save_LIBS=$LIBS
  18668. +LIBS="-lz $LIBS"
  18669. +cat >conftest.$ac_ext <<_ACEOF
  18670. +/* confdefs.h. */
  18671. +_ACEOF
  18672. +cat confdefs.h >>conftest.$ac_ext
  18673. +cat >>conftest.$ac_ext <<_ACEOF
  18674. +/* end confdefs.h. */
  18675. +
  18676. +/* Override any GCC internal prototype to avoid an error.
  18677. + Use char because int might match the return type of a GCC
  18678. + builtin and then its argument prototype would still apply. */
  18679. #ifdef __cplusplus
  18680. extern "C"
  18681. +#endif
  18682. +char gzread ();
  18683. +int
  18684. +main ()
  18685. +{
  18686. +return gzread ();
  18687. + ;
  18688. + return 0;
  18689. +}
  18690. +_ACEOF
  18691. +rm -f conftest.$ac_objext conftest$ac_exeext
  18692. +if { (ac_try="$ac_link"
  18693. +case "(($ac_try" in
  18694. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18695. + *) ac_try_echo=$ac_try;;
  18696. +esac
  18697. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18698. +$as_echo "$ac_try_echo") >&5
  18699. + (eval "$ac_link") 2>conftest.er1
  18700. + ac_status=$?
  18701. + grep -v '^ *+' conftest.er1 >conftest.err
  18702. + rm -f conftest.er1
  18703. + cat conftest.err >&5
  18704. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18705. + (exit $ac_status); } && {
  18706. + test -z "$ac_c_werror_flag" ||
  18707. + test ! -s conftest.err
  18708. + } && test -s conftest$ac_exeext && {
  18709. + test "$cross_compiling" = yes ||
  18710. + $as_test_x conftest$ac_exeext
  18711. + }; then
  18712. + ac_cv_lib_z_gzread=yes
  18713. +else
  18714. + $as_echo "$as_me: failed program was:" >&5
  18715. +sed 's/^/| /' conftest.$ac_ext >&5
  18716. +
  18717. + ac_cv_lib_z_gzread=no
  18718. +fi
  18719. +
  18720. +rm -rf conftest.dSYM
  18721. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18722. + conftest$ac_exeext conftest.$ac_ext
  18723. +LIBS=$ac_check_lib_save_LIBS
  18724. +fi
  18725. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzread" >&5
  18726. +$as_echo "$ac_cv_lib_z_gzread" >&6; }
  18727. +if test "x$ac_cv_lib_z_gzread" = x""yes; then
  18728. + cat >>confdefs.h <<_ACEOF
  18729. +#define HAVE_LIBZ 1
  18730. +_ACEOF
  18731. +
  18732. + LIBS="-lz $LIBS"
  18733. +
  18734. +fi
  18735. +
  18736. +fi
  18737. +
  18738. +
  18739. +ac_config_files="$ac_config_files Makefile lib/Makefile libtar/Makefile doc/Makefile"
  18740. +
  18741. +cat >confcache <<\_ACEOF
  18742. +# This file is a shell script that caches the results of configure
  18743. +# tests run on this system so they can be shared between configure
  18744. +# scripts and configure runs, see configure's option --config-cache.
  18745. +# It is not useful on other systems. If it contains results you don't
  18746. +# want to keep, you may remove or edit it.
  18747. +#
  18748. +# config.status only pays attention to the cache file if you give it
  18749. +# the --recheck option to rerun configure.
  18750. +#
  18751. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  18752. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  18753. +# following values.
  18754. +
  18755. +_ACEOF
  18756. +
  18757. +# The following way of writing the cache mishandles newlines in values,
  18758. +# but we know of no workaround that is simple, portable, and efficient.
  18759. +# So, we kill variables containing newlines.
  18760. +# Ultrix sh set writes to stderr and can't be redirected directly,
  18761. +# and sets the high bit in the cache file unless we assign to the vars.
  18762. +(
  18763. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18764. + eval ac_val=\$$ac_var
  18765. + case $ac_val in #(
  18766. + *${as_nl}*)
  18767. + case $ac_var in #(
  18768. + *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  18769. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  18770. + esac
  18771. + case $ac_var in #(
  18772. + _ | IFS | as_nl) ;; #(
  18773. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  18774. + *) $as_unset $ac_var ;;
  18775. + esac ;;
  18776. + esac
  18777. + done
  18778. +
  18779. + (set) 2>&1 |
  18780. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18781. + *${as_nl}ac_space=\ *)
  18782. + # `set' does not quote correctly, so add quotes (double-quote
  18783. + # substitution turns \\\\ into \\, and sed turns \\ into \).
  18784. + sed -n \
  18785. + "s/'/'\\\\''/g;
  18786. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18787. + ;; #(
  18788. + *)
  18789. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  18790. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18791. + ;;
  18792. + esac |
  18793. + sort
  18794. +) |
  18795. + sed '
  18796. + /^ac_cv_env_/b end
  18797. + t clear
  18798. + :clear
  18799. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  18800. + t end
  18801. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18802. + :end' >>confcache
  18803. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18804. + if test -w "$cache_file"; then
  18805. + test "x$cache_file" != "x/dev/null" &&
  18806. + { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  18807. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  18808. + cat confcache >$cache_file
  18809. + else
  18810. + { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  18811. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  18812. + fi
  18813. +fi
  18814. +rm -f confcache
  18815. +
  18816. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18817. +# Let make expand exec_prefix.
  18818. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18819. +
  18820. +DEFS=-DHAVE_CONFIG_H
  18821. +
  18822. +ac_libobjs=
  18823. +ac_ltlibobjs=
  18824. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18825. + # 1. Remove the extension, and $U if already installed.
  18826. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  18827. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  18828. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  18829. + # will be set to the directory where LIBOBJS objects are built.
  18830. + ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  18831. + ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  18832. +done
  18833. +LIBOBJS=$ac_libobjs
  18834. +
  18835. +LTLIBOBJS=$ac_ltlibobjs
  18836. +
  18837. +
  18838. +
  18839. +: ${CONFIG_STATUS=./config.status}
  18840. +ac_write_fail=0
  18841. +ac_clean_files_save=$ac_clean_files
  18842. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  18843. +{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  18844. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  18845. +cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18846. +#! $SHELL
  18847. +# Generated by $as_me.
  18848. +# Run this file to recreate the current configuration.
  18849. +# Compiler output produced by configure, useful for debugging
  18850. +# configure, is in config.log if it exists.
  18851. +
  18852. +debug=false
  18853. +ac_cs_recheck=false
  18854. +ac_cs_silent=false
  18855. +SHELL=\${CONFIG_SHELL-$SHELL}
  18856. +_ACEOF
  18857. +
  18858. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18859. +## --------------------- ##
  18860. +## M4sh Initialization. ##
  18861. +## --------------------- ##
  18862. +
  18863. +# Be more Bourne compatible
  18864. +DUALCASE=1; export DUALCASE # for MKS sh
  18865. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  18866. + emulate sh
  18867. + NULLCMD=:
  18868. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18869. + # is contrary to our usage. Disable this feature.
  18870. + alias -g '${1+"$@"}'='"$@"'
  18871. + setopt NO_GLOB_SUBST
  18872. +else
  18873. + case `(set -o) 2>/dev/null` in
  18874. + *posix*) set -o posix ;;
  18875. +esac
  18876. +
  18877. +fi
  18878. +
  18879. +
  18880. +
  18881. +
  18882. +# PATH needs CR
  18883. +# Avoid depending upon Character Ranges.
  18884. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18885. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18886. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18887. +as_cr_digits='0123456789'
  18888. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  18889. +
  18890. +as_nl='
  18891. +'
  18892. +export as_nl
  18893. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  18894. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  18895. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  18896. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  18897. +if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  18898. + as_echo='printf %s\n'
  18899. + as_echo_n='printf %s'
  18900. +else
  18901. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  18902. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  18903. + as_echo_n='/usr/ucb/echo -n'
  18904. + else
  18905. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  18906. + as_echo_n_body='eval
  18907. + arg=$1;
  18908. + case $arg in
  18909. + *"$as_nl"*)
  18910. + expr "X$arg" : "X\\(.*\\)$as_nl";
  18911. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  18912. + esac;
  18913. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  18914. + '
  18915. + export as_echo_n_body
  18916. + as_echo_n='sh -c $as_echo_n_body as_echo'
  18917. + fi
  18918. + export as_echo_body
  18919. + as_echo='sh -c $as_echo_body as_echo'
  18920. +fi
  18921. +
  18922. +# The user is always right.
  18923. +if test "${PATH_SEPARATOR+set}" != set; then
  18924. + PATH_SEPARATOR=:
  18925. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  18926. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  18927. + PATH_SEPARATOR=';'
  18928. + }
  18929. +fi
  18930. +
  18931. +# Support unset when possible.
  18932. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  18933. + as_unset=unset
  18934. +else
  18935. + as_unset=false
  18936. +fi
  18937. +
  18938. +
  18939. +# IFS
  18940. +# We need space, tab and new line, in precisely that order. Quoting is
  18941. +# there to prevent editors from complaining about space-tab.
  18942. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  18943. +# splitting by setting IFS to empty value.)
  18944. +IFS=" "" $as_nl"
  18945. +
  18946. +# Find who we are. Look in the path if we contain no directory separator.
  18947. +case $0 in
  18948. + *[\\/]* ) as_myself=$0 ;;
  18949. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18950. +for as_dir in $PATH
  18951. +do
  18952. + IFS=$as_save_IFS
  18953. + test -z "$as_dir" && as_dir=.
  18954. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  18955. +done
  18956. +IFS=$as_save_IFS
  18957. +
  18958. + ;;
  18959. +esac
  18960. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  18961. +# in which case we are not to be found in the path.
  18962. +if test "x$as_myself" = x; then
  18963. + as_myself=$0
  18964. +fi
  18965. +if test ! -f "$as_myself"; then
  18966. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  18967. + { (exit 1); exit 1; }
  18968. +fi
  18969. +
  18970. +# Work around bugs in pre-3.0 UWIN ksh.
  18971. +for as_var in ENV MAIL MAILPATH
  18972. +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  18973. +done
  18974. +PS1='$ '
  18975. +PS2='> '
  18976. +PS4='+ '
  18977. +
  18978. +# NLS nuisances.
  18979. +LC_ALL=C
  18980. +export LC_ALL
  18981. +LANGUAGE=C
  18982. +export LANGUAGE
  18983. +
  18984. +# Required to use basename.
  18985. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  18986. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18987. + as_expr=expr
  18988. +else
  18989. + as_expr=false
  18990. +fi
  18991. +
  18992. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  18993. + as_basename=basename
  18994. +else
  18995. + as_basename=false
  18996. +fi
  18997. +
  18998. +
  18999. +# Name of the executable.
  19000. +as_me=`$as_basename -- "$0" ||
  19001. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  19002. + X"$0" : 'X\(//\)$' \| \
  19003. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  19004. +$as_echo X/"$0" |
  19005. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  19006. + s//\1/
  19007. + q
  19008. + }
  19009. + /^X\/\(\/\/\)$/{
  19010. + s//\1/
  19011. + q
  19012. + }
  19013. + /^X\/\(\/\).*/{
  19014. + s//\1/
  19015. + q
  19016. + }
  19017. + s/.*/./; q'`
  19018. +
  19019. +# CDPATH.
  19020. +$as_unset CDPATH
  19021. +
  19022. +
  19023. +
  19024. + as_lineno_1=$LINENO
  19025. + as_lineno_2=$LINENO
  19026. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  19027. + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  19028. +
  19029. + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  19030. + # uniformly replaced by the line number. The first 'sed' inserts a
  19031. + # line-number line after each line using $LINENO; the second 'sed'
  19032. + # does the real work. The second script uses 'N' to pair each
  19033. + # line-number line with the line containing $LINENO, and appends
  19034. + # trailing '-' during substitution so that $LINENO is not a special
  19035. + # case at line end.
  19036. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  19037. + # scripts with optimization help from Paolo Bonzini. Blame Lee
  19038. + # E. McMahon (1931-1989) for sed's syntax. :-)
  19039. + sed -n '
  19040. + p
  19041. + /[$]LINENO/=
  19042. + ' <$as_myself |
  19043. + sed '
  19044. + s/[$]LINENO.*/&-/
  19045. + t lineno
  19046. + b
  19047. + :lineno
  19048. + N
  19049. + :loop
  19050. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  19051. + t loop
  19052. + s/-\n.*//
  19053. + ' >$as_me.lineno &&
  19054. + chmod +x "$as_me.lineno" ||
  19055. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  19056. + { (exit 1); exit 1; }; }
  19057. +
  19058. + # Don't try to exec as it changes $[0], causing all sort of problems
  19059. + # (the dirname of $[0] is not the place where we might find the
  19060. + # original and so on. Autoconf is especially sensitive to this).
  19061. + . "./$as_me.lineno"
  19062. + # Exit status is that of the last command.
  19063. + exit
  19064. +}
  19065. +
  19066. +
  19067. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  19068. + as_dirname=dirname
  19069. +else
  19070. + as_dirname=false
  19071. +fi
  19072. +
  19073. +ECHO_C= ECHO_N= ECHO_T=
  19074. +case `echo -n x` in
  19075. +-n*)
  19076. + case `echo 'x\c'` in
  19077. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  19078. + *) ECHO_C='\c';;
  19079. + esac;;
  19080. +*)
  19081. + ECHO_N='-n';;
  19082. +esac
  19083. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  19084. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19085. + as_expr=expr
  19086. +else
  19087. + as_expr=false
  19088. +fi
  19089. +
  19090. +rm -f conf$$ conf$$.exe conf$$.file
  19091. +if test -d conf$$.dir; then
  19092. + rm -f conf$$.dir/conf$$.file
  19093. +else
  19094. + rm -f conf$$.dir
  19095. + mkdir conf$$.dir 2>/dev/null
  19096. +fi
  19097. +if (echo >conf$$.file) 2>/dev/null; then
  19098. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  19099. + as_ln_s='ln -s'
  19100. + # ... but there are two gotchas:
  19101. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  19102. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  19103. + # In both cases, we have to default to `cp -p'.
  19104. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  19105. + as_ln_s='cp -p'
  19106. + elif ln conf$$.file conf$$ 2>/dev/null; then
  19107. + as_ln_s=ln
  19108. + else
  19109. + as_ln_s='cp -p'
  19110. + fi
  19111. +else
  19112. + as_ln_s='cp -p'
  19113. +fi
  19114. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  19115. +rmdir conf$$.dir 2>/dev/null
  19116. +
  19117. +if mkdir -p . 2>/dev/null; then
  19118. + as_mkdir_p=:
  19119. +else
  19120. + test -d ./-p && rmdir ./-p
  19121. + as_mkdir_p=false
  19122. +fi
  19123. +
  19124. +if test -x / >/dev/null 2>&1; then
  19125. + as_test_x='test -x'
  19126. +else
  19127. + if ls -dL / >/dev/null 2>&1; then
  19128. + as_ls_L_option=L
  19129. + else
  19130. + as_ls_L_option=
  19131. + fi
  19132. + as_test_x='
  19133. + eval sh -c '\''
  19134. + if test -d "$1"; then
  19135. + test -d "$1/.";
  19136. + else
  19137. + case $1 in
  19138. + -*)set "./$1";;
  19139. + esac;
  19140. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  19141. + ???[sx]*):;;*)false;;esac;fi
  19142. + '\'' sh
  19143. + '
  19144. +fi
  19145. +as_executable_p=$as_test_x
  19146. +
  19147. +# Sed expression to map a string onto a valid CPP name.
  19148. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  19149. +
  19150. +# Sed expression to map a string onto a valid variable name.
  19151. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  19152. +
  19153. +
  19154. +exec 6>&1
  19155. +
  19156. +# Save the log message, to keep $[0] and so on meaningful, and to
  19157. +# report actual input values of CONFIG_FILES etc. instead of their
  19158. +# values after options handling.
  19159. +ac_log="
  19160. +This file was extended by libtar $as_me 1.2.11, which was
  19161. +generated by GNU Autoconf 2.63. Invocation command line was
  19162. +
  19163. + CONFIG_FILES = $CONFIG_FILES
  19164. + CONFIG_HEADERS = $CONFIG_HEADERS
  19165. + CONFIG_LINKS = $CONFIG_LINKS
  19166. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  19167. + $ $0 $@
  19168. +
  19169. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  19170. +"
  19171. +
  19172. +_ACEOF
  19173. +
  19174. +case $ac_config_files in *"
  19175. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  19176. +esac
  19177. +
  19178. +case $ac_config_headers in *"
  19179. +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  19180. +esac
  19181. +
  19182. +
  19183. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19184. +# Files that config.status was made for.
  19185. +config_files="$ac_config_files"
  19186. +config_headers="$ac_config_headers"
  19187. +config_commands="$ac_config_commands"
  19188. +
  19189. +_ACEOF
  19190. +
  19191. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19192. +ac_cs_usage="\
  19193. +\`$as_me' instantiates files from templates according to the
  19194. +current configuration.
  19195. +
  19196. +Usage: $0 [OPTION]... [FILE]...
  19197. +
  19198. + -h, --help print this help, then exit
  19199. + -V, --version print version number and configuration settings, then exit
  19200. + -q, --quiet, --silent
  19201. + do not print progress messages
  19202. + -d, --debug don't remove temporary files
  19203. + --recheck update $as_me by reconfiguring in the same conditions
  19204. + --file=FILE[:TEMPLATE]
  19205. + instantiate the configuration file FILE
  19206. + --header=FILE[:TEMPLATE]
  19207. + instantiate the configuration header FILE
  19208. +
  19209. +Configuration files:
  19210. +$config_files
  19211. +
  19212. +Configuration headers:
  19213. +$config_headers
  19214. +
  19215. +Configuration commands:
  19216. +$config_commands
  19217. +
  19218. +Report bugs to <bug-autoconf@gnu.org>."
  19219. +
  19220. +_ACEOF
  19221. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19222. +ac_cs_version="\\
  19223. +libtar config.status 1.2.11
  19224. +configured by $0, generated by GNU Autoconf 2.63,
  19225. + with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  19226. +
  19227. +Copyright (C) 2008 Free Software Foundation, Inc.
  19228. +This config.status script is free software; the Free Software Foundation
  19229. +gives unlimited permission to copy, distribute and modify it."
  19230. +
  19231. +ac_pwd='$ac_pwd'
  19232. +srcdir='$srcdir'
  19233. +INSTALL='$INSTALL'
  19234. +test -n "\$AWK" || AWK=awk
  19235. +_ACEOF
  19236. +
  19237. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19238. +# The default lists apply if the user does not specify any file.
  19239. +ac_need_defaults=:
  19240. +while test $# != 0
  19241. +do
  19242. + case $1 in
  19243. + --*=*)
  19244. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19245. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  19246. + ac_shift=:
  19247. + ;;
  19248. + *)
  19249. + ac_option=$1
  19250. + ac_optarg=$2
  19251. + ac_shift=shift
  19252. + ;;
  19253. + esac
  19254. +
  19255. + case $ac_option in
  19256. + # Handling of the options.
  19257. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  19258. + ac_cs_recheck=: ;;
  19259. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  19260. + $as_echo "$ac_cs_version"; exit ;;
  19261. + --debug | --debu | --deb | --de | --d | -d )
  19262. + debug=: ;;
  19263. + --file | --fil | --fi | --f )
  19264. + $ac_shift
  19265. + case $ac_optarg in
  19266. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  19267. + esac
  19268. + CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  19269. + ac_need_defaults=false;;
  19270. + --header | --heade | --head | --hea )
  19271. + $ac_shift
  19272. + case $ac_optarg in
  19273. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  19274. + esac
  19275. + CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  19276. + ac_need_defaults=false;;
  19277. + --he | --h)
  19278. + # Conflict between --help and --header
  19279. + { $as_echo "$as_me: error: ambiguous option: $1
  19280. +Try \`$0 --help' for more information." >&2
  19281. + { (exit 1); exit 1; }; };;
  19282. + --help | --hel | -h )
  19283. + $as_echo "$ac_cs_usage"; exit ;;
  19284. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  19285. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  19286. + ac_cs_silent=: ;;
  19287. +
  19288. + # This is an error.
  19289. + -*) { $as_echo "$as_me: error: unrecognized option: $1
  19290. +Try \`$0 --help' for more information." >&2
  19291. + { (exit 1); exit 1; }; } ;;
  19292. +
  19293. + *) ac_config_targets="$ac_config_targets $1"
  19294. + ac_need_defaults=false ;;
  19295. +
  19296. + esac
  19297. + shift
  19298. +done
  19299. +
  19300. +ac_configure_extra_args=
  19301. +
  19302. +if $ac_cs_silent; then
  19303. + exec 6>/dev/null
  19304. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  19305. +fi
  19306. +
  19307. +_ACEOF
  19308. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19309. +if \$ac_cs_recheck; then
  19310. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  19311. + shift
  19312. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  19313. + CONFIG_SHELL='$SHELL'
  19314. + export CONFIG_SHELL
  19315. + exec "\$@"
  19316. +fi
  19317. +
  19318. +_ACEOF
  19319. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19320. +exec 5>>config.log
  19321. {
  19322. -#endif
  19323. -/* We use char because int might match the return type of a gcc2
  19324. - builtin and then its argument prototype would still apply. */
  19325. -char strmode ();
  19326. -/* The GNU C library defines this for functions which it implements
  19327. - to always fail with ENOSYS. Some functions are actually named
  19328. - something starting with __ and the normal name is an alias. */
  19329. -#if defined (__stub_strmode) || defined (__stub___strmode)
  19330. -choke me
  19331. -#else
  19332. -char (*f) () = strmode;
  19333. -#endif
  19334. -#ifdef __cplusplus
  19335. + echo
  19336. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  19337. +## Running $as_me. ##
  19338. +_ASBOX
  19339. + $as_echo "$ac_log"
  19340. +} >&5
  19341. +
  19342. +_ACEOF
  19343. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19344. +#
  19345. +# INIT-COMMANDS
  19346. +#
  19347. +
  19348. +
  19349. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  19350. +# if CDPATH is set.
  19351. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  19352. +
  19353. +sed_quote_subst='$sed_quote_subst'
  19354. +double_quote_subst='$double_quote_subst'
  19355. +delay_variable_subst='$delay_variable_subst'
  19356. +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  19357. +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  19358. +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  19359. +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  19360. +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  19361. +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  19362. +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  19363. +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  19364. +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  19365. +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  19366. +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  19367. +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  19368. +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  19369. +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  19370. +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  19371. +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  19372. +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  19373. +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  19374. +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  19375. +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  19376. +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  19377. +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  19378. +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  19379. +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  19380. +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  19381. +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  19382. +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  19383. +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19384. +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  19385. +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  19386. +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  19387. +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  19388. +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  19389. +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  19390. +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  19391. +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19392. +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19393. +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19394. +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  19395. +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  19396. +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  19397. +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  19398. +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  19399. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  19400. +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  19401. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  19402. +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  19403. +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  19404. +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  19405. +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  19406. +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  19407. +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  19408. +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  19409. +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  19410. +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  19411. +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  19412. +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  19413. +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  19414. +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  19415. +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  19416. +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  19417. +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  19418. +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19419. +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19420. +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  19421. +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  19422. +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  19423. +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  19424. +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  19425. +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19426. +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19427. +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19428. +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19429. +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19430. +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19431. +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  19432. +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  19433. +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  19434. +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  19435. +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  19436. +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  19437. +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  19438. +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  19439. +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  19440. +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  19441. +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  19442. +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  19443. +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  19444. +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  19445. +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  19446. +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19447. +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  19448. +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  19449. +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19450. +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  19451. +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  19452. +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  19453. +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  19454. +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  19455. +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  19456. +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  19457. +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  19458. +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  19459. +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  19460. +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  19461. +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19462. +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19463. +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19464. +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  19465. +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  19466. +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  19467. +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  19468. +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  19469. +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  19470. +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  19471. +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  19472. +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  19473. +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  19474. +
  19475. +LTCC='$LTCC'
  19476. +LTCFLAGS='$LTCFLAGS'
  19477. +compiler='$compiler_DEFAULT'
  19478. +
  19479. +# Quote evaled strings.
  19480. +for var in SED \
  19481. +GREP \
  19482. +EGREP \
  19483. +FGREP \
  19484. +LD \
  19485. +NM \
  19486. +LN_S \
  19487. +lt_SP2NL \
  19488. +lt_NL2SP \
  19489. +reload_flag \
  19490. +OBJDUMP \
  19491. +deplibs_check_method \
  19492. +file_magic_cmd \
  19493. +AR \
  19494. +AR_FLAGS \
  19495. +STRIP \
  19496. +RANLIB \
  19497. +CC \
  19498. +CFLAGS \
  19499. +compiler \
  19500. +lt_cv_sys_global_symbol_pipe \
  19501. +lt_cv_sys_global_symbol_to_cdecl \
  19502. +lt_cv_sys_global_symbol_to_c_name_address \
  19503. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  19504. +SHELL \
  19505. +ECHO \
  19506. +lt_prog_compiler_no_builtin_flag \
  19507. +lt_prog_compiler_wl \
  19508. +lt_prog_compiler_pic \
  19509. +lt_prog_compiler_static \
  19510. +lt_cv_prog_compiler_c_o \
  19511. +need_locks \
  19512. +DSYMUTIL \
  19513. +NMEDIT \
  19514. +LIPO \
  19515. +OTOOL \
  19516. +OTOOL64 \
  19517. +shrext_cmds \
  19518. +export_dynamic_flag_spec \
  19519. +whole_archive_flag_spec \
  19520. +compiler_needs_object \
  19521. +with_gnu_ld \
  19522. +allow_undefined_flag \
  19523. +no_undefined_flag \
  19524. +hardcode_libdir_flag_spec \
  19525. +hardcode_libdir_flag_spec_ld \
  19526. +hardcode_libdir_separator \
  19527. +fix_srcfile_path \
  19528. +exclude_expsyms \
  19529. +include_expsyms \
  19530. +file_list_spec \
  19531. +variables_saved_for_relink \
  19532. +libname_spec \
  19533. +library_names_spec \
  19534. +soname_spec \
  19535. +finish_eval \
  19536. +old_striplib \
  19537. +striplib; do
  19538. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  19539. + *[\\\\\\\`\\"\\\$]*)
  19540. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  19541. + ;;
  19542. + *)
  19543. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19544. + ;;
  19545. + esac
  19546. +done
  19547. +
  19548. +# Double-quote double-evaled strings.
  19549. +for var in reload_cmds \
  19550. +old_postinstall_cmds \
  19551. +old_postuninstall_cmds \
  19552. +old_archive_cmds \
  19553. +extract_expsyms_cmds \
  19554. +old_archive_from_new_cmds \
  19555. +old_archive_from_expsyms_cmds \
  19556. +archive_cmds \
  19557. +archive_expsym_cmds \
  19558. +module_cmds \
  19559. +module_expsym_cmds \
  19560. +export_symbols_cmds \
  19561. +prelink_cmds \
  19562. +postinstall_cmds \
  19563. +postuninstall_cmds \
  19564. +finish_cmds \
  19565. +sys_lib_search_path_spec \
  19566. +sys_lib_dlsearch_path_spec; do
  19567. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  19568. + *[\\\\\\\`\\"\\\$]*)
  19569. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  19570. + ;;
  19571. + *)
  19572. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19573. + ;;
  19574. + esac
  19575. +done
  19576. +
  19577. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  19578. +case \$lt_ECHO in
  19579. +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  19580. + ;;
  19581. +esac
  19582. +
  19583. +ac_aux_dir='$ac_aux_dir'
  19584. +xsi_shell='$xsi_shell'
  19585. +lt_shell_append='$lt_shell_append'
  19586. +
  19587. +# See if we are running on zsh, and set the options which allow our
  19588. +# commands through without removal of \ escapes INIT.
  19589. +if test -n "\${ZSH_VERSION+set}" ; then
  19590. + setopt NO_GLOB_SUBST
  19591. +fi
  19592. +
  19593. +
  19594. + PACKAGE='$PACKAGE'
  19595. + VERSION='$VERSION'
  19596. + TIMESTAMP='$TIMESTAMP'
  19597. + RM='$RM'
  19598. + ofile='$ofile'
  19599. +
  19600. +
  19601. +
  19602. +
  19603. +_ACEOF
  19604. +
  19605. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19606. +
  19607. +# Handling of arguments.
  19608. +for ac_config_target in $ac_config_targets
  19609. +do
  19610. + case $ac_config_target in
  19611. + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19612. + "listhash/${LISTHASH_PREFIX}_listhash.h") CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_listhash.h:listhash/listhash.h.in" ;;
  19613. + "listhash/${LISTHASH_PREFIX}_list.c") CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_list.c:listhash/list.c.in" ;;
  19614. + "listhash/${LISTHASH_PREFIX}_hash.c") CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_hash.c:listhash/hash.c.in" ;;
  19615. + "listhash/${LISTHASH_PREFIX}_list_new.3") CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_list_new.3:listhash/list_new.3.in" ;;
  19616. + "listhash/${LISTHASH_PREFIX}_hash_new.3") CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_hash_new.3:listhash/hash_new.3.in" ;;
  19617. + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  19618. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19619. + "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  19620. + "libtar/Makefile") CONFIG_FILES="$CONFIG_FILES libtar/Makefile" ;;
  19621. + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  19622. +
  19623. + *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  19624. +$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  19625. + { (exit 1); exit 1; }; };;
  19626. + esac
  19627. +done
  19628. +
  19629. +
  19630. +# If the user did not use the arguments to specify the items to instantiate,
  19631. +# then the envvar interface is used. Set only those that are not.
  19632. +# We use the long form for the default assignment because of an extremely
  19633. +# bizarre bug on SunOS 4.1.3.
  19634. +if $ac_need_defaults; then
  19635. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19636. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19637. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19638. +fi
  19639. +
  19640. +# Have a temporary directory for convenience. Make it in the build tree
  19641. +# simply because there is no reason against having it here, and in addition,
  19642. +# creating and moving files from /tmp can sometimes cause problems.
  19643. +# Hook for its removal unless debugging.
  19644. +# Note that there is a small window in which the directory will not be cleaned:
  19645. +# after its creation but before its name has been assigned to `$tmp'.
  19646. +$debug ||
  19647. +{
  19648. + tmp=
  19649. + trap 'exit_status=$?
  19650. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  19651. +' 0
  19652. + trap '{ (exit 1); exit 1; }' 1 2 13 15
  19653. }
  19654. -#endif
  19655. +# Create a (secure) tmp directory for tmp files.
  19656. -int
  19657. -main ()
  19658. {
  19659. -return f != strmode;
  19660. - ;
  19661. - return 0;
  19662. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19663. + test -n "$tmp" && test -d "$tmp"
  19664. +} ||
  19665. +{
  19666. + tmp=./conf$$-$RANDOM
  19667. + (umask 077 && mkdir "$tmp")
  19668. +} ||
  19669. +{
  19670. + $as_echo "$as_me: cannot create a temporary directory in ." >&2
  19671. + { (exit 1); exit 1; }
  19672. }
  19673. -_ACEOF
  19674. -rm -f conftest.$ac_objext conftest$ac_exeext
  19675. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19676. - (eval $ac_link) 2>&5
  19677. - ac_status=$?
  19678. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19679. - (exit $ac_status); } &&
  19680. - { ac_try='test -s conftest$ac_exeext'
  19681. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19682. - (eval $ac_try) 2>&5
  19683. - ac_status=$?
  19684. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19685. - (exit $ac_status); }; }; then
  19686. - ac_cv_func_strmode=yes
  19687. +
  19688. +# Set up the scripts for CONFIG_FILES section.
  19689. +# No need to generate them if there are no CONFIG_FILES.
  19690. +# This happens for instance with `./config.status config.h'.
  19691. +if test -n "$CONFIG_FILES"; then
  19692. +
  19693. +
  19694. +ac_cr=' '
  19695. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  19696. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  19697. + ac_cs_awk_cr='\\r'
  19698. else
  19699. - echo "$as_me: failed program was:" >&5
  19700. -sed 's/^/| /' conftest.$ac_ext >&5
  19701. + ac_cs_awk_cr=$ac_cr
  19702. +fi
  19703. +
  19704. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  19705. +_ACEOF
  19706. +
  19707. +
  19708. +{
  19709. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  19710. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  19711. + echo "_ACEOF"
  19712. +} >conf$$subs.sh ||
  19713. + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  19714. +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  19715. + { (exit 1); exit 1; }; }
  19716. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  19717. +ac_delim='%!_!# '
  19718. +for ac_last_try in false false false false false :; do
  19719. + . ./conf$$subs.sh ||
  19720. + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  19721. +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  19722. + { (exit 1); exit 1; }; }
  19723. +
  19724. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  19725. + if test $ac_delim_n = $ac_delim_num; then
  19726. + break
  19727. + elif $ac_last_try; then
  19728. + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  19729. +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  19730. + { (exit 1); exit 1; }; }
  19731. + else
  19732. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19733. + fi
  19734. +done
  19735. +rm -f conf$$subs.sh
  19736. +
  19737. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19738. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  19739. +_ACEOF
  19740. +sed -n '
  19741. +h
  19742. +s/^/S["/; s/!.*/"]=/
  19743. +p
  19744. +g
  19745. +s/^[^!]*!//
  19746. +:repl
  19747. +t repl
  19748. +s/'"$ac_delim"'$//
  19749. +t delim
  19750. +:nl
  19751. +h
  19752. +s/\(.\{148\}\).*/\1/
  19753. +t more1
  19754. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  19755. +p
  19756. +n
  19757. +b repl
  19758. +:more1
  19759. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19760. +p
  19761. +g
  19762. +s/.\{148\}//
  19763. +t nl
  19764. +:delim
  19765. +h
  19766. +s/\(.\{148\}\).*/\1/
  19767. +t more2
  19768. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  19769. +p
  19770. +b
  19771. +:more2
  19772. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19773. +p
  19774. +g
  19775. +s/.\{148\}//
  19776. +t delim
  19777. +' <conf$$subs.awk | sed '
  19778. +/^[^""]/{
  19779. + N
  19780. + s/\n//
  19781. +}
  19782. +' >>$CONFIG_STATUS || ac_write_fail=1
  19783. +rm -f conf$$subs.awk
  19784. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19785. +_ACAWK
  19786. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  19787. + for (key in S) S_is_set[key] = 1
  19788. + FS = ""
  19789. +
  19790. +}
  19791. +{
  19792. + line = $ 0
  19793. + nfields = split(line, field, "@")
  19794. + substed = 0
  19795. + len = length(field[1])
  19796. + for (i = 2; i < nfields; i++) {
  19797. + key = field[i]
  19798. + keylen = length(key)
  19799. + if (S_is_set[key]) {
  19800. + value = S[key]
  19801. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  19802. + len += length(value) + length(field[++i])
  19803. + substed = 1
  19804. + } else
  19805. + len += 1 + keylen
  19806. + }
  19807. +
  19808. + print line
  19809. +}
  19810. +
  19811. +_ACAWK
  19812. +_ACEOF
  19813. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19814. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  19815. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  19816. +else
  19817. + cat
  19818. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  19819. + || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  19820. +$as_echo "$as_me: error: could not setup config files machinery" >&2;}
  19821. + { (exit 1); exit 1; }; }
  19822. +_ACEOF
  19823. +
  19824. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  19825. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  19826. +# trailing colons and then remove the whole line if VPATH becomes empty
  19827. +# (actually we leave an empty line to preserve line numbers).
  19828. +if test "x$srcdir" = x.; then
  19829. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  19830. +s/:*\$(srcdir):*/:/
  19831. +s/:*\${srcdir}:*/:/
  19832. +s/:*@srcdir@:*/:/
  19833. +s/^\([^=]*=[ ]*\):*/\1/
  19834. +s/:*$//
  19835. +s/^[^=]*=[ ]*$//
  19836. +}'
  19837. +fi
  19838. +
  19839. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19840. +fi # test -n "$CONFIG_FILES"
  19841. +
  19842. +# Set up the scripts for CONFIG_HEADERS section.
  19843. +# No need to generate them if there are no CONFIG_HEADERS.
  19844. +# This happens for instance with `./config.status Makefile'.
  19845. +if test -n "$CONFIG_HEADERS"; then
  19846. +cat >"$tmp/defines.awk" <<\_ACAWK ||
  19847. +BEGIN {
  19848. +_ACEOF
  19849. +
  19850. +# Transform confdefs.h into an awk script `defines.awk', embedded as
  19851. +# here-document in config.status, that substitutes the proper values into
  19852. +# config.h.in to produce config.h.
  19853. +
  19854. +# Create a delimiter string that does not exist in confdefs.h, to ease
  19855. +# handling of long lines.
  19856. +ac_delim='%!_!# '
  19857. +for ac_last_try in false false :; do
  19858. + ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  19859. + if test -z "$ac_t"; then
  19860. + break
  19861. + elif $ac_last_try; then
  19862. + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  19863. +$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  19864. + { (exit 1); exit 1; }; }
  19865. + else
  19866. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19867. + fi
  19868. +done
  19869. +
  19870. +# For the awk script, D is an array of macro values keyed by name,
  19871. +# likewise P contains macro parameters if any. Preserve backslash
  19872. +# newline sequences.
  19873. +
  19874. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  19875. +sed -n '
  19876. +s/.\{148\}/&'"$ac_delim"'/g
  19877. +t rset
  19878. +:rset
  19879. +s/^[ ]*#[ ]*define[ ][ ]*/ /
  19880. +t def
  19881. +d
  19882. +:def
  19883. +s/\\$//
  19884. +t bsnl
  19885. +s/["\\]/\\&/g
  19886. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19887. +D["\1"]=" \3"/p
  19888. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  19889. +d
  19890. +:bsnl
  19891. +s/["\\]/\\&/g
  19892. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19893. +D["\1"]=" \3\\\\\\n"\\/p
  19894. +t cont
  19895. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  19896. +t cont
  19897. +d
  19898. +:cont
  19899. +n
  19900. +s/.\{148\}/&'"$ac_delim"'/g
  19901. +t clear
  19902. +:clear
  19903. +s/\\$//
  19904. +t bsnlc
  19905. +s/["\\]/\\&/g; s/^/"/; s/$/"/p
  19906. +d
  19907. +:bsnlc
  19908. +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  19909. +b cont
  19910. +' <confdefs.h | sed '
  19911. +s/'"$ac_delim"'/"\\\
  19912. +"/g' >>$CONFIG_STATUS || ac_write_fail=1
  19913. +
  19914. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19915. + for (key in D) D_is_set[key] = 1
  19916. + FS = ""
  19917. +}
  19918. +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  19919. + line = \$ 0
  19920. + split(line, arg, " ")
  19921. + if (arg[1] == "#") {
  19922. + defundef = arg[2]
  19923. + mac1 = arg[3]
  19924. + } else {
  19925. + defundef = substr(arg[1], 2)
  19926. + mac1 = arg[2]
  19927. + }
  19928. + split(mac1, mac2, "(") #)
  19929. + macro = mac2[1]
  19930. + prefix = substr(line, 1, index(line, defundef) - 1)
  19931. + if (D_is_set[macro]) {
  19932. + # Preserve the white space surrounding the "#".
  19933. + print prefix "define", macro P[macro] D[macro]
  19934. + next
  19935. + } else {
  19936. + # Replace #undef with comments. This is necessary, for example,
  19937. + # in the case of _POSIX_SOURCE, which is predefined and required
  19938. + # on some systems where configure will not decide to define it.
  19939. + if (defundef == "undef") {
  19940. + print "/*", prefix defundef, macro, "*/"
  19941. + next
  19942. + }
  19943. + }
  19944. +}
  19945. +{ print }
  19946. +_ACAWK
  19947. +_ACEOF
  19948. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19949. + { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  19950. +$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  19951. + { (exit 1); exit 1; }; }
  19952. +fi # test -n "$CONFIG_HEADERS"
  19953. +
  19954. +
  19955. +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  19956. +shift
  19957. +for ac_tag
  19958. +do
  19959. + case $ac_tag in
  19960. + :[FHLC]) ac_mode=$ac_tag; continue;;
  19961. + esac
  19962. + case $ac_mode$ac_tag in
  19963. + :[FHL]*:*);;
  19964. + :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  19965. +$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  19966. + { (exit 1); exit 1; }; };;
  19967. + :[FH]-) ac_tag=-:-;;
  19968. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19969. + esac
  19970. + ac_save_IFS=$IFS
  19971. + IFS=:
  19972. + set x $ac_tag
  19973. + IFS=$ac_save_IFS
  19974. + shift
  19975. + ac_file=$1
  19976. + shift
  19977. +
  19978. + case $ac_mode in
  19979. + :L) ac_source=$1;;
  19980. + :[FH])
  19981. + ac_file_inputs=
  19982. + for ac_f
  19983. + do
  19984. + case $ac_f in
  19985. + -) ac_f="$tmp/stdin";;
  19986. + *) # Look for the file first in the build tree, then in the source tree
  19987. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  19988. + # because $ac_f cannot contain `:'.
  19989. + test -f "$ac_f" ||
  19990. + case $ac_f in
  19991. + [\\/$]*) false;;
  19992. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19993. + esac ||
  19994. + { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  19995. +$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  19996. + { (exit 1); exit 1; }; };;
  19997. + esac
  19998. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  19999. + ac_file_inputs="$ac_file_inputs '$ac_f'"
  20000. + done
  20001. +
  20002. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  20003. + # use $as_me), people would be surprised to read:
  20004. + # /* config.h. Generated by config.status. */
  20005. + configure_input='Generated from '`
  20006. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  20007. + `' by configure.'
  20008. + if test x"$ac_file" != x-; then
  20009. + configure_input="$ac_file. $configure_input"
  20010. + { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  20011. +$as_echo "$as_me: creating $ac_file" >&6;}
  20012. + fi
  20013. + # Neutralize special characters interpreted by sed in replacement strings.
  20014. + case $configure_input in #(
  20015. + *\&* | *\|* | *\\* )
  20016. + ac_sed_conf_input=`$as_echo "$configure_input" |
  20017. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  20018. + *) ac_sed_conf_input=$configure_input;;
  20019. + esac
  20020. +
  20021. + case $ac_tag in
  20022. + *:-:* | *:-) cat >"$tmp/stdin" \
  20023. + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  20024. +$as_echo "$as_me: error: could not create $ac_file" >&2;}
  20025. + { (exit 1); exit 1; }; } ;;
  20026. + esac
  20027. + ;;
  20028. + esac
  20029. +
  20030. + ac_dir=`$as_dirname -- "$ac_file" ||
  20031. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20032. + X"$ac_file" : 'X\(//\)[^/]' \| \
  20033. + X"$ac_file" : 'X\(//\)$' \| \
  20034. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  20035. +$as_echo X"$ac_file" |
  20036. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20037. + s//\1/
  20038. + q
  20039. + }
  20040. + /^X\(\/\/\)[^/].*/{
  20041. + s//\1/
  20042. + q
  20043. + }
  20044. + /^X\(\/\/\)$/{
  20045. + s//\1/
  20046. + q
  20047. + }
  20048. + /^X\(\/\).*/{
  20049. + s//\1/
  20050. + q
  20051. + }
  20052. + s/.*/./; q'`
  20053. + { as_dir="$ac_dir"
  20054. + case $as_dir in #(
  20055. + -*) as_dir=./$as_dir;;
  20056. + esac
  20057. + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20058. + as_dirs=
  20059. + while :; do
  20060. + case $as_dir in #(
  20061. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  20062. + *) as_qdir=$as_dir;;
  20063. + esac
  20064. + as_dirs="'$as_qdir' $as_dirs"
  20065. + as_dir=`$as_dirname -- "$as_dir" ||
  20066. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20067. + X"$as_dir" : 'X\(//\)[^/]' \| \
  20068. + X"$as_dir" : 'X\(//\)$' \| \
  20069. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20070. +$as_echo X"$as_dir" |
  20071. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20072. + s//\1/
  20073. + q
  20074. + }
  20075. + /^X\(\/\/\)[^/].*/{
  20076. + s//\1/
  20077. + q
  20078. + }
  20079. + /^X\(\/\/\)$/{
  20080. + s//\1/
  20081. + q
  20082. + }
  20083. + /^X\(\/\).*/{
  20084. + s//\1/
  20085. + q
  20086. + }
  20087. + s/.*/./; q'`
  20088. + test -d "$as_dir" && break
  20089. + done
  20090. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  20091. + } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20092. +$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20093. + { (exit 1); exit 1; }; }; }
  20094. + ac_builddir=.
  20095. +
  20096. +case "$ac_dir" in
  20097. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20098. +*)
  20099. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  20100. + # A ".." for each directory in $ac_dir_suffix.
  20101. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  20102. + case $ac_top_builddir_sub in
  20103. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20104. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  20105. + esac ;;
  20106. +esac
  20107. +ac_abs_top_builddir=$ac_pwd
  20108. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  20109. +# for backward compatibility:
  20110. +ac_top_builddir=$ac_top_build_prefix
  20111. +
  20112. +case $srcdir in
  20113. + .) # We are building in place.
  20114. + ac_srcdir=.
  20115. + ac_top_srcdir=$ac_top_builddir_sub
  20116. + ac_abs_top_srcdir=$ac_pwd ;;
  20117. + [\\/]* | ?:[\\/]* ) # Absolute name.
  20118. + ac_srcdir=$srcdir$ac_dir_suffix;
  20119. + ac_top_srcdir=$srcdir
  20120. + ac_abs_top_srcdir=$srcdir ;;
  20121. + *) # Relative name.
  20122. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  20123. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  20124. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  20125. +esac
  20126. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  20127. +
  20128. +
  20129. + case $ac_mode in
  20130. + :F)
  20131. + #
  20132. + # CONFIG_FILE
  20133. + #
  20134. +
  20135. + case $INSTALL in
  20136. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  20137. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  20138. + esac
  20139. +_ACEOF
  20140. +
  20141. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20142. +# If the template does not know about datarootdir, expand it.
  20143. +# FIXME: This hack should be removed a few years after 2.60.
  20144. +ac_datarootdir_hack=; ac_datarootdir_seen=
  20145. +
  20146. +ac_sed_dataroot='
  20147. +/datarootdir/ {
  20148. + p
  20149. + q
  20150. +}
  20151. +/@datadir@/p
  20152. +/@docdir@/p
  20153. +/@infodir@/p
  20154. +/@localedir@/p
  20155. +/@mandir@/p
  20156. +'
  20157. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  20158. +*datarootdir*) ac_datarootdir_seen=yes;;
  20159. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  20160. + { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  20161. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  20162. +_ACEOF
  20163. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20164. + ac_datarootdir_hack='
  20165. + s&@datadir@&$datadir&g
  20166. + s&@docdir@&$docdir&g
  20167. + s&@infodir@&$infodir&g
  20168. + s&@localedir@&$localedir&g
  20169. + s&@mandir@&$mandir&g
  20170. + s&\\\${datarootdir}&$datarootdir&g' ;;
  20171. +esac
  20172. +_ACEOF
  20173. +
  20174. +# Neutralize VPATH when `$srcdir' = `.'.
  20175. +# Shell code in configure.ac might set extrasub.
  20176. +# FIXME: do we really want to maintain this feature?
  20177. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20178. +ac_sed_extra="$ac_vpsub
  20179. +$extrasub
  20180. +_ACEOF
  20181. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20182. +:t
  20183. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20184. +s|@configure_input@|$ac_sed_conf_input|;t t
  20185. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  20186. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  20187. +s&@srcdir@&$ac_srcdir&;t t
  20188. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  20189. +s&@top_srcdir@&$ac_top_srcdir&;t t
  20190. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  20191. +s&@builddir@&$ac_builddir&;t t
  20192. +s&@abs_builddir@&$ac_abs_builddir&;t t
  20193. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  20194. +s&@INSTALL@&$ac_INSTALL&;t t
  20195. +$ac_datarootdir_hack
  20196. +"
  20197. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  20198. + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  20199. +$as_echo "$as_me: error: could not create $ac_file" >&2;}
  20200. + { (exit 1); exit 1; }; }
  20201. +
  20202. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  20203. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  20204. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  20205. + { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20206. +which seems to be undefined. Please make sure it is defined." >&5
  20207. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20208. +which seems to be undefined. Please make sure it is defined." >&2;}
  20209. +
  20210. + rm -f "$tmp/stdin"
  20211. + case $ac_file in
  20212. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  20213. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  20214. + esac \
  20215. + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  20216. +$as_echo "$as_me: error: could not create $ac_file" >&2;}
  20217. + { (exit 1); exit 1; }; }
  20218. + ;;
  20219. + :H)
  20220. + #
  20221. + # CONFIG_HEADER
  20222. + #
  20223. + if test x"$ac_file" != x-; then
  20224. + {
  20225. + $as_echo "/* $configure_input */" \
  20226. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  20227. + } >"$tmp/config.h" \
  20228. + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  20229. +$as_echo "$as_me: error: could not create $ac_file" >&2;}
  20230. + { (exit 1); exit 1; }; }
  20231. + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  20232. + { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  20233. +$as_echo "$as_me: $ac_file is unchanged" >&6;}
  20234. + else
  20235. + rm -f "$ac_file"
  20236. + mv "$tmp/config.h" "$ac_file" \
  20237. + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  20238. +$as_echo "$as_me: error: could not create $ac_file" >&2;}
  20239. + { (exit 1); exit 1; }; }
  20240. + fi
  20241. + else
  20242. + $as_echo "/* $configure_input */" \
  20243. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  20244. + || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  20245. +$as_echo "$as_me: error: could not create -" >&2;}
  20246. + { (exit 1); exit 1; }; }
  20247. + fi
  20248. + ;;
  20249. +
  20250. + :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  20251. +$as_echo "$as_me: executing $ac_file commands" >&6;}
  20252. + ;;
  20253. + esac
  20254. +
  20255. +
  20256. + case $ac_file$ac_mode in
  20257. + "libtool":C)
  20258. +
  20259. + # See if we are running on zsh, and set the options which allow our
  20260. + # commands through without removal of \ escapes.
  20261. + if test -n "${ZSH_VERSION+set}" ; then
  20262. + setopt NO_GLOB_SUBST
  20263. + fi
  20264. +
  20265. + cfgfile="${ofile}T"
  20266. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  20267. + $RM "$cfgfile"
  20268. +
  20269. + cat <<_LT_EOF >> "$cfgfile"
  20270. +#! $SHELL
  20271. +
  20272. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  20273. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  20274. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  20275. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  20276. +#
  20277. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  20278. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  20279. +# Written by Gordon Matzigkeit, 1996
  20280. +#
  20281. +# This file is part of GNU Libtool.
  20282. +#
  20283. +# GNU Libtool is free software; you can redistribute it and/or
  20284. +# modify it under the terms of the GNU General Public License as
  20285. +# published by the Free Software Foundation; either version 2 of
  20286. +# the License, or (at your option) any later version.
  20287. +#
  20288. +# As a special exception to the GNU General Public License,
  20289. +# if you distribute this file as part of a program or library that
  20290. +# is built using GNU Libtool, you may include this file under the
  20291. +# same distribution terms that you use for the rest of that program.
  20292. +#
  20293. +# GNU Libtool is distributed in the hope that it will be useful,
  20294. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  20295. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20296. +# GNU General Public License for more details.
  20297. +#
  20298. +# You should have received a copy of the GNU General Public License
  20299. +# along with GNU Libtool; see the file COPYING. If not, a copy
  20300. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  20301. +# obtained by writing to the Free Software Foundation, Inc.,
  20302. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20303. +
  20304. +
  20305. +# The names of the tagged configurations supported by this script.
  20306. +available_tags=""
  20307. +
  20308. +# ### BEGIN LIBTOOL CONFIG
  20309. +
  20310. +# Which release of libtool.m4 was used?
  20311. +macro_version=$macro_version
  20312. +macro_revision=$macro_revision
  20313. +
  20314. +# Whether or not to build shared libraries.
  20315. +build_libtool_libs=$enable_shared
  20316. +
  20317. +# Whether or not to build static libraries.
  20318. +build_old_libs=$enable_static
  20319. +
  20320. +# What type of objects to build.
  20321. +pic_mode=$pic_mode
  20322. +
  20323. +# Whether or not to optimize for fast installation.
  20324. +fast_install=$enable_fast_install
  20325. +
  20326. +# The host system.
  20327. +host_alias=$host_alias
  20328. +host=$host
  20329. +host_os=$host_os
  20330. +
  20331. +# The build system.
  20332. +build_alias=$build_alias
  20333. +build=$build
  20334. +build_os=$build_os
  20335. +
  20336. +# A sed program that does not truncate output.
  20337. +SED=$lt_SED
  20338. -ac_cv_func_strmode=no
  20339. -fi
  20340. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  20341. -fi
  20342. -echo "$as_me:$LINENO: result: $ac_cv_func_strmode" >&5
  20343. -echo "${ECHO_T}$ac_cv_func_strmode" >&6
  20344. -if test $ac_cv_func_strmode = yes; then
  20345. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  20346. +Xsed="\$SED -e 1s/^X//"
  20347. -cat >>confdefs.h <<\_ACEOF
  20348. -#define HAVE_STRMODE 1
  20349. -_ACEOF
  20350. +# A grep program that handles long lines.
  20351. +GREP=$lt_GREP
  20352. -else
  20353. - LIBOBJS="$LIBOBJS strmode.$ac_objext"
  20354. +# An ERE matcher.
  20355. +EGREP=$lt_EGREP
  20356. -fi
  20357. +# A literal string matcher.
  20358. +FGREP=$lt_FGREP
  20359. +# A BSD- or MS-compatible name lister.
  20360. +NM=$lt_NM
  20361. +# Whether we need soft or hard links.
  20362. +LN_S=$lt_LN_S
  20363. +# What is the maximum length of a command?
  20364. +max_cmd_len=$max_cmd_len
  20365. +# Object file suffix (normally "o").
  20366. +objext=$ac_objext
  20367. +# Executable file suffix (normally "").
  20368. +exeext=$exeext
  20369. -cat >>confdefs.h <<\_ACEOF
  20370. -#define NEED_STRSEP 1
  20371. -_ACEOF
  20372. +# whether the shell understands "unset".
  20373. +lt_unset=$lt_unset
  20374. - echo "$as_me:$LINENO: checking for strsep" >&5
  20375. -echo $ECHO_N "checking for strsep... $ECHO_C" >&6
  20376. -if test "${ac_cv_func_strsep+set}" = set; then
  20377. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20378. -else
  20379. - cat >conftest.$ac_ext <<_ACEOF
  20380. -#line $LINENO "configure"
  20381. -/* confdefs.h. */
  20382. -_ACEOF
  20383. -cat confdefs.h >>conftest.$ac_ext
  20384. -cat >>conftest.$ac_ext <<_ACEOF
  20385. -/* end confdefs.h. */
  20386. -/* System header to define __stub macros and hopefully few prototypes,
  20387. - which can conflict with char strsep (); below.
  20388. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20389. - <limits.h> exists even on freestanding compilers. */
  20390. -#ifdef __STDC__
  20391. -# include <limits.h>
  20392. -#else
  20393. -# include <assert.h>
  20394. -#endif
  20395. -/* Override any gcc2 internal prototype to avoid an error. */
  20396. -#ifdef __cplusplus
  20397. -extern "C"
  20398. -{
  20399. -#endif
  20400. -/* We use char because int might match the return type of a gcc2
  20401. - builtin and then its argument prototype would still apply. */
  20402. -char strsep ();
  20403. -/* The GNU C library defines this for functions which it implements
  20404. - to always fail with ENOSYS. Some functions are actually named
  20405. - something starting with __ and the normal name is an alias. */
  20406. -#if defined (__stub_strsep) || defined (__stub___strsep)
  20407. -choke me
  20408. -#else
  20409. -char (*f) () = strsep;
  20410. -#endif
  20411. -#ifdef __cplusplus
  20412. -}
  20413. -#endif
  20414. +# turn spaces into newlines.
  20415. +SP2NL=$lt_lt_SP2NL
  20416. -int
  20417. -main ()
  20418. -{
  20419. -return f != strsep;
  20420. - ;
  20421. - return 0;
  20422. -}
  20423. -_ACEOF
  20424. -rm -f conftest.$ac_objext conftest$ac_exeext
  20425. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20426. - (eval $ac_link) 2>&5
  20427. - ac_status=$?
  20428. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20429. - (exit $ac_status); } &&
  20430. - { ac_try='test -s conftest$ac_exeext'
  20431. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20432. - (eval $ac_try) 2>&5
  20433. - ac_status=$?
  20434. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20435. - (exit $ac_status); }; }; then
  20436. - ac_cv_func_strsep=yes
  20437. -else
  20438. - echo "$as_me: failed program was:" >&5
  20439. -sed 's/^/| /' conftest.$ac_ext >&5
  20440. +# turn newlines into spaces.
  20441. +NL2SP=$lt_lt_NL2SP
  20442. -ac_cv_func_strsep=no
  20443. -fi
  20444. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  20445. -fi
  20446. -echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
  20447. -echo "${ECHO_T}$ac_cv_func_strsep" >&6
  20448. -if test $ac_cv_func_strsep = yes; then
  20449. +# How to create reloadable object files.
  20450. +reload_flag=$lt_reload_flag
  20451. +reload_cmds=$lt_reload_cmds
  20452. -cat >>confdefs.h <<\_ACEOF
  20453. -#define HAVE_STRSEP 1
  20454. -_ACEOF
  20455. +# An object symbol dumper.
  20456. +OBJDUMP=$lt_OBJDUMP
  20457. -else
  20458. - LIBOBJS="$LIBOBJS strsep.$ac_objext"
  20459. +# Method to check whether dependent libraries are shared objects.
  20460. +deplibs_check_method=$lt_deplibs_check_method
  20461. -fi
  20462. +# Command to use when deplibs_check_method == "file_magic".
  20463. +file_magic_cmd=$lt_file_magic_cmd
  20464. +# The archiver.
  20465. +AR=$lt_AR
  20466. +AR_FLAGS=$lt_AR_FLAGS
  20467. +# A symbol stripping program.
  20468. +STRIP=$lt_STRIP
  20469. +# Commands used to install an old-style archive.
  20470. +RANLIB=$lt_RANLIB
  20471. +old_postinstall_cmds=$lt_old_postinstall_cmds
  20472. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  20473. +# A C compiler.
  20474. +LTCC=$lt_CC
  20475. +# LTCC compiler flags.
  20476. +LTCFLAGS=$lt_CFLAGS
  20477. -# Check whether --with-zlib or --without-zlib was given.
  20478. -if test "${with_zlib+set}" = set; then
  20479. - withval="$with_zlib"
  20480. +# Take the output of nm and produce a listing of raw symbols and C names.
  20481. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  20482. -else
  20483. - with_zlib=yes
  20484. -fi;
  20485. -if test "$with_zlib" = "yes"; then
  20486. +# Transform the output of nm in a proper C declaration.
  20487. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  20488. -echo "$as_me:$LINENO: checking for gzread in -lz" >&5
  20489. -echo $ECHO_N "checking for gzread in -lz... $ECHO_C" >&6
  20490. -if test "${ac_cv_lib_z_gzread+set}" = set; then
  20491. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20492. -else
  20493. - ac_check_lib_save_LIBS=$LIBS
  20494. -LIBS="-lz $LIBS"
  20495. -cat >conftest.$ac_ext <<_ACEOF
  20496. -#line $LINENO "configure"
  20497. -/* confdefs.h. */
  20498. -_ACEOF
  20499. -cat confdefs.h >>conftest.$ac_ext
  20500. -cat >>conftest.$ac_ext <<_ACEOF
  20501. -/* end confdefs.h. */
  20502. +# Transform the output of nm in a C name address pair.
  20503. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  20504. -/* Override any gcc2 internal prototype to avoid an error. */
  20505. -#ifdef __cplusplus
  20506. -extern "C"
  20507. -#endif
  20508. -/* We use char because int might match the return type of a gcc2
  20509. - builtin and then its argument prototype would still apply. */
  20510. -char gzread ();
  20511. -int
  20512. -main ()
  20513. -{
  20514. -gzread ();
  20515. - ;
  20516. - return 0;
  20517. -}
  20518. -_ACEOF
  20519. -rm -f conftest.$ac_objext conftest$ac_exeext
  20520. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20521. - (eval $ac_link) 2>&5
  20522. - ac_status=$?
  20523. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20524. - (exit $ac_status); } &&
  20525. - { ac_try='test -s conftest$ac_exeext'
  20526. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20527. - (eval $ac_try) 2>&5
  20528. - ac_status=$?
  20529. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20530. - (exit $ac_status); }; }; then
  20531. - ac_cv_lib_z_gzread=yes
  20532. -else
  20533. - echo "$as_me: failed program was:" >&5
  20534. -sed 's/^/| /' conftest.$ac_ext >&5
  20535. +# Transform the output of nm in a C name address pair when lib prefix is needed.
  20536. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  20537. -ac_cv_lib_z_gzread=no
  20538. -fi
  20539. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  20540. -LIBS=$ac_check_lib_save_LIBS
  20541. -fi
  20542. -echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzread" >&5
  20543. -echo "${ECHO_T}$ac_cv_lib_z_gzread" >&6
  20544. -if test $ac_cv_lib_z_gzread = yes; then
  20545. - cat >>confdefs.h <<_ACEOF
  20546. -#define HAVE_LIBZ 1
  20547. -_ACEOF
  20548. +# The name of the directory that contains temporary libtool files.
  20549. +objdir=$objdir
  20550. - LIBS="-lz $LIBS"
  20551. +# Shell to use when invoking shell scripts.
  20552. +SHELL=$lt_SHELL
  20553. -fi
  20554. +# An echo program that does not interpret backslashes.
  20555. +ECHO=$lt_ECHO
  20556. -fi
  20557. +# Used to examine libraries when file_magic_cmd begins with "file".
  20558. +MAGIC_CMD=$MAGIC_CMD
  20559. +# Must we lock files when doing compilation?
  20560. +need_locks=$lt_need_locks
  20561. - ac_config_files="$ac_config_files Makefile lib/Makefile libtar/Makefile doc/Makefile"
  20562. +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  20563. +DSYMUTIL=$lt_DSYMUTIL
  20564. -cat >confcache <<\_ACEOF
  20565. -# This file is a shell script that caches the results of configure
  20566. -# tests run on this system so they can be shared between configure
  20567. -# scripts and configure runs, see configure's option --config-cache.
  20568. -# It is not useful on other systems. If it contains results you don't
  20569. -# want to keep, you may remove or edit it.
  20570. -#
  20571. -# config.status only pays attention to the cache file if you give it
  20572. -# the --recheck option to rerun configure.
  20573. -#
  20574. -# `ac_cv_env_foo' variables (set or unset) will be overridden when
  20575. -# loading this file, other *unset* `ac_cv_foo' will be assigned the
  20576. -# following values.
  20577. +# Tool to change global to local symbols on Mac OS X.
  20578. +NMEDIT=$lt_NMEDIT
  20579. -_ACEOF
  20580. +# Tool to manipulate fat objects and archives on Mac OS X.
  20581. +LIPO=$lt_LIPO
  20582. -# The following way of writing the cache mishandles newlines in values,
  20583. -# but we know of no workaround that is simple, portable, and efficient.
  20584. -# So, don't put newlines in cache variables' values.
  20585. -# Ultrix sh set writes to stderr and can't be redirected directly,
  20586. -# and sets the high bit in the cache file unless we assign to the vars.
  20587. -{
  20588. - (set) 2>&1 |
  20589. - case `(ac_space=' '; set | grep ac_space) 2>&1` in
  20590. - *ac_space=\ *)
  20591. - # `set' does not quote correctly, so add quotes (double-quote
  20592. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  20593. - sed -n \
  20594. - "s/'/'\\\\''/g;
  20595. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20596. - ;;
  20597. - *)
  20598. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  20599. - sed -n \
  20600. - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  20601. - ;;
  20602. - esac;
  20603. -} |
  20604. - sed '
  20605. - t clear
  20606. - : clear
  20607. - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20608. - t end
  20609. - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20610. - : end' >>confcache
  20611. -if diff $cache_file confcache >/dev/null 2>&1; then :; else
  20612. - if test -w $cache_file; then
  20613. - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  20614. - cat confcache >$cache_file
  20615. - else
  20616. - echo "not updating unwritable cache $cache_file"
  20617. - fi
  20618. -fi
  20619. -rm -f confcache
  20620. +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  20621. +OTOOL=$lt_OTOOL
  20622. -test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20623. -# Let make expand exec_prefix.
  20624. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20625. +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  20626. +OTOOL64=$lt_OTOOL64
  20627. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  20628. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  20629. -# trailing colons and then remove the whole line if VPATH becomes empty
  20630. -# (actually we leave an empty line to preserve line numbers).
  20631. -if test "x$srcdir" = x.; then
  20632. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  20633. -s/:*\$(srcdir):*/:/;
  20634. -s/:*\${srcdir}:*/:/;
  20635. -s/:*@srcdir@:*/:/;
  20636. -s/^\([^=]*=[ ]*\):*/\1/;
  20637. -s/:*$//;
  20638. -s/^[^=]*=[ ]*$//;
  20639. -}'
  20640. -fi
  20641. +# Old archive suffix (normally "a").
  20642. +libext=$libext
  20643. -DEFS=-DHAVE_CONFIG_H
  20644. +# Shared library suffix (normally ".so").
  20645. +shrext_cmds=$lt_shrext_cmds
  20646. -ac_libobjs=
  20647. -ac_ltlibobjs=
  20648. -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20649. - # 1. Remove the extension, and $U if already installed.
  20650. - ac_i=`echo "$ac_i" |
  20651. - sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  20652. - # 2. Add them.
  20653. - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  20654. - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  20655. -done
  20656. -LIBOBJS=$ac_libobjs
  20657. +# The commands to extract the exported symbol list from a shared archive.
  20658. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  20659. -LTLIBOBJS=$ac_ltlibobjs
  20660. +# Variables whose values should be saved in libtool wrapper scripts and
  20661. +# restored at link time.
  20662. +variables_saved_for_relink=$lt_variables_saved_for_relink
  20663. +# Do we need the "lib" prefix for modules?
  20664. +need_lib_prefix=$need_lib_prefix
  20665. +# Do we need a version for libraries?
  20666. +need_version=$need_version
  20667. -: ${CONFIG_STATUS=./config.status}
  20668. -ac_clean_files_save=$ac_clean_files
  20669. -ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  20670. -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  20671. -echo "$as_me: creating $CONFIG_STATUS" >&6;}
  20672. -cat >$CONFIG_STATUS <<_ACEOF
  20673. -#! $SHELL
  20674. -# Generated by $as_me.
  20675. -# Run this file to recreate the current configuration.
  20676. -# Compiler output produced by configure, useful for debugging
  20677. -# configure, is in config.log if it exists.
  20678. +# Library versioning type.
  20679. +version_type=$version_type
  20680. -debug=false
  20681. -ac_cs_recheck=false
  20682. -ac_cs_silent=false
  20683. -SHELL=\${CONFIG_SHELL-$SHELL}
  20684. -_ACEOF
  20685. +# Shared library runtime path variable.
  20686. +runpath_var=$runpath_var
  20687. -cat >>$CONFIG_STATUS <<\_ACEOF
  20688. -## --------------------- ##
  20689. -## M4sh Initialization. ##
  20690. -## --------------------- ##
  20691. +# Shared library path variable.
  20692. +shlibpath_var=$shlibpath_var
  20693. -# Be Bourne compatible
  20694. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  20695. - emulate sh
  20696. - NULLCMD=:
  20697. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20698. - # is contrary to our usage. Disable this feature.
  20699. - alias -g '${1+"$@"}'='"$@"'
  20700. -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  20701. - set -o posix
  20702. -fi
  20703. +# Is shlibpath searched before the hard-coded library search path?
  20704. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  20705. -# Support unset when possible.
  20706. -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  20707. - as_unset=unset
  20708. -else
  20709. - as_unset=false
  20710. -fi
  20711. +# Format of library name prefix.
  20712. +libname_spec=$lt_libname_spec
  20713. +# List of archive names. First name is the real one, the rest are links.
  20714. +# The last name is the one that the linker finds with -lNAME
  20715. +library_names_spec=$lt_library_names_spec
  20716. -# Work around bugs in pre-3.0 UWIN ksh.
  20717. -$as_unset ENV MAIL MAILPATH
  20718. -PS1='$ '
  20719. -PS2='> '
  20720. -PS4='+ '
  20721. +# The coded name of the library, if different from the real name.
  20722. +soname_spec=$lt_soname_spec
  20723. -# NLS nuisances.
  20724. -for as_var in \
  20725. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  20726. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  20727. - LC_TELEPHONE LC_TIME
  20728. -do
  20729. - if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  20730. - eval $as_var=C; export $as_var
  20731. - else
  20732. - $as_unset $as_var
  20733. - fi
  20734. -done
  20735. +# Command to use after installation of a shared archive.
  20736. +postinstall_cmds=$lt_postinstall_cmds
  20737. -# Required to use basename.
  20738. -if expr a : '\(a\)' >/dev/null 2>&1; then
  20739. - as_expr=expr
  20740. -else
  20741. - as_expr=false
  20742. -fi
  20743. +# Command to use after uninstallation of a shared archive.
  20744. +postuninstall_cmds=$lt_postuninstall_cmds
  20745. -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  20746. - as_basename=basename
  20747. -else
  20748. - as_basename=false
  20749. -fi
  20750. +# Commands used to finish a libtool library installation in a directory.
  20751. +finish_cmds=$lt_finish_cmds
  20752. +# As "finish_cmds", except a single script fragment to be evaled but
  20753. +# not shown.
  20754. +finish_eval=$lt_finish_eval
  20755. -# Name of the executable.
  20756. -as_me=`$as_basename "$0" ||
  20757. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20758. - X"$0" : 'X\(//\)$' \| \
  20759. - X"$0" : 'X\(/\)$' \| \
  20760. - . : '\(.\)' 2>/dev/null ||
  20761. -echo X/"$0" |
  20762. - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  20763. - /^X\/\(\/\/\)$/{ s//\1/; q; }
  20764. - /^X\/\(\/\).*/{ s//\1/; q; }
  20765. - s/.*/./; q'`
  20766. +# Whether we should hardcode library paths into libraries.
  20767. +hardcode_into_libs=$hardcode_into_libs
  20768. +# Compile-time system search path for libraries.
  20769. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  20770. -# PATH needs CR, and LINENO needs CR and PATH.
  20771. -# Avoid depending upon Character Ranges.
  20772. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20773. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20774. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20775. -as_cr_digits='0123456789'
  20776. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  20777. +# Run-time system search path for libraries.
  20778. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  20779. -# The user is always right.
  20780. -if test "${PATH_SEPARATOR+set}" != set; then
  20781. - echo "#! /bin/sh" >conf$$.sh
  20782. - echo "exit 0" >>conf$$.sh
  20783. - chmod +x conf$$.sh
  20784. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  20785. - PATH_SEPARATOR=';'
  20786. - else
  20787. - PATH_SEPARATOR=:
  20788. - fi
  20789. - rm -f conf$$.sh
  20790. -fi
  20791. +# Whether dlopen is supported.
  20792. +dlopen_support=$enable_dlopen
  20793. +# Whether dlopen of programs is supported.
  20794. +dlopen_self=$enable_dlopen_self
  20795. - as_lineno_1=$LINENO
  20796. - as_lineno_2=$LINENO
  20797. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  20798. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  20799. - test "x$as_lineno_3" = "x$as_lineno_2" || {
  20800. - # Find who we are. Look in the path if we contain no path at all
  20801. - # relative or not.
  20802. - case $0 in
  20803. - *[\\/]* ) as_myself=$0 ;;
  20804. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20805. -for as_dir in $PATH
  20806. -do
  20807. - IFS=$as_save_IFS
  20808. - test -z "$as_dir" && as_dir=.
  20809. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20810. -done
  20811. +# Whether dlopen of statically linked programs is supported.
  20812. +dlopen_self_static=$enable_dlopen_self_static
  20813. - ;;
  20814. - esac
  20815. - # We did not find ourselves, most probably we were run as `sh COMMAND'
  20816. - # in which case we are not to be found in the path.
  20817. - if test "x$as_myself" = x; then
  20818. - as_myself=$0
  20819. - fi
  20820. - if test ! -f "$as_myself"; then
  20821. - { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  20822. -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  20823. - { (exit 1); exit 1; }; }
  20824. - fi
  20825. - case $CONFIG_SHELL in
  20826. - '')
  20827. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20828. -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  20829. -do
  20830. - IFS=$as_save_IFS
  20831. - test -z "$as_dir" && as_dir=.
  20832. - for as_base in sh bash ksh sh5; do
  20833. - case $as_dir in
  20834. - /*)
  20835. - if ("$as_dir/$as_base" -c '
  20836. - as_lineno_1=$LINENO
  20837. - as_lineno_2=$LINENO
  20838. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  20839. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  20840. - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  20841. - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  20842. - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  20843. - CONFIG_SHELL=$as_dir/$as_base
  20844. - export CONFIG_SHELL
  20845. - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  20846. - fi;;
  20847. - esac
  20848. - done
  20849. -done
  20850. -;;
  20851. - esac
  20852. +# Commands to strip libraries.
  20853. +old_striplib=$lt_old_striplib
  20854. +striplib=$lt_striplib
  20855. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  20856. - # uniformly replaced by the line number. The first 'sed' inserts a
  20857. - # line-number line before each line; the second 'sed' does the real
  20858. - # work. The second script uses 'N' to pair each line-number line
  20859. - # with the numbered line, and appends trailing '-' during
  20860. - # substitution so that $LINENO is not a special case at line end.
  20861. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  20862. - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  20863. - sed '=' <$as_myself |
  20864. - sed '
  20865. - N
  20866. - s,$,-,
  20867. - : loop
  20868. - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  20869. - t loop
  20870. - s,-$,,
  20871. - s,^['$as_cr_digits']*\n,,
  20872. - ' >$as_me.lineno &&
  20873. - chmod +x $as_me.lineno ||
  20874. - { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  20875. -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  20876. - { (exit 1); exit 1; }; }
  20877. - # Don't try to exec as it changes $[0], causing all sort of problems
  20878. - # (the dirname of $[0] is not the place where we might find the
  20879. - # original and so on. Autoconf is especially sensible to this).
  20880. - . ./$as_me.lineno
  20881. - # Exit status is that of the last command.
  20882. - exit
  20883. -}
  20884. +# The linker used to build libraries.
  20885. +LD=$lt_LD
  20886. +
  20887. +# Commands used to build an old-style archive.
  20888. +old_archive_cmds=$lt_old_archive_cmds
  20889. +
  20890. +# A language specific compiler.
  20891. +CC=$lt_compiler
  20892. +
  20893. +# Is the compiler the GNU compiler?
  20894. +with_gcc=$GCC
  20895. +
  20896. +# Compiler flag to turn off builtin functions.
  20897. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  20898. +# How to pass a linker flag through the compiler.
  20899. +wl=$lt_lt_prog_compiler_wl
  20900. -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  20901. - *c*,-n*) ECHO_N= ECHO_C='
  20902. -' ECHO_T=' ' ;;
  20903. - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  20904. - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  20905. -esac
  20906. +# Additional compiler flags for building library objects.
  20907. +pic_flag=$lt_lt_prog_compiler_pic
  20908. -if expr a : '\(a\)' >/dev/null 2>&1; then
  20909. - as_expr=expr
  20910. -else
  20911. - as_expr=false
  20912. -fi
  20913. +# Compiler flag to prevent dynamic linking.
  20914. +link_static_flag=$lt_lt_prog_compiler_static
  20915. -rm -f conf$$ conf$$.exe conf$$.file
  20916. -echo >conf$$.file
  20917. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  20918. - # We could just check for DJGPP; but this test a) works b) is more generic
  20919. - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  20920. - if test -f conf$$.exe; then
  20921. - # Don't use ln at all; we don't have any links
  20922. - as_ln_s='cp -p'
  20923. - else
  20924. - as_ln_s='ln -s'
  20925. - fi
  20926. -elif ln conf$$.file conf$$ 2>/dev/null; then
  20927. - as_ln_s=ln
  20928. -else
  20929. - as_ln_s='cp -p'
  20930. -fi
  20931. -rm -f conf$$ conf$$.exe conf$$.file
  20932. +# Does compiler simultaneously support -c and -o options?
  20933. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  20934. -if mkdir -p . 2>/dev/null; then
  20935. - as_mkdir_p=:
  20936. -else
  20937. - as_mkdir_p=false
  20938. -fi
  20939. +# Whether or not to add -lc for building shared libraries.
  20940. +build_libtool_need_lc=$archive_cmds_need_lc
  20941. -as_executable_p="test -f"
  20942. +# Whether or not to disallow shared libs when runtime libs are static.
  20943. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  20944. -# Sed expression to map a string onto a valid CPP name.
  20945. -as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  20946. +# Compiler flag to allow reflexive dlopens.
  20947. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  20948. -# Sed expression to map a string onto a valid variable name.
  20949. -as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  20950. +# Compiler flag to generate shared objects directly from archives.
  20951. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  20952. +# Whether the compiler copes with passing no objects directly.
  20953. +compiler_needs_object=$lt_compiler_needs_object
  20954. -# IFS
  20955. -# We need space, tab and new line, in precisely that order.
  20956. -as_nl='
  20957. -'
  20958. -IFS=" $as_nl"
  20959. +# Create an old-style archive from a shared archive.
  20960. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  20961. -# CDPATH.
  20962. -$as_unset CDPATH
  20963. +# Create a temporary old-style archive to link instead of a shared archive.
  20964. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  20965. -exec 6>&1
  20966. +# Commands used to build a shared archive.
  20967. +archive_cmds=$lt_archive_cmds
  20968. +archive_expsym_cmds=$lt_archive_expsym_cmds
  20969. -# Open the log real soon, to keep \$[0] and so on meaningful, and to
  20970. -# report actual input values of CONFIG_FILES etc. instead of their
  20971. -# values after options handling. Logging --version etc. is OK.
  20972. -exec 5>>config.log
  20973. -{
  20974. - echo
  20975. - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  20976. -## Running $as_me. ##
  20977. -_ASBOX
  20978. -} >&5
  20979. -cat >&5 <<_CSEOF
  20980. +# Commands used to build a loadable module if different from building
  20981. +# a shared archive.
  20982. +module_cmds=$lt_module_cmds
  20983. +module_expsym_cmds=$lt_module_expsym_cmds
  20984. -This file was extended by libtar $as_me 1.2.11, which was
  20985. -generated by GNU Autoconf 2.57. Invocation command line was
  20986. +# Whether we are building with GNU ld or not.
  20987. +with_gnu_ld=$lt_with_gnu_ld
  20988. - CONFIG_FILES = $CONFIG_FILES
  20989. - CONFIG_HEADERS = $CONFIG_HEADERS
  20990. - CONFIG_LINKS = $CONFIG_LINKS
  20991. - CONFIG_COMMANDS = $CONFIG_COMMANDS
  20992. - $ $0 $@
  20993. +# Flag that allows shared libraries with undefined symbols to be built.
  20994. +allow_undefined_flag=$lt_allow_undefined_flag
  20995. -_CSEOF
  20996. -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  20997. -echo >&5
  20998. -_ACEOF
  20999. +# Flag that enforces no undefined symbols.
  21000. +no_undefined_flag=$lt_no_undefined_flag
  21001. -# Files that config.status was made for.
  21002. -if test -n "$ac_config_files"; then
  21003. - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  21004. -fi
  21005. +# Flag to hardcode \$libdir into a binary during linking.
  21006. +# This must work even if \$libdir does not exist
  21007. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  21008. -if test -n "$ac_config_headers"; then
  21009. - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  21010. -fi
  21011. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  21012. +# during linking. This must work even if \$libdir does not exist.
  21013. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  21014. -if test -n "$ac_config_links"; then
  21015. - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  21016. -fi
  21017. +# Whether we need a single "-rpath" flag with a separated argument.
  21018. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  21019. -if test -n "$ac_config_commands"; then
  21020. - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  21021. -fi
  21022. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21023. +# DIR into the resulting binary.
  21024. +hardcode_direct=$hardcode_direct
  21025. -cat >>$CONFIG_STATUS <<\_ACEOF
  21026. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21027. +# DIR into the resulting binary and the resulting library dependency is
  21028. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  21029. +# library is relocated.
  21030. +hardcode_direct_absolute=$hardcode_direct_absolute
  21031. -ac_cs_usage="\
  21032. -\`$as_me' instantiates files from templates according to the
  21033. -current configuration.
  21034. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  21035. +# into the resulting binary.
  21036. +hardcode_minus_L=$hardcode_minus_L
  21037. -Usage: $0 [OPTIONS] [FILE]...
  21038. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  21039. +# into the resulting binary.
  21040. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  21041. - -h, --help print this help, then exit
  21042. - -V, --version print version number, then exit
  21043. - -q, --quiet do not print progress messages
  21044. - -d, --debug don't remove temporary files
  21045. - --recheck update $as_me by reconfiguring in the same conditions
  21046. - --file=FILE[:TEMPLATE]
  21047. - instantiate the configuration file FILE
  21048. - --header=FILE[:TEMPLATE]
  21049. - instantiate the configuration header FILE
  21050. +# Set to "yes" if building a shared library automatically hardcodes DIR
  21051. +# into the library and all subsequent libraries and executables linked
  21052. +# against it.
  21053. +hardcode_automatic=$hardcode_automatic
  21054. -Configuration files:
  21055. -$config_files
  21056. +# Set to yes if linker adds runtime paths of dependent libraries
  21057. +# to runtime path list.
  21058. +inherit_rpath=$inherit_rpath
  21059. -Configuration headers:
  21060. -$config_headers
  21061. +# Whether libtool must link a program against all its dependency libraries.
  21062. +link_all_deplibs=$link_all_deplibs
  21063. -Report bugs to <bug-autoconf@gnu.org>."
  21064. -_ACEOF
  21065. +# Fix the shell variable \$srcfile for the compiler.
  21066. +fix_srcfile_path=$lt_fix_srcfile_path
  21067. -cat >>$CONFIG_STATUS <<_ACEOF
  21068. -ac_cs_version="\\
  21069. -libtar config.status 1.2.11
  21070. -configured by $0, generated by GNU Autoconf 2.57,
  21071. - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  21072. +# Set to "yes" if exported symbols are required.
  21073. +always_export_symbols=$always_export_symbols
  21074. -Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  21075. -Free Software Foundation, Inc.
  21076. -This config.status script is free software; the Free Software Foundation
  21077. -gives unlimited permission to copy, distribute and modify it."
  21078. -srcdir=$srcdir
  21079. -INSTALL="$INSTALL"
  21080. -_ACEOF
  21081. +# The commands to list exported symbols.
  21082. +export_symbols_cmds=$lt_export_symbols_cmds
  21083. -cat >>$CONFIG_STATUS <<\_ACEOF
  21084. -# If no file are specified by the user, then we need to provide default
  21085. -# value. By we need to know if files were specified by the user.
  21086. -ac_need_defaults=:
  21087. -while test $# != 0
  21088. -do
  21089. - case $1 in
  21090. - --*=*)
  21091. - ac_option=`expr "x$1" : 'x\([^=]*\)='`
  21092. - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  21093. - ac_shift=:
  21094. - ;;
  21095. - -*)
  21096. - ac_option=$1
  21097. - ac_optarg=$2
  21098. - ac_shift=shift
  21099. - ;;
  21100. - *) # This is not an option, so the user has probably given explicit
  21101. - # arguments.
  21102. - ac_option=$1
  21103. - ac_need_defaults=false;;
  21104. - esac
  21105. +# Symbols that should not be listed in the preloaded symbols.
  21106. +exclude_expsyms=$lt_exclude_expsyms
  21107. - case $ac_option in
  21108. - # Handling of the options.
  21109. -_ACEOF
  21110. -cat >>$CONFIG_STATUS <<\_ACEOF
  21111. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21112. - ac_cs_recheck=: ;;
  21113. - --version | --vers* | -V )
  21114. - echo "$ac_cs_version"; exit 0 ;;
  21115. - --he | --h)
  21116. - # Conflict between --help and --header
  21117. - { { echo "$as_me:$LINENO: error: ambiguous option: $1
  21118. -Try \`$0 --help' for more information." >&5
  21119. -echo "$as_me: error: ambiguous option: $1
  21120. -Try \`$0 --help' for more information." >&2;}
  21121. - { (exit 1); exit 1; }; };;
  21122. - --help | --hel | -h )
  21123. - echo "$ac_cs_usage"; exit 0 ;;
  21124. - --debug | --d* | -d )
  21125. - debug=: ;;
  21126. - --file | --fil | --fi | --f )
  21127. - $ac_shift
  21128. - CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  21129. - ac_need_defaults=false;;
  21130. - --header | --heade | --head | --hea )
  21131. - $ac_shift
  21132. - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  21133. - ac_need_defaults=false;;
  21134. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21135. - | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21136. - ac_cs_silent=: ;;
  21137. +# Symbols that must always be exported.
  21138. +include_expsyms=$lt_include_expsyms
  21139. - # This is an error.
  21140. - -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  21141. -Try \`$0 --help' for more information." >&5
  21142. -echo "$as_me: error: unrecognized option: $1
  21143. -Try \`$0 --help' for more information." >&2;}
  21144. - { (exit 1); exit 1; }; } ;;
  21145. +# Commands necessary for linking programs (against libraries) with templates.
  21146. +prelink_cmds=$lt_prelink_cmds
  21147. - *) ac_config_targets="$ac_config_targets $1" ;;
  21148. +# Specify filename containing input files.
  21149. +file_list_spec=$lt_file_list_spec
  21150. - esac
  21151. - shift
  21152. -done
  21153. +# How to hardcode a shared library path into an executable.
  21154. +hardcode_action=$hardcode_action
  21155. -ac_configure_extra_args=
  21156. +# ### END LIBTOOL CONFIG
  21157. -if $ac_cs_silent; then
  21158. - exec 6>/dev/null
  21159. - ac_configure_extra_args="$ac_configure_extra_args --silent"
  21160. -fi
  21161. +_LT_EOF
  21162. -_ACEOF
  21163. -cat >>$CONFIG_STATUS <<_ACEOF
  21164. -if \$ac_cs_recheck; then
  21165. - echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  21166. - exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21167. + case $host_os in
  21168. + aix3*)
  21169. + cat <<\_LT_EOF >> "$cfgfile"
  21170. +# AIX sometimes has problems with the GCC collect2 program. For some
  21171. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  21172. +# vanish in a puff of smoke.
  21173. +if test "X${COLLECT_NAMES+set}" != Xset; then
  21174. + COLLECT_NAMES=
  21175. + export COLLECT_NAMES
  21176. fi
  21177. +_LT_EOF
  21178. + ;;
  21179. + esac
  21180. -_ACEOF
  21181. +ltmain="$ac_aux_dir/ltmain.sh"
  21182. + # We use sed instead of cat because bash on DJGPP gets confused if
  21183. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  21184. + # text mode, it properly converts lines to CR/LF. This bash problem
  21185. + # is reportedly fixed, but why not run on old versions too?
  21186. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  21187. + || (rm -f "$cfgfile"; exit 1)
  21188. +
  21189. + case $xsi_shell in
  21190. + yes)
  21191. + cat << \_LT_EOF >> "$cfgfile"
  21192. +
  21193. +# func_dirname file append nondir_replacement
  21194. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  21195. +# otherwise set result to NONDIR_REPLACEMENT.
  21196. +func_dirname ()
  21197. +{
  21198. + case ${1} in
  21199. + */*) func_dirname_result="${1%/*}${2}" ;;
  21200. + * ) func_dirname_result="${3}" ;;
  21201. + esac
  21202. +}
  21203. +# func_basename file
  21204. +func_basename ()
  21205. +{
  21206. + func_basename_result="${1##*/}"
  21207. +}
  21208. -cat >>$CONFIG_STATUS <<\_ACEOF
  21209. -for ac_config_target in $ac_config_targets
  21210. -do
  21211. - case "$ac_config_target" in
  21212. - # Handling of arguments.
  21213. - "listhash/${LISTHASH_PREFIX}_listhash.h" ) CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_listhash.h:listhash/listhash.h.in" ;;
  21214. - "listhash/${LISTHASH_PREFIX}_list.c" ) CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_list.c:listhash/list.c.in" ;;
  21215. - "listhash/${LISTHASH_PREFIX}_hash.c" ) CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_hash.c:listhash/hash.c.in" ;;
  21216. - "listhash/${LISTHASH_PREFIX}_list_new.3" ) CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_list_new.3:listhash/list_new.3.in" ;;
  21217. - "listhash/${LISTHASH_PREFIX}_hash_new.3" ) CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_hash_new.3:listhash/hash_new.3.in" ;;
  21218. - "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  21219. - "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  21220. - "libtar/Makefile" ) CONFIG_FILES="$CONFIG_FILES libtar/Makefile" ;;
  21221. - "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  21222. - "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  21223. - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  21224. -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  21225. - { (exit 1); exit 1; }; };;
  21226. +# func_dirname_and_basename file append nondir_replacement
  21227. +# perform func_basename and func_dirname in a single function
  21228. +# call:
  21229. +# dirname: Compute the dirname of FILE. If nonempty,
  21230. +# add APPEND to the result, otherwise set result
  21231. +# to NONDIR_REPLACEMENT.
  21232. +# value returned in "$func_dirname_result"
  21233. +# basename: Compute filename of FILE.
  21234. +# value retuned in "$func_basename_result"
  21235. +# Implementation must be kept synchronized with func_dirname
  21236. +# and func_basename. For efficiency, we do not delegate to
  21237. +# those functions but instead duplicate the functionality here.
  21238. +func_dirname_and_basename ()
  21239. +{
  21240. + case ${1} in
  21241. + */*) func_dirname_result="${1%/*}${2}" ;;
  21242. + * ) func_dirname_result="${3}" ;;
  21243. esac
  21244. -done
  21245. + func_basename_result="${1##*/}"
  21246. +}
  21247. -# If the user did not use the arguments to specify the items to instantiate,
  21248. -# then the envvar interface is used. Set only those that are not.
  21249. -# We use the long form for the default assignment because of an extremely
  21250. -# bizarre bug on SunOS 4.1.3.
  21251. -if $ac_need_defaults; then
  21252. - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21253. - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21254. -fi
  21255. +# func_stripname prefix suffix name
  21256. +# strip PREFIX and SUFFIX off of NAME.
  21257. +# PREFIX and SUFFIX must not contain globbing or regex special
  21258. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  21259. +# dot (in which case that matches only a dot).
  21260. +func_stripname ()
  21261. +{
  21262. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  21263. + # positional parameters, so assign one to ordinary parameter first.
  21264. + func_stripname_result=${3}
  21265. + func_stripname_result=${func_stripname_result#"${1}"}
  21266. + func_stripname_result=${func_stripname_result%"${2}"}
  21267. +}
  21268. -# Have a temporary directory for convenience. Make it in the build tree
  21269. -# simply because there is no reason to put it here, and in addition,
  21270. -# creating and moving files from /tmp can sometimes cause problems.
  21271. -# Create a temporary directory, and hook for its removal unless debugging.
  21272. -$debug ||
  21273. +# func_opt_split
  21274. +func_opt_split ()
  21275. {
  21276. - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  21277. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  21278. + func_opt_split_opt=${1%%=*}
  21279. + func_opt_split_arg=${1#*=}
  21280. }
  21281. -# Create a (secure) tmp directory for tmp files.
  21282. +# func_lo2o object
  21283. +func_lo2o ()
  21284. +{
  21285. + case ${1} in
  21286. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  21287. + *) func_lo2o_result=${1} ;;
  21288. + esac
  21289. +}
  21290. +# func_xform libobj-or-source
  21291. +func_xform ()
  21292. {
  21293. - tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  21294. - test -n "$tmp" && test -d "$tmp"
  21295. -} ||
  21296. + func_xform_result=${1%.*}.lo
  21297. +}
  21298. +
  21299. +# func_arith arithmetic-term...
  21300. +func_arith ()
  21301. {
  21302. - tmp=./confstat$$-$RANDOM
  21303. - (umask 077 && mkdir $tmp)
  21304. -} ||
  21305. + func_arith_result=$(( $* ))
  21306. +}
  21307. +
  21308. +# func_len string
  21309. +# STRING may not start with a hyphen.
  21310. +func_len ()
  21311. {
  21312. - echo "$me: cannot create a temporary directory in ." >&2
  21313. - { (exit 1); exit 1; }
  21314. + func_len_result=${#1}
  21315. }
  21316. -_ACEOF
  21317. +_LT_EOF
  21318. + ;;
  21319. + *) # Bourne compatible functions.
  21320. + cat << \_LT_EOF >> "$cfgfile"
  21321. -cat >>$CONFIG_STATUS <<_ACEOF
  21322. +# func_dirname file append nondir_replacement
  21323. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  21324. +# otherwise set result to NONDIR_REPLACEMENT.
  21325. +func_dirname ()
  21326. +{
  21327. + # Extract subdirectory from the argument.
  21328. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  21329. + if test "X$func_dirname_result" = "X${1}"; then
  21330. + func_dirname_result="${3}"
  21331. + else
  21332. + func_dirname_result="$func_dirname_result${2}"
  21333. + fi
  21334. +}
  21335. -#
  21336. -# CONFIG_FILES section.
  21337. -#
  21338. +# func_basename file
  21339. +func_basename ()
  21340. +{
  21341. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  21342. +}
  21343. -# No need to generate the scripts if there are no CONFIG_FILES.
  21344. -# This happens for instance when ./config.status config.h
  21345. -if test -n "\$CONFIG_FILES"; then
  21346. - # Protect against being on the right side of a sed subst in config.status.
  21347. - sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  21348. - s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  21349. -s,@SHELL@,$SHELL,;t t
  21350. -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  21351. -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  21352. -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  21353. -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  21354. -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  21355. -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  21356. -s,@exec_prefix@,$exec_prefix,;t t
  21357. -s,@prefix@,$prefix,;t t
  21358. -s,@program_transform_name@,$program_transform_name,;t t
  21359. -s,@bindir@,$bindir,;t t
  21360. -s,@sbindir@,$sbindir,;t t
  21361. -s,@libexecdir@,$libexecdir,;t t
  21362. -s,@datadir@,$datadir,;t t
  21363. -s,@sysconfdir@,$sysconfdir,;t t
  21364. -s,@sharedstatedir@,$sharedstatedir,;t t
  21365. -s,@localstatedir@,$localstatedir,;t t
  21366. -s,@libdir@,$libdir,;t t
  21367. -s,@includedir@,$includedir,;t t
  21368. -s,@oldincludedir@,$oldincludedir,;t t
  21369. -s,@infodir@,$infodir,;t t
  21370. -s,@mandir@,$mandir,;t t
  21371. -s,@build_alias@,$build_alias,;t t
  21372. -s,@host_alias@,$host_alias,;t t
  21373. -s,@target_alias@,$target_alias,;t t
  21374. -s,@DEFS@,$DEFS,;t t
  21375. -s,@ECHO_C@,$ECHO_C,;t t
  21376. -s,@ECHO_N@,$ECHO_N,;t t
  21377. -s,@ECHO_T@,$ECHO_T,;t t
  21378. -s,@LIBS@,$LIBS,;t t
  21379. -s,@EPKG@,$EPKG,;t t
  21380. -s,@MKENCAP@,$MKENCAP,;t t
  21381. -s,@ENCAP_DEFS@,$ENCAP_DEFS,;t t
  21382. -s,@ENCAP_INSTALL_RULES@,$ENCAP_INSTALL_RULES,;t t
  21383. -s,@ENCAP_INSTALL_TARGET@,$ENCAP_INSTALL_TARGET,;t t
  21384. -s,@CC@,$CC,;t t
  21385. -s,@CFLAGS@,$CFLAGS,;t t
  21386. -s,@LDFLAGS@,$LDFLAGS,;t t
  21387. -s,@CPPFLAGS@,$CPPFLAGS,;t t
  21388. -s,@ac_ct_CC@,$ac_ct_CC,;t t
  21389. -s,@EXEEXT@,$EXEEXT,;t t
  21390. -s,@OBJEXT@,$OBJEXT,;t t
  21391. -s,@LIBOBJS@,$LIBOBJS,;t t
  21392. -s,@LISTHASH_PREFIX@,$LISTHASH_PREFIX,;t t
  21393. -s,@LISTHASH_DIR@,$LISTHASH_DIR,;t t
  21394. -s,@MKDIR@,$MKDIR,;t t
  21395. -s,@RANLIB@,$RANLIB,;t t
  21396. -s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  21397. -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  21398. -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  21399. -s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  21400. -s,@LN_S@,$LN_S,;t t
  21401. -s,@SET_MAKE@,$SET_MAKE,;t t
  21402. -s,@CPP@,$CPP,;t t
  21403. -s,@EGREP@,$EGREP,;t t
  21404. -s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  21405. -CEOF
  21406. -
  21407. -_ACEOF
  21408. -
  21409. - cat >>$CONFIG_STATUS <<\_ACEOF
  21410. - # Split the substitutions into bite-sized pieces for seds with
  21411. - # small command number limits, like on Digital OSF/1 and HP-UX.
  21412. - ac_max_sed_lines=48
  21413. - ac_sed_frag=1 # Number of current file.
  21414. - ac_beg=1 # First line for current file.
  21415. - ac_end=$ac_max_sed_lines # Line after last line for current file.
  21416. - ac_more_lines=:
  21417. - ac_sed_cmds=
  21418. - while $ac_more_lines; do
  21419. - if test $ac_beg -gt 1; then
  21420. - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  21421. - else
  21422. - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  21423. - fi
  21424. - if test ! -s $tmp/subs.frag; then
  21425. - ac_more_lines=false
  21426. - else
  21427. - # The purpose of the label and of the branching condition is to
  21428. - # speed up the sed processing (if there are no `@' at all, there
  21429. - # is no need to browse any of the substitutions).
  21430. - # These are the two extra sed commands mentioned above.
  21431. - (echo ':t
  21432. - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  21433. - if test -z "$ac_sed_cmds"; then
  21434. - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  21435. - else
  21436. - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  21437. - fi
  21438. - ac_sed_frag=`expr $ac_sed_frag + 1`
  21439. - ac_beg=$ac_end
  21440. - ac_end=`expr $ac_end + $ac_max_sed_lines`
  21441. - fi
  21442. - done
  21443. - if test -z "$ac_sed_cmds"; then
  21444. - ac_sed_cmds=cat
  21445. - fi
  21446. -fi # test -n "$CONFIG_FILES"
  21447. -_ACEOF
  21448. -cat >>$CONFIG_STATUS <<\_ACEOF
  21449. -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  21450. - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  21451. - case $ac_file in
  21452. - - | *:- | *:-:* ) # input from stdin
  21453. - cat >$tmp/stdin
  21454. - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  21455. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  21456. - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  21457. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  21458. - * ) ac_file_in=$ac_file.in ;;
  21459. +# func_stripname prefix suffix name
  21460. +# strip PREFIX and SUFFIX off of NAME.
  21461. +# PREFIX and SUFFIX must not contain globbing or regex special
  21462. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  21463. +# dot (in which case that matches only a dot).
  21464. +# func_strip_suffix prefix name
  21465. +func_stripname ()
  21466. +{
  21467. + case ${2} in
  21468. + .*) func_stripname_result=`$ECHO "X${3}" \
  21469. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  21470. + *) func_stripname_result=`$ECHO "X${3}" \
  21471. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  21472. esac
  21473. +}
  21474. - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  21475. - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  21476. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21477. - X"$ac_file" : 'X\(//\)[^/]' \| \
  21478. - X"$ac_file" : 'X\(//\)$' \| \
  21479. - X"$ac_file" : 'X\(/\)' \| \
  21480. - . : '\(.\)' 2>/dev/null ||
  21481. -echo X"$ac_file" |
  21482. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  21483. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  21484. - /^X\(\/\/\)$/{ s//\1/; q; }
  21485. - /^X\(\/\).*/{ s//\1/; q; }
  21486. - s/.*/./; q'`
  21487. - { if $as_mkdir_p; then
  21488. - mkdir -p "$ac_dir"
  21489. - else
  21490. - as_dir="$ac_dir"
  21491. - as_dirs=
  21492. - while test ! -d "$as_dir"; do
  21493. - as_dirs="$as_dir $as_dirs"
  21494. - as_dir=`(dirname "$as_dir") 2>/dev/null ||
  21495. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21496. - X"$as_dir" : 'X\(//\)[^/]' \| \
  21497. - X"$as_dir" : 'X\(//\)$' \| \
  21498. - X"$as_dir" : 'X\(/\)' \| \
  21499. - . : '\(.\)' 2>/dev/null ||
  21500. -echo X"$as_dir" |
  21501. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  21502. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  21503. - /^X\(\/\/\)$/{ s//\1/; q; }
  21504. - /^X\(\/\).*/{ s//\1/; q; }
  21505. - s/.*/./; q'`
  21506. - done
  21507. - test ! -n "$as_dirs" || mkdir $as_dirs
  21508. - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  21509. -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  21510. - { (exit 1); exit 1; }; }; }
  21511. +# sed scripts:
  21512. +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  21513. +my_sed_long_arg='1s/^-[^=]*=//'
  21514. - ac_builddir=.
  21515. +# func_opt_split
  21516. +func_opt_split ()
  21517. +{
  21518. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  21519. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  21520. +}
  21521. -if test "$ac_dir" != .; then
  21522. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  21523. - # A "../" for each directory in $ac_dir_suffix.
  21524. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  21525. -else
  21526. - ac_dir_suffix= ac_top_builddir=
  21527. -fi
  21528. +# func_lo2o object
  21529. +func_lo2o ()
  21530. +{
  21531. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  21532. +}
  21533. -case $srcdir in
  21534. - .) # No --srcdir option. We are building in place.
  21535. - ac_srcdir=.
  21536. - if test -z "$ac_top_builddir"; then
  21537. - ac_top_srcdir=.
  21538. - else
  21539. - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  21540. - fi ;;
  21541. - [\\/]* | ?:[\\/]* ) # Absolute path.
  21542. - ac_srcdir=$srcdir$ac_dir_suffix;
  21543. - ac_top_srcdir=$srcdir ;;
  21544. - *) # Relative path.
  21545. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  21546. - ac_top_srcdir=$ac_top_builddir$srcdir ;;
  21547. -esac
  21548. -# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  21549. -# absolute.
  21550. -ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  21551. -ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  21552. -ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  21553. -ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  21554. +# func_xform libobj-or-source
  21555. +func_xform ()
  21556. +{
  21557. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  21558. +}
  21559. +# func_arith arithmetic-term...
  21560. +func_arith ()
  21561. +{
  21562. + func_arith_result=`expr "$@"`
  21563. +}
  21564. - case $INSTALL in
  21565. - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21566. - *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  21567. - esac
  21568. +# func_len string
  21569. +# STRING may not start with a hyphen.
  21570. +func_len ()
  21571. +{
  21572. + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  21573. +}
  21574. - if test x"$ac_file" != x-; then
  21575. - { echo "$as_me:$LINENO: creating $ac_file" >&5
  21576. -echo "$as_me: creating $ac_file" >&6;}
  21577. - rm -f "$ac_file"
  21578. - fi
  21579. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  21580. - # use $as_me), people would be surprised to read:
  21581. - # /* config.h. Generated by config.status. */
  21582. - if test x"$ac_file" = x-; then
  21583. - configure_input=
  21584. - else
  21585. - configure_input="$ac_file. "
  21586. - fi
  21587. - configure_input=$configure_input"Generated from `echo $ac_file_in |
  21588. - sed 's,.*/,,'` by configure."
  21589. -
  21590. - # First look for the input files in the build tree, otherwise in the
  21591. - # src tree.
  21592. - ac_file_inputs=`IFS=:
  21593. - for f in $ac_file_in; do
  21594. - case $f in
  21595. - -) echo $tmp/stdin ;;
  21596. - [\\/$]*)
  21597. - # Absolute (can't be DOS-style, as IFS=:)
  21598. - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  21599. -echo "$as_me: error: cannot find input file: $f" >&2;}
  21600. - { (exit 1); exit 1; }; }
  21601. - echo $f;;
  21602. - *) # Relative
  21603. - if test -f "$f"; then
  21604. - # Build tree
  21605. - echo $f
  21606. - elif test -f "$srcdir/$f"; then
  21607. - # Source tree
  21608. - echo $srcdir/$f
  21609. - else
  21610. - # /dev/null tree
  21611. - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  21612. -echo "$as_me: error: cannot find input file: $f" >&2;}
  21613. - { (exit 1); exit 1; }; }
  21614. - fi;;
  21615. - esac
  21616. - done` || { (exit 1); exit 1; }
  21617. -_ACEOF
  21618. -cat >>$CONFIG_STATUS <<_ACEOF
  21619. - sed "$ac_vpsub
  21620. -$extrasub
  21621. -_ACEOF
  21622. -cat >>$CONFIG_STATUS <<\_ACEOF
  21623. -:t
  21624. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21625. -s,@configure_input@,$configure_input,;t t
  21626. -s,@srcdir@,$ac_srcdir,;t t
  21627. -s,@abs_srcdir@,$ac_abs_srcdir,;t t
  21628. -s,@top_srcdir@,$ac_top_srcdir,;t t
  21629. -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  21630. -s,@builddir@,$ac_builddir,;t t
  21631. -s,@abs_builddir@,$ac_abs_builddir,;t t
  21632. -s,@top_builddir@,$ac_top_builddir,;t t
  21633. -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  21634. -s,@INSTALL@,$ac_INSTALL,;t t
  21635. -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  21636. - rm -f $tmp/stdin
  21637. - if test x"$ac_file" != x-; then
  21638. - mv $tmp/out $ac_file
  21639. - else
  21640. - cat $tmp/out
  21641. - rm -f $tmp/out
  21642. - fi
  21643. +_LT_EOF
  21644. +esac
  21645. -done
  21646. -_ACEOF
  21647. -cat >>$CONFIG_STATUS <<\_ACEOF
  21648. +case $lt_shell_append in
  21649. + yes)
  21650. + cat << \_LT_EOF >> "$cfgfile"
  21651. +
  21652. +# func_append var value
  21653. +# Append VALUE to the end of shell variable VAR.
  21654. +func_append ()
  21655. +{
  21656. + eval "$1+=\$2"
  21657. +}
  21658. +_LT_EOF
  21659. + ;;
  21660. + *)
  21661. + cat << \_LT_EOF >> "$cfgfile"
  21662. -#
  21663. -# CONFIG_HEADER section.
  21664. -#
  21665. +# func_append var value
  21666. +# Append VALUE to the end of shell variable VAR.
  21667. +func_append ()
  21668. +{
  21669. + eval "$1=\$$1\$2"
  21670. +}
  21671. -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  21672. -# NAME is the cpp macro being defined and VALUE is the value it is being given.
  21673. -#
  21674. -# ac_d sets the value in "#define NAME VALUE" lines.
  21675. -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  21676. -ac_dB='[ ].*$,\1#\2'
  21677. -ac_dC=' '
  21678. -ac_dD=',;t'
  21679. -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  21680. -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  21681. -ac_uB='$,\1#\2define\3'
  21682. -ac_uC=' '
  21683. -ac_uD=',;t'
  21684. +_LT_EOF
  21685. + ;;
  21686. + esac
  21687. -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  21688. - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  21689. - case $ac_file in
  21690. - - | *:- | *:-:* ) # input from stdin
  21691. - cat >$tmp/stdin
  21692. - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  21693. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  21694. - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  21695. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  21696. - * ) ac_file_in=$ac_file.in ;;
  21697. - esac
  21698. -
  21699. - test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  21700. -echo "$as_me: creating $ac_file" >&6;}
  21701. -
  21702. - # First look for the input files in the build tree, otherwise in the
  21703. - # src tree.
  21704. - ac_file_inputs=`IFS=:
  21705. - for f in $ac_file_in; do
  21706. - case $f in
  21707. - -) echo $tmp/stdin ;;
  21708. - [\\/$]*)
  21709. - # Absolute (can't be DOS-style, as IFS=:)
  21710. - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  21711. -echo "$as_me: error: cannot find input file: $f" >&2;}
  21712. - { (exit 1); exit 1; }; }
  21713. - echo $f;;
  21714. - *) # Relative
  21715. - if test -f "$f"; then
  21716. - # Build tree
  21717. - echo $f
  21718. - elif test -f "$srcdir/$f"; then
  21719. - # Source tree
  21720. - echo $srcdir/$f
  21721. - else
  21722. - # /dev/null tree
  21723. - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  21724. -echo "$as_me: error: cannot find input file: $f" >&2;}
  21725. - { (exit 1); exit 1; }; }
  21726. - fi;;
  21727. - esac
  21728. - done` || { (exit 1); exit 1; }
  21729. - # Remove the trailing spaces.
  21730. - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  21731. -_ACEOF
  21732. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  21733. + || (rm -f "$cfgfile"; exit 1)
  21734. -# Transform confdefs.h into two sed scripts, `conftest.defines' and
  21735. -# `conftest.undefs', that substitutes the proper values into
  21736. -# config.h.in to produce config.h. The first handles `#define'
  21737. -# templates, and the second `#undef' templates.
  21738. -# And first: Protect against being on the right side of a sed subst in
  21739. -# config.status. Protect against being in an unquoted here document
  21740. -# in config.status.
  21741. -rm -f conftest.defines conftest.undefs
  21742. -# Using a here document instead of a string reduces the quoting nightmare.
  21743. -# Putting comments in sed scripts is not portable.
  21744. -#
  21745. -# `end' is used to avoid that the second main sed command (meant for
  21746. -# 0-ary CPP macros) applies to n-ary macro definitions.
  21747. -# See the Autoconf documentation for `clear'.
  21748. -cat >confdef2sed.sed <<\_ACEOF
  21749. -s/[\\&,]/\\&/g
  21750. -s,[\\$`],\\&,g
  21751. -t clear
  21752. -: clear
  21753. -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  21754. -t end
  21755. -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  21756. -: end
  21757. -_ACEOF
  21758. -# If some macros were called several times there might be several times
  21759. -# the same #defines, which is useless. Nevertheless, we may not want to
  21760. -# sort them, since we want the *last* AC-DEFINE to be honored.
  21761. -uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  21762. -sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  21763. -rm -f confdef2sed.sed
  21764. -
  21765. -# This sed command replaces #undef with comments. This is necessary, for
  21766. -# example, in the case of _POSIX_SOURCE, which is predefined and required
  21767. -# on some systems where configure will not decide to define it.
  21768. -cat >>conftest.undefs <<\_ACEOF
  21769. -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  21770. -_ACEOF
  21771. -
  21772. -# Break up conftest.defines because some shells have a limit on the size
  21773. -# of here documents, and old seds have small limits too (100 cmds).
  21774. -echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  21775. -echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  21776. -echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  21777. -echo ' :' >>$CONFIG_STATUS
  21778. -rm -f conftest.tail
  21779. -while grep . conftest.defines >/dev/null
  21780. -do
  21781. - # Write a limited-size here document to $tmp/defines.sed.
  21782. - echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  21783. - # Speed up: don't consider the non `#define' lines.
  21784. - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  21785. - # Work around the forget-to-reset-the-flag bug.
  21786. - echo 't clr' >>$CONFIG_STATUS
  21787. - echo ': clr' >>$CONFIG_STATUS
  21788. - sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  21789. - echo 'CEOF
  21790. - sed -f $tmp/defines.sed $tmp/in >$tmp/out
  21791. - rm -f $tmp/in
  21792. - mv $tmp/out $tmp/in
  21793. -' >>$CONFIG_STATUS
  21794. - sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  21795. - rm -f conftest.defines
  21796. - mv conftest.tail conftest.defines
  21797. -done
  21798. -rm -f conftest.defines
  21799. -echo ' fi # grep' >>$CONFIG_STATUS
  21800. -echo >>$CONFIG_STATUS
  21801. -
  21802. -# Break up conftest.undefs because some shells have a limit on the size
  21803. -# of here documents, and old seds have small limits too (100 cmds).
  21804. -echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  21805. -rm -f conftest.tail
  21806. -while grep . conftest.undefs >/dev/null
  21807. -do
  21808. - # Write a limited-size here document to $tmp/undefs.sed.
  21809. - echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  21810. - # Speed up: don't consider the non `#undef'
  21811. - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  21812. - # Work around the forget-to-reset-the-flag bug.
  21813. - echo 't clr' >>$CONFIG_STATUS
  21814. - echo ': clr' >>$CONFIG_STATUS
  21815. - sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  21816. - echo 'CEOF
  21817. - sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  21818. - rm -f $tmp/in
  21819. - mv $tmp/out $tmp/in
  21820. -' >>$CONFIG_STATUS
  21821. - sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  21822. - rm -f conftest.undefs
  21823. - mv conftest.tail conftest.undefs
  21824. -done
  21825. -rm -f conftest.undefs
  21826. -
  21827. -cat >>$CONFIG_STATUS <<\_ACEOF
  21828. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  21829. - # use $as_me), people would be surprised to read:
  21830. - # /* config.h. Generated by config.status. */
  21831. - if test x"$ac_file" = x-; then
  21832. - echo "/* Generated by configure. */" >$tmp/config.h
  21833. - else
  21834. - echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  21835. - fi
  21836. - cat $tmp/in >>$tmp/config.h
  21837. - rm -f $tmp/in
  21838. - if test x"$ac_file" != x-; then
  21839. - if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  21840. - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  21841. -echo "$as_me: $ac_file is unchanged" >&6;}
  21842. - else
  21843. - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  21844. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21845. - X"$ac_file" : 'X\(//\)[^/]' \| \
  21846. - X"$ac_file" : 'X\(//\)$' \| \
  21847. - X"$ac_file" : 'X\(/\)' \| \
  21848. - . : '\(.\)' 2>/dev/null ||
  21849. -echo X"$ac_file" |
  21850. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  21851. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  21852. - /^X\(\/\/\)$/{ s//\1/; q; }
  21853. - /^X\(\/\).*/{ s//\1/; q; }
  21854. - s/.*/./; q'`
  21855. - { if $as_mkdir_p; then
  21856. - mkdir -p "$ac_dir"
  21857. - else
  21858. - as_dir="$ac_dir"
  21859. - as_dirs=
  21860. - while test ! -d "$as_dir"; do
  21861. - as_dirs="$as_dir $as_dirs"
  21862. - as_dir=`(dirname "$as_dir") 2>/dev/null ||
  21863. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21864. - X"$as_dir" : 'X\(//\)[^/]' \| \
  21865. - X"$as_dir" : 'X\(//\)$' \| \
  21866. - X"$as_dir" : 'X\(/\)' \| \
  21867. - . : '\(.\)' 2>/dev/null ||
  21868. -echo X"$as_dir" |
  21869. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  21870. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  21871. - /^X\(\/\/\)$/{ s//\1/; q; }
  21872. - /^X\(\/\).*/{ s//\1/; q; }
  21873. - s/.*/./; q'`
  21874. - done
  21875. - test ! -n "$as_dirs" || mkdir $as_dirs
  21876. - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  21877. -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  21878. - { (exit 1); exit 1; }; }; }
  21879. + mv -f "$cfgfile" "$ofile" ||
  21880. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  21881. + chmod +x "$ofile"
  21882. - rm -f $ac_file
  21883. - mv $tmp/config.h $ac_file
  21884. - fi
  21885. - else
  21886. - cat $tmp/config.h
  21887. - rm -f $tmp/config.h
  21888. - fi
  21889. -done
  21890. -_ACEOF
  21891. + ;;
  21892. +
  21893. + esac
  21894. +done # for ac_tag
  21895. -cat >>$CONFIG_STATUS <<\_ACEOF
  21896. { (exit 0); exit 0; }
  21897. _ACEOF
  21898. chmod +x $CONFIG_STATUS
  21899. ac_clean_files=$ac_clean_files_save
  21900. +test $ac_write_fail = 0 ||
  21901. + { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  21902. +$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  21903. + { (exit 1); exit 1; }; }
  21904. +
  21905. # configure is writing to config.log, and then calls config.status.
  21906. # config.status does its own redirection, appending to config.log.
  21907. @@ -8098,5 +17733,9 @@
  21908. # would make configure fail if this is the last instruction.
  21909. $ac_cs_success || { (exit 1); exit 1; }
  21910. fi
  21911. +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  21912. + { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  21913. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  21914. +fi
  21915. --- libtar-1.2.11.orig/config.h.in
  21916. +++ libtar-1.2.11/config.h.in
  21917. @@ -12,6 +12,9 @@
  21918. /* Define if your system has a working dirname */
  21919. #undef HAVE_DIRNAME
  21920. +/* Define to 1 if you have the <dlfcn.h> header file. */
  21921. +#undef HAVE_DLFCN_H
  21922. +
  21923. /* Define to 1 if your system has a working POSIX `fnmatch' function. */
  21924. #undef HAVE_FNMATCH
  21925. @@ -87,6 +90,10 @@
  21926. /* Define to 1 if you have the <unistd.h> header file. */
  21927. #undef HAVE_UNISTD_H
  21928. +/* Define to the sub-directory in which libtool stores uninstalled libraries.
  21929. + */
  21930. +#undef LT_OBJDIR
  21931. +
  21932. /* Define to 1 if `major', `minor', and `makedev' are declared in <mkdev.h>.
  21933. */
  21934. #undef MAJOR_IN_MKDEV
  21935. @@ -143,12 +150,37 @@
  21936. /* Define to 1 if you have the ANSI C header files. */
  21937. #undef STDC_HEADERS
  21938. -/* Define to 1 if on AIX 3.
  21939. - System headers sometimes define this.
  21940. - We just want to avoid a redefinition error message. */
  21941. +/* Enable extensions on AIX 3, Interix. */
  21942. #ifndef _ALL_SOURCE
  21943. # undef _ALL_SOURCE
  21944. #endif
  21945. +/* Enable GNU extensions on systems that have them. */
  21946. +#ifndef _GNU_SOURCE
  21947. +# undef _GNU_SOURCE
  21948. +#endif
  21949. +/* Enable threading extensions on Solaris. */
  21950. +#ifndef _POSIX_PTHREAD_SEMANTICS
  21951. +# undef _POSIX_PTHREAD_SEMANTICS
  21952. +#endif
  21953. +/* Enable extensions on HP NonStop. */
  21954. +#ifndef _TANDEM_SOURCE
  21955. +# undef _TANDEM_SOURCE
  21956. +#endif
  21957. +/* Enable general extensions on Solaris. */
  21958. +#ifndef __EXTENSIONS__
  21959. +# undef __EXTENSIONS__
  21960. +#endif
  21961. +
  21962. +
  21963. +/* Define to 1 if on MINIX. */
  21964. +#undef _MINIX
  21965. +
  21966. +/* Define to 2 if the system does not provide POSIX.1 features except with
  21967. + this defined. */
  21968. +#undef _POSIX_1_SOURCE
  21969. +
  21970. +/* Define to 1 if you need to in order for `stat' and other things to work. */
  21971. +#undef _POSIX_SOURCE
  21972. /* Define to empty if `const' does not conform to ANSI C. */
  21973. #undef const
  21974. @@ -171,10 +203,10 @@
  21975. /* Define to `unsigned short' if not defined in system header files. */
  21976. #undef nlink_t
  21977. -/* Define to `long' if <sys/types.h> does not define. */
  21978. +/* Define to `long int' if <sys/types.h> does not define. */
  21979. #undef off_t
  21980. -/* Define to `unsigned' if <sys/types.h> does not define. */
  21981. +/* Define to `unsigned int' if <sys/types.h> does not define. */
  21982. #undef size_t
  21983. /* Define to `unsigned long' if not defined in system header files. */
  21984. --- libtar-1.2.11.orig/aclocal.m4
  21985. +++ libtar-1.2.11/aclocal.m4
  21986. @@ -0,0 +1,8 @@
  21987. +m4_include([autoconf/ac_path_generic.m4])
  21988. +m4_include([autoconf/encap.m4])
  21989. +m4_include([autoconf/aclocal.m4])
  21990. +m4_include([/usr/share/aclocal/ltoptions.m4])
  21991. +m4_include([/usr/share/aclocal/lt~obsolete.m4])
  21992. +m4_include([/usr/share/aclocal/libtool.m4])
  21993. +m4_include([/usr/share/aclocal/ltversion.m4])
  21994. +m4_include([/usr/share/aclocal/ltsugar.m4])
  21995. --- libtar-1.2.11.orig/lib/Makefile.in
  21996. +++ libtar-1.2.11/lib/Makefile.in
  21997. @@ -3,6 +3,7 @@
  21998. ### Path settings
  21999. srcdir = @srcdir@
  22000. top_srcdir = @top_srcdir@
  22001. +top_builddir = @top_builddir@
  22002. prefix = @prefix@
  22003. exec_prefix = @exec_prefix@
  22004. bindir = @bindir@
  22005. @@ -23,6 +24,7 @@
  22006. ### Compiler and link options
  22007. CC = @CC@
  22008. +LIBTOOL = @LIBTOOL@
  22009. CPPFLAGS = -I. \
  22010. -I.. \
  22011. -I${srcdir} \
  22012. @@ -32,7 +34,7 @@
  22013. CFLAGS = @CFLAGS@
  22014. LDFLAGS = @LDFLAGS@
  22015. LIBS = @LIBS@
  22016. -LIBOBJS = @LIBOBJS@
  22017. +LTLIBOBJS = @LTLIBOBJS@
  22018. RANLIB = @RANLIB@
  22019. @SET_MAKE@
  22020. VPATH = @srcdir@:@top_srcdir@/compat:../listhash
  22021. @@ -40,24 +42,26 @@
  22022. ### Makefile rules - no user-servicable parts below
  22023. -LIBTAR_OBJS = append.o \
  22024. - block.o \
  22025. - decode.o \
  22026. - encode.o \
  22027. - extract.o \
  22028. - handle.o \
  22029. - libtar_hash.o \
  22030. - libtar_list.o \
  22031. - output.o \
  22032. - util.o \
  22033. - wrapper.o
  22034. +LIBTAR_OBJS = append.lo \
  22035. + block.lo \
  22036. + decode.lo \
  22037. + encode.lo \
  22038. + extract.lo \
  22039. + handle.lo \
  22040. + libtar_hash.lo \
  22041. + libtar_list.lo \
  22042. + output.lo \
  22043. + util.lo \
  22044. + wrapper.lo
  22045. LIBTAR_HDRS = ../config.h \
  22046. ${top_srcdir}/compat/compat.h \
  22047. ${srcdir}/libtar.h \
  22048. ${srcdir}/internal.h \
  22049. ../listhash/libtar_listhash.h
  22050. -LIBTAR_LIBS = ./libtar.a
  22051. -ALL = libtar.a
  22052. +LIBTAR_LIBS = ./libtar.la
  22053. +ALL = libtar.la
  22054. +LDFLAGS = @LDFLAGS@
  22055. +CFLAGS = @CFLAGS@
  22056. DISTCLEANFILES = ../listhash/libtar_listhash.h \
  22057. ../listhash/libtar_list.c \
  22058. @@ -68,24 +72,31 @@
  22059. .PHONY: clean distclean install
  22060. -libtar.a: ${LIBTAR_OBJS} ${LIBOBJS}
  22061. - ${AR} rc libtar.a ${LIBTAR_OBJS} ${LIBOBJS}
  22062. - ${RANLIB} libtar.a
  22063. +libtar.la: ${LIBTAR_OBJS} ${LTLIBOBJS}
  22064. + $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o libtar.la $(LIBTAR_OBJS) $(LTLIBOBJS) -rpath $(libdir)
  22065. +# ${AR} rc libtar.a ${LIBTAR_OBJS} ${LIBOBJS}
  22066. +# ${RANLIB} libtar.a
  22067. ${LIBTAR_OBJS}: ${LIBTAR_HDRS}
  22068. -.c.o:
  22069. - ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $<
  22070. +%.lo: $(srcdir)/%.c
  22071. + $(LIBTOOL) --mode=compile ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $<
  22072. +
  22073. +%.lo: listhash/%.c
  22074. + $(LIBTOOL) --mode=compile ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $<
  22075. +
  22076. +%.lo: compat/%.c
  22077. + $(LIBTOOL) --mode=compile ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $<
  22078. clean:
  22079. - rm -f *~ *.o ${ALL} core
  22080. + rm -rf *~ *.o $(LIBTAR_OBJS) ${ALL} core .libs $(LTLIBOBJS)
  22081. distclean: clean
  22082. rm -f Makefile ${DISTCLEANFILES}
  22083. install: ${ALL}
  22084. ${MKDIR} ${DESTDIR}${libdir}
  22085. - ${INSTALL_DATA} libtar.a ${DESTDIR}${libdir}
  22086. + $(LIBTOOL) --mode=install ${INSTALL_DATA} libtar.la ${DESTDIR}${libdir}
  22087. ${MKDIR} ${DESTDIR}${includedir}
  22088. ${INSTALL_DATA} ${srcdir}/libtar.h ${DESTDIR}${includedir}
  22089. ${INSTALL_DATA} ../listhash/libtar_listhash.h ${DESTDIR}${includedir}
  22090. --- libtar-1.2.11.orig/lib/extract.c
  22091. +++ libtar-1.2.11/lib/extract.c
  22092. @@ -21,6 +21,7 @@
  22093. #ifdef STDC_HEADERS
  22094. # include <stdlib.h>
  22095. +# include <string.h>
  22096. #endif
  22097. #ifdef HAVE_UNISTD_H
  22098. @@ -99,6 +100,7 @@
  22099. {
  22100. int i;
  22101. linkname_t *lnp;
  22102. + char *pathname;
  22103. if (t->options & TAR_NOOVERWRITE)
  22104. {
  22105. @@ -140,12 +142,14 @@
  22106. lnp = (linkname_t *)calloc(1, sizeof(linkname_t));
  22107. if (lnp == NULL)
  22108. return -1;
  22109. - strlcpy(lnp->ln_save, th_get_pathname(t), sizeof(lnp->ln_save));
  22110. + pathname = th_get_pathname(t);
  22111. + strlcpy(lnp->ln_save, pathname, sizeof(lnp->ln_save));
  22112. strlcpy(lnp->ln_real, realname, sizeof(lnp->ln_real));
  22113. #ifdef DEBUG
  22114. printf("tar_extract_file(): calling libtar_hash_add(): key=\"%s\", "
  22115. - "value=\"%s\"\n", th_get_pathname(t), realname);
  22116. + "value=\"%s\"\n", pathname, realname);
  22117. #endif
  22118. + free(pathname);
  22119. if (libtar_hash_add(t->h, lnp) != 0)
  22120. return -1;
  22121. --- libtar-1.2.11.orig/lib/output.c
  22122. +++ libtar-1.2.11/lib/output.c
  22123. @@ -71,6 +71,7 @@
  22124. char groupname[_POSIX_LOGIN_NAME_MAX];
  22125. time_t mtime;
  22126. struct tm *mtm;
  22127. + char *pathname;
  22128. #ifdef HAVE_STRFTIME
  22129. char timebuf[18];
  22130. @@ -114,7 +115,9 @@
  22131. mtm->tm_mday, mtm->tm_hour, mtm->tm_min, mtm->tm_year + 1900);
  22132. #endif
  22133. - printf(" %s", th_get_pathname(t));
  22134. + pathname = th_get_pathname(t);
  22135. + printf(" %s", pathname);
  22136. + free(pathname);
  22137. if (TH_ISSYM(t) || TH_ISLNK(t))
  22138. {
  22139. --- libtar-1.2.11.orig/lib/wrapper.c
  22140. +++ libtar-1.2.11/lib/wrapper.c
  22141. @@ -76,6 +76,7 @@
  22142. snprintf(buf, sizeof(buf), "%s/%s", prefix, filename);
  22143. else
  22144. strlcpy(buf, filename, sizeof(buf));
  22145. + free(filename);
  22146. #ifdef DEBUG
  22147. printf(" tar_extract_all(): calling tar_extract_file(t, "
  22148. "\"%s\")\n", buf);
  22149. --- libtar-1.2.11.orig/libtar/Makefile.in
  22150. +++ libtar-1.2.11/libtar/Makefile.in
  22151. @@ -3,6 +3,7 @@
  22152. ### Path settings
  22153. srcdir = @srcdir@
  22154. top_srcdir = @top_srcdir@
  22155. +top_builddir = @top_builddir@
  22156. prefix = @prefix@
  22157. exec_prefix = @exec_prefix@
  22158. bindir = @bindir@
  22159. @@ -23,6 +24,7 @@
  22160. ### Compiler and link options
  22161. CC = @CC@
  22162. +LIBTOOL = @LIBTOOL@
  22163. CPPFLAGS = -I.. \
  22164. -I../lib \
  22165. -I../listhash \
  22166. @@ -31,7 +33,7 @@
  22167. @CPPFLAGS@
  22168. CFLAGS = @CFLAGS@
  22169. LDFLAGS = @LDFLAGS@
  22170. -LIBS = @LIBS@
  22171. +LIBS = @LIBS@ -ltar
  22172. LIBOBJS = @LIBOBJS@
  22173. RANLIB = @RANLIB@
  22174. @SET_MAKE@
  22175. @@ -40,12 +42,12 @@
  22176. ### Makefile rules - no user-servicable parts below
  22177. -LIBTAR_OBJS = libtar.o
  22178. +LIBTAR_OBJS = libtar.lo
  22179. LIBTAR_HDRS = ../config.h \
  22180. ${top_srcdir}/compat/compat.h \
  22181. ${top_srcdir}/lib/libtar.h \
  22182. ../listhash/libtar_listhash.h
  22183. -LIBTAR_LIBS = ../lib/libtar.a
  22184. +LIBTAR_LIBS = $(top_builddir)/lib
  22185. ALL = libtar
  22186. @@ -54,20 +56,20 @@
  22187. .PHONY: clean distclean install
  22188. libtar: ${LIBTAR_OBJS} ${LIBTAR_LIBS} ${LIBTAR_HDRS}
  22189. - ${CC} ${CFLAGS} ${LDFLAGS} -o libtar libtar.o ${LIBTAR_LIBS} ${LIBS}
  22190. + $(LIBTOOL) --mode=link ${CC} ${CFLAGS} ${LDFLAGS} -o libtar $(LIBTAR_OBJS) -L${LIBTAR_LIBS} ${LIBS}
  22191. ${LIBTAR_OBJS}: ${LIBTAR_HDRS}
  22192. -.c.o:
  22193. - ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $<
  22194. +%.lo: %.c
  22195. + $(LIBTOOL) --mode=compile ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $<
  22196. clean:
  22197. - rm -f *~ *.o ${ALL} core
  22198. + rm -rf *~ *.o ${ALL} $(LIBTAR_OBJS) core .libs
  22199. distclean: clean
  22200. rm -f Makefile
  22201. install: ${ALL}
  22202. ${MKDIR} ${DESTDIR}${bindir}
  22203. - ${INSTALL_PROGRAM} libtar ${DESTDIR}${bindir}
  22204. + $(LIBTOOL) --mode=install ${INSTALL_PROGRAM} libtar ${DESTDIR}${bindir}
  22205. --- libtar-1.2.11.orig/libtar/libtar.c
  22206. +++ libtar-1.2.11/libtar/libtar.c
  22207. @@ -19,6 +19,7 @@
  22208. #include <sys/param.h>
  22209. #ifdef STDC_HEADERS
  22210. +# include <stdlib.h>
  22211. # include <string.h>
  22212. #endif
  22213. @@ -91,6 +92,10 @@
  22214. return -1;
  22215. }
  22216. + /* This is a bad thing to do on big-endian lp64 systems, where the
  22217. + size and placement of integers is different than pointers.
  22218. + However, to fix the problem 4 wrapper functions would be needed and
  22219. + an extra bit of data associating GZF with the wrapper functions. */
  22220. return (int)gzf;
  22221. }
  22222. --- libtar-1.2.11.orig/autoconf/aclocal.m4
  22223. +++ libtar-1.2.11/autoconf/aclocal.m4
  22224. @@ -1,7 +1,3 @@
  22225. -m4_include([encap.m4])
  22226. -m4_include([ac_path_generic.m4])
  22227. -
  22228. -
  22229. # PSG_LIB_READLINE
  22230. # ----------------
  22231. # Check for GNU readline library.
  22232. --- libtar-1.2.11.orig/autoconf/acsite.m4
  22233. +++ libtar-1.2.11/autoconf/acsite.m4
  22234. @@ -0,0 +1,6672 @@
  22235. +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  22236. +## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007,
  22237. +## 2008 Free Software Foundation, Inc.
  22238. +## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  22239. +##
  22240. +## This file is free software; the Free Software Foundation gives
  22241. +## unlimited permission to copy and/or distribute it, with or without
  22242. +## modifications, as long as this notice is preserved.
  22243. +
  22244. +# serial 52 Debian 1.5.26-2 AC_PROG_LIBTOOL
  22245. +
  22246. +
  22247. +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  22248. +# -----------------------------------------------------------
  22249. +# If this macro is not defined by Autoconf, define it here.
  22250. +m4_ifdef([AC_PROVIDE_IFELSE],
  22251. + [],
  22252. + [m4_define([AC_PROVIDE_IFELSE],
  22253. + [m4_ifdef([AC_PROVIDE_$1],
  22254. + [$2], [$3])])])
  22255. +
  22256. +
  22257. +# AC_PROG_LIBTOOL
  22258. +# ---------------
  22259. +AC_DEFUN([AC_PROG_LIBTOOL],
  22260. +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  22261. +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  22262. +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  22263. + AC_PROVIDE_IFELSE([AC_PROG_CXX],
  22264. + [AC_LIBTOOL_CXX],
  22265. + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  22266. + ])])
  22267. +dnl And a similar setup for Fortran 77 support
  22268. + AC_PROVIDE_IFELSE([AC_PROG_F77],
  22269. + [AC_LIBTOOL_F77],
  22270. + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  22271. +])])
  22272. +
  22273. +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  22274. +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  22275. +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  22276. + AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  22277. + [AC_LIBTOOL_GCJ],
  22278. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  22279. + [AC_LIBTOOL_GCJ],
  22280. + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  22281. + [AC_LIBTOOL_GCJ],
  22282. + [ifdef([AC_PROG_GCJ],
  22283. + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  22284. + ifdef([A][M_PROG_GCJ],
  22285. + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  22286. + ifdef([LT_AC_PROG_GCJ],
  22287. + [define([LT_AC_PROG_GCJ],
  22288. + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  22289. +])])# AC_PROG_LIBTOOL
  22290. +
  22291. +
  22292. +# _AC_PROG_LIBTOOL
  22293. +# ----------------
  22294. +AC_DEFUN([_AC_PROG_LIBTOOL],
  22295. +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  22296. +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  22297. +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  22298. +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  22299. +
  22300. +# This can be used to rebuild libtool when needed
  22301. +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  22302. +
  22303. +# Always use our own libtool.
  22304. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  22305. +AC_SUBST(LIBTOOL)dnl
  22306. +
  22307. +# Prevent multiple expansion
  22308. +define([AC_PROG_LIBTOOL], [])
  22309. +])# _AC_PROG_LIBTOOL
  22310. +
  22311. +
  22312. +# AC_LIBTOOL_SETUP
  22313. +# ----------------
  22314. +AC_DEFUN([AC_LIBTOOL_SETUP],
  22315. +[AC_PREREQ(2.50)dnl
  22316. +AC_REQUIRE([AC_ENABLE_SHARED])dnl
  22317. +AC_REQUIRE([AC_ENABLE_STATIC])dnl
  22318. +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  22319. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  22320. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  22321. +AC_REQUIRE([AC_PROG_CC])dnl
  22322. +AC_REQUIRE([AC_PROG_LD])dnl
  22323. +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  22324. +AC_REQUIRE([AC_PROG_NM])dnl
  22325. +
  22326. +AC_REQUIRE([AC_PROG_LN_S])dnl
  22327. +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  22328. +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  22329. +AC_REQUIRE([AC_OBJEXT])dnl
  22330. +AC_REQUIRE([AC_EXEEXT])dnl
  22331. +dnl
  22332. +AC_LIBTOOL_SYS_MAX_CMD_LEN
  22333. +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  22334. +AC_LIBTOOL_OBJDIR
  22335. +
  22336. +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  22337. +_LT_AC_PROG_ECHO_BACKSLASH
  22338. +
  22339. +case $host_os in
  22340. +aix3*)
  22341. + # AIX sometimes has problems with the GCC collect2 program. For some
  22342. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  22343. + # vanish in a puff of smoke.
  22344. + if test "X${COLLECT_NAMES+set}" != Xset; then
  22345. + COLLECT_NAMES=
  22346. + export COLLECT_NAMES
  22347. + fi
  22348. + ;;
  22349. +esac
  22350. +
  22351. +# Sed substitution that helps us do robust quoting. It backslashifies
  22352. +# metacharacters that are still active within double-quoted strings.
  22353. +Xsed='sed -e 1s/^X//'
  22354. +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  22355. +
  22356. +# Same as above, but do not quote variable references.
  22357. +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  22358. +
  22359. +# Sed substitution to delay expansion of an escaped shell variable in a
  22360. +# double_quote_subst'ed string.
  22361. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  22362. +
  22363. +# Sed substitution to avoid accidental globbing in evaled expressions
  22364. +no_glob_subst='s/\*/\\\*/g'
  22365. +
  22366. +# Constants:
  22367. +rm="rm -f"
  22368. +
  22369. +# Global variables:
  22370. +default_ofile=libtool
  22371. +can_build_shared=yes
  22372. +
  22373. +# All known linkers require a `.a' archive for static linking (except MSVC,
  22374. +# which needs '.lib').
  22375. +libext=a
  22376. +ltmain="$ac_aux_dir/ltmain.sh"
  22377. +ofile="$default_ofile"
  22378. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  22379. +
  22380. +AC_CHECK_TOOL(AR, ar, false)
  22381. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  22382. +AC_CHECK_TOOL(STRIP, strip, :)
  22383. +
  22384. +old_CC="$CC"
  22385. +old_CFLAGS="$CFLAGS"
  22386. +
  22387. +# Set sane defaults for various variables
  22388. +test -z "$AR" && AR=ar
  22389. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  22390. +test -z "$AS" && AS=as
  22391. +test -z "$CC" && CC=cc
  22392. +test -z "$LTCC" && LTCC=$CC
  22393. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  22394. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  22395. +test -z "$LD" && LD=ld
  22396. +test -z "$LN_S" && LN_S="ln -s"
  22397. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  22398. +test -z "$NM" && NM=nm
  22399. +test -z "$SED" && SED=sed
  22400. +test -z "$OBJDUMP" && OBJDUMP=objdump
  22401. +test -z "$RANLIB" && RANLIB=:
  22402. +test -z "$STRIP" && STRIP=:
  22403. +test -z "$ac_objext" && ac_objext=o
  22404. +
  22405. +# Determine commands to create old-style static archives.
  22406. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  22407. +old_postinstall_cmds='chmod 644 $oldlib'
  22408. +old_postuninstall_cmds=
  22409. +
  22410. +if test -n "$RANLIB"; then
  22411. + case $host_os in
  22412. + openbsd*)
  22413. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  22414. + ;;
  22415. + *)
  22416. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  22417. + ;;
  22418. + esac
  22419. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  22420. +fi
  22421. +
  22422. +_LT_CC_BASENAME([$compiler])
  22423. +
  22424. +# Only perform the check for file, if the check method requires it
  22425. +case $deplibs_check_method in
  22426. +file_magic*)
  22427. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  22428. + AC_PATH_MAGIC
  22429. + fi
  22430. + ;;
  22431. +esac
  22432. +
  22433. +_LT_REQUIRED_DARWIN_CHECKS
  22434. +
  22435. +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  22436. +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  22437. +enable_win32_dll=yes, enable_win32_dll=no)
  22438. +
  22439. +AC_ARG_ENABLE([libtool-lock],
  22440. + [AC_HELP_STRING([--disable-libtool-lock],
  22441. + [avoid locking (might break parallel builds)])])
  22442. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  22443. +
  22444. +AC_ARG_WITH([pic],
  22445. + [AC_HELP_STRING([--with-pic],
  22446. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  22447. + [pic_mode="$withval"],
  22448. + [pic_mode=default])
  22449. +test -z "$pic_mode" && pic_mode=default
  22450. +
  22451. +# Use C for the default configuration in the libtool script
  22452. +tagname=
  22453. +AC_LIBTOOL_LANG_C_CONFIG
  22454. +_LT_AC_TAGCONFIG
  22455. +])# AC_LIBTOOL_SETUP
  22456. +
  22457. +
  22458. +# _LT_AC_SYS_COMPILER
  22459. +# -------------------
  22460. +AC_DEFUN([_LT_AC_SYS_COMPILER],
  22461. +[AC_REQUIRE([AC_PROG_CC])dnl
  22462. +
  22463. +# If no C compiler was specified, use CC.
  22464. +LTCC=${LTCC-"$CC"}
  22465. +
  22466. +# If no C compiler flags were specified, use CFLAGS.
  22467. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  22468. +
  22469. +# Allow CC to be a program name with arguments.
  22470. +compiler=$CC
  22471. +])# _LT_AC_SYS_COMPILER
  22472. +
  22473. +
  22474. +# _LT_CC_BASENAME(CC)
  22475. +# -------------------
  22476. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  22477. +AC_DEFUN([_LT_CC_BASENAME],
  22478. +[for cc_temp in $1""; do
  22479. + case $cc_temp in
  22480. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  22481. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  22482. + \-*) ;;
  22483. + *) break;;
  22484. + esac
  22485. +done
  22486. +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  22487. +])
  22488. +
  22489. +
  22490. +# _LT_COMPILER_BOILERPLATE
  22491. +# ------------------------
  22492. +# Check for compiler boilerplate output or warnings with
  22493. +# the simple compiler test code.
  22494. +AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  22495. +[AC_REQUIRE([LT_AC_PROG_SED])dnl
  22496. +ac_outfile=conftest.$ac_objext
  22497. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  22498. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  22499. +_lt_compiler_boilerplate=`cat conftest.err`
  22500. +$rm conftest*
  22501. +])# _LT_COMPILER_BOILERPLATE
  22502. +
  22503. +
  22504. +# _LT_LINKER_BOILERPLATE
  22505. +# ----------------------
  22506. +# Check for linker boilerplate output or warnings with
  22507. +# the simple link test code.
  22508. +AC_DEFUN([_LT_LINKER_BOILERPLATE],
  22509. +[AC_REQUIRE([LT_AC_PROG_SED])dnl
  22510. +ac_outfile=conftest.$ac_objext
  22511. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  22512. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  22513. +_lt_linker_boilerplate=`cat conftest.err`
  22514. +$rm -r conftest*
  22515. +])# _LT_LINKER_BOILERPLATE
  22516. +
  22517. +# _LT_REQUIRED_DARWIN_CHECKS
  22518. +# --------------------------
  22519. +# Check for some things on darwin
  22520. +AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
  22521. + case $host_os in
  22522. + rhapsody* | darwin*)
  22523. + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  22524. + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  22525. +
  22526. + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  22527. + [lt_cv_apple_cc_single_mod=no
  22528. + if test -z "${LT_MULTI_MODULE}"; then
  22529. + # By default we will add the -single_module flag. You can override
  22530. + # by either setting the environment variable LT_MULTI_MODULE
  22531. + # non-empty at configure time, or by adding -multi_module to the
  22532. + # link flags.
  22533. + echo "int foo(void){return 1;}" > conftest.c
  22534. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  22535. + -dynamiclib ${wl}-single_module conftest.c
  22536. + if test -f libconftest.dylib; then
  22537. + lt_cv_apple_cc_single_mod=yes
  22538. + rm -rf libconftest.dylib*
  22539. + fi
  22540. + rm conftest.c
  22541. + fi])
  22542. + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  22543. + [lt_cv_ld_exported_symbols_list],
  22544. + [lt_cv_ld_exported_symbols_list=no
  22545. + save_LDFLAGS=$LDFLAGS
  22546. + echo "_main" > conftest.sym
  22547. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  22548. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  22549. + [lt_cv_ld_exported_symbols_list=yes],
  22550. + [lt_cv_ld_exported_symbols_list=no])
  22551. + LDFLAGS="$save_LDFLAGS"
  22552. + ])
  22553. + case $host_os in
  22554. + rhapsody* | darwin1.[[0123]])
  22555. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  22556. + darwin1.*)
  22557. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  22558. + darwin*)
  22559. + # if running on 10.5 or later, the deployment target defaults
  22560. + # to the OS version, if on x86, and 10.4, the deployment
  22561. + # target defaults to 10.4. Don't you love it?
  22562. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  22563. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  22564. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  22565. + 10.[[012]]*)
  22566. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  22567. + 10.*)
  22568. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  22569. + esac
  22570. + ;;
  22571. + esac
  22572. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  22573. + _lt_dar_single_mod='$single_module'
  22574. + fi
  22575. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  22576. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  22577. + else
  22578. + _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
  22579. + fi
  22580. + if test "$DSYMUTIL" != ":"; then
  22581. + _lt_dsymutil="~$DSYMUTIL \$lib || :"
  22582. + else
  22583. + _lt_dsymutil=
  22584. + fi
  22585. + ;;
  22586. + esac
  22587. +])
  22588. +
  22589. +# _LT_AC_SYS_LIBPATH_AIX
  22590. +# ----------------------
  22591. +# Links a minimal program and checks the executable
  22592. +# for the system default hardcoded library path. In most cases,
  22593. +# this is /usr/lib:/lib, but when the MPI compilers are used
  22594. +# the location of the communication and MPI libs are included too.
  22595. +# If we don't find anything, use the default library path according
  22596. +# to the aix ld manual.
  22597. +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  22598. +[AC_REQUIRE([LT_AC_PROG_SED])dnl
  22599. +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  22600. +lt_aix_libpath_sed='
  22601. + /Import File Strings/,/^$/ {
  22602. + /^0/ {
  22603. + s/^0 *\(.*\)$/\1/
  22604. + p
  22605. + }
  22606. + }'
  22607. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  22608. +# Check for a 64-bit object if we didn't find anything.
  22609. +if test -z "$aix_libpath"; then
  22610. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  22611. +fi],[])
  22612. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  22613. +])# _LT_AC_SYS_LIBPATH_AIX
  22614. +
  22615. +
  22616. +# _LT_AC_SHELL_INIT(ARG)
  22617. +# ----------------------
  22618. +AC_DEFUN([_LT_AC_SHELL_INIT],
  22619. +[ifdef([AC_DIVERSION_NOTICE],
  22620. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  22621. + [AC_DIVERT_PUSH(NOTICE)])
  22622. +$1
  22623. +AC_DIVERT_POP
  22624. +])# _LT_AC_SHELL_INIT
  22625. +
  22626. +
  22627. +# _LT_AC_PROG_ECHO_BACKSLASH
  22628. +# --------------------------
  22629. +# Add some code to the start of the generated configure script which
  22630. +# will find an echo command which doesn't interpret backslashes.
  22631. +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  22632. +[_LT_AC_SHELL_INIT([
  22633. +# Check that we are running under the correct shell.
  22634. +SHELL=${CONFIG_SHELL-/bin/sh}
  22635. +
  22636. +case X$ECHO in
  22637. +X*--fallback-echo)
  22638. + # Remove one level of quotation (which was required for Make).
  22639. + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  22640. + ;;
  22641. +esac
  22642. +
  22643. +echo=${ECHO-echo}
  22644. +if test "X[$]1" = X--no-reexec; then
  22645. + # Discard the --no-reexec flag, and continue.
  22646. + shift
  22647. +elif test "X[$]1" = X--fallback-echo; then
  22648. + # Avoid inline document here, it may be left over
  22649. + :
  22650. +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  22651. + # Yippee, $echo works!
  22652. + :
  22653. +else
  22654. + # Restart under the correct shell.
  22655. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  22656. +fi
  22657. +
  22658. +if test "X[$]1" = X--fallback-echo; then
  22659. + # used as fallback echo
  22660. + shift
  22661. + cat <<EOF
  22662. +[$]*
  22663. +EOF
  22664. + exit 0
  22665. +fi
  22666. +
  22667. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  22668. +# if CDPATH is set.
  22669. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22670. +
  22671. +if test -z "$ECHO"; then
  22672. +if test "X${echo_test_string+set}" != Xset; then
  22673. +# find a string as large as possible, as long as the shell can cope with it
  22674. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  22675. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  22676. + if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  22677. + echo_test_string=`eval $cmd` &&
  22678. + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  22679. + then
  22680. + break
  22681. + fi
  22682. + done
  22683. +fi
  22684. +
  22685. +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  22686. + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  22687. + test "X$echo_testing_string" = "X$echo_test_string"; then
  22688. + :
  22689. +else
  22690. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  22691. + # backslashes. This makes it impossible to quote backslashes using
  22692. + # echo "$something" | sed 's/\\/\\\\/g'
  22693. + #
  22694. + # So, first we look for a working echo in the user's PATH.
  22695. +
  22696. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  22697. + for dir in $PATH /usr/ucb; do
  22698. + IFS="$lt_save_ifs"
  22699. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  22700. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  22701. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  22702. + test "X$echo_testing_string" = "X$echo_test_string"; then
  22703. + echo="$dir/echo"
  22704. + break
  22705. + fi
  22706. + done
  22707. + IFS="$lt_save_ifs"
  22708. +
  22709. + if test "X$echo" = Xecho; then
  22710. + # We didn't find a better echo, so look for alternatives.
  22711. + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  22712. + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  22713. + test "X$echo_testing_string" = "X$echo_test_string"; then
  22714. + # This shell has a builtin print -r that does the trick.
  22715. + echo='print -r'
  22716. + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  22717. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  22718. + # If we have ksh, try running configure again with it.
  22719. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  22720. + export ORIGINAL_CONFIG_SHELL
  22721. + CONFIG_SHELL=/bin/ksh
  22722. + export CONFIG_SHELL
  22723. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  22724. + else
  22725. + # Try using printf.
  22726. + echo='printf %s\n'
  22727. + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  22728. + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  22729. + test "X$echo_testing_string" = "X$echo_test_string"; then
  22730. + # Cool, printf works
  22731. + :
  22732. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  22733. + test "X$echo_testing_string" = 'X\t' &&
  22734. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  22735. + test "X$echo_testing_string" = "X$echo_test_string"; then
  22736. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  22737. + export CONFIG_SHELL
  22738. + SHELL="$CONFIG_SHELL"
  22739. + export SHELL
  22740. + echo="$CONFIG_SHELL [$]0 --fallback-echo"
  22741. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  22742. + test "X$echo_testing_string" = 'X\t' &&
  22743. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  22744. + test "X$echo_testing_string" = "X$echo_test_string"; then
  22745. + echo="$CONFIG_SHELL [$]0 --fallback-echo"
  22746. + else
  22747. + # maybe with a smaller string...
  22748. + prev=:
  22749. +
  22750. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  22751. + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  22752. + then
  22753. + break
  22754. + fi
  22755. + prev="$cmd"
  22756. + done
  22757. +
  22758. + if test "$prev" != 'sed 50q "[$]0"'; then
  22759. + echo_test_string=`eval $prev`
  22760. + export echo_test_string
  22761. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  22762. + else
  22763. + # Oops. We lost completely, so just stick with echo.
  22764. + echo=echo
  22765. + fi
  22766. + fi
  22767. + fi
  22768. + fi
  22769. +fi
  22770. +fi
  22771. +
  22772. +# Copy echo and quote the copy suitably for passing to libtool from
  22773. +# the Makefile, instead of quoting the original, which is used later.
  22774. +ECHO=$echo
  22775. +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  22776. + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  22777. +fi
  22778. +
  22779. +AC_SUBST(ECHO)
  22780. +])])# _LT_AC_PROG_ECHO_BACKSLASH
  22781. +
  22782. +
  22783. +# _LT_AC_LOCK
  22784. +# -----------
  22785. +AC_DEFUN([_LT_AC_LOCK],
  22786. +[AC_ARG_ENABLE([libtool-lock],
  22787. + [AC_HELP_STRING([--disable-libtool-lock],
  22788. + [avoid locking (might break parallel builds)])])
  22789. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  22790. +
  22791. +# Some flags need to be propagated to the compiler or linker for good
  22792. +# libtool support.
  22793. +case $host in
  22794. +ia64-*-hpux*)
  22795. + # Find out which ABI we are using.
  22796. + echo 'int i;' > conftest.$ac_ext
  22797. + if AC_TRY_EVAL(ac_compile); then
  22798. + case `/usr/bin/file conftest.$ac_objext` in
  22799. + *ELF-32*)
  22800. + HPUX_IA64_MODE="32"
  22801. + ;;
  22802. + *ELF-64*)
  22803. + HPUX_IA64_MODE="64"
  22804. + ;;
  22805. + esac
  22806. + fi
  22807. + rm -rf conftest*
  22808. + ;;
  22809. +*-*-irix6*)
  22810. + # Find out which ABI we are using.
  22811. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  22812. + if AC_TRY_EVAL(ac_compile); then
  22813. + if test "$lt_cv_prog_gnu_ld" = yes; then
  22814. + case `/usr/bin/file conftest.$ac_objext` in
  22815. + *32-bit*)
  22816. + LD="${LD-ld} -melf32bsmip"
  22817. + ;;
  22818. + *N32*)
  22819. + LD="${LD-ld} -melf32bmipn32"
  22820. + ;;
  22821. + *64-bit*)
  22822. + LD="${LD-ld} -melf64bmip"
  22823. + ;;
  22824. + esac
  22825. + else
  22826. + case `/usr/bin/file conftest.$ac_objext` in
  22827. + *32-bit*)
  22828. + LD="${LD-ld} -32"
  22829. + ;;
  22830. + *N32*)
  22831. + LD="${LD-ld} -n32"
  22832. + ;;
  22833. + *64-bit*)
  22834. + LD="${LD-ld} -64"
  22835. + ;;
  22836. + esac
  22837. + fi
  22838. + fi
  22839. + rm -rf conftest*
  22840. + ;;
  22841. +
  22842. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  22843. +s390*-*linux*|sparc*-*linux*)
  22844. + # Find out which ABI we are using.
  22845. + echo 'int i;' > conftest.$ac_ext
  22846. + if AC_TRY_EVAL(ac_compile); then
  22847. + case `/usr/bin/file conftest.o` in
  22848. + *32-bit*)
  22849. + case $host in
  22850. + x86_64-*kfreebsd*-gnu)
  22851. + LD="${LD-ld} -m elf_i386_fbsd"
  22852. + ;;
  22853. + x86_64-*linux*)
  22854. + LD="${LD-ld} -m elf_i386"
  22855. + ;;
  22856. + ppc64-*linux*|powerpc64-*linux*)
  22857. + LD="${LD-ld} -m elf32ppclinux"
  22858. + ;;
  22859. + s390x-*linux*)
  22860. + LD="${LD-ld} -m elf_s390"
  22861. + ;;
  22862. + sparc64-*linux*)
  22863. + LD="${LD-ld} -m elf32_sparc"
  22864. + ;;
  22865. + esac
  22866. + ;;
  22867. + *64-bit*)
  22868. + case $host in
  22869. + x86_64-*kfreebsd*-gnu)
  22870. + LD="${LD-ld} -m elf_x86_64_fbsd"
  22871. + ;;
  22872. + x86_64-*linux*)
  22873. + LD="${LD-ld} -m elf_x86_64"
  22874. + ;;
  22875. + ppc*-*linux*|powerpc*-*linux*)
  22876. + LD="${LD-ld} -m elf64ppc"
  22877. + ;;
  22878. + s390*-*linux*)
  22879. + LD="${LD-ld} -m elf64_s390"
  22880. + ;;
  22881. + sparc*-*linux*)
  22882. + LD="${LD-ld} -m elf64_sparc"
  22883. + ;;
  22884. + esac
  22885. + ;;
  22886. + esac
  22887. + fi
  22888. + rm -rf conftest*
  22889. + ;;
  22890. +
  22891. +*-*-sco3.2v5*)
  22892. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  22893. + SAVE_CFLAGS="$CFLAGS"
  22894. + CFLAGS="$CFLAGS -belf"
  22895. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  22896. + [AC_LANG_PUSH(C)
  22897. + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  22898. + AC_LANG_POP])
  22899. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  22900. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  22901. + CFLAGS="$SAVE_CFLAGS"
  22902. + fi
  22903. + ;;
  22904. +sparc*-*solaris*)
  22905. + # Find out which ABI we are using.
  22906. + echo 'int i;' > conftest.$ac_ext
  22907. + if AC_TRY_EVAL(ac_compile); then
  22908. + case `/usr/bin/file conftest.o` in
  22909. + *64-bit*)
  22910. + case $lt_cv_prog_gnu_ld in
  22911. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  22912. + *)
  22913. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  22914. + LD="${LD-ld} -64"
  22915. + fi
  22916. + ;;
  22917. + esac
  22918. + ;;
  22919. + esac
  22920. + fi
  22921. + rm -rf conftest*
  22922. + ;;
  22923. +
  22924. +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  22925. +[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  22926. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  22927. + AC_CHECK_TOOL(AS, as, false)
  22928. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  22929. + ;;
  22930. + ])
  22931. +esac
  22932. +
  22933. +need_locks="$enable_libtool_lock"
  22934. +
  22935. +])# _LT_AC_LOCK
  22936. +
  22937. +
  22938. +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  22939. +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  22940. +# ----------------------------------------------------------------
  22941. +# Check whether the given compiler option works
  22942. +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  22943. +[AC_REQUIRE([LT_AC_PROG_SED])
  22944. +AC_CACHE_CHECK([$1], [$2],
  22945. + [$2=no
  22946. + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  22947. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  22948. + lt_compiler_flag="$3"
  22949. + # Insert the option either (1) after the last *FLAGS variable, or
  22950. + # (2) before a word containing "conftest.", or (3) at the end.
  22951. + # Note that $ac_compile itself does not contain backslashes and begins
  22952. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  22953. + # The option is referenced via a variable to avoid confusing sed.
  22954. + lt_compile=`echo "$ac_compile" | $SED \
  22955. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  22956. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  22957. + -e 's:$: $lt_compiler_flag:'`
  22958. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  22959. + (eval "$lt_compile" 2>conftest.err)
  22960. + ac_status=$?
  22961. + cat conftest.err >&AS_MESSAGE_LOG_FD
  22962. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  22963. + if (exit $ac_status) && test -s "$ac_outfile"; then
  22964. + # The compiler can only warn and ignore the option if not recognized
  22965. + # So say no if there are warnings other than the usual output.
  22966. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  22967. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  22968. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  22969. + $2=yes
  22970. + fi
  22971. + fi
  22972. + $rm conftest*
  22973. +])
  22974. +
  22975. +if test x"[$]$2" = xyes; then
  22976. + ifelse([$5], , :, [$5])
  22977. +else
  22978. + ifelse([$6], , :, [$6])
  22979. +fi
  22980. +])# AC_LIBTOOL_COMPILER_OPTION
  22981. +
  22982. +
  22983. +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  22984. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  22985. +# ------------------------------------------------------------
  22986. +# Check whether the given compiler option works
  22987. +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  22988. +[AC_REQUIRE([LT_AC_PROG_SED])dnl
  22989. +AC_CACHE_CHECK([$1], [$2],
  22990. + [$2=no
  22991. + save_LDFLAGS="$LDFLAGS"
  22992. + LDFLAGS="$LDFLAGS $3"
  22993. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  22994. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  22995. + # The linker can only warn and ignore the option if not recognized
  22996. + # So say no if there are warnings
  22997. + if test -s conftest.err; then
  22998. + # Append any errors to the config.log.
  22999. + cat conftest.err 1>&AS_MESSAGE_LOG_FD
  23000. + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  23001. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  23002. + if diff conftest.exp conftest.er2 >/dev/null; then
  23003. + $2=yes
  23004. + fi
  23005. + else
  23006. + $2=yes
  23007. + fi
  23008. + fi
  23009. + $rm -r conftest*
  23010. + LDFLAGS="$save_LDFLAGS"
  23011. +])
  23012. +
  23013. +if test x"[$]$2" = xyes; then
  23014. + ifelse([$4], , :, [$4])
  23015. +else
  23016. + ifelse([$5], , :, [$5])
  23017. +fi
  23018. +])# AC_LIBTOOL_LINKER_OPTION
  23019. +
  23020. +
  23021. +# AC_LIBTOOL_SYS_MAX_CMD_LEN
  23022. +# --------------------------
  23023. +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  23024. +[# find the maximum length of command line arguments
  23025. +AC_MSG_CHECKING([the maximum length of command line arguments])
  23026. +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  23027. + i=0
  23028. + teststring="ABCD"
  23029. +
  23030. + case $build_os in
  23031. + msdosdjgpp*)
  23032. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  23033. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  23034. + # during glob expansion). Even if it were fixed, the result of this
  23035. + # check would be larger than it should be.
  23036. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  23037. + ;;
  23038. +
  23039. + gnu*)
  23040. + # Under GNU Hurd, this test is not required because there is
  23041. + # no limit to the length of command line arguments.
  23042. + # Libtool will interpret -1 as no limit whatsoever
  23043. + lt_cv_sys_max_cmd_len=-1;
  23044. + ;;
  23045. +
  23046. + cygwin* | mingw*)
  23047. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  23048. + # about 5 minutes as the teststring grows exponentially.
  23049. + # Worse, since 9x/ME are not pre-emptively multitasking,
  23050. + # you end up with a "frozen" computer, even though with patience
  23051. + # the test eventually succeeds (with a max line length of 256k).
  23052. + # Instead, let's just punt: use the minimum linelength reported by
  23053. + # all of the supported platforms: 8192 (on NT/2K/XP).
  23054. + lt_cv_sys_max_cmd_len=8192;
  23055. + ;;
  23056. +
  23057. + amigaos*)
  23058. + # On AmigaOS with pdksh, this test takes hours, literally.
  23059. + # So we just punt and use a minimum line length of 8192.
  23060. + lt_cv_sys_max_cmd_len=8192;
  23061. + ;;
  23062. +
  23063. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  23064. + # This has been around since 386BSD, at least. Likely further.
  23065. + if test -x /sbin/sysctl; then
  23066. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  23067. + elif test -x /usr/sbin/sysctl; then
  23068. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  23069. + else
  23070. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  23071. + fi
  23072. + # And add a safety zone
  23073. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  23074. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  23075. + ;;
  23076. +
  23077. + interix*)
  23078. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  23079. + lt_cv_sys_max_cmd_len=196608
  23080. + ;;
  23081. +
  23082. + osf*)
  23083. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  23084. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  23085. + # nice to cause kernel panics so lets avoid the loop below.
  23086. + # First set a reasonable default.
  23087. + lt_cv_sys_max_cmd_len=16384
  23088. + #
  23089. + if test -x /sbin/sysconfig; then
  23090. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  23091. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  23092. + esac
  23093. + fi
  23094. + ;;
  23095. + sco3.2v5*)
  23096. + lt_cv_sys_max_cmd_len=102400
  23097. + ;;
  23098. + sysv5* | sco5v6* | sysv4.2uw2*)
  23099. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  23100. + if test -n "$kargmax"; then
  23101. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  23102. + else
  23103. + lt_cv_sys_max_cmd_len=32768
  23104. + fi
  23105. + ;;
  23106. + *)
  23107. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  23108. + if test -n "$lt_cv_sys_max_cmd_len"; then
  23109. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  23110. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  23111. + else
  23112. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  23113. + while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  23114. + = "XX$teststring") >/dev/null 2>&1 &&
  23115. + new_result=`expr "X$teststring" : ".*" 2>&1` &&
  23116. + lt_cv_sys_max_cmd_len=$new_result &&
  23117. + test $i != 17 # 1/2 MB should be enough
  23118. + do
  23119. + i=`expr $i + 1`
  23120. + teststring=$teststring$teststring
  23121. + done
  23122. + teststring=
  23123. + # Add a significant safety factor because C++ compilers can tack on massive
  23124. + # amounts of additional arguments before passing them to the linker.
  23125. + # It appears as though 1/2 is a usable value.
  23126. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  23127. + fi
  23128. + ;;
  23129. + esac
  23130. +])
  23131. +if test -n $lt_cv_sys_max_cmd_len ; then
  23132. + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  23133. +else
  23134. + AC_MSG_RESULT(none)
  23135. +fi
  23136. +])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  23137. +
  23138. +
  23139. +# _LT_AC_CHECK_DLFCN
  23140. +# ------------------
  23141. +AC_DEFUN([_LT_AC_CHECK_DLFCN],
  23142. +[AC_CHECK_HEADERS(dlfcn.h)dnl
  23143. +])# _LT_AC_CHECK_DLFCN
  23144. +
  23145. +
  23146. +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  23147. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  23148. +# ---------------------------------------------------------------------
  23149. +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  23150. +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  23151. +if test "$cross_compiling" = yes; then :
  23152. + [$4]
  23153. +else
  23154. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  23155. + lt_status=$lt_dlunknown
  23156. + cat > conftest.$ac_ext <<EOF
  23157. +[#line __oline__ "configure"
  23158. +#include "confdefs.h"
  23159. +
  23160. +#if HAVE_DLFCN_H
  23161. +#include <dlfcn.h>
  23162. +#endif
  23163. +
  23164. +#include <stdio.h>
  23165. +
  23166. +#ifdef RTLD_GLOBAL
  23167. +# define LT_DLGLOBAL RTLD_GLOBAL
  23168. +#else
  23169. +# ifdef DL_GLOBAL
  23170. +# define LT_DLGLOBAL DL_GLOBAL
  23171. +# else
  23172. +# define LT_DLGLOBAL 0
  23173. +# endif
  23174. +#endif
  23175. +
  23176. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  23177. + find out it does not work in some platform. */
  23178. +#ifndef LT_DLLAZY_OR_NOW
  23179. +# ifdef RTLD_LAZY
  23180. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  23181. +# else
  23182. +# ifdef DL_LAZY
  23183. +# define LT_DLLAZY_OR_NOW DL_LAZY
  23184. +# else
  23185. +# ifdef RTLD_NOW
  23186. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  23187. +# else
  23188. +# ifdef DL_NOW
  23189. +# define LT_DLLAZY_OR_NOW DL_NOW
  23190. +# else
  23191. +# define LT_DLLAZY_OR_NOW 0
  23192. +# endif
  23193. +# endif
  23194. +# endif
  23195. +# endif
  23196. +#endif
  23197. +
  23198. +#ifdef __cplusplus
  23199. +extern "C" void exit (int);
  23200. +#endif
  23201. +
  23202. +void fnord() { int i=42;}
  23203. +int main ()
  23204. +{
  23205. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  23206. + int status = $lt_dlunknown;
  23207. +
  23208. + if (self)
  23209. + {
  23210. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  23211. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  23212. + /* dlclose (self); */
  23213. + }
  23214. + else
  23215. + puts (dlerror ());
  23216. +
  23217. + exit (status);
  23218. +}]
  23219. +EOF
  23220. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  23221. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  23222. + lt_status=$?
  23223. + case x$lt_status in
  23224. + x$lt_dlno_uscore) $1 ;;
  23225. + x$lt_dlneed_uscore) $2 ;;
  23226. + x$lt_dlunknown|x*) $3 ;;
  23227. + esac
  23228. + else :
  23229. + # compilation failed
  23230. + $3
  23231. + fi
  23232. +fi
  23233. +rm -fr conftest*
  23234. +])# _LT_AC_TRY_DLOPEN_SELF
  23235. +
  23236. +
  23237. +# AC_LIBTOOL_DLOPEN_SELF
  23238. +# ----------------------
  23239. +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  23240. +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  23241. +if test "x$enable_dlopen" != xyes; then
  23242. + enable_dlopen=unknown
  23243. + enable_dlopen_self=unknown
  23244. + enable_dlopen_self_static=unknown
  23245. +else
  23246. + lt_cv_dlopen=no
  23247. + lt_cv_dlopen_libs=
  23248. +
  23249. + case $host_os in
  23250. + beos*)
  23251. + lt_cv_dlopen="load_add_on"
  23252. + lt_cv_dlopen_libs=
  23253. + lt_cv_dlopen_self=yes
  23254. + ;;
  23255. +
  23256. + mingw* | pw32*)
  23257. + lt_cv_dlopen="LoadLibrary"
  23258. + lt_cv_dlopen_libs=
  23259. + ;;
  23260. +
  23261. + cygwin*)
  23262. + lt_cv_dlopen="dlopen"
  23263. + lt_cv_dlopen_libs=
  23264. + ;;
  23265. +
  23266. + darwin*)
  23267. + # if libdl is installed we need to link against it
  23268. + AC_CHECK_LIB([dl], [dlopen],
  23269. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  23270. + lt_cv_dlopen="dyld"
  23271. + lt_cv_dlopen_libs=
  23272. + lt_cv_dlopen_self=yes
  23273. + ])
  23274. + ;;
  23275. +
  23276. + *)
  23277. + AC_CHECK_FUNC([shl_load],
  23278. + [lt_cv_dlopen="shl_load"],
  23279. + [AC_CHECK_LIB([dld], [shl_load],
  23280. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  23281. + [AC_CHECK_FUNC([dlopen],
  23282. + [lt_cv_dlopen="dlopen"],
  23283. + [AC_CHECK_LIB([dl], [dlopen],
  23284. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  23285. + [AC_CHECK_LIB([svld], [dlopen],
  23286. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  23287. + [AC_CHECK_LIB([dld], [dld_link],
  23288. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  23289. + ])
  23290. + ])
  23291. + ])
  23292. + ])
  23293. + ])
  23294. + ;;
  23295. + esac
  23296. +
  23297. + if test "x$lt_cv_dlopen" != xno; then
  23298. + enable_dlopen=yes
  23299. + else
  23300. + enable_dlopen=no
  23301. + fi
  23302. +
  23303. + case $lt_cv_dlopen in
  23304. + dlopen)
  23305. + save_CPPFLAGS="$CPPFLAGS"
  23306. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  23307. +
  23308. + save_LDFLAGS="$LDFLAGS"
  23309. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  23310. +
  23311. + save_LIBS="$LIBS"
  23312. + LIBS="$lt_cv_dlopen_libs $LIBS"
  23313. +
  23314. + AC_CACHE_CHECK([whether a program can dlopen itself],
  23315. + lt_cv_dlopen_self, [dnl
  23316. + _LT_AC_TRY_DLOPEN_SELF(
  23317. + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  23318. + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  23319. + ])
  23320. +
  23321. + if test "x$lt_cv_dlopen_self" = xyes; then
  23322. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  23323. + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  23324. + lt_cv_dlopen_self_static, [dnl
  23325. + _LT_AC_TRY_DLOPEN_SELF(
  23326. + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  23327. + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  23328. + ])
  23329. + fi
  23330. +
  23331. + CPPFLAGS="$save_CPPFLAGS"
  23332. + LDFLAGS="$save_LDFLAGS"
  23333. + LIBS="$save_LIBS"
  23334. + ;;
  23335. + esac
  23336. +
  23337. + case $lt_cv_dlopen_self in
  23338. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  23339. + *) enable_dlopen_self=unknown ;;
  23340. + esac
  23341. +
  23342. + case $lt_cv_dlopen_self_static in
  23343. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  23344. + *) enable_dlopen_self_static=unknown ;;
  23345. + esac
  23346. +fi
  23347. +])# AC_LIBTOOL_DLOPEN_SELF
  23348. +
  23349. +
  23350. +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  23351. +# ---------------------------------
  23352. +# Check to see if options -c and -o are simultaneously supported by compiler
  23353. +AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  23354. +[AC_REQUIRE([LT_AC_PROG_SED])dnl
  23355. +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  23356. +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  23357. + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  23358. + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  23359. + $rm -r conftest 2>/dev/null
  23360. + mkdir conftest
  23361. + cd conftest
  23362. + mkdir out
  23363. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  23364. +
  23365. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  23366. + # Insert the option either (1) after the last *FLAGS variable, or
  23367. + # (2) before a word containing "conftest.", or (3) at the end.
  23368. + # Note that $ac_compile itself does not contain backslashes and begins
  23369. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  23370. + lt_compile=`echo "$ac_compile" | $SED \
  23371. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  23372. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  23373. + -e 's:$: $lt_compiler_flag:'`
  23374. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  23375. + (eval "$lt_compile" 2>out/conftest.err)
  23376. + ac_status=$?
  23377. + cat out/conftest.err >&AS_MESSAGE_LOG_FD
  23378. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  23379. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  23380. + then
  23381. + # The compiler can only warn and ignore the option if not recognized
  23382. + # So say no if there are warnings
  23383. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  23384. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  23385. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  23386. + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  23387. + fi
  23388. + fi
  23389. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  23390. + $rm conftest*
  23391. + # SGI C++ compiler will create directory out/ii_files/ for
  23392. + # template instantiation
  23393. + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  23394. + $rm out/* && rmdir out
  23395. + cd ..
  23396. + rmdir conftest
  23397. + $rm conftest*
  23398. +])
  23399. +])# AC_LIBTOOL_PROG_CC_C_O
  23400. +
  23401. +
  23402. +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  23403. +# -----------------------------------------
  23404. +# Check to see if we can do hard links to lock some files if needed
  23405. +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  23406. +[AC_REQUIRE([_LT_AC_LOCK])dnl
  23407. +
  23408. +hard_links="nottested"
  23409. +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  23410. + # do not overwrite the value of need_locks provided by the user
  23411. + AC_MSG_CHECKING([if we can lock with hard links])
  23412. + hard_links=yes
  23413. + $rm conftest*
  23414. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  23415. + touch conftest.a
  23416. + ln conftest.a conftest.b 2>&5 || hard_links=no
  23417. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  23418. + AC_MSG_RESULT([$hard_links])
  23419. + if test "$hard_links" = no; then
  23420. + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  23421. + need_locks=warn
  23422. + fi
  23423. +else
  23424. + need_locks=no
  23425. +fi
  23426. +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  23427. +
  23428. +
  23429. +# AC_LIBTOOL_OBJDIR
  23430. +# -----------------
  23431. +AC_DEFUN([AC_LIBTOOL_OBJDIR],
  23432. +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  23433. +[rm -f .libs 2>/dev/null
  23434. +mkdir .libs 2>/dev/null
  23435. +if test -d .libs; then
  23436. + lt_cv_objdir=.libs
  23437. +else
  23438. + # MS-DOS does not allow filenames that begin with a dot.
  23439. + lt_cv_objdir=_libs
  23440. +fi
  23441. +rmdir .libs 2>/dev/null])
  23442. +objdir=$lt_cv_objdir
  23443. +])# AC_LIBTOOL_OBJDIR
  23444. +
  23445. +
  23446. +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  23447. +# ----------------------------------------------
  23448. +# Check hardcoding attributes.
  23449. +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  23450. +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  23451. +_LT_AC_TAGVAR(hardcode_action, $1)=
  23452. +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  23453. + test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  23454. + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  23455. +
  23456. + # We can hardcode non-existant directories.
  23457. + if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  23458. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  23459. + # have to relink, otherwise we might link with an installed library
  23460. + # when we should be linking with a yet-to-be-installed one
  23461. + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  23462. + test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  23463. + # Linking always hardcodes the temporary library directory.
  23464. + _LT_AC_TAGVAR(hardcode_action, $1)=relink
  23465. + else
  23466. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  23467. + _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  23468. + fi
  23469. +else
  23470. + # We cannot hardcode anything, or else we can only hardcode existing
  23471. + # directories.
  23472. + _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  23473. +fi
  23474. +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  23475. +
  23476. +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  23477. + # Fast installation is not supported
  23478. + enable_fast_install=no
  23479. +elif test "$shlibpath_overrides_runpath" = yes ||
  23480. + test "$enable_shared" = no; then
  23481. + # Fast installation is not necessary
  23482. + enable_fast_install=needless
  23483. +fi
  23484. +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  23485. +
  23486. +
  23487. +# AC_LIBTOOL_SYS_LIB_STRIP
  23488. +# ------------------------
  23489. +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  23490. +[striplib=
  23491. +old_striplib=
  23492. +AC_MSG_CHECKING([whether stripping libraries is possible])
  23493. +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  23494. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  23495. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  23496. + AC_MSG_RESULT([yes])
  23497. +else
  23498. +# FIXME - insert some real tests, host_os isn't really good enough
  23499. + case $host_os in
  23500. + darwin*)
  23501. + if test -n "$STRIP" ; then
  23502. + striplib="$STRIP -x"
  23503. + old_striplib="$STRIP -S"
  23504. + AC_MSG_RESULT([yes])
  23505. + else
  23506. + AC_MSG_RESULT([no])
  23507. +fi
  23508. + ;;
  23509. + *)
  23510. + AC_MSG_RESULT([no])
  23511. + ;;
  23512. + esac
  23513. +fi
  23514. +])# AC_LIBTOOL_SYS_LIB_STRIP
  23515. +
  23516. +
  23517. +# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  23518. +# -----------------------------
  23519. +# PORTME Fill in your ld.so characteristics
  23520. +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  23521. +[AC_REQUIRE([LT_AC_PROG_SED])dnl
  23522. +AC_MSG_CHECKING([dynamic linker characteristics])
  23523. +library_names_spec=
  23524. +libname_spec='lib$name'
  23525. +soname_spec=
  23526. +shrext_cmds=".so"
  23527. +postinstall_cmds=
  23528. +postuninstall_cmds=
  23529. +finish_cmds=
  23530. +finish_eval=
  23531. +shlibpath_var=
  23532. +shlibpath_overrides_runpath=unknown
  23533. +version_type=none
  23534. +dynamic_linker="$host_os ld.so"
  23535. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  23536. +m4_if($1,[],[
  23537. +if test "$GCC" = yes; then
  23538. + case $host_os in
  23539. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  23540. + *) lt_awk_arg="/^libraries:/" ;;
  23541. + esac
  23542. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  23543. + if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  23544. + # if the path contains ";" then we assume it to be the separator
  23545. + # otherwise default to the standard path separator (i.e. ":") - it is
  23546. + # assumed that no part of a normal pathname contains ";" but that should
  23547. + # okay in the real world where ";" in dirpaths is itself problematic.
  23548. + lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  23549. + else
  23550. + lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  23551. + fi
  23552. + # Ok, now we have the path, separated by spaces, we can step through it
  23553. + # and add multilib dir if necessary.
  23554. + lt_tmp_lt_search_path_spec=
  23555. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  23556. + for lt_sys_path in $lt_search_path_spec; do
  23557. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  23558. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  23559. + else
  23560. + test -d "$lt_sys_path" && \
  23561. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  23562. + fi
  23563. + done
  23564. + lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  23565. +BEGIN {RS=" "; FS="/|\n";} {
  23566. + lt_foo="";
  23567. + lt_count=0;
  23568. + for (lt_i = NF; lt_i > 0; lt_i--) {
  23569. + if ($lt_i != "" && $lt_i != ".") {
  23570. + if ($lt_i == "..") {
  23571. + lt_count++;
  23572. + } else {
  23573. + if (lt_count == 0) {
  23574. + lt_foo="/" $lt_i lt_foo;
  23575. + } else {
  23576. + lt_count--;
  23577. + }
  23578. + }
  23579. + }
  23580. + }
  23581. + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  23582. + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  23583. +}'`
  23584. + sys_lib_search_path_spec=`echo $lt_search_path_spec`
  23585. +else
  23586. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  23587. +fi])
  23588. +need_lib_prefix=unknown
  23589. +hardcode_into_libs=no
  23590. +
  23591. +# when you set need_version to no, make sure it does not cause -set_version
  23592. +# flags to be left without arguments
  23593. +need_version=unknown
  23594. +
  23595. +case $host_os in
  23596. +aix3*)
  23597. + version_type=linux
  23598. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  23599. + shlibpath_var=LIBPATH
  23600. +
  23601. + # AIX 3 has no versioning support, so we append a major version to the name.
  23602. + soname_spec='${libname}${release}${shared_ext}$major'
  23603. + ;;
  23604. +
  23605. +aix[[4-9]]*)
  23606. + version_type=linux
  23607. + need_lib_prefix=no
  23608. + need_version=no
  23609. + hardcode_into_libs=yes
  23610. + if test "$host_cpu" = ia64; then
  23611. + # AIX 5 supports IA64
  23612. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  23613. + shlibpath_var=LD_LIBRARY_PATH
  23614. + else
  23615. + # With GCC up to 2.95.x, collect2 would create an import file
  23616. + # for dependence libraries. The import file would start with
  23617. + # the line `#! .'. This would cause the generated library to
  23618. + # depend on `.', always an invalid library. This was fixed in
  23619. + # development snapshots of GCC prior to 3.0.
  23620. + case $host_os in
  23621. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  23622. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  23623. + echo ' yes '
  23624. + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  23625. + :
  23626. + else
  23627. + can_build_shared=no
  23628. + fi
  23629. + ;;
  23630. + esac
  23631. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  23632. + # soname into executable. Probably we can add versioning support to
  23633. + # collect2, so additional links can be useful in future.
  23634. + if test "$aix_use_runtimelinking" = yes; then
  23635. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  23636. + # instead of lib<name>.a to let people know that these are not
  23637. + # typical AIX shared libraries.
  23638. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23639. + else
  23640. + # We preserve .a as extension for shared libraries through AIX4.2
  23641. + # and later when we are not doing run time linking.
  23642. + library_names_spec='${libname}${release}.a $libname.a'
  23643. + soname_spec='${libname}${release}${shared_ext}$major'
  23644. + fi
  23645. + shlibpath_var=LIBPATH
  23646. + fi
  23647. + ;;
  23648. +
  23649. +amigaos*)
  23650. + library_names_spec='$libname.ixlibrary $libname.a'
  23651. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  23652. + 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'
  23653. + ;;
  23654. +
  23655. +beos*)
  23656. + library_names_spec='${libname}${shared_ext}'
  23657. + dynamic_linker="$host_os ld.so"
  23658. + shlibpath_var=LIBRARY_PATH
  23659. + ;;
  23660. +
  23661. +bsdi[[45]]*)
  23662. + version_type=linux
  23663. + need_version=no
  23664. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23665. + soname_spec='${libname}${release}${shared_ext}$major'
  23666. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  23667. + shlibpath_var=LD_LIBRARY_PATH
  23668. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  23669. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  23670. + # the default ld.so.conf also contains /usr/contrib/lib and
  23671. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  23672. + # libtool to hard-code these into programs
  23673. + ;;
  23674. +
  23675. +cygwin* | mingw* | pw32*)
  23676. + version_type=windows
  23677. + shrext_cmds=".dll"
  23678. + need_version=no
  23679. + need_lib_prefix=no
  23680. +
  23681. + case $GCC,$host_os in
  23682. + yes,cygwin* | yes,mingw* | yes,pw32*)
  23683. + library_names_spec='$libname.dll.a'
  23684. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  23685. + postinstall_cmds='base_file=`basename \${file}`~
  23686. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  23687. + dldir=$destdir/`dirname \$dlpath`~
  23688. + test -d \$dldir || mkdir -p \$dldir~
  23689. + $install_prog $dir/$dlname \$dldir/$dlname~
  23690. + chmod a+x \$dldir/$dlname'
  23691. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  23692. + dlpath=$dir/\$dldll~
  23693. + $rm \$dlpath'
  23694. + shlibpath_overrides_runpath=yes
  23695. +
  23696. + case $host_os in
  23697. + cygwin*)
  23698. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  23699. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  23700. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  23701. + ;;
  23702. + mingw*)
  23703. + # MinGW DLLs use traditional 'lib' prefix
  23704. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  23705. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  23706. + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  23707. + # It is most probably a Windows format PATH printed by
  23708. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  23709. + # path with ; separators, and with drive letters. We can handle the
  23710. + # drive letters (cygwin fileutils understands them), so leave them,
  23711. + # especially as we might pass files found there to a mingw objdump,
  23712. + # which wouldn't understand a cygwinified path. Ahh.
  23713. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  23714. + else
  23715. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  23716. + fi
  23717. + ;;
  23718. + pw32*)
  23719. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  23720. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  23721. + ;;
  23722. + esac
  23723. + ;;
  23724. +
  23725. + *)
  23726. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  23727. + ;;
  23728. + esac
  23729. + dynamic_linker='Win32 ld.exe'
  23730. + # FIXME: first we should search . and the directory the executable is in
  23731. + shlibpath_var=PATH
  23732. + ;;
  23733. +
  23734. +darwin* | rhapsody*)
  23735. + dynamic_linker="$host_os dyld"
  23736. + version_type=darwin
  23737. + need_lib_prefix=no
  23738. + need_version=no
  23739. + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  23740. + soname_spec='${libname}${release}${major}$shared_ext'
  23741. + shlibpath_overrides_runpath=yes
  23742. + shlibpath_var=DYLD_LIBRARY_PATH
  23743. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  23744. + m4_if([$1], [],[
  23745. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  23746. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  23747. + ;;
  23748. +
  23749. +dgux*)
  23750. + version_type=linux
  23751. + need_lib_prefix=no
  23752. + need_version=no
  23753. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  23754. + soname_spec='${libname}${release}${shared_ext}$major'
  23755. + shlibpath_var=LD_LIBRARY_PATH
  23756. + ;;
  23757. +
  23758. +freebsd1*)
  23759. + dynamic_linker=no
  23760. + ;;
  23761. +
  23762. +freebsd* | dragonfly*)
  23763. + # DragonFly does not have aout. When/if they implement a new
  23764. + # versioning mechanism, adjust this.
  23765. + if test -x /usr/bin/objformat; then
  23766. + objformat=`/usr/bin/objformat`
  23767. + else
  23768. + case $host_os in
  23769. + freebsd[[123]]*) objformat=aout ;;
  23770. + *) objformat=elf ;;
  23771. + esac
  23772. + fi
  23773. + version_type=freebsd-$objformat
  23774. + case $version_type in
  23775. + freebsd-elf*)
  23776. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  23777. + need_version=no
  23778. + need_lib_prefix=no
  23779. + ;;
  23780. + freebsd-*)
  23781. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  23782. + need_version=yes
  23783. + ;;
  23784. + esac
  23785. + shlibpath_var=LD_LIBRARY_PATH
  23786. + case $host_os in
  23787. + freebsd2*)
  23788. + shlibpath_overrides_runpath=yes
  23789. + ;;
  23790. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  23791. + shlibpath_overrides_runpath=yes
  23792. + hardcode_into_libs=yes
  23793. + ;;
  23794. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  23795. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  23796. + shlibpath_overrides_runpath=no
  23797. + hardcode_into_libs=yes
  23798. + ;;
  23799. + *) # from 4.6 on, and DragonFly
  23800. + shlibpath_overrides_runpath=yes
  23801. + hardcode_into_libs=yes
  23802. + ;;
  23803. + esac
  23804. + ;;
  23805. +
  23806. +gnu*)
  23807. + version_type=linux
  23808. + need_lib_prefix=no
  23809. + need_version=no
  23810. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  23811. + soname_spec='${libname}${release}${shared_ext}$major'
  23812. + shlibpath_var=LD_LIBRARY_PATH
  23813. + hardcode_into_libs=yes
  23814. + ;;
  23815. +
  23816. +hpux9* | hpux10* | hpux11*)
  23817. + # Give a soname corresponding to the major version so that dld.sl refuses to
  23818. + # link against other versions.
  23819. + version_type=sunos
  23820. + need_lib_prefix=no
  23821. + need_version=no
  23822. + case $host_cpu in
  23823. + ia64*)
  23824. + shrext_cmds='.so'
  23825. + hardcode_into_libs=yes
  23826. + dynamic_linker="$host_os dld.so"
  23827. + shlibpath_var=LD_LIBRARY_PATH
  23828. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  23829. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23830. + soname_spec='${libname}${release}${shared_ext}$major'
  23831. + if test "X$HPUX_IA64_MODE" = X32; then
  23832. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  23833. + else
  23834. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  23835. + fi
  23836. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  23837. + ;;
  23838. + hppa*64*)
  23839. + shrext_cmds='.sl'
  23840. + hardcode_into_libs=yes
  23841. + dynamic_linker="$host_os dld.sl"
  23842. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  23843. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  23844. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23845. + soname_spec='${libname}${release}${shared_ext}$major'
  23846. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  23847. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  23848. + ;;
  23849. + *)
  23850. + shrext_cmds='.sl'
  23851. + dynamic_linker="$host_os dld.sl"
  23852. + shlibpath_var=SHLIB_PATH
  23853. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  23854. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23855. + soname_spec='${libname}${release}${shared_ext}$major'
  23856. + ;;
  23857. + esac
  23858. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  23859. + postinstall_cmds='chmod 555 $lib'
  23860. + ;;
  23861. +
  23862. +interix[[3-9]]*)
  23863. + version_type=linux
  23864. + need_lib_prefix=no
  23865. + need_version=no
  23866. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  23867. + soname_spec='${libname}${release}${shared_ext}$major'
  23868. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  23869. + shlibpath_var=LD_LIBRARY_PATH
  23870. + shlibpath_overrides_runpath=no
  23871. + hardcode_into_libs=yes
  23872. + ;;
  23873. +
  23874. +irix5* | irix6* | nonstopux*)
  23875. + case $host_os in
  23876. + nonstopux*) version_type=nonstopux ;;
  23877. + *)
  23878. + if test "$lt_cv_prog_gnu_ld" = yes; then
  23879. + version_type=linux
  23880. + else
  23881. + version_type=irix
  23882. + fi ;;
  23883. + esac
  23884. + need_lib_prefix=no
  23885. + need_version=no
  23886. + soname_spec='${libname}${release}${shared_ext}$major'
  23887. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  23888. + case $host_os in
  23889. + irix5* | nonstopux*)
  23890. + libsuff= shlibsuff=
  23891. + ;;
  23892. + *)
  23893. + case $LD in # libtool.m4 will add one of these switches to LD
  23894. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  23895. + libsuff= shlibsuff= libmagic=32-bit;;
  23896. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  23897. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  23898. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  23899. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  23900. + *) libsuff= shlibsuff= libmagic=never-match;;
  23901. + esac
  23902. + ;;
  23903. + esac
  23904. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  23905. + shlibpath_overrides_runpath=no
  23906. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  23907. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  23908. + hardcode_into_libs=yes
  23909. + ;;
  23910. +
  23911. +# No shared lib support for Linux oldld, aout, or coff.
  23912. +linux*oldld* | linux*aout* | linux*coff*)
  23913. + dynamic_linker=no
  23914. + ;;
  23915. +
  23916. +# This must be Linux ELF.
  23917. +linux* | k*bsd*-gnu)
  23918. + version_type=linux
  23919. + need_lib_prefix=no
  23920. + need_version=no
  23921. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23922. + soname_spec='${libname}${release}${shared_ext}$major'
  23923. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  23924. + shlibpath_var=LD_LIBRARY_PATH
  23925. + shlibpath_overrides_runpath=no
  23926. + # This implies no fast_install, which is unacceptable.
  23927. + # Some rework will be needed to allow for fast_install
  23928. + # before this can be enabled.
  23929. + hardcode_into_libs=yes
  23930. +
  23931. + # Append ld.so.conf contents to the search path
  23932. + if test -f /etc/ld.so.conf; then
  23933. + 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' ' '`
  23934. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  23935. + fi
  23936. +
  23937. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  23938. + # powerpc, because MkLinux only supported shared libraries with the
  23939. + # GNU dynamic linker. Since this was broken with cross compilers,
  23940. + # most powerpc-linux boxes support dynamic linking these days and
  23941. + # people can always --disable-shared, the test was removed, and we
  23942. + # assume the GNU/Linux dynamic linker is in use.
  23943. + dynamic_linker='GNU/Linux ld.so'
  23944. + ;;
  23945. +
  23946. +netbsdelf*-gnu)
  23947. + version_type=linux
  23948. + need_lib_prefix=no
  23949. + need_version=no
  23950. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  23951. + soname_spec='${libname}${release}${shared_ext}$major'
  23952. + shlibpath_var=LD_LIBRARY_PATH
  23953. + shlibpath_overrides_runpath=no
  23954. + hardcode_into_libs=yes
  23955. + dynamic_linker='NetBSD ld.elf_so'
  23956. + ;;
  23957. +
  23958. +netbsd*)
  23959. + version_type=sunos
  23960. + need_lib_prefix=no
  23961. + need_version=no
  23962. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  23963. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  23964. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  23965. + dynamic_linker='NetBSD (a.out) ld.so'
  23966. + else
  23967. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  23968. + soname_spec='${libname}${release}${shared_ext}$major'
  23969. + dynamic_linker='NetBSD ld.elf_so'
  23970. + fi
  23971. + shlibpath_var=LD_LIBRARY_PATH
  23972. + shlibpath_overrides_runpath=yes
  23973. + hardcode_into_libs=yes
  23974. + ;;
  23975. +
  23976. +newsos6)
  23977. + version_type=linux
  23978. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23979. + shlibpath_var=LD_LIBRARY_PATH
  23980. + shlibpath_overrides_runpath=yes
  23981. + ;;
  23982. +
  23983. +nto-qnx*)
  23984. + version_type=linux
  23985. + need_lib_prefix=no
  23986. + need_version=no
  23987. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23988. + soname_spec='${libname}${release}${shared_ext}$major'
  23989. + shlibpath_var=LD_LIBRARY_PATH
  23990. + shlibpath_overrides_runpath=yes
  23991. + ;;
  23992. +
  23993. +openbsd*)
  23994. + version_type=sunos
  23995. + sys_lib_dlsearch_path_spec="/usr/lib"
  23996. + need_lib_prefix=no
  23997. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  23998. + case $host_os in
  23999. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  24000. + *) need_version=no ;;
  24001. + esac
  24002. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  24003. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  24004. + shlibpath_var=LD_LIBRARY_PATH
  24005. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  24006. + case $host_os in
  24007. + openbsd2.[[89]] | openbsd2.[[89]].*)
  24008. + shlibpath_overrides_runpath=no
  24009. + ;;
  24010. + *)
  24011. + shlibpath_overrides_runpath=yes
  24012. + ;;
  24013. + esac
  24014. + else
  24015. + shlibpath_overrides_runpath=yes
  24016. + fi
  24017. + ;;
  24018. +
  24019. +os2*)
  24020. + libname_spec='$name'
  24021. + shrext_cmds=".dll"
  24022. + need_lib_prefix=no
  24023. + library_names_spec='$libname${shared_ext} $libname.a'
  24024. + dynamic_linker='OS/2 ld.exe'
  24025. + shlibpath_var=LIBPATH
  24026. + ;;
  24027. +
  24028. +osf3* | osf4* | osf5*)
  24029. + version_type=osf
  24030. + need_lib_prefix=no
  24031. + need_version=no
  24032. + soname_spec='${libname}${release}${shared_ext}$major'
  24033. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24034. + shlibpath_var=LD_LIBRARY_PATH
  24035. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  24036. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  24037. + ;;
  24038. +
  24039. +rdos*)
  24040. + dynamic_linker=no
  24041. + ;;
  24042. +
  24043. +solaris*)
  24044. + version_type=linux
  24045. + need_lib_prefix=no
  24046. + need_version=no
  24047. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24048. + soname_spec='${libname}${release}${shared_ext}$major'
  24049. + shlibpath_var=LD_LIBRARY_PATH
  24050. + shlibpath_overrides_runpath=yes
  24051. + hardcode_into_libs=yes
  24052. + # ldd complains unless libraries are executable
  24053. + postinstall_cmds='chmod +x $lib'
  24054. + ;;
  24055. +
  24056. +sunos4*)
  24057. + version_type=sunos
  24058. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  24059. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  24060. + shlibpath_var=LD_LIBRARY_PATH
  24061. + shlibpath_overrides_runpath=yes
  24062. + if test "$with_gnu_ld" = yes; then
  24063. + need_lib_prefix=no
  24064. + fi
  24065. + need_version=yes
  24066. + ;;
  24067. +
  24068. +sysv4 | sysv4.3*)
  24069. + version_type=linux
  24070. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24071. + soname_spec='${libname}${release}${shared_ext}$major'
  24072. + shlibpath_var=LD_LIBRARY_PATH
  24073. + case $host_vendor in
  24074. + sni)
  24075. + shlibpath_overrides_runpath=no
  24076. + need_lib_prefix=no
  24077. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  24078. + runpath_var=LD_RUN_PATH
  24079. + ;;
  24080. + siemens)
  24081. + need_lib_prefix=no
  24082. + ;;
  24083. + motorola)
  24084. + need_lib_prefix=no
  24085. + need_version=no
  24086. + shlibpath_overrides_runpath=no
  24087. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  24088. + ;;
  24089. + esac
  24090. + ;;
  24091. +
  24092. +sysv4*MP*)
  24093. + if test -d /usr/nec ;then
  24094. + version_type=linux
  24095. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  24096. + soname_spec='$libname${shared_ext}.$major'
  24097. + shlibpath_var=LD_LIBRARY_PATH
  24098. + fi
  24099. + ;;
  24100. +
  24101. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  24102. + version_type=freebsd-elf
  24103. + need_lib_prefix=no
  24104. + need_version=no
  24105. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  24106. + soname_spec='${libname}${release}${shared_ext}$major'
  24107. + shlibpath_var=LD_LIBRARY_PATH
  24108. + hardcode_into_libs=yes
  24109. + if test "$with_gnu_ld" = yes; then
  24110. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  24111. + shlibpath_overrides_runpath=no
  24112. + else
  24113. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  24114. + shlibpath_overrides_runpath=yes
  24115. + case $host_os in
  24116. + sco3.2v5*)
  24117. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  24118. + ;;
  24119. + esac
  24120. + fi
  24121. + sys_lib_dlsearch_path_spec='/usr/lib'
  24122. + ;;
  24123. +
  24124. +uts4*)
  24125. + version_type=linux
  24126. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24127. + soname_spec='${libname}${release}${shared_ext}$major'
  24128. + shlibpath_var=LD_LIBRARY_PATH
  24129. + ;;
  24130. +
  24131. +*)
  24132. + dynamic_linker=no
  24133. + ;;
  24134. +esac
  24135. +AC_MSG_RESULT([$dynamic_linker])
  24136. +test "$dynamic_linker" = no && can_build_shared=no
  24137. +
  24138. +AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
  24139. +[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
  24140. +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  24141. +AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
  24142. +[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
  24143. +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  24144. +
  24145. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  24146. +if test "$GCC" = yes; then
  24147. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  24148. +fi
  24149. +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  24150. +
  24151. +
  24152. +# _LT_AC_TAGCONFIG
  24153. +# ----------------
  24154. +AC_DEFUN([_LT_AC_TAGCONFIG],
  24155. +[AC_REQUIRE([LT_AC_PROG_SED])dnl
  24156. +AC_ARG_WITH([tags],
  24157. + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  24158. + [include additional configurations @<:@automatic@:>@])],
  24159. + [tagnames="$withval"])
  24160. +
  24161. +if test -f "$ltmain" && test -n "$tagnames"; then
  24162. + if test ! -f "${ofile}"; then
  24163. + AC_MSG_WARN([output file `$ofile' does not exist])
  24164. + fi
  24165. +
  24166. + if test -z "$LTCC"; then
  24167. + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  24168. + if test -z "$LTCC"; then
  24169. + AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  24170. + else
  24171. + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  24172. + fi
  24173. + fi
  24174. + if test -z "$LTCFLAGS"; then
  24175. + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  24176. + fi
  24177. +
  24178. + # Extract list of available tagged configurations in $ofile.
  24179. + # Note that this assumes the entire list is on one line.
  24180. + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  24181. +
  24182. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  24183. + for tagname in $tagnames; do
  24184. + IFS="$lt_save_ifs"
  24185. + # Check whether tagname contains only valid characters
  24186. + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  24187. + "") ;;
  24188. + *) AC_MSG_ERROR([invalid tag name: $tagname])
  24189. + ;;
  24190. + esac
  24191. +
  24192. + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  24193. + then
  24194. + AC_MSG_ERROR([tag name \"$tagname\" already exists])
  24195. + fi
  24196. +
  24197. + # Update the list of available tags.
  24198. + if test -n "$tagname"; then
  24199. + echo appending configuration tag \"$tagname\" to $ofile
  24200. +
  24201. + case $tagname in
  24202. + CXX)
  24203. + if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  24204. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  24205. + (test "X$CXX" != "Xg++"))) ; then
  24206. + AC_LIBTOOL_LANG_CXX_CONFIG
  24207. + else
  24208. + tagname=""
  24209. + fi
  24210. + ;;
  24211. +
  24212. + F77)
  24213. + if test -n "$F77" && test "X$F77" != "Xno"; then
  24214. + AC_LIBTOOL_LANG_F77_CONFIG
  24215. + else
  24216. + tagname=""
  24217. + fi
  24218. + ;;
  24219. +
  24220. + GCJ)
  24221. + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  24222. + AC_LIBTOOL_LANG_GCJ_CONFIG
  24223. + else
  24224. + tagname=""
  24225. + fi
  24226. + ;;
  24227. +
  24228. + RC)
  24229. + AC_LIBTOOL_LANG_RC_CONFIG
  24230. + ;;
  24231. +
  24232. + *)
  24233. + AC_MSG_ERROR([Unsupported tag name: $tagname])
  24234. + ;;
  24235. + esac
  24236. +
  24237. + # Append the new tag name to the list of available tags.
  24238. + if test -n "$tagname" ; then
  24239. + available_tags="$available_tags $tagname"
  24240. + fi
  24241. + fi
  24242. + done
  24243. + IFS="$lt_save_ifs"
  24244. +
  24245. + # Now substitute the updated list of available tags.
  24246. + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  24247. + mv "${ofile}T" "$ofile"
  24248. + chmod +x "$ofile"
  24249. + else
  24250. + rm -f "${ofile}T"
  24251. + AC_MSG_ERROR([unable to update list of available tagged configurations.])
  24252. + fi
  24253. +fi
  24254. +])# _LT_AC_TAGCONFIG
  24255. +
  24256. +
  24257. +# AC_LIBTOOL_DLOPEN
  24258. +# -----------------
  24259. +# enable checks for dlopen support
  24260. +AC_DEFUN([AC_LIBTOOL_DLOPEN],
  24261. + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  24262. +])# AC_LIBTOOL_DLOPEN
  24263. +
  24264. +
  24265. +# AC_LIBTOOL_WIN32_DLL
  24266. +# --------------------
  24267. +# declare package support for building win32 DLLs
  24268. +AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  24269. +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  24270. +])# AC_LIBTOOL_WIN32_DLL
  24271. +
  24272. +
  24273. +# AC_ENABLE_SHARED([DEFAULT])
  24274. +# ---------------------------
  24275. +# implement the --enable-shared flag
  24276. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  24277. +AC_DEFUN([AC_ENABLE_SHARED],
  24278. +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  24279. +AC_ARG_ENABLE([shared],
  24280. + [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  24281. + [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  24282. + [p=${PACKAGE-default}
  24283. + case $enableval in
  24284. + yes) enable_shared=yes ;;
  24285. + no) enable_shared=no ;;
  24286. + *)
  24287. + enable_shared=no
  24288. + # Look at the argument we got. We use all the common list separators.
  24289. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  24290. + for pkg in $enableval; do
  24291. + IFS="$lt_save_ifs"
  24292. + if test "X$pkg" = "X$p"; then
  24293. + enable_shared=yes
  24294. + fi
  24295. + done
  24296. + IFS="$lt_save_ifs"
  24297. + ;;
  24298. + esac],
  24299. + [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  24300. +])# AC_ENABLE_SHARED
  24301. +
  24302. +
  24303. +# AC_DISABLE_SHARED
  24304. +# -----------------
  24305. +# set the default shared flag to --disable-shared
  24306. +AC_DEFUN([AC_DISABLE_SHARED],
  24307. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  24308. +AC_ENABLE_SHARED(no)
  24309. +])# AC_DISABLE_SHARED
  24310. +
  24311. +
  24312. +# AC_ENABLE_STATIC([DEFAULT])
  24313. +# ---------------------------
  24314. +# implement the --enable-static flag
  24315. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  24316. +AC_DEFUN([AC_ENABLE_STATIC],
  24317. +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  24318. +AC_ARG_ENABLE([static],
  24319. + [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  24320. + [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  24321. + [p=${PACKAGE-default}
  24322. + case $enableval in
  24323. + yes) enable_static=yes ;;
  24324. + no) enable_static=no ;;
  24325. + *)
  24326. + enable_static=no
  24327. + # Look at the argument we got. We use all the common list separators.
  24328. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  24329. + for pkg in $enableval; do
  24330. + IFS="$lt_save_ifs"
  24331. + if test "X$pkg" = "X$p"; then
  24332. + enable_static=yes
  24333. + fi
  24334. + done
  24335. + IFS="$lt_save_ifs"
  24336. + ;;
  24337. + esac],
  24338. + [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  24339. +])# AC_ENABLE_STATIC
  24340. +
  24341. +
  24342. +# AC_DISABLE_STATIC
  24343. +# -----------------
  24344. +# set the default static flag to --disable-static
  24345. +AC_DEFUN([AC_DISABLE_STATIC],
  24346. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  24347. +AC_ENABLE_STATIC(no)
  24348. +])# AC_DISABLE_STATIC
  24349. +
  24350. +
  24351. +# AC_ENABLE_FAST_INSTALL([DEFAULT])
  24352. +# ---------------------------------
  24353. +# implement the --enable-fast-install flag
  24354. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  24355. +AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  24356. +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  24357. +AC_ARG_ENABLE([fast-install],
  24358. + [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  24359. + [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  24360. + [p=${PACKAGE-default}
  24361. + case $enableval in
  24362. + yes) enable_fast_install=yes ;;
  24363. + no) enable_fast_install=no ;;
  24364. + *)
  24365. + enable_fast_install=no
  24366. + # Look at the argument we got. We use all the common list separators.
  24367. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  24368. + for pkg in $enableval; do
  24369. + IFS="$lt_save_ifs"
  24370. + if test "X$pkg" = "X$p"; then
  24371. + enable_fast_install=yes
  24372. + fi
  24373. + done
  24374. + IFS="$lt_save_ifs"
  24375. + ;;
  24376. + esac],
  24377. + [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  24378. +])# AC_ENABLE_FAST_INSTALL
  24379. +
  24380. +
  24381. +# AC_DISABLE_FAST_INSTALL
  24382. +# -----------------------
  24383. +# set the default to --disable-fast-install
  24384. +AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  24385. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  24386. +AC_ENABLE_FAST_INSTALL(no)
  24387. +])# AC_DISABLE_FAST_INSTALL
  24388. +
  24389. +
  24390. +# AC_LIBTOOL_PICMODE([MODE])
  24391. +# --------------------------
  24392. +# implement the --with-pic flag
  24393. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  24394. +AC_DEFUN([AC_LIBTOOL_PICMODE],
  24395. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  24396. +pic_mode=ifelse($#,1,$1,default)
  24397. +])# AC_LIBTOOL_PICMODE
  24398. +
  24399. +
  24400. +# AC_PROG_EGREP
  24401. +# -------------
  24402. +# This is predefined starting with Autoconf 2.54, so this conditional
  24403. +# definition can be removed once we require Autoconf 2.54 or later.
  24404. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  24405. +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  24406. + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  24407. + then ac_cv_prog_egrep='grep -E'
  24408. + else ac_cv_prog_egrep='egrep'
  24409. + fi])
  24410. + EGREP=$ac_cv_prog_egrep
  24411. + AC_SUBST([EGREP])
  24412. +])])
  24413. +
  24414. +
  24415. +# AC_PATH_TOOL_PREFIX
  24416. +# -------------------
  24417. +# find a file program which can recognize shared library
  24418. +AC_DEFUN([AC_PATH_TOOL_PREFIX],
  24419. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  24420. +AC_MSG_CHECKING([for $1])
  24421. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  24422. +[case $MAGIC_CMD in
  24423. +[[\\/*] | ?:[\\/]*])
  24424. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  24425. + ;;
  24426. +*)
  24427. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  24428. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  24429. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  24430. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  24431. +dnl not every word. This closes a longstanding sh security hole.
  24432. + ac_dummy="ifelse([$2], , $PATH, [$2])"
  24433. + for ac_dir in $ac_dummy; do
  24434. + IFS="$lt_save_ifs"
  24435. + test -z "$ac_dir" && ac_dir=.
  24436. + if test -f $ac_dir/$1; then
  24437. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  24438. + if test -n "$file_magic_test_file"; then
  24439. + case $deplibs_check_method in
  24440. + "file_magic "*)
  24441. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  24442. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  24443. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  24444. + $EGREP "$file_magic_regex" > /dev/null; then
  24445. + :
  24446. + else
  24447. + cat <<EOF 1>&2
  24448. +
  24449. +*** Warning: the command libtool uses to detect shared libraries,
  24450. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  24451. +*** The result is that libtool may fail to recognize shared libraries
  24452. +*** as such. This will affect the creation of libtool libraries that
  24453. +*** depend on shared libraries, but programs linked with such libtool
  24454. +*** libraries will work regardless of this problem. Nevertheless, you
  24455. +*** may want to report the problem to your system manager and/or to
  24456. +*** bug-libtool@gnu.org
  24457. +
  24458. +EOF
  24459. + fi ;;
  24460. + esac
  24461. + fi
  24462. + break
  24463. + fi
  24464. + done
  24465. + IFS="$lt_save_ifs"
  24466. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  24467. + ;;
  24468. +esac])
  24469. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  24470. +if test -n "$MAGIC_CMD"; then
  24471. + AC_MSG_RESULT($MAGIC_CMD)
  24472. +else
  24473. + AC_MSG_RESULT(no)
  24474. +fi
  24475. +])# AC_PATH_TOOL_PREFIX
  24476. +
  24477. +
  24478. +# AC_PATH_MAGIC
  24479. +# -------------
  24480. +# find a file program which can recognize a shared library
  24481. +AC_DEFUN([AC_PATH_MAGIC],
  24482. +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  24483. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  24484. + if test -n "$ac_tool_prefix"; then
  24485. + AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  24486. + else
  24487. + MAGIC_CMD=:
  24488. + fi
  24489. +fi
  24490. +])# AC_PATH_MAGIC
  24491. +
  24492. +
  24493. +# AC_PROG_LD
  24494. +# ----------
  24495. +# find the pathname to the GNU or non-GNU linker
  24496. +AC_DEFUN([AC_PROG_LD],
  24497. +[AC_ARG_WITH([gnu-ld],
  24498. + [AC_HELP_STRING([--with-gnu-ld],
  24499. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  24500. + [test "$withval" = no || with_gnu_ld=yes],
  24501. + [with_gnu_ld=no])
  24502. +AC_REQUIRE([LT_AC_PROG_SED])dnl
  24503. +AC_REQUIRE([AC_PROG_CC])dnl
  24504. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  24505. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  24506. +ac_prog=ld
  24507. +if test "$GCC" = yes; then
  24508. + # Check if gcc -print-prog-name=ld gives a path.
  24509. + AC_MSG_CHECKING([for ld used by $CC])
  24510. + case $host in
  24511. + *-*-mingw*)
  24512. + # gcc leaves a trailing carriage return which upsets mingw
  24513. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  24514. + *)
  24515. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  24516. + esac
  24517. + case $ac_prog in
  24518. + # Accept absolute paths.
  24519. + [[\\/]]* | ?:[[\\/]]*)
  24520. + re_direlt='/[[^/]][[^/]]*/\.\./'
  24521. + # Canonicalize the pathname of ld
  24522. + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  24523. + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  24524. + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  24525. + done
  24526. + test -z "$LD" && LD="$ac_prog"
  24527. + ;;
  24528. + "")
  24529. + # If it fails, then pretend we aren't using GCC.
  24530. + ac_prog=ld
  24531. + ;;
  24532. + *)
  24533. + # If it is relative, then search for the first ld in PATH.
  24534. + with_gnu_ld=unknown
  24535. + ;;
  24536. + esac
  24537. +elif test "$with_gnu_ld" = yes; then
  24538. + AC_MSG_CHECKING([for GNU ld])
  24539. +else
  24540. + AC_MSG_CHECKING([for non-GNU ld])
  24541. +fi
  24542. +AC_CACHE_VAL(lt_cv_path_LD,
  24543. +[if test -z "$LD"; then
  24544. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  24545. + for ac_dir in $PATH; do
  24546. + IFS="$lt_save_ifs"
  24547. + test -z "$ac_dir" && ac_dir=.
  24548. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  24549. + lt_cv_path_LD="$ac_dir/$ac_prog"
  24550. + # Check to see if the program is GNU ld. I'd rather use --version,
  24551. + # but apparently some variants of GNU ld only accept -v.
  24552. + # Break only if it was the GNU/non-GNU ld that we prefer.
  24553. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  24554. + *GNU* | *'with BFD'*)
  24555. + test "$with_gnu_ld" != no && break
  24556. + ;;
  24557. + *)
  24558. + test "$with_gnu_ld" != yes && break
  24559. + ;;
  24560. + esac
  24561. + fi
  24562. + done
  24563. + IFS="$lt_save_ifs"
  24564. +else
  24565. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  24566. +fi])
  24567. +LD="$lt_cv_path_LD"
  24568. +if test -n "$LD"; then
  24569. + AC_MSG_RESULT($LD)
  24570. +else
  24571. + AC_MSG_RESULT(no)
  24572. +fi
  24573. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  24574. +AC_PROG_LD_GNU
  24575. +])# AC_PROG_LD
  24576. +
  24577. +
  24578. +# AC_PROG_LD_GNU
  24579. +# --------------
  24580. +AC_DEFUN([AC_PROG_LD_GNU],
  24581. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  24582. +AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  24583. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  24584. +case `$LD -v 2>&1 </dev/null` in
  24585. +*GNU* | *'with BFD'*)
  24586. + lt_cv_prog_gnu_ld=yes
  24587. + ;;
  24588. +*)
  24589. + lt_cv_prog_gnu_ld=no
  24590. + ;;
  24591. +esac])
  24592. +with_gnu_ld=$lt_cv_prog_gnu_ld
  24593. +])# AC_PROG_LD_GNU
  24594. +
  24595. +
  24596. +# AC_PROG_LD_RELOAD_FLAG
  24597. +# ----------------------
  24598. +# find reload flag for linker
  24599. +# -- PORTME Some linkers may need a different reload flag.
  24600. +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  24601. +[AC_CACHE_CHECK([for $LD option to reload object files],
  24602. + lt_cv_ld_reload_flag,
  24603. + [lt_cv_ld_reload_flag='-r'])
  24604. +reload_flag=$lt_cv_ld_reload_flag
  24605. +case $reload_flag in
  24606. +"" | " "*) ;;
  24607. +*) reload_flag=" $reload_flag" ;;
  24608. +esac
  24609. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  24610. +case $host_os in
  24611. + darwin*)
  24612. + if test "$GCC" = yes; then
  24613. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  24614. + else
  24615. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  24616. + fi
  24617. + ;;
  24618. +esac
  24619. +])# AC_PROG_LD_RELOAD_FLAG
  24620. +
  24621. +
  24622. +# AC_DEPLIBS_CHECK_METHOD
  24623. +# -----------------------
  24624. +# how to check for library dependencies
  24625. +# -- PORTME fill in with the dynamic library characteristics
  24626. +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  24627. +[AC_CACHE_CHECK([how to recognize dependent libraries],
  24628. +lt_cv_deplibs_check_method,
  24629. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  24630. +lt_cv_file_magic_test_file=
  24631. +lt_cv_deplibs_check_method='unknown'
  24632. +# Need to set the preceding variable on all platforms that support
  24633. +# interlibrary dependencies.
  24634. +# 'none' -- dependencies not supported.
  24635. +# `unknown' -- same as none, but documents that we really don't know.
  24636. +# 'pass_all' -- all dependencies passed with no checks.
  24637. +# 'test_compile' -- check by making test program.
  24638. +# 'file_magic [[regex]]' -- check by looking for files in library path
  24639. +# which responds to the $file_magic_cmd with a given extended regex.
  24640. +# If you have `file' or equivalent on your system and you're not sure
  24641. +# whether `pass_all' will *always* work, you probably want this one.
  24642. +
  24643. +case $host_os in
  24644. +aix[[4-9]]*)
  24645. + lt_cv_deplibs_check_method=pass_all
  24646. + ;;
  24647. +
  24648. +beos*)
  24649. + lt_cv_deplibs_check_method=pass_all
  24650. + ;;
  24651. +
  24652. +bsdi[[45]]*)
  24653. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  24654. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  24655. + lt_cv_file_magic_test_file=/shlib/libc.so
  24656. + ;;
  24657. +
  24658. +cygwin*)
  24659. + # func_win32_libid is a shell function defined in ltmain.sh
  24660. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  24661. + lt_cv_file_magic_cmd='func_win32_libid'
  24662. + ;;
  24663. +
  24664. +mingw* | pw32*)
  24665. + # Base MSYS/MinGW do not provide the 'file' command needed by
  24666. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  24667. + # unless we find 'file', for example because we are cross-compiling.
  24668. + if ( file / ) >/dev/null 2>&1; then
  24669. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  24670. + lt_cv_file_magic_cmd='func_win32_libid'
  24671. + else
  24672. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  24673. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  24674. + fi
  24675. + ;;
  24676. +
  24677. +darwin* | rhapsody*)
  24678. + lt_cv_deplibs_check_method=pass_all
  24679. + ;;
  24680. +
  24681. +freebsd* | dragonfly*)
  24682. + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  24683. + case $host_cpu in
  24684. + i*86 )
  24685. + # Not sure whether the presence of OpenBSD here was a mistake.
  24686. + # Let's accept both of them until this is cleared up.
  24687. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  24688. + lt_cv_file_magic_cmd=/usr/bin/file
  24689. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  24690. + ;;
  24691. + esac
  24692. + else
  24693. + lt_cv_deplibs_check_method=pass_all
  24694. + fi
  24695. + ;;
  24696. +
  24697. +gnu*)
  24698. + lt_cv_deplibs_check_method=pass_all
  24699. + ;;
  24700. +
  24701. +hpux10.20* | hpux11*)
  24702. + lt_cv_file_magic_cmd=/usr/bin/file
  24703. + case $host_cpu in
  24704. + ia64*)
  24705. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  24706. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  24707. + ;;
  24708. + hppa*64*)
  24709. + [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]']
  24710. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  24711. + ;;
  24712. + *)
  24713. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  24714. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  24715. + ;;
  24716. + esac
  24717. + ;;
  24718. +
  24719. +interix[[3-9]]*)
  24720. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  24721. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  24722. + ;;
  24723. +
  24724. +irix5* | irix6* | nonstopux*)
  24725. + case $LD in
  24726. + *-32|*"-32 ") libmagic=32-bit;;
  24727. + *-n32|*"-n32 ") libmagic=N32;;
  24728. + *-64|*"-64 ") libmagic=64-bit;;
  24729. + *) libmagic=never-match;;
  24730. + esac
  24731. + lt_cv_deplibs_check_method=pass_all
  24732. + ;;
  24733. +
  24734. +# This must be Linux ELF.
  24735. +linux* | k*bsd*-gnu)
  24736. + lt_cv_deplibs_check_method=pass_all
  24737. + ;;
  24738. +
  24739. +netbsd* | netbsdelf*-gnu)
  24740. + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  24741. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  24742. + else
  24743. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  24744. + fi
  24745. + ;;
  24746. +
  24747. +newos6*)
  24748. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  24749. + lt_cv_file_magic_cmd=/usr/bin/file
  24750. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  24751. + ;;
  24752. +
  24753. +nto-qnx*)
  24754. + lt_cv_deplibs_check_method=unknown
  24755. + ;;
  24756. +
  24757. +openbsd*)
  24758. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  24759. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  24760. + else
  24761. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  24762. + fi
  24763. + ;;
  24764. +
  24765. +osf3* | osf4* | osf5*)
  24766. + lt_cv_deplibs_check_method=pass_all
  24767. + ;;
  24768. +
  24769. +rdos*)
  24770. + lt_cv_deplibs_check_method=pass_all
  24771. + ;;
  24772. +
  24773. +solaris*)
  24774. + lt_cv_deplibs_check_method=pass_all
  24775. + ;;
  24776. +
  24777. +sysv4 | sysv4.3*)
  24778. + case $host_vendor in
  24779. + motorola)
  24780. + 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]]'
  24781. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  24782. + ;;
  24783. + ncr)
  24784. + lt_cv_deplibs_check_method=pass_all
  24785. + ;;
  24786. + sequent)
  24787. + lt_cv_file_magic_cmd='/bin/file'
  24788. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  24789. + ;;
  24790. + sni)
  24791. + lt_cv_file_magic_cmd='/bin/file'
  24792. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  24793. + lt_cv_file_magic_test_file=/lib/libc.so
  24794. + ;;
  24795. + siemens)
  24796. + lt_cv_deplibs_check_method=pass_all
  24797. + ;;
  24798. + pc)
  24799. + lt_cv_deplibs_check_method=pass_all
  24800. + ;;
  24801. + esac
  24802. + ;;
  24803. +
  24804. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  24805. + lt_cv_deplibs_check_method=pass_all
  24806. + ;;
  24807. +esac
  24808. +])
  24809. +file_magic_cmd=$lt_cv_file_magic_cmd
  24810. +deplibs_check_method=$lt_cv_deplibs_check_method
  24811. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  24812. +])# AC_DEPLIBS_CHECK_METHOD
  24813. +
  24814. +
  24815. +# AC_PROG_NM
  24816. +# ----------
  24817. +# find the pathname to a BSD-compatible name lister
  24818. +AC_DEFUN([AC_PROG_NM],
  24819. +[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  24820. +[if test -n "$NM"; then
  24821. + # Let the user override the test.
  24822. + lt_cv_path_NM="$NM"
  24823. +else
  24824. + lt_nm_to_check="${ac_tool_prefix}nm"
  24825. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  24826. + lt_nm_to_check="$lt_nm_to_check nm"
  24827. + fi
  24828. + for lt_tmp_nm in $lt_nm_to_check; do
  24829. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  24830. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  24831. + IFS="$lt_save_ifs"
  24832. + test -z "$ac_dir" && ac_dir=.
  24833. + tmp_nm="$ac_dir/$lt_tmp_nm"
  24834. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  24835. + # Check to see if the nm accepts a BSD-compat flag.
  24836. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  24837. + # nm: unknown option "B" ignored
  24838. + # Tru64's nm complains that /dev/null is an invalid object file
  24839. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  24840. + */dev/null* | *'Invalid file or object type'*)
  24841. + lt_cv_path_NM="$tmp_nm -B"
  24842. + break
  24843. + ;;
  24844. + *)
  24845. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  24846. + */dev/null*)
  24847. + lt_cv_path_NM="$tmp_nm -p"
  24848. + break
  24849. + ;;
  24850. + *)
  24851. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  24852. + continue # so that we can try to find one that supports BSD flags
  24853. + ;;
  24854. + esac
  24855. + ;;
  24856. + esac
  24857. + fi
  24858. + done
  24859. + IFS="$lt_save_ifs"
  24860. + done
  24861. + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  24862. +fi])
  24863. +NM="$lt_cv_path_NM"
  24864. +])# AC_PROG_NM
  24865. +
  24866. +
  24867. +# AC_CHECK_LIBM
  24868. +# -------------
  24869. +# check for math library
  24870. +AC_DEFUN([AC_CHECK_LIBM],
  24871. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  24872. +LIBM=
  24873. +case $host in
  24874. +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  24875. + # These system don't have libm, or don't need it
  24876. + ;;
  24877. +*-ncr-sysv4.3*)
  24878. + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  24879. + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  24880. + ;;
  24881. +*)
  24882. + AC_CHECK_LIB(m, cos, LIBM="-lm")
  24883. + ;;
  24884. +esac
  24885. +])# AC_CHECK_LIBM
  24886. +
  24887. +
  24888. +# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  24889. +# -----------------------------------
  24890. +# sets LIBLTDL to the link flags for the libltdl convenience library and
  24891. +# LTDLINCL to the include flags for the libltdl header and adds
  24892. +# --enable-ltdl-convenience to the configure arguments. Note that
  24893. +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  24894. +# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
  24895. +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  24896. +# (note the single quotes!). If your package is not flat and you're not
  24897. +# using automake, define top_builddir and top_srcdir appropriately in
  24898. +# the Makefiles.
  24899. +AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  24900. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  24901. + case $enable_ltdl_convenience in
  24902. + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  24903. + "") enable_ltdl_convenience=yes
  24904. + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  24905. + esac
  24906. + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  24907. + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  24908. + # For backwards non-gettext consistent compatibility...
  24909. + INCLTDL="$LTDLINCL"
  24910. +])# AC_LIBLTDL_CONVENIENCE
  24911. +
  24912. +
  24913. +# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  24914. +# -----------------------------------
  24915. +# sets LIBLTDL to the link flags for the libltdl installable library and
  24916. +# LTDLINCL to the include flags for the libltdl header and adds
  24917. +# --enable-ltdl-install to the configure arguments. Note that
  24918. +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  24919. +# and an installed libltdl is not found, it is assumed to be `libltdl'.
  24920. +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  24921. +# '${top_srcdir}/' (note the single quotes!). If your package is not
  24922. +# flat and you're not using automake, define top_builddir and top_srcdir
  24923. +# appropriately in the Makefiles.
  24924. +# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  24925. +AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  24926. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  24927. + AC_CHECK_LIB(ltdl, lt_dlinit,
  24928. + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  24929. + [if test x"$enable_ltdl_install" = xno; then
  24930. + AC_MSG_WARN([libltdl not installed, but installation disabled])
  24931. + else
  24932. + enable_ltdl_install=yes
  24933. + fi
  24934. + ])
  24935. + if test x"$enable_ltdl_install" = x"yes"; then
  24936. + ac_configure_args="$ac_configure_args --enable-ltdl-install"
  24937. + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  24938. + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  24939. + else
  24940. + ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  24941. + LIBLTDL="-lltdl"
  24942. + LTDLINCL=
  24943. + fi
  24944. + # For backwards non-gettext consistent compatibility...
  24945. + INCLTDL="$LTDLINCL"
  24946. +])# AC_LIBLTDL_INSTALLABLE
  24947. +
  24948. +
  24949. +# AC_LIBTOOL_CXX
  24950. +# --------------
  24951. +# enable support for C++ libraries
  24952. +AC_DEFUN([AC_LIBTOOL_CXX],
  24953. +[AC_REQUIRE([_LT_AC_LANG_CXX])
  24954. +])# AC_LIBTOOL_CXX
  24955. +
  24956. +
  24957. +# _LT_AC_LANG_CXX
  24958. +# ---------------
  24959. +AC_DEFUN([_LT_AC_LANG_CXX],
  24960. +[AC_REQUIRE([AC_PROG_CXX])
  24961. +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  24962. +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  24963. +])# _LT_AC_LANG_CXX
  24964. +
  24965. +# _LT_AC_PROG_CXXCPP
  24966. +# ------------------
  24967. +AC_DEFUN([_LT_AC_PROG_CXXCPP],
  24968. +[
  24969. +AC_REQUIRE([AC_PROG_CXX])
  24970. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  24971. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  24972. + (test "X$CXX" != "Xg++"))) ; then
  24973. + AC_PROG_CXXCPP
  24974. +fi
  24975. +])# _LT_AC_PROG_CXXCPP
  24976. +
  24977. +# AC_LIBTOOL_F77
  24978. +# --------------
  24979. +# enable support for Fortran 77 libraries
  24980. +AC_DEFUN([AC_LIBTOOL_F77],
  24981. +[AC_REQUIRE([_LT_AC_LANG_F77])
  24982. +])# AC_LIBTOOL_F77
  24983. +
  24984. +
  24985. +# _LT_AC_LANG_F77
  24986. +# ---------------
  24987. +AC_DEFUN([_LT_AC_LANG_F77],
  24988. +[AC_REQUIRE([AC_PROG_F77])
  24989. +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  24990. +])# _LT_AC_LANG_F77
  24991. +
  24992. +
  24993. +# AC_LIBTOOL_GCJ
  24994. +# --------------
  24995. +# enable support for GCJ libraries
  24996. +AC_DEFUN([AC_LIBTOOL_GCJ],
  24997. +[AC_REQUIRE([_LT_AC_LANG_GCJ])
  24998. +])# AC_LIBTOOL_GCJ
  24999. +
  25000. +
  25001. +# _LT_AC_LANG_GCJ
  25002. +# ---------------
  25003. +AC_DEFUN([_LT_AC_LANG_GCJ],
  25004. +[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  25005. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  25006. + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  25007. + [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  25008. + [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  25009. + [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  25010. +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  25011. +])# _LT_AC_LANG_GCJ
  25012. +
  25013. +
  25014. +# AC_LIBTOOL_RC
  25015. +# -------------
  25016. +# enable support for Windows resource files
  25017. +AC_DEFUN([AC_LIBTOOL_RC],
  25018. +[AC_REQUIRE([LT_AC_PROG_RC])
  25019. +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  25020. +])# AC_LIBTOOL_RC
  25021. +
  25022. +
  25023. +# AC_LIBTOOL_LANG_C_CONFIG
  25024. +# ------------------------
  25025. +# Ensure that the configuration vars for the C compiler are
  25026. +# suitably defined. Those variables are subsequently used by
  25027. +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  25028. +AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  25029. +AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  25030. +[lt_save_CC="$CC"
  25031. +AC_LANG_PUSH(C)
  25032. +
  25033. +# Source file extension for C test sources.
  25034. +ac_ext=c
  25035. +
  25036. +# Object file extension for compiled C test sources.
  25037. +objext=o
  25038. +_LT_AC_TAGVAR(objext, $1)=$objext
  25039. +
  25040. +# Code to be used in simple compile tests
  25041. +lt_simple_compile_test_code="int some_variable = 0;"
  25042. +
  25043. +# Code to be used in simple link tests
  25044. +lt_simple_link_test_code='int main(){return(0);}'
  25045. +
  25046. +_LT_AC_SYS_COMPILER
  25047. +
  25048. +# save warnings/boilerplate of simple test code
  25049. +_LT_COMPILER_BOILERPLATE
  25050. +_LT_LINKER_BOILERPLATE
  25051. +
  25052. +## CAVEAT EMPTOR:
  25053. +## There is no encapsulation within the following macros, do not change
  25054. +## the running order or otherwise move them around unless you know exactly
  25055. +## what you are doing...
  25056. +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  25057. +AC_LIBTOOL_PROG_COMPILER_PIC($1)
  25058. +AC_LIBTOOL_PROG_CC_C_O($1)
  25059. +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  25060. +AC_LIBTOOL_PROG_LD_SHLIBS($1)
  25061. +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  25062. +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  25063. +AC_LIBTOOL_SYS_LIB_STRIP
  25064. +AC_LIBTOOL_DLOPEN_SELF
  25065. +
  25066. +# Report which library types will actually be built
  25067. +AC_MSG_CHECKING([if libtool supports shared libraries])
  25068. +AC_MSG_RESULT([$can_build_shared])
  25069. +
  25070. +AC_MSG_CHECKING([whether to build shared libraries])
  25071. +test "$can_build_shared" = "no" && enable_shared=no
  25072. +
  25073. +# On AIX, shared libraries and static libraries use the same namespace, and
  25074. +# are all built from PIC.
  25075. +case $host_os in
  25076. +aix3*)
  25077. + test "$enable_shared" = yes && enable_static=no
  25078. + if test -n "$RANLIB"; then
  25079. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  25080. + postinstall_cmds='$RANLIB $lib'
  25081. + fi
  25082. + ;;
  25083. +
  25084. +aix[[4-9]]*)
  25085. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  25086. + test "$enable_shared" = yes && enable_static=no
  25087. + fi
  25088. + ;;
  25089. +esac
  25090. +AC_MSG_RESULT([$enable_shared])
  25091. +
  25092. +AC_MSG_CHECKING([whether to build static libraries])
  25093. +# Make sure either enable_shared or enable_static is yes.
  25094. +test "$enable_shared" = yes || enable_static=yes
  25095. +AC_MSG_RESULT([$enable_static])
  25096. +
  25097. +AC_LIBTOOL_CONFIG($1)
  25098. +
  25099. +AC_LANG_POP
  25100. +CC="$lt_save_CC"
  25101. +])# AC_LIBTOOL_LANG_C_CONFIG
  25102. +
  25103. +
  25104. +# AC_LIBTOOL_LANG_CXX_CONFIG
  25105. +# --------------------------
  25106. +# Ensure that the configuration vars for the C compiler are
  25107. +# suitably defined. Those variables are subsequently used by
  25108. +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  25109. +AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  25110. +AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  25111. +[AC_LANG_PUSH(C++)
  25112. +AC_REQUIRE([AC_PROG_CXX])
  25113. +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  25114. +
  25115. +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  25116. +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  25117. +_LT_AC_TAGVAR(always_export_symbols, $1)=no
  25118. +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  25119. +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  25120. +_LT_AC_TAGVAR(hardcode_direct, $1)=no
  25121. +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  25122. +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  25123. +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  25124. +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  25125. +_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  25126. +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  25127. +_LT_AC_TAGVAR(module_cmds, $1)=
  25128. +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  25129. +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  25130. +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  25131. +_LT_AC_TAGVAR(no_undefined_flag, $1)=
  25132. +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  25133. +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  25134. +
  25135. +# Dependencies to place before and after the object being linked:
  25136. +_LT_AC_TAGVAR(predep_objects, $1)=
  25137. +_LT_AC_TAGVAR(postdep_objects, $1)=
  25138. +_LT_AC_TAGVAR(predeps, $1)=
  25139. +_LT_AC_TAGVAR(postdeps, $1)=
  25140. +_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  25141. +_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
  25142. +
  25143. +# Source file extension for C++ test sources.
  25144. +ac_ext=cpp
  25145. +
  25146. +# Object file extension for compiled C++ test sources.
  25147. +objext=o
  25148. +_LT_AC_TAGVAR(objext, $1)=$objext
  25149. +
  25150. +# Code to be used in simple compile tests
  25151. +lt_simple_compile_test_code="int some_variable = 0;"
  25152. +
  25153. +# Code to be used in simple link tests
  25154. +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  25155. +
  25156. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  25157. +_LT_AC_SYS_COMPILER
  25158. +
  25159. +# save warnings/boilerplate of simple test code
  25160. +_LT_COMPILER_BOILERPLATE
  25161. +_LT_LINKER_BOILERPLATE
  25162. +
  25163. +# Allow CC to be a program name with arguments.
  25164. +lt_save_CC=$CC
  25165. +lt_save_LD=$LD
  25166. +lt_save_GCC=$GCC
  25167. +GCC=$GXX
  25168. +lt_save_with_gnu_ld=$with_gnu_ld
  25169. +lt_save_path_LD=$lt_cv_path_LD
  25170. +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  25171. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  25172. +else
  25173. + $as_unset lt_cv_prog_gnu_ld
  25174. +fi
  25175. +if test -n "${lt_cv_path_LDCXX+set}"; then
  25176. + lt_cv_path_LD=$lt_cv_path_LDCXX
  25177. +else
  25178. + $as_unset lt_cv_path_LD
  25179. +fi
  25180. +test -z "${LDCXX+set}" || LD=$LDCXX
  25181. +CC=${CXX-"c++"}
  25182. +compiler=$CC
  25183. +_LT_AC_TAGVAR(compiler, $1)=$CC
  25184. +_LT_CC_BASENAME([$compiler])
  25185. +
  25186. +# We don't want -fno-exception wen compiling C++ code, so set the
  25187. +# no_builtin_flag separately
  25188. +if test "$GXX" = yes; then
  25189. + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  25190. +else
  25191. + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  25192. +fi
  25193. +
  25194. +if test "$GXX" = yes; then
  25195. + # Set up default GNU C++ configuration
  25196. +
  25197. + AC_PROG_LD
  25198. +
  25199. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  25200. + # archiving commands below assume that GNU ld is being used.
  25201. + if test "$with_gnu_ld" = yes; then
  25202. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25203. + _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'
  25204. +
  25205. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  25206. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  25207. +
  25208. + # If archive_cmds runs LD, not CC, wlarc should be empty
  25209. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  25210. + # investigate it a little bit more. (MM)
  25211. + wlarc='${wl}'
  25212. +
  25213. + # ancient GNU ld didn't support --whole-archive et. al.
  25214. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  25215. + grep 'no-whole-archive' > /dev/null; then
  25216. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  25217. + else
  25218. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  25219. + fi
  25220. + else
  25221. + with_gnu_ld=no
  25222. + wlarc=
  25223. +
  25224. + # A generic and very simple default shared library creation
  25225. + # command for GNU C++ for the case where it uses the native
  25226. + # linker, instead of GNU ld. If possible, this setting should
  25227. + # overridden to take advantage of the native linker features on
  25228. + # the platform it is being used on.
  25229. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  25230. + fi
  25231. +
  25232. + # Commands to make compiler produce verbose output that lists
  25233. + # what "hidden" libraries, object files and flags are used when
  25234. + # linking a shared library.
  25235. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  25236. +
  25237. +else
  25238. + GXX=no
  25239. + with_gnu_ld=no
  25240. + wlarc=
  25241. +fi
  25242. +
  25243. +# PORTME: fill in a description of your system's C++ link characteristics
  25244. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  25245. +_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  25246. +case $host_os in
  25247. + aix3*)
  25248. + # FIXME: insert proper C++ library support
  25249. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  25250. + ;;
  25251. + aix[[4-9]]*)
  25252. + if test "$host_cpu" = ia64; then
  25253. + # On IA64, the linker does run time linking by default, so we don't
  25254. + # have to do anything special.
  25255. + aix_use_runtimelinking=no
  25256. + exp_sym_flag='-Bexport'
  25257. + no_entry_flag=""
  25258. + else
  25259. + aix_use_runtimelinking=no
  25260. +
  25261. + # Test if we are trying to use run time linking or normal
  25262. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  25263. + # need to do runtime linking.
  25264. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  25265. + for ld_flag in $LDFLAGS; do
  25266. + case $ld_flag in
  25267. + *-brtl*)
  25268. + aix_use_runtimelinking=yes
  25269. + break
  25270. + ;;
  25271. + esac
  25272. + done
  25273. + ;;
  25274. + esac
  25275. +
  25276. + exp_sym_flag='-bexport'
  25277. + no_entry_flag='-bnoentry'
  25278. + fi
  25279. +
  25280. + # When large executables or shared objects are built, AIX ld can
  25281. + # have problems creating the table of contents. If linking a library
  25282. + # or program results in "error TOC overflow" add -mminimal-toc to
  25283. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  25284. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  25285. +
  25286. + _LT_AC_TAGVAR(archive_cmds, $1)=''
  25287. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  25288. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  25289. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  25290. +
  25291. + if test "$GXX" = yes; then
  25292. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  25293. + # We only want to do this on AIX 4.2 and lower, the check
  25294. + # below for broken collect2 doesn't work under 4.3+
  25295. + collect2name=`${CC} -print-prog-name=collect2`
  25296. + if test -f "$collect2name" && \
  25297. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  25298. + then
  25299. + # We have reworked collect2
  25300. + :
  25301. + else
  25302. + # We have old collect2
  25303. + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  25304. + # It fails to find uninstalled libraries when the uninstalled
  25305. + # path is not listed in the libpath. Setting hardcode_minus_L
  25306. + # to unsupported forces relinking
  25307. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  25308. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  25309. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  25310. + fi
  25311. + ;;
  25312. + esac
  25313. + shared_flag='-shared'
  25314. + if test "$aix_use_runtimelinking" = yes; then
  25315. + shared_flag="$shared_flag "'${wl}-G'
  25316. + fi
  25317. + else
  25318. + # not using gcc
  25319. + if test "$host_cpu" = ia64; then
  25320. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  25321. + # chokes on -Wl,-G. The following line is correct:
  25322. + shared_flag='-G'
  25323. + else
  25324. + if test "$aix_use_runtimelinking" = yes; then
  25325. + shared_flag='${wl}-G'
  25326. + else
  25327. + shared_flag='${wl}-bM:SRE'
  25328. + fi
  25329. + fi
  25330. + fi
  25331. +
  25332. + # It seems that -bexpall does not export symbols beginning with
  25333. + # underscore (_), so it is better to generate a list of symbols to export.
  25334. + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  25335. + if test "$aix_use_runtimelinking" = yes; then
  25336. + # Warning - without using the other runtime loading flags (-brtl),
  25337. + # -berok will link without error, but may produce a broken library.
  25338. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  25339. + # Determine the default libpath from the value encoded in an empty executable.
  25340. + _LT_AC_SYS_LIBPATH_AIX
  25341. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  25342. +
  25343. + _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"
  25344. + else
  25345. + if test "$host_cpu" = ia64; then
  25346. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  25347. + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  25348. + _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"
  25349. + else
  25350. + # Determine the default libpath from the value encoded in an empty executable.
  25351. + _LT_AC_SYS_LIBPATH_AIX
  25352. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  25353. + # Warning - without using the other run time loading flags,
  25354. + # -berok will link without error, but may produce a broken library.
  25355. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  25356. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  25357. + # Exported symbols can be pulled into shared objects from archives
  25358. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  25359. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  25360. + # This is similar to how AIX traditionally builds its shared libraries.
  25361. + _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'
  25362. + fi
  25363. + fi
  25364. + ;;
  25365. +
  25366. + beos*)
  25367. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  25368. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  25369. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  25370. + # support --undefined. This deserves some investigation. FIXME
  25371. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25372. + else
  25373. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  25374. + fi
  25375. + ;;
  25376. +
  25377. + chorus*)
  25378. + case $cc_basename in
  25379. + *)
  25380. + # FIXME: insert proper C++ library support
  25381. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  25382. + ;;
  25383. + esac
  25384. + ;;
  25385. +
  25386. + cygwin* | mingw* | pw32*)
  25387. + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  25388. + # as there is no search path for DLLs.
  25389. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  25390. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  25391. + _LT_AC_TAGVAR(always_export_symbols, $1)=no
  25392. + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  25393. +
  25394. + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  25395. + _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'
  25396. + # If the export-symbols file already is a .def file (1st line
  25397. + # is EXPORTS), use it as is; otherwise, prepend...
  25398. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  25399. + cp $export_symbols $output_objdir/$soname.def;
  25400. + else
  25401. + echo EXPORTS > $output_objdir/$soname.def;
  25402. + cat $export_symbols >> $output_objdir/$soname.def;
  25403. + fi~
  25404. + $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'
  25405. + else
  25406. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  25407. + fi
  25408. + ;;
  25409. + darwin* | rhapsody*)
  25410. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  25411. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  25412. + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  25413. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  25414. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  25415. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  25416. + _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  25417. + if test "$GXX" = yes ; then
  25418. + output_verbose_link_cmd='echo'
  25419. + _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  25420. + _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  25421. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  25422. + _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  25423. + if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  25424. + _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  25425. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  25426. + fi
  25427. + else
  25428. + case $cc_basename in
  25429. + xlc*)
  25430. + output_verbose_link_cmd='echo'
  25431. + _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'
  25432. + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  25433. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  25434. + _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}'
  25435. + _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}'
  25436. + ;;
  25437. + *)
  25438. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  25439. + ;;
  25440. + esac
  25441. + fi
  25442. + ;;
  25443. +
  25444. + dgux*)
  25445. + case $cc_basename in
  25446. + ec++*)
  25447. + # FIXME: insert proper C++ library support
  25448. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  25449. + ;;
  25450. + ghcx*)
  25451. + # Green Hills C++ Compiler
  25452. + # FIXME: insert proper C++ library support
  25453. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  25454. + ;;
  25455. + *)
  25456. + # FIXME: insert proper C++ library support
  25457. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  25458. + ;;
  25459. + esac
  25460. + ;;
  25461. + freebsd[[12]]*)
  25462. + # C++ shared libraries reported to be fairly broken before switch to ELF
  25463. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  25464. + ;;
  25465. + freebsd-elf*)
  25466. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  25467. + ;;
  25468. + freebsd* | dragonfly*)
  25469. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  25470. + # conventions
  25471. + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  25472. + ;;
  25473. + gnu*)
  25474. + ;;
  25475. + hpux9*)
  25476. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  25477. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  25478. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  25479. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  25480. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  25481. + # but as the default
  25482. + # location of the library.
  25483. +
  25484. + case $cc_basename in
  25485. + CC*)
  25486. + # FIXME: insert proper C++ library support
  25487. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  25488. + ;;
  25489. + aCC*)
  25490. + _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'
  25491. + # Commands to make compiler produce verbose output that lists
  25492. + # what "hidden" libraries, object files and flags are used when
  25493. + # linking a shared library.
  25494. + #
  25495. + # There doesn't appear to be a way to prevent this compiler from
  25496. + # explicitly linking system object files so we need to strip them
  25497. + # from the output so that they don't get included in the library
  25498. + # dependencies.
  25499. + 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'
  25500. + ;;
  25501. + *)
  25502. + if test "$GXX" = yes; then
  25503. + _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'
  25504. + else
  25505. + # FIXME: insert proper C++ library support
  25506. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  25507. + fi
  25508. + ;;
  25509. + esac
  25510. + ;;
  25511. + hpux10*|hpux11*)
  25512. + if test $with_gnu_ld = no; then
  25513. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  25514. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  25515. +
  25516. + case $host_cpu in
  25517. + hppa*64*|ia64*) ;;
  25518. + *)
  25519. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  25520. + ;;
  25521. + esac
  25522. + fi
  25523. + case $host_cpu in
  25524. + hppa*64*|ia64*)
  25525. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  25526. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  25527. + ;;
  25528. + *)
  25529. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  25530. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  25531. + # but as the default
  25532. + # location of the library.
  25533. + ;;
  25534. + esac
  25535. +
  25536. + case $cc_basename in
  25537. + CC*)
  25538. + # FIXME: insert proper C++ library support
  25539. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  25540. + ;;
  25541. + aCC*)
  25542. + case $host_cpu in
  25543. + hppa*64*)
  25544. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  25545. + ;;
  25546. + ia64*)
  25547. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  25548. + ;;
  25549. + *)
  25550. + _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'
  25551. + ;;
  25552. + esac
  25553. + # Commands to make compiler produce verbose output that lists
  25554. + # what "hidden" libraries, object files and flags are used when
  25555. + # linking a shared library.
  25556. + #
  25557. + # There doesn't appear to be a way to prevent this compiler from
  25558. + # explicitly linking system object files so we need to strip them
  25559. + # from the output so that they don't get included in the library
  25560. + # dependencies.
  25561. + 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'
  25562. + ;;
  25563. + *)
  25564. + if test "$GXX" = yes; then
  25565. + if test $with_gnu_ld = no; then
  25566. + case $host_cpu in
  25567. + hppa*64*)
  25568. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  25569. + ;;
  25570. + ia64*)
  25571. + _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'
  25572. + ;;
  25573. + *)
  25574. + _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'
  25575. + ;;
  25576. + esac
  25577. + fi
  25578. + else
  25579. + # FIXME: insert proper C++ library support
  25580. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  25581. + fi
  25582. + ;;
  25583. + esac
  25584. + ;;
  25585. + interix[[3-9]]*)
  25586. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  25587. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  25588. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  25589. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  25590. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  25591. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  25592. + # default) and relocated if they conflict, which is a slow very memory
  25593. + # consuming and fragmenting process. To avoid this, we pick a random,
  25594. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  25595. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  25596. + _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'
  25597. + _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'
  25598. + ;;
  25599. + irix5* | irix6*)
  25600. + case $cc_basename in
  25601. + CC*)
  25602. + # SGI C++
  25603. + _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'
  25604. +
  25605. + # Archives containing C++ object files must be created using
  25606. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  25607. + # necessary to make sure instantiated templates are included
  25608. + # in the archive.
  25609. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  25610. + ;;
  25611. + *)
  25612. + if test "$GXX" = yes; then
  25613. + if test "$with_gnu_ld" = no; then
  25614. + _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'
  25615. + else
  25616. + _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'
  25617. + fi
  25618. + fi
  25619. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  25620. + ;;
  25621. + esac
  25622. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  25623. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  25624. + ;;
  25625. + linux* | k*bsd*-gnu)
  25626. + case $cc_basename in
  25627. + KCC*)
  25628. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  25629. +
  25630. + # KCC will only create a shared library if the output file
  25631. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  25632. + # to its proper name (with version) after linking.
  25633. + _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'
  25634. + _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'
  25635. + # Commands to make compiler produce verbose output that lists
  25636. + # what "hidden" libraries, object files and flags are used when
  25637. + # linking a shared library.
  25638. + #
  25639. + # There doesn't appear to be a way to prevent this compiler from
  25640. + # explicitly linking system object files so we need to strip them
  25641. + # from the output so that they don't get included in the library
  25642. + # dependencies.
  25643. + 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'
  25644. +
  25645. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  25646. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  25647. +
  25648. + # Archives containing C++ object files must be created using
  25649. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  25650. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  25651. + ;;
  25652. + icpc*)
  25653. + # Intel C++
  25654. + with_gnu_ld=yes
  25655. + # version 8.0 and above of icpc choke on multiply defined symbols
  25656. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  25657. + # earlier do not add the objects themselves.
  25658. + case `$CC -V 2>&1` in
  25659. + *"Version 7."*)
  25660. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25661. + _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'
  25662. + ;;
  25663. + *) # Version 8.0 or newer
  25664. + tmp_idyn=
  25665. + case $host_cpu in
  25666. + ia64*) tmp_idyn=' -i_dynamic';;
  25667. + esac
  25668. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25669. + _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'
  25670. + ;;
  25671. + esac
  25672. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  25673. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  25674. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  25675. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  25676. + ;;
  25677. + pgCC* | pgcpp*)
  25678. + # Portland Group C++ compiler
  25679. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  25680. + _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'
  25681. +
  25682. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  25683. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  25684. + _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'
  25685. + ;;
  25686. + cxx*)
  25687. + # Compaq C++
  25688. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25689. + _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'
  25690. +
  25691. + runpath_var=LD_RUN_PATH
  25692. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  25693. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  25694. +
  25695. + # Commands to make compiler produce verbose output that lists
  25696. + # what "hidden" libraries, object files and flags are used when
  25697. + # linking a shared library.
  25698. + #
  25699. + # There doesn't appear to be a way to prevent this compiler from
  25700. + # explicitly linking system object files so we need to strip them
  25701. + # from the output so that they don't get included in the library
  25702. + # dependencies.
  25703. + 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'
  25704. + ;;
  25705. + *)
  25706. + case `$CC -V 2>&1 | sed 5q` in
  25707. + *Sun\ C*)
  25708. + # Sun C++ 5.9
  25709. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  25710. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  25711. + _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'
  25712. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  25713. + _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'
  25714. +
  25715. + # Not sure whether something based on
  25716. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  25717. + # would be better.
  25718. + output_verbose_link_cmd='echo'
  25719. +
  25720. + # Archives containing C++ object files must be created using
  25721. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  25722. + # necessary to make sure instantiated templates are included
  25723. + # in the archive.
  25724. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  25725. + ;;
  25726. + esac
  25727. + ;;
  25728. + esac
  25729. + ;;
  25730. + lynxos*)
  25731. + # FIXME: insert proper C++ library support
  25732. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  25733. + ;;
  25734. + m88k*)
  25735. + # FIXME: insert proper C++ library support
  25736. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  25737. + ;;
  25738. + mvs*)
  25739. + case $cc_basename in
  25740. + cxx*)
  25741. + # FIXME: insert proper C++ library support
  25742. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  25743. + ;;
  25744. + *)
  25745. + # FIXME: insert proper C++ library support
  25746. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  25747. + ;;
  25748. + esac
  25749. + ;;
  25750. + netbsd* | netbsdelf*-gnu)
  25751. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  25752. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  25753. + wlarc=
  25754. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  25755. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  25756. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  25757. + fi
  25758. + # Workaround some broken pre-1.5 toolchains
  25759. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  25760. + ;;
  25761. + openbsd2*)
  25762. + # C++ shared libraries are fairly broken
  25763. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  25764. + ;;
  25765. + openbsd*)
  25766. + if test -f /usr/libexec/ld.so; then
  25767. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  25768. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  25769. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  25770. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  25771. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  25772. + _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'
  25773. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  25774. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  25775. + fi
  25776. + output_verbose_link_cmd='echo'
  25777. + else
  25778. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  25779. + fi
  25780. + ;;
  25781. + osf3*)
  25782. + case $cc_basename in
  25783. + KCC*)
  25784. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  25785. +
  25786. + # KCC will only create a shared library if the output file
  25787. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  25788. + # to its proper name (with version) after linking.
  25789. + _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'
  25790. +
  25791. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  25792. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  25793. +
  25794. + # Archives containing C++ object files must be created using
  25795. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  25796. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  25797. +
  25798. + ;;
  25799. + RCC*)
  25800. + # Rational C++ 2.4.1
  25801. + # FIXME: insert proper C++ library support
  25802. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  25803. + ;;
  25804. + cxx*)
  25805. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  25806. + _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'
  25807. +
  25808. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  25809. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  25810. +
  25811. + # Commands to make compiler produce verbose output that lists
  25812. + # what "hidden" libraries, object files and flags are used when
  25813. + # linking a shared library.
  25814. + #
  25815. + # There doesn't appear to be a way to prevent this compiler from
  25816. + # explicitly linking system object files so we need to strip them
  25817. + # from the output so that they don't get included in the library
  25818. + # dependencies.
  25819. + 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'
  25820. + ;;
  25821. + *)
  25822. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  25823. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  25824. + _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'
  25825. +
  25826. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  25827. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  25828. +
  25829. + # Commands to make compiler produce verbose output that lists
  25830. + # what "hidden" libraries, object files and flags are used when
  25831. + # linking a shared library.
  25832. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  25833. +
  25834. + else
  25835. + # FIXME: insert proper C++ library support
  25836. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  25837. + fi
  25838. + ;;
  25839. + esac
  25840. + ;;
  25841. + osf4* | osf5*)
  25842. + case $cc_basename in
  25843. + KCC*)
  25844. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  25845. +
  25846. + # KCC will only create a shared library if the output file
  25847. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  25848. + # to its proper name (with version) after linking.
  25849. + _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'
  25850. +
  25851. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  25852. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  25853. +
  25854. + # Archives containing C++ object files must be created using
  25855. + # the KAI C++ compiler.
  25856. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  25857. + ;;
  25858. + RCC*)
  25859. + # Rational C++ 2.4.1
  25860. + # FIXME: insert proper C++ library support
  25861. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  25862. + ;;
  25863. + cxx*)
  25864. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  25865. + _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'
  25866. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  25867. + echo "-hidden">> $lib.exp~
  25868. + $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~
  25869. + $rm $lib.exp'
  25870. +
  25871. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  25872. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  25873. +
  25874. + # Commands to make compiler produce verbose output that lists
  25875. + # what "hidden" libraries, object files and flags are used when
  25876. + # linking a shared library.
  25877. + #
  25878. + # There doesn't appear to be a way to prevent this compiler from
  25879. + # explicitly linking system object files so we need to strip them
  25880. + # from the output so that they don't get included in the library
  25881. + # dependencies.
  25882. + 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'
  25883. + ;;
  25884. + *)
  25885. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  25886. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  25887. + _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'
  25888. +
  25889. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  25890. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  25891. +
  25892. + # Commands to make compiler produce verbose output that lists
  25893. + # what "hidden" libraries, object files and flags are used when
  25894. + # linking a shared library.
  25895. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  25896. +
  25897. + else
  25898. + # FIXME: insert proper C++ library support
  25899. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  25900. + fi
  25901. + ;;
  25902. + esac
  25903. + ;;
  25904. + psos*)
  25905. + # FIXME: insert proper C++ library support
  25906. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  25907. + ;;
  25908. + sunos4*)
  25909. + case $cc_basename in
  25910. + CC*)
  25911. + # Sun C++ 4.x
  25912. + # FIXME: insert proper C++ library support
  25913. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  25914. + ;;
  25915. + lcc*)
  25916. + # Lucid
  25917. + # FIXME: insert proper C++ library support
  25918. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  25919. + ;;
  25920. + *)
  25921. + # FIXME: insert proper C++ library support
  25922. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  25923. + ;;
  25924. + esac
  25925. + ;;
  25926. + solaris*)
  25927. + case $cc_basename in
  25928. + CC*)
  25929. + # Sun C++ 4.2, 5.x and Centerline C++
  25930. + _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  25931. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  25932. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  25933. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  25934. + $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'
  25935. +
  25936. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  25937. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  25938. + case $host_os in
  25939. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  25940. + *)
  25941. + # The compiler driver will combine and reorder linker options,
  25942. + # but understands `-z linker_flag'.
  25943. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  25944. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  25945. + ;;
  25946. + esac
  25947. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  25948. +
  25949. + output_verbose_link_cmd='echo'
  25950. +
  25951. + # Archives containing C++ object files must be created using
  25952. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  25953. + # necessary to make sure instantiated templates are included
  25954. + # in the archive.
  25955. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  25956. + ;;
  25957. + gcx*)
  25958. + # Green Hills C++ Compiler
  25959. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  25960. +
  25961. + # The C++ compiler must be used to create the archive.
  25962. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  25963. + ;;
  25964. + *)
  25965. + # GNU C++ compiler with Solaris linker
  25966. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  25967. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  25968. + if $CC --version | grep -v '^2\.7' > /dev/null; then
  25969. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  25970. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  25971. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  25972. +
  25973. + # Commands to make compiler produce verbose output that lists
  25974. + # what "hidden" libraries, object files and flags are used when
  25975. + # linking a shared library.
  25976. + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  25977. + else
  25978. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  25979. + # platform.
  25980. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  25981. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  25982. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  25983. +
  25984. + # Commands to make compiler produce verbose output that lists
  25985. + # what "hidden" libraries, object files and flags are used when
  25986. + # linking a shared library.
  25987. + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  25988. + fi
  25989. +
  25990. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  25991. + case $host_os in
  25992. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  25993. + *)
  25994. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  25995. + ;;
  25996. + esac
  25997. + fi
  25998. + ;;
  25999. + esac
  26000. + ;;
  26001. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  26002. + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  26003. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  26004. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  26005. + runpath_var='LD_RUN_PATH'
  26006. +
  26007. + case $cc_basename in
  26008. + CC*)
  26009. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26010. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26011. + ;;
  26012. + *)
  26013. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26014. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26015. + ;;
  26016. + esac
  26017. + ;;
  26018. + sysv5* | sco3.2v5* | sco5v6*)
  26019. + # Note: We can NOT use -z defs as we might desire, because we do not
  26020. + # link with -lc, and that would cause any symbols used from libc to
  26021. + # always be unresolved, which means just about no library would
  26022. + # ever link correctly. If we're not using GNU ld we use -z text
  26023. + # though, which does catch some bad symbols but isn't as heavy-handed
  26024. + # as -z defs.
  26025. + # For security reasons, it is highly recommended that you always
  26026. + # use absolute paths for naming shared libraries, and exclude the
  26027. + # DT_RUNPATH tag from executables and libraries. But doing so
  26028. + # requires that you compile everything twice, which is a pain.
  26029. + # So that behaviour is only enabled if SCOABSPATH is set to a
  26030. + # non-empty value in the environment. Most likely only useful for
  26031. + # creating official distributions of packages.
  26032. + # This is a hack until libtool officially supports absolute path
  26033. + # names for shared libraries.
  26034. + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  26035. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  26036. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  26037. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  26038. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  26039. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  26040. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  26041. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  26042. + runpath_var='LD_RUN_PATH'
  26043. +
  26044. + case $cc_basename in
  26045. + CC*)
  26046. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26047. + _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'
  26048. + ;;
  26049. + *)
  26050. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26051. + _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'
  26052. + ;;
  26053. + esac
  26054. + ;;
  26055. + tandem*)
  26056. + case $cc_basename in
  26057. + NCC*)
  26058. + # NonStop-UX NCC 3.20
  26059. + # FIXME: insert proper C++ library support
  26060. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  26061. + ;;
  26062. + *)
  26063. + # FIXME: insert proper C++ library support
  26064. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  26065. + ;;
  26066. + esac
  26067. + ;;
  26068. + vxworks*)
  26069. + # FIXME: insert proper C++ library support
  26070. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  26071. + ;;
  26072. + *)
  26073. + # FIXME: insert proper C++ library support
  26074. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  26075. + ;;
  26076. +esac
  26077. +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  26078. +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  26079. +
  26080. +_LT_AC_TAGVAR(GCC, $1)="$GXX"
  26081. +_LT_AC_TAGVAR(LD, $1)="$LD"
  26082. +
  26083. +## CAVEAT EMPTOR:
  26084. +## There is no encapsulation within the following macros, do not change
  26085. +## the running order or otherwise move them around unless you know exactly
  26086. +## what you are doing...
  26087. +AC_LIBTOOL_POSTDEP_PREDEP($1)
  26088. +AC_LIBTOOL_PROG_COMPILER_PIC($1)
  26089. +AC_LIBTOOL_PROG_CC_C_O($1)
  26090. +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  26091. +AC_LIBTOOL_PROG_LD_SHLIBS($1)
  26092. +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  26093. +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  26094. +
  26095. +AC_LIBTOOL_CONFIG($1)
  26096. +
  26097. +AC_LANG_POP
  26098. +CC=$lt_save_CC
  26099. +LDCXX=$LD
  26100. +LD=$lt_save_LD
  26101. +GCC=$lt_save_GCC
  26102. +with_gnu_ldcxx=$with_gnu_ld
  26103. +with_gnu_ld=$lt_save_with_gnu_ld
  26104. +lt_cv_path_LDCXX=$lt_cv_path_LD
  26105. +lt_cv_path_LD=$lt_save_path_LD
  26106. +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  26107. +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  26108. +])# AC_LIBTOOL_LANG_CXX_CONFIG
  26109. +
  26110. +# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  26111. +# ------------------------------------
  26112. +# Figure out "hidden" library dependencies from verbose
  26113. +# compiler output when linking a shared library.
  26114. +# Parse the compiler output and extract the necessary
  26115. +# objects, libraries and library flags.
  26116. +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
  26117. +[AC_REQUIRE([LT_AC_PROG_SED])dnl
  26118. +dnl we can't use the lt_simple_compile_test_code here,
  26119. +dnl because it contains code intended for an executable,
  26120. +dnl not a library. It's possible we should let each
  26121. +dnl tag define a new lt_????_link_test_code variable,
  26122. +dnl but it's only used here...
  26123. +ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  26124. +int a;
  26125. +void foo (void) { a = 0; }
  26126. +EOF
  26127. +],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  26128. +class Foo
  26129. +{
  26130. +public:
  26131. + Foo (void) { a = 0; }
  26132. +private:
  26133. + int a;
  26134. +};
  26135. +EOF
  26136. +],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  26137. + subroutine foo
  26138. + implicit none
  26139. + integer*4 a
  26140. + a=0
  26141. + return
  26142. + end
  26143. +EOF
  26144. +],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  26145. +public class foo {
  26146. + private int a;
  26147. + public void bar (void) {
  26148. + a = 0;
  26149. + }
  26150. +};
  26151. +EOF
  26152. +])
  26153. +dnl Parse the compiler output and extract the necessary
  26154. +dnl objects, libraries and library flags.
  26155. +if AC_TRY_EVAL(ac_compile); then
  26156. + # Parse the compiler output and extract the necessary
  26157. + # objects, libraries and library flags.
  26158. +
  26159. + # Sentinel used to keep track of whether or not we are before
  26160. + # the conftest object file.
  26161. + pre_test_object_deps_done=no
  26162. +
  26163. + # The `*' in the case matches for architectures that use `case' in
  26164. + # $output_verbose_cmd can trigger glob expansion during the loop
  26165. + # eval without this substitution.
  26166. + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  26167. +
  26168. + for p in `eval $output_verbose_link_cmd`; do
  26169. + case $p in
  26170. +
  26171. + -L* | -R* | -l*)
  26172. + # Some compilers place space between "-{L,R}" and the path.
  26173. + # Remove the space.
  26174. + if test $p = "-L" \
  26175. + || test $p = "-R"; then
  26176. + prev=$p
  26177. + continue
  26178. + else
  26179. + prev=
  26180. + fi
  26181. +
  26182. + if test "$pre_test_object_deps_done" = no; then
  26183. + case $p in
  26184. + -L* | -R*)
  26185. + # Internal compiler library paths should come after those
  26186. + # provided the user. The postdeps already come after the
  26187. + # user supplied libs so there is no need to process them.
  26188. + if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  26189. + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  26190. + else
  26191. + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  26192. + fi
  26193. + ;;
  26194. + # The "-l" case would never come before the object being
  26195. + # linked, so don't bother handling this case.
  26196. + esac
  26197. + else
  26198. + if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  26199. + _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  26200. + else
  26201. + _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  26202. + fi
  26203. + fi
  26204. + ;;
  26205. +
  26206. + *.$objext)
  26207. + # This assumes that the test object file only shows up
  26208. + # once in the compiler output.
  26209. + if test "$p" = "conftest.$objext"; then
  26210. + pre_test_object_deps_done=yes
  26211. + continue
  26212. + fi
  26213. +
  26214. + if test "$pre_test_object_deps_done" = no; then
  26215. + if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  26216. + _LT_AC_TAGVAR(predep_objects, $1)="$p"
  26217. + else
  26218. + _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  26219. + fi
  26220. + else
  26221. + if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  26222. + _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  26223. + else
  26224. + _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  26225. + fi
  26226. + fi
  26227. + ;;
  26228. +
  26229. + *) ;; # Ignore the rest.
  26230. +
  26231. + esac
  26232. + done
  26233. +
  26234. + # Clean up.
  26235. + rm -f a.out a.exe
  26236. +else
  26237. + echo "libtool.m4: error: problem compiling $1 test program"
  26238. +fi
  26239. +
  26240. +$rm -f confest.$objext
  26241. +
  26242. +_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
  26243. +if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  26244. + _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  26245. +fi
  26246. +
  26247. +# PORTME: override above test on systems where it is broken
  26248. +ifelse([$1],[CXX],
  26249. +[case $host_os in
  26250. +interix[[3-9]]*)
  26251. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  26252. + # hack all around it, let's just trust "g++" to DTRT.
  26253. + _LT_AC_TAGVAR(predep_objects,$1)=
  26254. + _LT_AC_TAGVAR(postdep_objects,$1)=
  26255. + _LT_AC_TAGVAR(postdeps,$1)=
  26256. + ;;
  26257. +
  26258. +linux*)
  26259. + case `$CC -V 2>&1 | sed 5q` in
  26260. + *Sun\ C*)
  26261. + # Sun C++ 5.9
  26262. + #
  26263. + # The more standards-conforming stlport4 library is
  26264. + # incompatible with the Cstd library. Avoid specifying
  26265. + # it if it's in CXXFLAGS. Ignore libCrun as
  26266. + # -library=stlport4 depends on it.
  26267. + case " $CXX $CXXFLAGS " in
  26268. + *" -library=stlport4 "*)
  26269. + solaris_use_stlport4=yes
  26270. + ;;
  26271. + esac
  26272. + if test "$solaris_use_stlport4" != yes; then
  26273. + _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  26274. + fi
  26275. + ;;
  26276. + esac
  26277. + ;;
  26278. +
  26279. +solaris*)
  26280. + case $cc_basename in
  26281. + CC*)
  26282. + # The more standards-conforming stlport4 library is
  26283. + # incompatible with the Cstd library. Avoid specifying
  26284. + # it if it's in CXXFLAGS. Ignore libCrun as
  26285. + # -library=stlport4 depends on it.
  26286. + case " $CXX $CXXFLAGS " in
  26287. + *" -library=stlport4 "*)
  26288. + solaris_use_stlport4=yes
  26289. + ;;
  26290. + esac
  26291. +
  26292. + # Adding this requires a known-good setup of shared libraries for
  26293. + # Sun compiler versions before 5.6, else PIC objects from an old
  26294. + # archive will be linked into the output, leading to subtle bugs.
  26295. + if test "$solaris_use_stlport4" != yes; then
  26296. + _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  26297. + fi
  26298. + ;;
  26299. + esac
  26300. + ;;
  26301. +esac
  26302. +])
  26303. +case " $_LT_AC_TAGVAR(postdeps, $1) " in
  26304. +*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  26305. +esac
  26306. +])# AC_LIBTOOL_POSTDEP_PREDEP
  26307. +
  26308. +# AC_LIBTOOL_LANG_F77_CONFIG
  26309. +# --------------------------
  26310. +# Ensure that the configuration vars for the C compiler are
  26311. +# suitably defined. Those variables are subsequently used by
  26312. +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  26313. +AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  26314. +AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  26315. +[AC_REQUIRE([AC_PROG_F77])
  26316. +AC_LANG_PUSH(Fortran 77)
  26317. +
  26318. +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  26319. +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  26320. +_LT_AC_TAGVAR(always_export_symbols, $1)=no
  26321. +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  26322. +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  26323. +_LT_AC_TAGVAR(hardcode_direct, $1)=no
  26324. +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  26325. +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  26326. +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  26327. +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  26328. +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  26329. +_LT_AC_TAGVAR(module_cmds, $1)=
  26330. +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  26331. +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  26332. +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  26333. +_LT_AC_TAGVAR(no_undefined_flag, $1)=
  26334. +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  26335. +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  26336. +
  26337. +# Source file extension for f77 test sources.
  26338. +ac_ext=f
  26339. +
  26340. +# Object file extension for compiled f77 test sources.
  26341. +objext=o
  26342. +_LT_AC_TAGVAR(objext, $1)=$objext
  26343. +
  26344. +# Code to be used in simple compile tests
  26345. +lt_simple_compile_test_code="\
  26346. + subroutine t
  26347. + return
  26348. + end
  26349. +"
  26350. +
  26351. +# Code to be used in simple link tests
  26352. +lt_simple_link_test_code="\
  26353. + program t
  26354. + end
  26355. +"
  26356. +
  26357. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  26358. +_LT_AC_SYS_COMPILER
  26359. +
  26360. +# save warnings/boilerplate of simple test code
  26361. +_LT_COMPILER_BOILERPLATE
  26362. +_LT_LINKER_BOILERPLATE
  26363. +
  26364. +# Allow CC to be a program name with arguments.
  26365. +lt_save_CC="$CC"
  26366. +CC=${F77-"f77"}
  26367. +compiler=$CC
  26368. +_LT_AC_TAGVAR(compiler, $1)=$CC
  26369. +_LT_CC_BASENAME([$compiler])
  26370. +
  26371. +AC_MSG_CHECKING([if libtool supports shared libraries])
  26372. +AC_MSG_RESULT([$can_build_shared])
  26373. +
  26374. +AC_MSG_CHECKING([whether to build shared libraries])
  26375. +test "$can_build_shared" = "no" && enable_shared=no
  26376. +
  26377. +# On AIX, shared libraries and static libraries use the same namespace, and
  26378. +# are all built from PIC.
  26379. +case $host_os in
  26380. +aix3*)
  26381. + test "$enable_shared" = yes && enable_static=no
  26382. + if test -n "$RANLIB"; then
  26383. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  26384. + postinstall_cmds='$RANLIB $lib'
  26385. + fi
  26386. + ;;
  26387. +aix[[4-9]]*)
  26388. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  26389. + test "$enable_shared" = yes && enable_static=no
  26390. + fi
  26391. + ;;
  26392. +esac
  26393. +AC_MSG_RESULT([$enable_shared])
  26394. +
  26395. +AC_MSG_CHECKING([whether to build static libraries])
  26396. +# Make sure either enable_shared or enable_static is yes.
  26397. +test "$enable_shared" = yes || enable_static=yes
  26398. +AC_MSG_RESULT([$enable_static])
  26399. +
  26400. +_LT_AC_TAGVAR(GCC, $1)="$G77"
  26401. +_LT_AC_TAGVAR(LD, $1)="$LD"
  26402. +
  26403. +AC_LIBTOOL_PROG_COMPILER_PIC($1)
  26404. +AC_LIBTOOL_PROG_CC_C_O($1)
  26405. +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  26406. +AC_LIBTOOL_PROG_LD_SHLIBS($1)
  26407. +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  26408. +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  26409. +
  26410. +AC_LIBTOOL_CONFIG($1)
  26411. +
  26412. +AC_LANG_POP
  26413. +CC="$lt_save_CC"
  26414. +])# AC_LIBTOOL_LANG_F77_CONFIG
  26415. +
  26416. +
  26417. +# AC_LIBTOOL_LANG_GCJ_CONFIG
  26418. +# --------------------------
  26419. +# Ensure that the configuration vars for the C compiler are
  26420. +# suitably defined. Those variables are subsequently used by
  26421. +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  26422. +AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  26423. +AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  26424. +[AC_LANG_SAVE
  26425. +
  26426. +# Source file extension for Java test sources.
  26427. +ac_ext=java
  26428. +
  26429. +# Object file extension for compiled Java test sources.
  26430. +objext=o
  26431. +_LT_AC_TAGVAR(objext, $1)=$objext
  26432. +
  26433. +# Code to be used in simple compile tests
  26434. +lt_simple_compile_test_code="class foo {}"
  26435. +
  26436. +# Code to be used in simple link tests
  26437. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  26438. +
  26439. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  26440. +_LT_AC_SYS_COMPILER
  26441. +
  26442. +# save warnings/boilerplate of simple test code
  26443. +_LT_COMPILER_BOILERPLATE
  26444. +_LT_LINKER_BOILERPLATE
  26445. +
  26446. +# Allow CC to be a program name with arguments.
  26447. +lt_save_CC="$CC"
  26448. +CC=${GCJ-"gcj"}
  26449. +compiler=$CC
  26450. +_LT_AC_TAGVAR(compiler, $1)=$CC
  26451. +_LT_CC_BASENAME([$compiler])
  26452. +
  26453. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  26454. +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  26455. +
  26456. +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  26457. +
  26458. +## CAVEAT EMPTOR:
  26459. +## There is no encapsulation within the following macros, do not change
  26460. +## the running order or otherwise move them around unless you know exactly
  26461. +## what you are doing...
  26462. +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  26463. +AC_LIBTOOL_PROG_COMPILER_PIC($1)
  26464. +AC_LIBTOOL_PROG_CC_C_O($1)
  26465. +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  26466. +AC_LIBTOOL_PROG_LD_SHLIBS($1)
  26467. +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  26468. +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  26469. +
  26470. +AC_LIBTOOL_CONFIG($1)
  26471. +
  26472. +AC_LANG_RESTORE
  26473. +CC="$lt_save_CC"
  26474. +])# AC_LIBTOOL_LANG_GCJ_CONFIG
  26475. +
  26476. +
  26477. +# AC_LIBTOOL_LANG_RC_CONFIG
  26478. +# -------------------------
  26479. +# Ensure that the configuration vars for the Windows resource compiler are
  26480. +# suitably defined. Those variables are subsequently used by
  26481. +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  26482. +AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  26483. +AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  26484. +[AC_LANG_SAVE
  26485. +
  26486. +# Source file extension for RC test sources.
  26487. +ac_ext=rc
  26488. +
  26489. +# Object file extension for compiled RC test sources.
  26490. +objext=o
  26491. +_LT_AC_TAGVAR(objext, $1)=$objext
  26492. +
  26493. +# Code to be used in simple compile tests
  26494. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  26495. +
  26496. +# Code to be used in simple link tests
  26497. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  26498. +
  26499. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  26500. +_LT_AC_SYS_COMPILER
  26501. +
  26502. +# save warnings/boilerplate of simple test code
  26503. +_LT_COMPILER_BOILERPLATE
  26504. +_LT_LINKER_BOILERPLATE
  26505. +
  26506. +# Allow CC to be a program name with arguments.
  26507. +lt_save_CC="$CC"
  26508. +CC=${RC-"windres"}
  26509. +compiler=$CC
  26510. +_LT_AC_TAGVAR(compiler, $1)=$CC
  26511. +_LT_CC_BASENAME([$compiler])
  26512. +_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  26513. +
  26514. +AC_LIBTOOL_CONFIG($1)
  26515. +
  26516. +AC_LANG_RESTORE
  26517. +CC="$lt_save_CC"
  26518. +])# AC_LIBTOOL_LANG_RC_CONFIG
  26519. +
  26520. +
  26521. +# AC_LIBTOOL_CONFIG([TAGNAME])
  26522. +# ----------------------------
  26523. +# If TAGNAME is not passed, then create an initial libtool script
  26524. +# with a default configuration from the untagged config vars. Otherwise
  26525. +# add code to config.status for appending the configuration named by
  26526. +# TAGNAME from the matching tagged config vars.
  26527. +AC_DEFUN([AC_LIBTOOL_CONFIG],
  26528. +[# The else clause should only fire when bootstrapping the
  26529. +# libtool distribution, otherwise you forgot to ship ltmain.sh
  26530. +# with your package, and you will get complaints that there are
  26531. +# no rules to generate ltmain.sh.
  26532. +if test -f "$ltmain"; then
  26533. + # See if we are running on zsh, and set the options which allow our commands through
  26534. + # without removal of \ escapes.
  26535. + if test -n "${ZSH_VERSION+set}" ; then
  26536. + setopt NO_GLOB_SUBST
  26537. + fi
  26538. + # Now quote all the things that may contain metacharacters while being
  26539. + # careful not to overquote the AC_SUBSTed values. We take copies of the
  26540. + # variables and quote the copies for generation of the libtool script.
  26541. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  26542. + SED SHELL STRIP \
  26543. + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  26544. + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  26545. + deplibs_check_method reload_flag reload_cmds need_locks \
  26546. + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  26547. + lt_cv_sys_global_symbol_to_c_name_address \
  26548. + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  26549. + old_postinstall_cmds old_postuninstall_cmds \
  26550. + _LT_AC_TAGVAR(compiler, $1) \
  26551. + _LT_AC_TAGVAR(CC, $1) \
  26552. + _LT_AC_TAGVAR(LD, $1) \
  26553. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  26554. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  26555. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  26556. + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  26557. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  26558. + _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  26559. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  26560. + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  26561. + _LT_AC_TAGVAR(old_archive_cmds, $1) \
  26562. + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  26563. + _LT_AC_TAGVAR(predep_objects, $1) \
  26564. + _LT_AC_TAGVAR(postdep_objects, $1) \
  26565. + _LT_AC_TAGVAR(predeps, $1) \
  26566. + _LT_AC_TAGVAR(postdeps, $1) \
  26567. + _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  26568. + _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
  26569. + _LT_AC_TAGVAR(archive_cmds, $1) \
  26570. + _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  26571. + _LT_AC_TAGVAR(postinstall_cmds, $1) \
  26572. + _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  26573. + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  26574. + _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  26575. + _LT_AC_TAGVAR(no_undefined_flag, $1) \
  26576. + _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  26577. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  26578. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  26579. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  26580. + _LT_AC_TAGVAR(hardcode_automatic, $1) \
  26581. + _LT_AC_TAGVAR(module_cmds, $1) \
  26582. + _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  26583. + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  26584. + _LT_AC_TAGVAR(fix_srcfile_path, $1) \
  26585. + _LT_AC_TAGVAR(exclude_expsyms, $1) \
  26586. + _LT_AC_TAGVAR(include_expsyms, $1); do
  26587. +
  26588. + case $var in
  26589. + _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  26590. + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  26591. + _LT_AC_TAGVAR(archive_cmds, $1) | \
  26592. + _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  26593. + _LT_AC_TAGVAR(module_cmds, $1) | \
  26594. + _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  26595. + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  26596. + _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  26597. + extract_expsyms_cmds | reload_cmds | finish_cmds | \
  26598. + postinstall_cmds | postuninstall_cmds | \
  26599. + old_postinstall_cmds | old_postuninstall_cmds | \
  26600. + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  26601. + # Double-quote double-evaled strings.
  26602. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  26603. + ;;
  26604. + *)
  26605. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  26606. + ;;
  26607. + esac
  26608. + done
  26609. +
  26610. + case $lt_echo in
  26611. + *'\[$]0 --fallback-echo"')
  26612. + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  26613. + ;;
  26614. + esac
  26615. +
  26616. +ifelse([$1], [],
  26617. + [cfgfile="${ofile}T"
  26618. + trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  26619. + $rm -f "$cfgfile"
  26620. + AC_MSG_NOTICE([creating $ofile])],
  26621. + [cfgfile="$ofile"])
  26622. +
  26623. + cat <<__EOF__ >> "$cfgfile"
  26624. +ifelse([$1], [],
  26625. +[#! $SHELL
  26626. +
  26627. +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  26628. +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  26629. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  26630. +#
  26631. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  26632. +# Free Software Foundation, Inc.
  26633. +#
  26634. +# This file is part of GNU Libtool:
  26635. +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  26636. +#
  26637. +# This program is free software; you can redistribute it and/or modify
  26638. +# it under the terms of the GNU General Public License as published by
  26639. +# the Free Software Foundation; either version 2 of the License, or
  26640. +# (at your option) any later version.
  26641. +#
  26642. +# This program is distributed in the hope that it will be useful, but
  26643. +# WITHOUT ANY WARRANTY; without even the implied warranty of
  26644. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  26645. +# General Public License for more details.
  26646. +#
  26647. +# You should have received a copy of the GNU General Public License
  26648. +# along with this program; if not, write to the Free Software
  26649. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  26650. +#
  26651. +# As a special exception to the GNU General Public License, if you
  26652. +# distribute this file as part of a program that contains a
  26653. +# configuration script generated by Autoconf, you may include it under
  26654. +# the same distribution terms that you use for the rest of that program.
  26655. +
  26656. +# A sed program that does not truncate output.
  26657. +SED=$lt_SED
  26658. +
  26659. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  26660. +Xsed="$SED -e 1s/^X//"
  26661. +
  26662. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  26663. +# if CDPATH is set.
  26664. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26665. +
  26666. +# The names of the tagged configurations supported by this script.
  26667. +available_tags=
  26668. +
  26669. +# ### BEGIN LIBTOOL CONFIG],
  26670. +[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  26671. +
  26672. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  26673. +
  26674. +# Shell to use when invoking shell scripts.
  26675. +SHELL=$lt_SHELL
  26676. +
  26677. +# Whether or not to build shared libraries.
  26678. +build_libtool_libs=$enable_shared
  26679. +
  26680. +# Whether or not to build static libraries.
  26681. +build_old_libs=$enable_static
  26682. +
  26683. +# Whether or not to add -lc for building shared libraries.
  26684. +build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  26685. +
  26686. +# Whether or not to disallow shared libs when runtime libs are static
  26687. +allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  26688. +
  26689. +# Whether or not to optimize for fast installation.
  26690. +fast_install=$enable_fast_install
  26691. +
  26692. +# The host system.
  26693. +host_alias=$host_alias
  26694. +host=$host
  26695. +host_os=$host_os
  26696. +
  26697. +# The build system.
  26698. +build_alias=$build_alias
  26699. +build=$build
  26700. +build_os=$build_os
  26701. +
  26702. +# An echo program that does not interpret backslashes.
  26703. +echo=$lt_echo
  26704. +
  26705. +# The archiver.
  26706. +AR=$lt_AR
  26707. +AR_FLAGS=$lt_AR_FLAGS
  26708. +
  26709. +# A C compiler.
  26710. +LTCC=$lt_LTCC
  26711. +
  26712. +# LTCC compiler flags.
  26713. +LTCFLAGS=$lt_LTCFLAGS
  26714. +
  26715. +# A language-specific compiler.
  26716. +CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  26717. +
  26718. +# Is the compiler the GNU C compiler?
  26719. +with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  26720. +
  26721. +# An ERE matcher.
  26722. +EGREP=$lt_EGREP
  26723. +
  26724. +# The linker used to build libraries.
  26725. +LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  26726. +
  26727. +# Whether we need hard or soft links.
  26728. +LN_S=$lt_LN_S
  26729. +
  26730. +# A BSD-compatible nm program.
  26731. +NM=$lt_NM
  26732. +
  26733. +# A symbol stripping program
  26734. +STRIP=$lt_STRIP
  26735. +
  26736. +# Used to examine libraries when file_magic_cmd begins "file"
  26737. +MAGIC_CMD=$MAGIC_CMD
  26738. +
  26739. +# Used on cygwin: DLL creation program.
  26740. +DLLTOOL="$DLLTOOL"
  26741. +
  26742. +# Used on cygwin: object dumper.
  26743. +OBJDUMP="$OBJDUMP"
  26744. +
  26745. +# Used on cygwin: assembler.
  26746. +AS="$AS"
  26747. +
  26748. +# The name of the directory that contains temporary libtool files.
  26749. +objdir=$objdir
  26750. +
  26751. +# How to create reloadable object files.
  26752. +reload_flag=$lt_reload_flag
  26753. +reload_cmds=$lt_reload_cmds
  26754. +
  26755. +# How to pass a linker flag through the compiler.
  26756. +wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  26757. +
  26758. +# Object file suffix (normally "o").
  26759. +objext="$ac_objext"
  26760. +
  26761. +# Old archive suffix (normally "a").
  26762. +libext="$libext"
  26763. +
  26764. +# Shared library suffix (normally ".so").
  26765. +shrext_cmds='$shrext_cmds'
  26766. +
  26767. +# Executable file suffix (normally "").
  26768. +exeext="$exeext"
  26769. +
  26770. +# Additional compiler flags for building library objects.
  26771. +pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  26772. +pic_mode=$pic_mode
  26773. +
  26774. +# What is the maximum length of a command?
  26775. +max_cmd_len=$lt_cv_sys_max_cmd_len
  26776. +
  26777. +# Does compiler simultaneously support -c and -o options?
  26778. +compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  26779. +
  26780. +# Must we lock files when doing compilation?
  26781. +need_locks=$lt_need_locks
  26782. +
  26783. +# Do we need the lib prefix for modules?
  26784. +need_lib_prefix=$need_lib_prefix
  26785. +
  26786. +# Do we need a version for libraries?
  26787. +need_version=$need_version
  26788. +
  26789. +# Whether dlopen is supported.
  26790. +dlopen_support=$enable_dlopen
  26791. +
  26792. +# Whether dlopen of programs is supported.
  26793. +dlopen_self=$enable_dlopen_self
  26794. +
  26795. +# Whether dlopen of statically linked programs is supported.
  26796. +dlopen_self_static=$enable_dlopen_self_static
  26797. +
  26798. +# Compiler flag to prevent dynamic linking.
  26799. +link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  26800. +
  26801. +# Compiler flag to turn off builtin functions.
  26802. +no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  26803. +
  26804. +# Compiler flag to allow reflexive dlopens.
  26805. +export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  26806. +
  26807. +# Compiler flag to generate shared objects directly from archives.
  26808. +whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  26809. +
  26810. +# Compiler flag to generate thread-safe objects.
  26811. +thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  26812. +
  26813. +# Library versioning type.
  26814. +version_type=$version_type
  26815. +
  26816. +# Format of library name prefix.
  26817. +libname_spec=$lt_libname_spec
  26818. +
  26819. +# List of archive names. First name is the real one, the rest are links.
  26820. +# The last name is the one that the linker finds with -lNAME.
  26821. +library_names_spec=$lt_library_names_spec
  26822. +
  26823. +# The coded name of the library, if different from the real name.
  26824. +soname_spec=$lt_soname_spec
  26825. +
  26826. +# Commands used to build and install an old-style archive.
  26827. +RANLIB=$lt_RANLIB
  26828. +old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  26829. +old_postinstall_cmds=$lt_old_postinstall_cmds
  26830. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  26831. +
  26832. +# Create an old-style archive from a shared archive.
  26833. +old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  26834. +
  26835. +# Create a temporary old-style archive to link instead of a shared archive.
  26836. +old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  26837. +
  26838. +# Commands used to build and install a shared archive.
  26839. +archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  26840. +archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  26841. +postinstall_cmds=$lt_postinstall_cmds
  26842. +postuninstall_cmds=$lt_postuninstall_cmds
  26843. +
  26844. +# Commands used to build a loadable module (assumed same as above if empty)
  26845. +module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  26846. +module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  26847. +
  26848. +# Commands to strip libraries.
  26849. +old_striplib=$lt_old_striplib
  26850. +striplib=$lt_striplib
  26851. +
  26852. +# Dependencies to place before the objects being linked to create a
  26853. +# shared library.
  26854. +predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  26855. +
  26856. +# Dependencies to place after the objects being linked to create a
  26857. +# shared library.
  26858. +postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  26859. +
  26860. +# Dependencies to place before the objects being linked to create a
  26861. +# shared library.
  26862. +predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  26863. +
  26864. +# Dependencies to place after the objects being linked to create a
  26865. +# shared library.
  26866. +postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  26867. +
  26868. +# The directories searched by this compiler when creating a shared
  26869. +# library
  26870. +compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
  26871. +
  26872. +# The library search path used internally by the compiler when linking
  26873. +# a shared library.
  26874. +compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  26875. +
  26876. +# Method to check whether dependent libraries are shared objects.
  26877. +deplibs_check_method=$lt_deplibs_check_method
  26878. +
  26879. +# Command to use when deplibs_check_method == file_magic.
  26880. +file_magic_cmd=$lt_file_magic_cmd
  26881. +
  26882. +# Flag that allows shared libraries with undefined symbols to be built.
  26883. +allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  26884. +
  26885. +# Flag that forces no undefined symbols.
  26886. +no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  26887. +
  26888. +# Commands used to finish a libtool library installation in a directory.
  26889. +finish_cmds=$lt_finish_cmds
  26890. +
  26891. +# Same as above, but a single script fragment to be evaled but not shown.
  26892. +finish_eval=$lt_finish_eval
  26893. +
  26894. +# Take the output of nm and produce a listing of raw symbols and C names.
  26895. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  26896. +
  26897. +# Transform the output of nm in a proper C declaration
  26898. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  26899. +
  26900. +# Transform the output of nm in a C name address pair
  26901. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  26902. +
  26903. +# This is the shared library runtime path variable.
  26904. +runpath_var=$runpath_var
  26905. +
  26906. +# This is the shared library path variable.
  26907. +shlibpath_var=$shlibpath_var
  26908. +
  26909. +# Is shlibpath searched before the hard-coded library search path?
  26910. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  26911. +
  26912. +# How to hardcode a shared library path into an executable.
  26913. +hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  26914. +
  26915. +# Whether we should hardcode library paths into libraries.
  26916. +hardcode_into_libs=$hardcode_into_libs
  26917. +
  26918. +# Flag to hardcode \$libdir into a binary during linking.
  26919. +# This must work even if \$libdir does not exist.
  26920. +hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  26921. +
  26922. +# If ld is used when linking, flag to hardcode \$libdir into
  26923. +# a binary during linking. This must work even if \$libdir does
  26924. +# not exist.
  26925. +hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  26926. +
  26927. +# Whether we need a single -rpath flag with a separated argument.
  26928. +hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  26929. +
  26930. +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  26931. +# resulting binary.
  26932. +hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  26933. +
  26934. +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  26935. +# resulting binary.
  26936. +hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  26937. +
  26938. +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  26939. +# the resulting binary.
  26940. +hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  26941. +
  26942. +# Set to yes if building a shared library automatically hardcodes DIR into the library
  26943. +# and all subsequent libraries and executables linked against it.
  26944. +hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  26945. +
  26946. +# Variables whose values should be saved in libtool wrapper scripts and
  26947. +# restored at relink time.
  26948. +variables_saved_for_relink="$variables_saved_for_relink"
  26949. +
  26950. +# Whether libtool must link a program against all its dependency libraries.
  26951. +link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  26952. +
  26953. +# Compile-time system search path for libraries
  26954. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  26955. +
  26956. +# Run-time system search path for libraries
  26957. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  26958. +
  26959. +# Fix the shell variable \$srcfile for the compiler.
  26960. +fix_srcfile_path=$lt_fix_srcfile_path
  26961. +
  26962. +# Set to yes if exported symbols are required.
  26963. +always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  26964. +
  26965. +# The commands to list exported symbols.
  26966. +export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  26967. +
  26968. +# The commands to extract the exported symbol list from a shared archive.
  26969. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  26970. +
  26971. +# Symbols that should not be listed in the preloaded symbols.
  26972. +exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  26973. +
  26974. +# Symbols that must always be exported.
  26975. +include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  26976. +
  26977. +ifelse([$1],[],
  26978. +[# ### END LIBTOOL CONFIG],
  26979. +[# ### END LIBTOOL TAG CONFIG: $tagname])
  26980. +
  26981. +__EOF__
  26982. +
  26983. +ifelse([$1],[], [
  26984. + case $host_os in
  26985. + aix3*)
  26986. + cat <<\EOF >> "$cfgfile"
  26987. +
  26988. +# AIX sometimes has problems with the GCC collect2 program. For some
  26989. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  26990. +# vanish in a puff of smoke.
  26991. +if test "X${COLLECT_NAMES+set}" != Xset; then
  26992. + COLLECT_NAMES=
  26993. + export COLLECT_NAMES
  26994. +fi
  26995. +EOF
  26996. + ;;
  26997. + esac
  26998. +
  26999. + # We use sed instead of cat because bash on DJGPP gets confused if
  27000. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27001. + # text mode, it properly converts lines to CR/LF. This bash problem
  27002. + # is reportedly fixed, but why not run on old versions too?
  27003. + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  27004. +
  27005. + mv -f "$cfgfile" "$ofile" || \
  27006. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27007. + chmod +x "$ofile"
  27008. +])
  27009. +else
  27010. + # If there is no Makefile yet, we rely on a make rule to execute
  27011. + # `config.status --recheck' to rerun these tests and create the
  27012. + # libtool script then.
  27013. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  27014. + if test -f "$ltmain_in"; then
  27015. + test -f Makefile && make "$ltmain"
  27016. + fi
  27017. +fi
  27018. +])# AC_LIBTOOL_CONFIG
  27019. +
  27020. +
  27021. +# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  27022. +# -------------------------------------------
  27023. +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  27024. +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  27025. +
  27026. +_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  27027. +
  27028. +if test "$GCC" = yes; then
  27029. + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  27030. +
  27031. + AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  27032. + lt_cv_prog_compiler_rtti_exceptions,
  27033. + [-fno-rtti -fno-exceptions], [],
  27034. + [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  27035. +fi
  27036. +])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  27037. +
  27038. +
  27039. +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  27040. +# ---------------------------------
  27041. +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  27042. +[AC_REQUIRE([AC_CANONICAL_HOST])
  27043. +AC_REQUIRE([LT_AC_PROG_SED])
  27044. +AC_REQUIRE([AC_PROG_NM])
  27045. +AC_REQUIRE([AC_OBJEXT])
  27046. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  27047. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  27048. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  27049. +[
  27050. +# These are sane defaults that work on at least a few old systems.
  27051. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  27052. +
  27053. +# Character class describing NM global symbol codes.
  27054. +symcode='[[BCDEGRST]]'
  27055. +
  27056. +# Regexp to match symbols that can be accessed directly from C.
  27057. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  27058. +
  27059. +# Transform an extracted symbol line into a proper C declaration
  27060. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  27061. +
  27062. +# Transform an extracted symbol line into symbol name and symbol address
  27063. +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'"
  27064. +
  27065. +# Define system-specific variables.
  27066. +case $host_os in
  27067. +aix*)
  27068. + symcode='[[BCDT]]'
  27069. + ;;
  27070. +cygwin* | mingw* | pw32*)
  27071. + symcode='[[ABCDGISTW]]'
  27072. + ;;
  27073. +hpux*) # Its linker distinguishes data from code symbols
  27074. + if test "$host_cpu" = ia64; then
  27075. + symcode='[[ABCDEGRST]]'
  27076. + fi
  27077. + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  27078. + 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'"
  27079. + ;;
  27080. +linux* | k*bsd*-gnu)
  27081. + if test "$host_cpu" = ia64; then
  27082. + symcode='[[ABCDGIRSTW]]'
  27083. + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  27084. + 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'"
  27085. + fi
  27086. + ;;
  27087. +irix* | nonstopux*)
  27088. + symcode='[[BCDEGRST]]'
  27089. + ;;
  27090. +osf*)
  27091. + symcode='[[BCDEGQRST]]'
  27092. + ;;
  27093. +solaris*)
  27094. + symcode='[[BDRT]]'
  27095. + ;;
  27096. +sco3.2v5*)
  27097. + symcode='[[DT]]'
  27098. + ;;
  27099. +sysv4.2uw2*)
  27100. + symcode='[[DT]]'
  27101. + ;;
  27102. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  27103. + symcode='[[ABDT]]'
  27104. + ;;
  27105. +sysv4)
  27106. + symcode='[[DFNSTU]]'
  27107. + ;;
  27108. +esac
  27109. +
  27110. +# Handle CRLF in mingw tool chain
  27111. +opt_cr=
  27112. +case $build_os in
  27113. +mingw*)
  27114. + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  27115. + ;;
  27116. +esac
  27117. +
  27118. +# If we're using GNU nm, then use its standard symbol codes.
  27119. +case `$NM -V 2>&1` in
  27120. +*GNU* | *'with BFD'*)
  27121. + symcode='[[ABCDGIRSTW]]' ;;
  27122. +esac
  27123. +
  27124. +# Try without a prefix undercore, then with it.
  27125. +for ac_symprfx in "" "_"; do
  27126. +
  27127. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  27128. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  27129. +
  27130. + # Write the raw and C identifiers.
  27131. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  27132. +
  27133. + # Check to see that the pipe works correctly.
  27134. + pipe_works=no
  27135. +
  27136. + rm -f conftest*
  27137. + cat > conftest.$ac_ext <<EOF
  27138. +#ifdef __cplusplus
  27139. +extern "C" {
  27140. +#endif
  27141. +char nm_test_var;
  27142. +void nm_test_func(){}
  27143. +#ifdef __cplusplus
  27144. +}
  27145. +#endif
  27146. +int main(){nm_test_var='a';nm_test_func();return(0);}
  27147. +EOF
  27148. +
  27149. + if AC_TRY_EVAL(ac_compile); then
  27150. + # Now try to grab the symbols.
  27151. + nlist=conftest.nm
  27152. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  27153. + # Try sorting and uniquifying the output.
  27154. + if sort "$nlist" | uniq > "$nlist"T; then
  27155. + mv -f "$nlist"T "$nlist"
  27156. + else
  27157. + rm -f "$nlist"T
  27158. + fi
  27159. +
  27160. + # Make sure that we snagged all the symbols we need.
  27161. + if grep ' nm_test_var$' "$nlist" >/dev/null; then
  27162. + if grep ' nm_test_func$' "$nlist" >/dev/null; then
  27163. + cat <<EOF > conftest.$ac_ext
  27164. +#ifdef __cplusplus
  27165. +extern "C" {
  27166. +#endif
  27167. +
  27168. +EOF
  27169. + # Now generate the symbol file.
  27170. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  27171. +
  27172. + cat <<EOF >> conftest.$ac_ext
  27173. +#if defined (__STDC__) && __STDC__
  27174. +# define lt_ptr_t void *
  27175. +#else
  27176. +# define lt_ptr_t char *
  27177. +# define const
  27178. +#endif
  27179. +
  27180. +/* The mapping between symbol names and symbols. */
  27181. +const struct {
  27182. + const char *name;
  27183. + lt_ptr_t address;
  27184. +}
  27185. +lt_preloaded_symbols[[]] =
  27186. +{
  27187. +EOF
  27188. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  27189. + cat <<\EOF >> conftest.$ac_ext
  27190. + {0, (lt_ptr_t) 0}
  27191. +};
  27192. +
  27193. +#ifdef __cplusplus
  27194. +}
  27195. +#endif
  27196. +EOF
  27197. + # Now try linking the two files.
  27198. + mv conftest.$ac_objext conftstm.$ac_objext
  27199. + lt_save_LIBS="$LIBS"
  27200. + lt_save_CFLAGS="$CFLAGS"
  27201. + LIBS="conftstm.$ac_objext"
  27202. + CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  27203. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  27204. + pipe_works=yes
  27205. + fi
  27206. + LIBS="$lt_save_LIBS"
  27207. + CFLAGS="$lt_save_CFLAGS"
  27208. + else
  27209. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  27210. + fi
  27211. + else
  27212. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  27213. + fi
  27214. + else
  27215. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  27216. + fi
  27217. + else
  27218. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  27219. + cat conftest.$ac_ext >&5
  27220. + fi
  27221. + rm -rf conftest* conftst*
  27222. +
  27223. + # Do not use the global_symbol_pipe unless it works.
  27224. + if test "$pipe_works" = yes; then
  27225. + break
  27226. + else
  27227. + lt_cv_sys_global_symbol_pipe=
  27228. + fi
  27229. +done
  27230. +])
  27231. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  27232. + lt_cv_sys_global_symbol_to_cdecl=
  27233. +fi
  27234. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  27235. + AC_MSG_RESULT(failed)
  27236. +else
  27237. + AC_MSG_RESULT(ok)
  27238. +fi
  27239. +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  27240. +
  27241. +
  27242. +# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  27243. +# ---------------------------------------
  27244. +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  27245. +[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  27246. +_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  27247. +_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  27248. +
  27249. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  27250. + ifelse([$1],[CXX],[
  27251. + # C++ specific cases for pic, static, wl, etc.
  27252. + if test "$GXX" = yes; then
  27253. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  27254. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  27255. +
  27256. + case $host_os in
  27257. + aix*)
  27258. + # All AIX code is PIC.
  27259. + if test "$host_cpu" = ia64; then
  27260. + # AIX 5 now supports IA64 processor
  27261. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  27262. + fi
  27263. + ;;
  27264. + amigaos*)
  27265. + # FIXME: we need at least 68020 code to build shared libraries, but
  27266. + # adding the `-m68020' flag to GCC prevents building anything better,
  27267. + # like `-m68040'.
  27268. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  27269. + ;;
  27270. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  27271. + # PIC is the default for these OSes.
  27272. + ;;
  27273. + mingw* | cygwin* | os2* | pw32*)
  27274. + # This hack is so that the source file can tell whether it is being
  27275. + # built for inclusion in a dll (and should export symbols for example).
  27276. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  27277. + # (--disable-auto-import) libraries
  27278. + m4_if([$1], [GCJ], [],
  27279. + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  27280. + ;;
  27281. + darwin* | rhapsody*)
  27282. + # PIC is the default on this platform
  27283. + # Common symbols not allowed in MH_DYLIB files
  27284. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  27285. + ;;
  27286. + *djgpp*)
  27287. + # DJGPP does not support shared libraries at all
  27288. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  27289. + ;;
  27290. + interix[[3-9]]*)
  27291. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  27292. + # Instead, we relocate shared libraries at runtime.
  27293. + ;;
  27294. + sysv4*MP*)
  27295. + if test -d /usr/nec; then
  27296. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  27297. + fi
  27298. + ;;
  27299. + hpux*)
  27300. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  27301. + # not for PA HP-UX.
  27302. + case $host_cpu in
  27303. + hppa*64*|ia64*)
  27304. + ;;
  27305. + *)
  27306. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  27307. + ;;
  27308. + esac
  27309. + ;;
  27310. + *)
  27311. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  27312. + ;;
  27313. + esac
  27314. + else
  27315. + case $host_os in
  27316. + aix[[4-9]]*)
  27317. + # All AIX code is PIC.
  27318. + if test "$host_cpu" = ia64; then
  27319. + # AIX 5 now supports IA64 processor
  27320. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  27321. + else
  27322. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  27323. + fi
  27324. + ;;
  27325. + chorus*)
  27326. + case $cc_basename in
  27327. + cxch68*)
  27328. + # Green Hills C++ Compiler
  27329. + # _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"
  27330. + ;;
  27331. + esac
  27332. + ;;
  27333. + darwin*)
  27334. + # PIC is the default on this platform
  27335. + # Common symbols not allowed in MH_DYLIB files
  27336. + case $cc_basename in
  27337. + xlc*)
  27338. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  27339. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  27340. + ;;
  27341. + esac
  27342. + ;;
  27343. + dgux*)
  27344. + case $cc_basename in
  27345. + ec++*)
  27346. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  27347. + ;;
  27348. + ghcx*)
  27349. + # Green Hills C++ Compiler
  27350. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  27351. + ;;
  27352. + *)
  27353. + ;;
  27354. + esac
  27355. + ;;
  27356. + freebsd* | dragonfly*)
  27357. + # FreeBSD uses GNU C++
  27358. + ;;
  27359. + hpux9* | hpux10* | hpux11*)
  27360. + case $cc_basename in
  27361. + CC*)
  27362. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  27363. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  27364. + if test "$host_cpu" != ia64; then
  27365. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  27366. + fi
  27367. + ;;
  27368. + aCC*)
  27369. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  27370. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  27371. + case $host_cpu in
  27372. + hppa*64*|ia64*)
  27373. + # +Z the default
  27374. + ;;
  27375. + *)
  27376. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  27377. + ;;
  27378. + esac
  27379. + ;;
  27380. + *)
  27381. + ;;
  27382. + esac
  27383. + ;;
  27384. + interix*)
  27385. + # This is c89, which is MS Visual C++ (no shared libs)
  27386. + # Anyone wants to do a port?
  27387. + ;;
  27388. + irix5* | irix6* | nonstopux*)
  27389. + case $cc_basename in
  27390. + CC*)
  27391. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  27392. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  27393. + # CC pic flag -KPIC is the default.
  27394. + ;;
  27395. + *)
  27396. + ;;
  27397. + esac
  27398. + ;;
  27399. + linux* | k*bsd*-gnu)
  27400. + case $cc_basename in
  27401. + KCC*)
  27402. + # KAI C++ Compiler
  27403. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  27404. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  27405. + ;;
  27406. + icpc* | ecpc*)
  27407. + # Intel C++
  27408. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  27409. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  27410. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  27411. + ;;
  27412. + pgCC* | pgcpp*)
  27413. + # Portland Group C++ compiler.
  27414. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  27415. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  27416. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  27417. + ;;
  27418. + cxx*)
  27419. + # Compaq C++
  27420. + # Make sure the PIC flag is empty. It appears that all Alpha
  27421. + # Linux and Compaq Tru64 Unix objects are PIC.
  27422. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  27423. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  27424. + ;;
  27425. + *)
  27426. + case `$CC -V 2>&1 | sed 5q` in
  27427. + *Sun\ C*)
  27428. + # Sun C++ 5.9
  27429. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  27430. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  27431. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  27432. + ;;
  27433. + esac
  27434. + ;;
  27435. + esac
  27436. + ;;
  27437. + lynxos*)
  27438. + ;;
  27439. + m88k*)
  27440. + ;;
  27441. + mvs*)
  27442. + case $cc_basename in
  27443. + cxx*)
  27444. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  27445. + ;;
  27446. + *)
  27447. + ;;
  27448. + esac
  27449. + ;;
  27450. + netbsd* | netbsdelf*-gnu)
  27451. + ;;
  27452. + osf3* | osf4* | osf5*)
  27453. + case $cc_basename in
  27454. + KCC*)
  27455. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  27456. + ;;
  27457. + RCC*)
  27458. + # Rational C++ 2.4.1
  27459. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  27460. + ;;
  27461. + cxx*)
  27462. + # Digital/Compaq C++
  27463. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  27464. + # Make sure the PIC flag is empty. It appears that all Alpha
  27465. + # Linux and Compaq Tru64 Unix objects are PIC.
  27466. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  27467. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  27468. + ;;
  27469. + *)
  27470. + ;;
  27471. + esac
  27472. + ;;
  27473. + psos*)
  27474. + ;;
  27475. + solaris*)
  27476. + case $cc_basename in
  27477. + CC*)
  27478. + # Sun C++ 4.2, 5.x and Centerline C++
  27479. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  27480. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  27481. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  27482. + ;;
  27483. + gcx*)
  27484. + # Green Hills C++ Compiler
  27485. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  27486. + ;;
  27487. + *)
  27488. + ;;
  27489. + esac
  27490. + ;;
  27491. + sunos4*)
  27492. + case $cc_basename in
  27493. + CC*)
  27494. + # Sun C++ 4.x
  27495. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  27496. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  27497. + ;;
  27498. + lcc*)
  27499. + # Lucid
  27500. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  27501. + ;;
  27502. + *)
  27503. + ;;
  27504. + esac
  27505. + ;;
  27506. + tandem*)
  27507. + case $cc_basename in
  27508. + NCC*)
  27509. + # NonStop-UX NCC 3.20
  27510. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  27511. + ;;
  27512. + *)
  27513. + ;;
  27514. + esac
  27515. + ;;
  27516. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  27517. + case $cc_basename in
  27518. + CC*)
  27519. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  27520. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  27521. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  27522. + ;;
  27523. + esac
  27524. + ;;
  27525. + vxworks*)
  27526. + ;;
  27527. + *)
  27528. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  27529. + ;;
  27530. + esac
  27531. + fi
  27532. +],
  27533. +[
  27534. + if test "$GCC" = yes; then
  27535. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  27536. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  27537. +
  27538. + case $host_os in
  27539. + aix*)
  27540. + # All AIX code is PIC.
  27541. + if test "$host_cpu" = ia64; then
  27542. + # AIX 5 now supports IA64 processor
  27543. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  27544. + fi
  27545. + ;;
  27546. +
  27547. + amigaos*)
  27548. + # FIXME: we need at least 68020 code to build shared libraries, but
  27549. + # adding the `-m68020' flag to GCC prevents building anything better,
  27550. + # like `-m68040'.
  27551. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  27552. + ;;
  27553. +
  27554. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  27555. + # PIC is the default for these OSes.
  27556. + ;;
  27557. +
  27558. + mingw* | cygwin* | pw32* | os2*)
  27559. + # This hack is so that the source file can tell whether it is being
  27560. + # built for inclusion in a dll (and should export symbols for example).
  27561. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  27562. + # (--disable-auto-import) libraries
  27563. + m4_if([$1], [GCJ], [],
  27564. + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  27565. + ;;
  27566. +
  27567. + darwin* | rhapsody*)
  27568. + # PIC is the default on this platform
  27569. + # Common symbols not allowed in MH_DYLIB files
  27570. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  27571. + ;;
  27572. +
  27573. + interix[[3-9]]*)
  27574. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  27575. + # Instead, we relocate shared libraries at runtime.
  27576. + ;;
  27577. +
  27578. + msdosdjgpp*)
  27579. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  27580. + # on systems that don't support them.
  27581. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  27582. + enable_shared=no
  27583. + ;;
  27584. +
  27585. + sysv4*MP*)
  27586. + if test -d /usr/nec; then
  27587. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  27588. + fi
  27589. + ;;
  27590. +
  27591. + hpux*)
  27592. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  27593. + # not for PA HP-UX.
  27594. + case $host_cpu in
  27595. + hppa*64*|ia64*)
  27596. + # +Z the default
  27597. + ;;
  27598. + *)
  27599. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  27600. + ;;
  27601. + esac
  27602. + ;;
  27603. +
  27604. + *)
  27605. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  27606. + ;;
  27607. + esac
  27608. + else
  27609. + # PORTME Check for flag to pass linker flags through the system compiler.
  27610. + case $host_os in
  27611. + aix*)
  27612. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  27613. + if test "$host_cpu" = ia64; then
  27614. + # AIX 5 now supports IA64 processor
  27615. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  27616. + else
  27617. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  27618. + fi
  27619. + ;;
  27620. + darwin*)
  27621. + # PIC is the default on this platform
  27622. + # Common symbols not allowed in MH_DYLIB files
  27623. + case $cc_basename in
  27624. + xlc*)
  27625. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  27626. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  27627. + ;;
  27628. + esac
  27629. + ;;
  27630. +
  27631. + mingw* | cygwin* | pw32* | os2*)
  27632. + # This hack is so that the source file can tell whether it is being
  27633. + # built for inclusion in a dll (and should export symbols for example).
  27634. + m4_if([$1], [GCJ], [],
  27635. + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  27636. + ;;
  27637. +
  27638. + hpux9* | hpux10* | hpux11*)
  27639. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  27640. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  27641. + # not for PA HP-UX.
  27642. + case $host_cpu in
  27643. + hppa*64*|ia64*)
  27644. + # +Z the default
  27645. + ;;
  27646. + *)
  27647. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  27648. + ;;
  27649. + esac
  27650. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  27651. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  27652. + ;;
  27653. +
  27654. + irix5* | irix6* | nonstopux*)
  27655. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  27656. + # PIC (with -KPIC) is the default.
  27657. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  27658. + ;;
  27659. +
  27660. + newsos6)
  27661. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  27662. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  27663. + ;;
  27664. +
  27665. + linux* | k*bsd*-gnu)
  27666. + case $cc_basename in
  27667. + icc* | ecc*)
  27668. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  27669. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  27670. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  27671. + ;;
  27672. + pgcc* | pgf77* | pgf90* | pgf95*)
  27673. + # Portland Group compilers (*not* the Pentium gcc compiler,
  27674. + # which looks to be a dead project)
  27675. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  27676. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  27677. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  27678. + ;;
  27679. + ccc*)
  27680. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  27681. + # All Alpha code is PIC.
  27682. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  27683. + ;;
  27684. + *)
  27685. + case `$CC -V 2>&1 | sed 5q` in
  27686. + *Sun\ C*)
  27687. + # Sun C 5.9
  27688. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  27689. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  27690. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  27691. + ;;
  27692. + *Sun\ F*)
  27693. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  27694. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  27695. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  27696. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
  27697. + ;;
  27698. + esac
  27699. + ;;
  27700. + esac
  27701. + ;;
  27702. +
  27703. + osf3* | osf4* | osf5*)
  27704. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  27705. + # All OSF/1 code is PIC.
  27706. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  27707. + ;;
  27708. +
  27709. + rdos*)
  27710. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  27711. + ;;
  27712. +
  27713. + solaris*)
  27714. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  27715. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  27716. + case $cc_basename in
  27717. + f77* | f90* | f95*)
  27718. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  27719. + *)
  27720. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  27721. + esac
  27722. + ;;
  27723. +
  27724. + sunos4*)
  27725. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  27726. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  27727. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  27728. + ;;
  27729. +
  27730. + sysv4 | sysv4.2uw2* | sysv4.3*)
  27731. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  27732. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  27733. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  27734. + ;;
  27735. +
  27736. + sysv4*MP*)
  27737. + if test -d /usr/nec ;then
  27738. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  27739. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  27740. + fi
  27741. + ;;
  27742. +
  27743. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  27744. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  27745. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  27746. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  27747. + ;;
  27748. +
  27749. + unicos*)
  27750. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  27751. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  27752. + ;;
  27753. +
  27754. + uts4*)
  27755. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  27756. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  27757. + ;;
  27758. +
  27759. + *)
  27760. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  27761. + ;;
  27762. + esac
  27763. + fi
  27764. +])
  27765. +AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  27766. +
  27767. +#
  27768. +# Check to make sure the PIC flag actually works.
  27769. +#
  27770. +if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  27771. + AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  27772. + _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
  27773. + [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  27774. + [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  27775. + "" | " "*) ;;
  27776. + *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  27777. + esac],
  27778. + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  27779. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  27780. +fi
  27781. +case $host_os in
  27782. + # For platforms which do not support PIC, -DPIC is meaningless:
  27783. + *djgpp*)
  27784. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  27785. + ;;
  27786. + *)
  27787. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  27788. + ;;
  27789. +esac
  27790. +
  27791. +#
  27792. +# Check to make sure the static flag actually works.
  27793. +#
  27794. +wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  27795. +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  27796. + _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  27797. + $lt_tmp_static_flag,
  27798. + [],
  27799. + [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  27800. +])
  27801. +
  27802. +
  27803. +# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  27804. +# ------------------------------------
  27805. +# See if the linker supports building shared libraries.
  27806. +AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  27807. +[AC_REQUIRE([LT_AC_PROG_SED])dnl
  27808. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  27809. +ifelse([$1],[CXX],[
  27810. + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  27811. + case $host_os in
  27812. + aix[[4-9]]*)
  27813. + # If we're using GNU nm, then we don't want the "-C" option.
  27814. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  27815. + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  27816. + _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'
  27817. + else
  27818. + _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'
  27819. + fi
  27820. + ;;
  27821. + pw32*)
  27822. + _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  27823. + ;;
  27824. + cygwin* | mingw*)
  27825. + _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'
  27826. + ;;
  27827. + linux* | k*bsd*-gnu)
  27828. + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  27829. + ;;
  27830. + *)
  27831. + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  27832. + ;;
  27833. + esac
  27834. + _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  27835. +],[
  27836. + runpath_var=
  27837. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  27838. + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  27839. + _LT_AC_TAGVAR(archive_cmds, $1)=
  27840. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  27841. + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  27842. + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  27843. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  27844. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  27845. + _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  27846. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  27847. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  27848. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  27849. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  27850. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  27851. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  27852. + _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  27853. + _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  27854. + _LT_AC_TAGVAR(module_cmds, $1)=
  27855. + _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  27856. + _LT_AC_TAGVAR(always_export_symbols, $1)=no
  27857. + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  27858. + # include_expsyms should be a list of space-separated symbols to be *always*
  27859. + # included in the symbol list
  27860. + _LT_AC_TAGVAR(include_expsyms, $1)=
  27861. + # exclude_expsyms can be an extended regexp of symbols to exclude
  27862. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  27863. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  27864. + # as well as any symbol that contains `d'.
  27865. + _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  27866. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  27867. + # platforms (ab)use it in PIC code, but their linkers get confused if
  27868. + # the symbol is explicitly referenced. Since portable code cannot
  27869. + # rely on this symbol name, it's probably fine to never include it in
  27870. + # preloaded symbol tables.
  27871. + # Exclude shared library initialization/finalization symbols.
  27872. +dnl Note also adjust exclude_expsyms for C++ above.
  27873. + extract_expsyms_cmds=
  27874. + # Just being paranoid about ensuring that cc_basename is set.
  27875. + _LT_CC_BASENAME([$compiler])
  27876. + case $host_os in
  27877. + cygwin* | mingw* | pw32*)
  27878. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  27879. + # When not using gcc, we currently assume that we are using
  27880. + # Microsoft Visual C++.
  27881. + if test "$GCC" != yes; then
  27882. + with_gnu_ld=no
  27883. + fi
  27884. + ;;
  27885. + interix*)
  27886. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  27887. + with_gnu_ld=yes
  27888. + ;;
  27889. + openbsd*)
  27890. + with_gnu_ld=no
  27891. + ;;
  27892. + esac
  27893. +
  27894. + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  27895. + if test "$with_gnu_ld" = yes; then
  27896. + # If archive_cmds runs LD, not CC, wlarc should be empty
  27897. + wlarc='${wl}'
  27898. +
  27899. + # Set some defaults for GNU ld with shared library support. These
  27900. + # are reset later if shared libraries are not supported. Putting them
  27901. + # here allows them to be overridden if necessary.
  27902. + runpath_var=LD_RUN_PATH
  27903. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  27904. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  27905. + # ancient GNU ld didn't support --whole-archive et. al.
  27906. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  27907. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  27908. + else
  27909. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  27910. + fi
  27911. + supports_anon_versioning=no
  27912. + case `$LD -v 2>/dev/null` in
  27913. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  27914. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  27915. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  27916. + *\ 2.11.*) ;; # other 2.11 versions
  27917. + *) supports_anon_versioning=yes ;;
  27918. + esac
  27919. +
  27920. + # See if GNU ld supports shared libraries.
  27921. + case $host_os in
  27922. + aix[[3-9]]*)
  27923. + # On AIX/PPC, the GNU linker is very broken
  27924. + if test "$host_cpu" != ia64; then
  27925. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  27926. + cat <<EOF 1>&2
  27927. +
  27928. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  27929. +*** to be unable to reliably create shared libraries on AIX.
  27930. +*** Therefore, libtool is disabling shared libraries support. If you
  27931. +*** really care for shared libraries, you may want to modify your PATH
  27932. +*** so that a non-GNU linker is found, and then restart.
  27933. +
  27934. +EOF
  27935. + fi
  27936. + ;;
  27937. +
  27938. + amigaos*)
  27939. + _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)'
  27940. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  27941. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  27942. +
  27943. + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  27944. + # that the semantics of dynamic libraries on AmigaOS, at least up
  27945. + # to version 4, is to share data among multiple programs linked
  27946. + # with the same dynamic library. Since this doesn't match the
  27947. + # behavior of shared libraries on other platforms, we can't use
  27948. + # them.
  27949. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  27950. + ;;
  27951. +
  27952. + beos*)
  27953. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  27954. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  27955. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  27956. + # support --undefined. This deserves some investigation. FIXME
  27957. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27958. + else
  27959. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  27960. + fi
  27961. + ;;
  27962. +
  27963. + cygwin* | mingw* | pw32*)
  27964. + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  27965. + # as there is no search path for DLLs.
  27966. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  27967. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  27968. + _LT_AC_TAGVAR(always_export_symbols, $1)=no
  27969. + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  27970. + _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'
  27971. +
  27972. + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  27973. + _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'
  27974. + # If the export-symbols file already is a .def file (1st line
  27975. + # is EXPORTS), use it as is; otherwise, prepend...
  27976. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  27977. + cp $export_symbols $output_objdir/$soname.def;
  27978. + else
  27979. + echo EXPORTS > $output_objdir/$soname.def;
  27980. + cat $export_symbols >> $output_objdir/$soname.def;
  27981. + fi~
  27982. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  27983. + else
  27984. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  27985. + fi
  27986. + ;;
  27987. +
  27988. + interix[[3-9]]*)
  27989. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  27990. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  27991. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  27992. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  27993. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  27994. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  27995. + # default) and relocated if they conflict, which is a slow very memory
  27996. + # consuming and fragmenting process. To avoid this, we pick a random,
  27997. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  27998. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  27999. + _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'
  28000. + _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'
  28001. + ;;
  28002. +
  28003. + gnu* | linux* | k*bsd*-gnu)
  28004. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  28005. + tmp_addflag=
  28006. + case $cc_basename,$host_cpu in
  28007. + pgcc*) # Portland Group C compiler
  28008. + _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'
  28009. + tmp_addflag=' $pic_flag'
  28010. + ;;
  28011. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  28012. + _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'
  28013. + tmp_addflag=' $pic_flag -Mnomain' ;;
  28014. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  28015. + tmp_addflag=' -i_dynamic' ;;
  28016. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  28017. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  28018. + ifc* | ifort*) # Intel Fortran compiler
  28019. + tmp_addflag=' -nofor_main' ;;
  28020. + esac
  28021. + case `$CC -V 2>&1 | sed 5q` in
  28022. + *Sun\ C*) # Sun C 5.9
  28023. + _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'
  28024. + tmp_sharedflag='-G' ;;
  28025. + *Sun\ F*) # Sun Fortran 8.3
  28026. + tmp_sharedflag='-G' ;;
  28027. + *)
  28028. + tmp_sharedflag='-shared' ;;
  28029. + esac
  28030. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  28031. +
  28032. + if test $supports_anon_versioning = yes; then
  28033. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  28034. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  28035. + $echo "local: *; };" >> $output_objdir/$libname.ver~
  28036. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  28037. + fi
  28038. + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  28039. + else
  28040. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  28041. + fi
  28042. + ;;
  28043. +
  28044. + netbsd* | netbsdelf*-gnu)
  28045. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  28046. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  28047. + wlarc=
  28048. + else
  28049. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  28050. + _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'
  28051. + fi
  28052. + ;;
  28053. +
  28054. + solaris*)
  28055. + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  28056. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  28057. + cat <<EOF 1>&2
  28058. +
  28059. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  28060. +*** create shared libraries on Solaris systems. Therefore, libtool
  28061. +*** is disabling shared libraries support. We urge you to upgrade GNU
  28062. +*** binutils to release 2.9.1 or newer. Another option is to modify
  28063. +*** your PATH or compiler configuration so that the native linker is
  28064. +*** used, and then restart.
  28065. +
  28066. +EOF
  28067. + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  28068. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  28069. + _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'
  28070. + else
  28071. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  28072. + fi
  28073. + ;;
  28074. +
  28075. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  28076. + case `$LD -v 2>&1` in
  28077. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  28078. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  28079. + cat <<_LT_EOF 1>&2
  28080. +
  28081. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  28082. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  28083. +*** is disabling shared libraries support. We urge you to upgrade GNU
  28084. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  28085. +*** your PATH or compiler configuration so that the native linker is
  28086. +*** used, and then restart.
  28087. +
  28088. +_LT_EOF
  28089. + ;;
  28090. + *)
  28091. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  28092. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  28093. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  28094. + _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'
  28095. + else
  28096. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  28097. + fi
  28098. + ;;
  28099. + esac
  28100. + ;;
  28101. +
  28102. + sunos4*)
  28103. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  28104. + wlarc=
  28105. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  28106. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  28107. + ;;
  28108. +
  28109. + *)
  28110. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  28111. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  28112. + _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'
  28113. + else
  28114. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  28115. + fi
  28116. + ;;
  28117. + esac
  28118. +
  28119. + if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  28120. + runpath_var=
  28121. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  28122. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  28123. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  28124. + fi
  28125. + else
  28126. + # PORTME fill in a description of your system's linker (not GNU ld)
  28127. + case $host_os in
  28128. + aix3*)
  28129. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  28130. + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  28131. + _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'
  28132. + # Note: this linker hardcodes the directories in LIBPATH if there
  28133. + # are no directories specified by -L.
  28134. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  28135. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  28136. + # Neither direct hardcoding nor static linking is supported with a
  28137. + # broken collect2.
  28138. + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  28139. + fi
  28140. + ;;
  28141. +
  28142. + aix[[4-9]]*)
  28143. + if test "$host_cpu" = ia64; then
  28144. + # On IA64, the linker does run time linking by default, so we don't
  28145. + # have to do anything special.
  28146. + aix_use_runtimelinking=no
  28147. + exp_sym_flag='-Bexport'
  28148. + no_entry_flag=""
  28149. + else
  28150. + # If we're using GNU nm, then we don't want the "-C" option.
  28151. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  28152. + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  28153. + _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'
  28154. + else
  28155. + _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'
  28156. + fi
  28157. + aix_use_runtimelinking=no
  28158. +
  28159. + # Test if we are trying to use run time linking or normal
  28160. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  28161. + # need to do runtime linking.
  28162. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  28163. + for ld_flag in $LDFLAGS; do
  28164. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  28165. + aix_use_runtimelinking=yes
  28166. + break
  28167. + fi
  28168. + done
  28169. + ;;
  28170. + esac
  28171. +
  28172. + exp_sym_flag='-bexport'
  28173. + no_entry_flag='-bnoentry'
  28174. + fi
  28175. +
  28176. + # When large executables or shared objects are built, AIX ld can
  28177. + # have problems creating the table of contents. If linking a library
  28178. + # or program results in "error TOC overflow" add -mminimal-toc to
  28179. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  28180. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  28181. +
  28182. + _LT_AC_TAGVAR(archive_cmds, $1)=''
  28183. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  28184. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  28185. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  28186. +
  28187. + if test "$GCC" = yes; then
  28188. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  28189. + # We only want to do this on AIX 4.2 and lower, the check
  28190. + # below for broken collect2 doesn't work under 4.3+
  28191. + collect2name=`${CC} -print-prog-name=collect2`
  28192. + if test -f "$collect2name" && \
  28193. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  28194. + then
  28195. + # We have reworked collect2
  28196. + :
  28197. + else
  28198. + # We have old collect2
  28199. + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  28200. + # It fails to find uninstalled libraries when the uninstalled
  28201. + # path is not listed in the libpath. Setting hardcode_minus_L
  28202. + # to unsupported forces relinking
  28203. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  28204. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  28205. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  28206. + fi
  28207. + ;;
  28208. + esac
  28209. + shared_flag='-shared'
  28210. + if test "$aix_use_runtimelinking" = yes; then
  28211. + shared_flag="$shared_flag "'${wl}-G'
  28212. + fi
  28213. + else
  28214. + # not using gcc
  28215. + if test "$host_cpu" = ia64; then
  28216. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  28217. + # chokes on -Wl,-G. The following line is correct:
  28218. + shared_flag='-G'
  28219. + else
  28220. + if test "$aix_use_runtimelinking" = yes; then
  28221. + shared_flag='${wl}-G'
  28222. + else
  28223. + shared_flag='${wl}-bM:SRE'
  28224. + fi
  28225. + fi
  28226. + fi
  28227. +
  28228. + # It seems that -bexpall does not export symbols beginning with
  28229. + # underscore (_), so it is better to generate a list of symbols to export.
  28230. + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  28231. + if test "$aix_use_runtimelinking" = yes; then
  28232. + # Warning - without using the other runtime loading flags (-brtl),
  28233. + # -berok will link without error, but may produce a broken library.
  28234. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  28235. + # Determine the default libpath from the value encoded in an empty executable.
  28236. + _LT_AC_SYS_LIBPATH_AIX
  28237. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  28238. + _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"
  28239. + else
  28240. + if test "$host_cpu" = ia64; then
  28241. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  28242. + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  28243. + _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"
  28244. + else
  28245. + # Determine the default libpath from the value encoded in an empty executable.
  28246. + _LT_AC_SYS_LIBPATH_AIX
  28247. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  28248. + # Warning - without using the other run time loading flags,
  28249. + # -berok will link without error, but may produce a broken library.
  28250. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  28251. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  28252. + # Exported symbols can be pulled into shared objects from archives
  28253. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  28254. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  28255. + # This is similar to how AIX traditionally builds its shared libraries.
  28256. + _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'
  28257. + fi
  28258. + fi
  28259. + ;;
  28260. +
  28261. + amigaos*)
  28262. + _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)'
  28263. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  28264. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  28265. + # see comment about different semantics on the GNU ld section
  28266. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  28267. + ;;
  28268. +
  28269. + bsdi[[45]]*)
  28270. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  28271. + ;;
  28272. +
  28273. + cygwin* | mingw* | pw32*)
  28274. + # When not using gcc, we currently assume that we are using
  28275. + # Microsoft Visual C++.
  28276. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  28277. + # no search path for DLLs.
  28278. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  28279. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  28280. + # Tell ltmain to make .lib files, not .a files.
  28281. + libext=lib
  28282. + # Tell ltmain to make .dll files, not .so files.
  28283. + shrext_cmds=".dll"
  28284. + # FIXME: Setting linknames here is a bad hack.
  28285. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  28286. + # The linker will automatically build a .lib file if we build a DLL.
  28287. + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  28288. + # FIXME: Should let the user specify the lib program.
  28289. + _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  28290. + _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  28291. + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  28292. + ;;
  28293. +
  28294. + darwin* | rhapsody*)
  28295. + case $host_os in
  28296. + rhapsody* | darwin1.[[012]])
  28297. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  28298. + ;;
  28299. + *) # Darwin 1.3 on
  28300. + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  28301. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  28302. + else
  28303. + case ${MACOSX_DEPLOYMENT_TARGET} in
  28304. + 10.[[012]])
  28305. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  28306. + ;;
  28307. + 10.*)
  28308. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  28309. + ;;
  28310. + esac
  28311. + fi
  28312. + ;;
  28313. + esac
  28314. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  28315. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  28316. + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  28317. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  28318. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  28319. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  28320. + if test "$GCC" = yes ; then
  28321. + output_verbose_link_cmd='echo'
  28322. + _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  28323. + _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  28324. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  28325. + _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  28326. + else
  28327. + case $cc_basename in
  28328. + xlc*)
  28329. + output_verbose_link_cmd='echo'
  28330. + _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'
  28331. + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  28332. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  28333. + _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}'
  28334. + _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}'
  28335. + ;;
  28336. + *)
  28337. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  28338. + ;;
  28339. + esac
  28340. + fi
  28341. + ;;
  28342. +
  28343. + dgux*)
  28344. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28345. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  28346. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  28347. + ;;
  28348. +
  28349. + freebsd1*)
  28350. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  28351. + ;;
  28352. +
  28353. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  28354. + # support. Future versions do this automatically, but an explicit c++rt0.o
  28355. + # does not break anything, and helps significantly (at the cost of a little
  28356. + # extra space).
  28357. + freebsd2.2*)
  28358. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  28359. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  28360. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  28361. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  28362. + ;;
  28363. +
  28364. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  28365. + freebsd2*)
  28366. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  28367. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  28368. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  28369. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  28370. + ;;
  28371. +
  28372. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  28373. + freebsd* | dragonfly*)
  28374. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  28375. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  28376. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  28377. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  28378. + ;;
  28379. +
  28380. + hpux9*)
  28381. + if test "$GCC" = yes; then
  28382. + _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'
  28383. + else
  28384. + _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'
  28385. + fi
  28386. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  28387. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  28388. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  28389. +
  28390. + # hardcode_minus_L: Not really in the search PATH,
  28391. + # but as the default location of the library.
  28392. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  28393. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  28394. + ;;
  28395. +
  28396. + hpux10*)
  28397. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  28398. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  28399. + else
  28400. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  28401. + fi
  28402. + if test "$with_gnu_ld" = no; then
  28403. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  28404. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  28405. +
  28406. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  28407. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  28408. +
  28409. + # hardcode_minus_L: Not really in the search PATH,
  28410. + # but as the default location of the library.
  28411. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  28412. + fi
  28413. + ;;
  28414. +
  28415. + hpux11*)
  28416. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  28417. + case $host_cpu in
  28418. + hppa*64*)
  28419. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28420. + ;;
  28421. + ia64*)
  28422. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  28423. + ;;
  28424. + *)
  28425. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  28426. + ;;
  28427. + esac
  28428. + else
  28429. + case $host_cpu in
  28430. + hppa*64*)
  28431. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28432. + ;;
  28433. + ia64*)
  28434. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  28435. + ;;
  28436. + *)
  28437. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  28438. + ;;
  28439. + esac
  28440. + fi
  28441. + if test "$with_gnu_ld" = no; then
  28442. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  28443. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  28444. +
  28445. + case $host_cpu in
  28446. + hppa*64*|ia64*)
  28447. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  28448. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  28449. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  28450. + ;;
  28451. + *)
  28452. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  28453. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  28454. +
  28455. + # hardcode_minus_L: Not really in the search PATH,
  28456. + # but as the default location of the library.
  28457. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  28458. + ;;
  28459. + esac
  28460. + fi
  28461. + ;;
  28462. +
  28463. + irix5* | irix6* | nonstopux*)
  28464. + if test "$GCC" = yes; then
  28465. + _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'
  28466. + else
  28467. + _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'
  28468. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  28469. + fi
  28470. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  28471. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  28472. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  28473. + ;;
  28474. +
  28475. + netbsd* | netbsdelf*-gnu)
  28476. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  28477. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  28478. + else
  28479. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  28480. + fi
  28481. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  28482. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  28483. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  28484. + ;;
  28485. +
  28486. + newsos6)
  28487. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28488. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  28489. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  28490. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  28491. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  28492. + ;;
  28493. +
  28494. + openbsd*)
  28495. + if test -f /usr/libexec/ld.so; then
  28496. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  28497. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  28498. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  28499. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  28500. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  28501. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  28502. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  28503. + else
  28504. + case $host_os in
  28505. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  28506. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  28507. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  28508. + ;;
  28509. + *)
  28510. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  28511. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  28512. + ;;
  28513. + esac
  28514. + fi
  28515. + else
  28516. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  28517. + fi
  28518. + ;;
  28519. +
  28520. + os2*)
  28521. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  28522. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  28523. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  28524. + _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'
  28525. + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  28526. + ;;
  28527. +
  28528. + osf3*)
  28529. + if test "$GCC" = yes; then
  28530. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  28531. + _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'
  28532. + else
  28533. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  28534. + _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'
  28535. + fi
  28536. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  28537. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  28538. + ;;
  28539. +
  28540. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  28541. + if test "$GCC" = yes; then
  28542. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  28543. + _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'
  28544. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  28545. + else
  28546. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  28547. + _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'
  28548. + _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~
  28549. + $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'
  28550. +
  28551. + # Both c and cxx compiler support -rpath directly
  28552. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  28553. + fi
  28554. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  28555. + ;;
  28556. +
  28557. + solaris*)
  28558. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  28559. + if test "$GCC" = yes; then
  28560. + wlarc='${wl}'
  28561. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28562. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  28563. + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  28564. + else
  28565. + wlarc=''
  28566. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28567. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  28568. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  28569. + fi
  28570. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  28571. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  28572. + case $host_os in
  28573. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  28574. + *)
  28575. + # The compiler driver will combine and reorder linker options,
  28576. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  28577. + # but is careful enough not to reorder.
  28578. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  28579. + if test "$GCC" = yes; then
  28580. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  28581. + else
  28582. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  28583. + fi
  28584. + ;;
  28585. + esac
  28586. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  28587. + ;;
  28588. +
  28589. + sunos4*)
  28590. + if test "x$host_vendor" = xsequent; then
  28591. + # Use $CC to link under sequent, because it throws in some extra .o
  28592. + # files that make .init and .fini sections work.
  28593. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  28594. + else
  28595. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  28596. + fi
  28597. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  28598. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  28599. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  28600. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  28601. + ;;
  28602. +
  28603. + sysv4)
  28604. + case $host_vendor in
  28605. + sni)
  28606. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28607. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  28608. + ;;
  28609. + siemens)
  28610. + ## LD is ld it makes a PLAMLIB
  28611. + ## CC just makes a GrossModule.
  28612. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  28613. + _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  28614. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  28615. + ;;
  28616. + motorola)
  28617. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28618. + _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  28619. + ;;
  28620. + esac
  28621. + runpath_var='LD_RUN_PATH'
  28622. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  28623. + ;;
  28624. +
  28625. + sysv4.3*)
  28626. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28627. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  28628. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  28629. + ;;
  28630. +
  28631. + sysv4*MP*)
  28632. + if test -d /usr/nec; then
  28633. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28634. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  28635. + runpath_var=LD_RUN_PATH
  28636. + hardcode_runpath_var=yes
  28637. + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  28638. + fi
  28639. + ;;
  28640. +
  28641. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  28642. + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  28643. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  28644. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  28645. + runpath_var='LD_RUN_PATH'
  28646. +
  28647. + if test "$GCC" = yes; then
  28648. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28649. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28650. + else
  28651. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28652. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28653. + fi
  28654. + ;;
  28655. +
  28656. + sysv5* | sco3.2v5* | sco5v6*)
  28657. + # Note: We can NOT use -z defs as we might desire, because we do not
  28658. + # link with -lc, and that would cause any symbols used from libc to
  28659. + # always be unresolved, which means just about no library would
  28660. + # ever link correctly. If we're not using GNU ld we use -z text
  28661. + # though, which does catch some bad symbols but isn't as heavy-handed
  28662. + # as -z defs.
  28663. + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  28664. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  28665. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  28666. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  28667. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  28668. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  28669. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  28670. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  28671. + runpath_var='LD_RUN_PATH'
  28672. +
  28673. + if test "$GCC" = yes; then
  28674. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28675. + _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'
  28676. + else
  28677. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28678. + _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'
  28679. + fi
  28680. + ;;
  28681. +
  28682. + uts4*)
  28683. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28684. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  28685. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  28686. + ;;
  28687. +
  28688. + *)
  28689. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  28690. + ;;
  28691. + esac
  28692. + fi
  28693. +])
  28694. +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  28695. +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  28696. +
  28697. +#
  28698. +# Do we need to explicitly link libc?
  28699. +#
  28700. +case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  28701. +x|xyes)
  28702. + # Assume -lc should be added
  28703. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  28704. +
  28705. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  28706. + case $_LT_AC_TAGVAR(archive_cmds, $1) in
  28707. + *'~'*)
  28708. + # FIXME: we may have to deal with multi-command sequences.
  28709. + ;;
  28710. + '$CC '*)
  28711. + # Test whether the compiler implicitly links with -lc since on some
  28712. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  28713. + # to ld, don't add -lc before -lgcc.
  28714. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  28715. + $rm conftest*
  28716. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  28717. +
  28718. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  28719. + soname=conftest
  28720. + lib=conftest
  28721. + libobjs=conftest.$ac_objext
  28722. + deplibs=
  28723. + wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  28724. + pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  28725. + compiler_flags=-v
  28726. + linker_flags=-v
  28727. + verstring=
  28728. + output_objdir=.
  28729. + libname=conftest
  28730. + lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  28731. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  28732. + if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  28733. + then
  28734. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  28735. + else
  28736. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  28737. + fi
  28738. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  28739. + else
  28740. + cat conftest.err 1>&5
  28741. + fi
  28742. + $rm conftest*
  28743. + AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  28744. + ;;
  28745. + esac
  28746. + fi
  28747. + ;;
  28748. +esac
  28749. +])# AC_LIBTOOL_PROG_LD_SHLIBS
  28750. +
  28751. +
  28752. +# _LT_AC_FILE_LTDLL_C
  28753. +# -------------------
  28754. +# Be careful that the start marker always follows a newline.
  28755. +AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  28756. +# /* ltdll.c starts here */
  28757. +# #define WIN32_LEAN_AND_MEAN
  28758. +# #include <windows.h>
  28759. +# #undef WIN32_LEAN_AND_MEAN
  28760. +# #include <stdio.h>
  28761. +#
  28762. +# #ifndef __CYGWIN__
  28763. +# # ifdef __CYGWIN32__
  28764. +# # define __CYGWIN__ __CYGWIN32__
  28765. +# # endif
  28766. +# #endif
  28767. +#
  28768. +# #ifdef __cplusplus
  28769. +# extern "C" {
  28770. +# #endif
  28771. +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  28772. +# #ifdef __cplusplus
  28773. +# }
  28774. +# #endif
  28775. +#
  28776. +# #ifdef __CYGWIN__
  28777. +# #include <cygwin/cygwin_dll.h>
  28778. +# DECLARE_CYGWIN_DLL( DllMain );
  28779. +# #endif
  28780. +# HINSTANCE __hDllInstance_base;
  28781. +#
  28782. +# BOOL APIENTRY
  28783. +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  28784. +# {
  28785. +# __hDllInstance_base = hInst;
  28786. +# return TRUE;
  28787. +# }
  28788. +# /* ltdll.c ends here */
  28789. +])# _LT_AC_FILE_LTDLL_C
  28790. +
  28791. +
  28792. +# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  28793. +# ---------------------------------
  28794. +AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  28795. +
  28796. +
  28797. +# old names
  28798. +AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  28799. +AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  28800. +AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  28801. +AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  28802. +AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  28803. +AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  28804. +AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  28805. +
  28806. +# This is just to silence aclocal about the macro not being used
  28807. +ifelse([AC_DISABLE_FAST_INSTALL])
  28808. +
  28809. +AC_DEFUN([LT_AC_PROG_GCJ],
  28810. +[AC_CHECK_TOOL(GCJ, gcj, no)
  28811. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  28812. + AC_SUBST(GCJFLAGS)
  28813. +])
  28814. +
  28815. +AC_DEFUN([LT_AC_PROG_RC],
  28816. +[AC_CHECK_TOOL(RC, windres, no)
  28817. +])
  28818. +
  28819. +
  28820. +# Cheap backport of AS_EXECUTABLE_P and required macros
  28821. +# from Autoconf 2.59; we should not use $as_executable_p directly.
  28822. +
  28823. +# _AS_TEST_PREPARE
  28824. +# ----------------
  28825. +m4_ifndef([_AS_TEST_PREPARE],
  28826. +[m4_defun([_AS_TEST_PREPARE],
  28827. +[if test -x / >/dev/null 2>&1; then
  28828. + as_executable_p='test -x'
  28829. +else
  28830. + as_executable_p='test -f'
  28831. +fi
  28832. +])])# _AS_TEST_PREPARE
  28833. +
  28834. +# AS_EXECUTABLE_P
  28835. +# ---------------
  28836. +# Check whether a file is executable.
  28837. +m4_ifndef([AS_EXECUTABLE_P],
  28838. +[m4_defun([AS_EXECUTABLE_P],
  28839. +[AS_REQUIRE([_AS_TEST_PREPARE])dnl
  28840. +$as_executable_p $1[]dnl
  28841. +])])# AS_EXECUTABLE_P
  28842. +
  28843. +############################################################
  28844. +# NOTE: This macro has been submitted for inclusion into #
  28845. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  28846. +# a released version of Autoconf we should remove this #
  28847. +# macro and use it instead. #
  28848. +############################################################
  28849. +# LT_AC_PROG_SED
  28850. +# --------------
  28851. +# Check for a fully-functional sed program, that truncates
  28852. +# as few characters as possible. Prefer GNU sed if found.
  28853. +AC_DEFUN([LT_AC_PROG_SED],
  28854. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  28855. +AC_CACHE_VAL(lt_cv_path_SED,
  28856. +[# Loop through the user's path and test for sed and gsed.
  28857. +# Then use that list of sed's as ones to test for truncation.
  28858. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  28859. +for as_dir in $PATH
  28860. +do
  28861. + IFS=$as_save_IFS
  28862. + test -z "$as_dir" && as_dir=.
  28863. + for lt_ac_prog in sed gsed; do
  28864. + for ac_exec_ext in '' $ac_executable_extensions; do
  28865. + if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
  28866. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  28867. + fi
  28868. + done
  28869. + done
  28870. +done
  28871. +IFS=$as_save_IFS
  28872. +lt_ac_max=0
  28873. +lt_ac_count=0
  28874. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  28875. +# along with /bin/sed that truncates output.
  28876. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  28877. + test ! -f $lt_ac_sed && continue
  28878. + cat /dev/null > conftest.in
  28879. + lt_ac_count=0
  28880. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  28881. + # Check for GNU sed and select it if it is found.
  28882. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  28883. + lt_cv_path_SED=$lt_ac_sed
  28884. + break
  28885. + fi
  28886. + while true; do
  28887. + cat conftest.in conftest.in >conftest.tmp
  28888. + mv conftest.tmp conftest.in
  28889. + cp conftest.in conftest.nl
  28890. + echo >>conftest.nl
  28891. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  28892. + cmp -s conftest.out conftest.nl || break
  28893. + # 10000 chars as input seems more than enough
  28894. + test $lt_ac_count -gt 10 && break
  28895. + lt_ac_count=`expr $lt_ac_count + 1`
  28896. + if test $lt_ac_count -gt $lt_ac_max; then
  28897. + lt_ac_max=$lt_ac_count
  28898. + lt_cv_path_SED=$lt_ac_sed
  28899. + fi
  28900. + done
  28901. +done
  28902. +])
  28903. +SED=$lt_cv_path_SED
  28904. +AC_SUBST([SED])
  28905. +AC_MSG_RESULT([$SED])
  28906. +])
  28907. --- libtar-1.2.11.orig/debian/rules
  28908. +++ libtar-1.2.11/debian/rules
  28909. @@ -0,0 +1,63 @@
  28910. +#!/usr/bin/make -f
  28911. +
  28912. +export DH_VERBOSE=1
  28913. +
  28914. +configure:
  28915. + dh_testdir
  28916. + cp /usr/share/misc/config.* autoconf
  28917. + autoreconf -f -v -i
  28918. + ./configure \
  28919. + --prefix=/usr \
  28920. + --mandir=\$${prefix}/share/man
  28921. + touch configure-stamp
  28922. +
  28923. +configure-stamp: configure
  28924. +
  28925. +build-stamp: build
  28926. +
  28927. +build: configure-stamp
  28928. + dh_testdir
  28929. + $(MAKE)
  28930. + touch build-stamp
  28931. +
  28932. +clean:
  28933. + dh_testdir
  28934. + dh_testroot
  28935. + # Stale build files
  28936. + [ ! -f Makefile ] || $(MAKE) clean
  28937. + [ ! -f Makefile ] || $(MAKE) distclean
  28938. + -rm -f build-stamp configure-stamp
  28939. + -rm -rf config.log autoconf/config.guess autoconf/config.sub autoconf/depcomp autoconf/ltmain.sh autoconf/missing autoconf/mkinstalldirs autom4te.cache libtool
  28940. + dh_clean
  28941. +
  28942. +install: build-stamp
  28943. + dh_testdir
  28944. + dh_testroot
  28945. + dh_installdirs
  28946. +
  28947. + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
  28948. +
  28949. +binary-indep: build install
  28950. +
  28951. +binary-arch: install
  28952. + dh_testdir
  28953. + dh_testroot
  28954. + dh_install --sourcedir=debian/tmp
  28955. +
  28956. + dh_installdocs
  28957. + dh_installexamples -p libtar-dev libtar/libtar.c libtar/Makefile
  28958. + dh_installman
  28959. + dh_installchangelogs ChangeLog
  28960. + dh_link
  28961. + dh_strip
  28962. + dh_compress
  28963. + dh_fixperms
  28964. + dh_makeshlibs
  28965. + dh_installdeb
  28966. + dh_shlibdeps
  28967. + dh_gencontrol
  28968. + dh_md5sums
  28969. + dh_builddeb
  28970. +
  28971. +binary: binary-indep binary-arch
  28972. +.PHONY: build clean binary-indep binary-arch binary install configure
  28973. --- libtar-1.2.11.orig/debian/changelog
  28974. +++ libtar-1.2.11/debian/changelog
  28975. @@ -0,0 +1,95 @@
  28976. +libtar (1.2.11-6) unstable; urgency=low
  28977. +
  28978. + * Fix autotools usage (Closes: #511741)
  28979. +
  28980. + -- Julien Danjou <acid@debian.org> Sat, 02 May 2009 11:33:06 +0200
  28981. +
  28982. +libtar (1.2.11-5) unstable; urgency=low
  28983. +
  28984. + * New maintainer (Closes: #465889)
  28985. + * Add missing binary-indep target in debian/rules (Closes: #395714)
  28986. + * Use ${binary:Version} instead of Source-Version
  28987. + * Bump standard version
  28988. + * Switch to debhelper 5
  28989. +
  28990. + -- Julien Danjou <acid@debian.org> Wed, 02 Apr 2008 07:06:55 +0200
  28991. +
  28992. +libtar (1.2.11-4) unstable; urgency=low
  28993. +
  28994. + * Always include the newest libtool.m4. (Closes: #313612)
  28995. +
  28996. + -- James Morrison <phython@debian.org> Sun, 28 Aug 2005 09:41:47 -0700
  28997. +
  28998. +libtar (1.2.11-3) unstable; urgency=low
  28999. +
  29000. + * Document stupidity of tartype_t in libtar.c. (Closes: #309945)
  29001. +
  29002. + -- James Morrison <phython@debian.org> Sat, 11 Jun 2005 18:23:15 -0400
  29003. +
  29004. +libtar (1.2.11-2) unstable; urgency=low
  29005. +
  29006. + * Move libtar-dev to libdevel. (Closes: #188207)
  29007. + * Fix potential memory leak.
  29008. +
  29009. + -- James Morrison <phython@debian.org> Sun, 25 Jul 2004 12:59:08 -0700
  29010. +
  29011. +libtar (1.2.11-1) unstable; urgency=low
  29012. +
  29013. + * New Upstream release.
  29014. +
  29015. + -- James Morrison <phython@debian.org> Sat, 5 Apr 2003 14:03:19 -0500
  29016. +
  29017. +libtar (1.2.10-1) unstable; urgency=low
  29018. +
  29019. + * New Upstream release.
  29020. + (Closes: #166602) New upstream uses autoconf 2.5x
  29021. + * Remove dependency on automake. Hopefully upstream will except this
  29022. + use of libtool.
  29023. + * Remove all -static and -shared targets from debian/rules.
  29024. + * Use dh_install instead of dh_movefiles.
  29025. + * -
  29026. +
  29027. + -- James Morrison <phython@debian.org> Sat, 5 Apr 2003 14:03:16 -0500
  29028. +
  29029. +libtar (1.2.5-4) unstable; urgency=low
  29030. +
  29031. + * New maintainer. (Closes: #154597)
  29032. + * WSG_ENCAP is now defined. (Closes: #147764)
  29033. + * libtar-dev depends on libc-dev instead of libc6-dev.
  29034. +
  29035. + -- James Morrison <phython@debian.org> Wed, 14 Aug 2002 23:44:16 -0400
  29036. +
  29037. +libtar (1.2.5-3) unstable; urgency=low
  29038. +
  29039. + * Modify build commands to acomadate change in autoconf (Closes #147764)
  29040. +
  29041. + -- Glenn McGrath <bug1@debian.org> Thu, 23 May 2002 01:06:16 +1000
  29042. +
  29043. +libtar (1.2.5-2) unstable; urgency=low
  29044. +
  29045. + * Fix build problem (Closes #135360)
  29046. +
  29047. + -- Glenn McGrath <bug1@debian.org> Sun, 24 Feb 2002 06:29:31 +1100
  29048. +
  29049. +libtar (1.2.5-1) unstable; urgency=low
  29050. +
  29051. + * New upstream version
  29052. + * Change section of libtar-dev to devel and libtar to libs
  29053. +
  29054. + -- Glenn McGrath <bug1@debian.org> Fri, 22 Feb 2002 04:23:15 +1100
  29055. +
  29056. +libtar (1.2.4-2) unstable; urgency=low
  29057. +
  29058. + * Change section from devel to libs
  29059. +
  29060. + -- Glenn McGrath <bug1@debian.org> Sat, 2 Feb 2002 12:12:32 +1100
  29061. +
  29062. +libtar (1.2.4-1) unstable; urgency=low
  29063. +
  29064. + * Initial Release. (closes #128042)
  29065. +
  29066. + -- Glenn McGrath <bug1@debian.org> Sat, 5 Jan 2002 13:24:37 +1100
  29067. +
  29068. +Local variables:
  29069. +mode: debian-changelog
  29070. +End:
  29071. --- libtar-1.2.11.orig/debian/control
  29072. +++ libtar-1.2.11/debian/control
  29073. @@ -0,0 +1,23 @@
  29074. +Source: libtar
  29075. +Section: libs
  29076. +Priority: optional
  29077. +Maintainer: Julien Danjou <acid@debian.org>
  29078. +Build-Depends: debhelper (>> 5.0.0), autoconf, libtool
  29079. +Standards-Version: 3.8.1
  29080. +
  29081. +Package: libtar-dev
  29082. +Architecture: any
  29083. +Section: libdevel
  29084. +Depends: libtar (= ${binary:Version})
  29085. +Description: C library for manipulating tar archives
  29086. + Contains static library, headers, example code and development manpages
  29087. + for libtar
  29088. +
  29089. +Package: libtar
  29090. +Architecture: any
  29091. +Section: libs
  29092. +Depends: ${shlibs:Depends}
  29093. +Description: C library for manipulating tar archives
  29094. + libtar allows programs to create, extract and test tar archives.
  29095. + It supports both the strict POSIX tar format and many of the commonly-used
  29096. + GNU extensions.
  29097. --- libtar-1.2.11.orig/debian/compat
  29098. +++ libtar-1.2.11/debian/compat
  29099. @@ -0,0 +1 @@
  29100. +5
  29101. --- libtar-1.2.11.orig/debian/copyright
  29102. +++ libtar-1.2.11/debian/copyright
  29103. @@ -0,0 +1,44 @@
  29104. +This package was debianized by Glenn McGrath <bug1@debian.org> on
  29105. +Sat, 5 Jan 2002 13:24:37 +1100.
  29106. +
  29107. +It was downloaded from http://www-dev.cites.uiuc.edu/libtar/
  29108. +
  29109. +Upstream Author: Mark D. Roth <roth@uiuc.edu>
  29110. +
  29111. +Copyright:
  29112. +Copyright (c) 1998-2002 University of Illinois Board of Trustees
  29113. +Copyright (c) 1998-2002 Mark D. Roth
  29114. +All rights reserved.
  29115. +
  29116. +Developed by: Campus Information Technologies and Educational Services,
  29117. + University of Illinois at Urbana-Champaign
  29118. +
  29119. +Permission is hereby granted, free of charge, to any person obtaining
  29120. +a copy of this software and associated documentation files (the
  29121. +``Software''), to deal with the Software without restriction, including
  29122. +without limitation the rights to use, copy, modify, merge, publish,
  29123. +distribute, sublicense, and/or sell copies of the Software, and to
  29124. +permit persons to whom the Software is furnished to do so, subject to
  29125. +the following conditions:
  29126. +
  29127. +* Redistributions of source code must retain the above copyright
  29128. + notice, this list of conditions and the following disclaimers.
  29129. +
  29130. +* Redistributions in binary form must reproduce the above copyright
  29131. + notice, this list of conditions and the following disclaimers in the
  29132. + documentation and/or other materials provided with the distribution.
  29133. +
  29134. +* Neither the names of Campus Information Technologies and Educational
  29135. + Services, University of Illinois at Urbana-Champaign, nor the names
  29136. + of its contributors may be used to endorse or promote products derived
  29137. + from this Software without specific prior written permission.
  29138. +
  29139. +THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND,
  29140. +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  29141. +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  29142. +IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR
  29143. +ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  29144. +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
  29145. +OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.
  29146. +
  29147. +
  29148. --- libtar-1.2.11.orig/debian/docs
  29149. +++ libtar-1.2.11/debian/docs
  29150. @@ -0,0 +1,3 @@
  29151. +README
  29152. +TODO
  29153. +ChangeLog-1.0.x
  29154. --- libtar-1.2.11.orig/debian/libtar-dev.dirs
  29155. +++ libtar-1.2.11/debian/libtar-dev.dirs
  29156. @@ -0,0 +1,2 @@
  29157. +usr/lib
  29158. +usr/include
  29159. --- libtar-1.2.11.orig/debian/libtar-dev.files
  29160. +++ libtar-1.2.11/debian/libtar-dev.files
  29161. @@ -0,0 +1,4 @@
  29162. +usr/include/libtar.h
  29163. +usr/include/libtar_listhash.h
  29164. +usr/lib/lib*.a
  29165. +usr/lib/lib*so
  29166. --- libtar-1.2.11.orig/debian/libtar-dev.install
  29167. +++ libtar-1.2.11/debian/libtar-dev.install
  29168. @@ -0,0 +1,4 @@
  29169. +usr/include/libtar.h
  29170. +usr/include/libtar_listhash.h
  29171. +usr/lib/lib*.a
  29172. +usr/lib/lib*so
  29173. --- libtar-1.2.11.orig/debian/libtar-dev.manpages
  29174. +++ libtar-1.2.11/debian/libtar-dev.manpages
  29175. @@ -0,0 +1,11 @@
  29176. +debian/tmp/usr/share/man/man3/libtar_hash_new.3
  29177. +debian/tmp/usr/share/man/man3/libtar_list_new.3
  29178. +debian/tmp/usr/share/man/man3/tar_append_file.3
  29179. +debian/tmp/usr/share/man/man3/tar_block_read.3
  29180. +debian/tmp/usr/share/man/man3/tar_extract_all.3
  29181. +debian/tmp/usr/share/man/man3/tar_extract_file.3
  29182. +debian/tmp/usr/share/man/man3/tar_open.3
  29183. +debian/tmp/usr/share/man/man3/th_get_pathname.3
  29184. +debian/tmp/usr/share/man/man3/th_print_long_ls.3
  29185. +debian/tmp/usr/share/man/man3/th_read.3
  29186. +debian/tmp/usr/share/man/man3/th_set_from_stat.3
  29187. --- libtar-1.2.11.orig/debian/libtar.dirs
  29188. +++ libtar-1.2.11/debian/libtar.dirs
  29189. @@ -0,0 +1 @@
  29190. +usr/lib
  29191. --- libtar-1.2.11.orig/debian/libtar.files
  29192. +++ libtar-1.2.11/debian/libtar.files
  29193. @@ -0,0 +1 @@
  29194. +usr/lib/lib*.so.*
  29195. --- libtar-1.2.11.orig/debian/libtar.install
  29196. +++ libtar-1.2.11/debian/libtar.install
  29197. @@ -0,0 +1 @@
  29198. +usr/lib/lib*.so.*
  29199. --- libtar-1.2.11.orig/m4/libtool.m4
  29200. +++ libtar-1.2.11/m4/libtool.m4
  29201. @@ -0,0 +1,7376 @@
  29202. +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  29203. +#
  29204. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  29205. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  29206. +# Written by Gordon Matzigkeit, 1996
  29207. +#
  29208. +# This file is free software; the Free Software Foundation gives
  29209. +# unlimited permission to copy and/or distribute it, with or without
  29210. +# modifications, as long as this notice is preserved.
  29211. +
  29212. +m4_define([_LT_COPYING], [dnl
  29213. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  29214. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  29215. +# Written by Gordon Matzigkeit, 1996
  29216. +#
  29217. +# This file is part of GNU Libtool.
  29218. +#
  29219. +# GNU Libtool is free software; you can redistribute it and/or
  29220. +# modify it under the terms of the GNU General Public License as
  29221. +# published by the Free Software Foundation; either version 2 of
  29222. +# the License, or (at your option) any later version.
  29223. +#
  29224. +# As a special exception to the GNU General Public License,
  29225. +# if you distribute this file as part of a program or library that
  29226. +# is built using GNU Libtool, you may include this file under the
  29227. +# same distribution terms that you use for the rest of that program.
  29228. +#
  29229. +# GNU Libtool is distributed in the hope that it will be useful,
  29230. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  29231. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  29232. +# GNU General Public License for more details.
  29233. +#
  29234. +# You should have received a copy of the GNU General Public License
  29235. +# along with GNU Libtool; see the file COPYING. If not, a copy
  29236. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  29237. +# obtained by writing to the Free Software Foundation, Inc.,
  29238. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  29239. +])
  29240. +
  29241. +# serial 56 LT_INIT
  29242. +
  29243. +
  29244. +# LT_PREREQ(VERSION)
  29245. +# ------------------
  29246. +# Complain and exit if this libtool version is less that VERSION.
  29247. +m4_defun([LT_PREREQ],
  29248. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  29249. + [m4_default([$3],
  29250. + [m4_fatal([Libtool version $1 or higher is required],
  29251. + 63)])],
  29252. + [$2])])
  29253. +
  29254. +
  29255. +# _LT_CHECK_BUILDDIR
  29256. +# ------------------
  29257. +# Complain if the absolute build directory name contains unusual characters
  29258. +m4_defun([_LT_CHECK_BUILDDIR],
  29259. +[case `pwd` in
  29260. + *\ * | *\ *)
  29261. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  29262. +esac
  29263. +])
  29264. +
  29265. +
  29266. +# LT_INIT([OPTIONS])
  29267. +# ------------------
  29268. +AC_DEFUN([LT_INIT],
  29269. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  29270. +AC_BEFORE([$0], [LT_LANG])dnl
  29271. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  29272. +AC_BEFORE([$0], [LTDL_INIT])dnl
  29273. +m4_require([_LT_CHECK_BUILDDIR])dnl
  29274. +
  29275. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  29276. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  29277. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  29278. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  29279. +dnl unless we require an AC_DEFUNed macro:
  29280. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  29281. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  29282. +AC_REQUIRE([LTVERSION_VERSION])dnl
  29283. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  29284. +m4_require([_LT_PROG_LTMAIN])dnl
  29285. +
  29286. +dnl Parse OPTIONS
  29287. +_LT_SET_OPTIONS([$0], [$1])
  29288. +
  29289. +# This can be used to rebuild libtool when needed
  29290. +LIBTOOL_DEPS="$ltmain"
  29291. +
  29292. +# Always use our own libtool.
  29293. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  29294. +AC_SUBST(LIBTOOL)dnl
  29295. +
  29296. +_LT_SETUP
  29297. +
  29298. +# Only expand once:
  29299. +m4_define([LT_INIT])
  29300. +])# LT_INIT
  29301. +
  29302. +# Old names:
  29303. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  29304. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  29305. +dnl aclocal-1.4 backwards compatibility:
  29306. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  29307. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  29308. +
  29309. +
  29310. +# _LT_CC_BASENAME(CC)
  29311. +# -------------------
  29312. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  29313. +m4_defun([_LT_CC_BASENAME],
  29314. +[for cc_temp in $1""; do
  29315. + case $cc_temp in
  29316. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  29317. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  29318. + \-*) ;;
  29319. + *) break;;
  29320. + esac
  29321. +done
  29322. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  29323. +])
  29324. +
  29325. +
  29326. +# _LT_FILEUTILS_DEFAULTS
  29327. +# ----------------------
  29328. +# It is okay to use these file commands and assume they have been set
  29329. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  29330. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  29331. +[: ${CP="cp -f"}
  29332. +: ${MV="mv -f"}
  29333. +: ${RM="rm -f"}
  29334. +])# _LT_FILEUTILS_DEFAULTS
  29335. +
  29336. +
  29337. +# _LT_SETUP
  29338. +# ---------
  29339. +m4_defun([_LT_SETUP],
  29340. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  29341. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  29342. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  29343. +_LT_DECL([], [host], [0])dnl
  29344. +_LT_DECL([], [host_os], [0])dnl
  29345. +dnl
  29346. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  29347. +_LT_DECL([], [build], [0])dnl
  29348. +_LT_DECL([], [build_os], [0])dnl
  29349. +dnl
  29350. +AC_REQUIRE([AC_PROG_CC])dnl
  29351. +AC_REQUIRE([LT_PATH_LD])dnl
  29352. +AC_REQUIRE([LT_PATH_NM])dnl
  29353. +dnl
  29354. +AC_REQUIRE([AC_PROG_LN_S])dnl
  29355. +test -z "$LN_S" && LN_S="ln -s"
  29356. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  29357. +dnl
  29358. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  29359. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  29360. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  29361. +dnl
  29362. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  29363. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  29364. +m4_require([_LT_CMD_RELOAD])dnl
  29365. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  29366. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  29367. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  29368. +
  29369. +_LT_CONFIG_LIBTOOL_INIT([
  29370. +# See if we are running on zsh, and set the options which allow our
  29371. +# commands through without removal of \ escapes INIT.
  29372. +if test -n "\${ZSH_VERSION+set}" ; then
  29373. + setopt NO_GLOB_SUBST
  29374. +fi
  29375. +])
  29376. +if test -n "${ZSH_VERSION+set}" ; then
  29377. + setopt NO_GLOB_SUBST
  29378. +fi
  29379. +
  29380. +_LT_CHECK_OBJDIR
  29381. +
  29382. +m4_require([_LT_TAG_COMPILER])dnl
  29383. +_LT_PROG_ECHO_BACKSLASH
  29384. +
  29385. +case $host_os in
  29386. +aix3*)
  29387. + # AIX sometimes has problems with the GCC collect2 program. For some
  29388. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  29389. + # vanish in a puff of smoke.
  29390. + if test "X${COLLECT_NAMES+set}" != Xset; then
  29391. + COLLECT_NAMES=
  29392. + export COLLECT_NAMES
  29393. + fi
  29394. + ;;
  29395. +esac
  29396. +
  29397. +# Sed substitution that helps us do robust quoting. It backslashifies
  29398. +# metacharacters that are still active within double-quoted strings.
  29399. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  29400. +
  29401. +# Same as above, but do not quote variable references.
  29402. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  29403. +
  29404. +# Sed substitution to delay expansion of an escaped shell variable in a
  29405. +# double_quote_subst'ed string.
  29406. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  29407. +
  29408. +# Sed substitution to delay expansion of an escaped single quote.
  29409. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  29410. +
  29411. +# Sed substitution to avoid accidental globbing in evaled expressions
  29412. +no_glob_subst='s/\*/\\\*/g'
  29413. +
  29414. +# Global variables:
  29415. +ofile=libtool
  29416. +can_build_shared=yes
  29417. +
  29418. +# All known linkers require a `.a' archive for static linking (except MSVC,
  29419. +# which needs '.lib').
  29420. +libext=a
  29421. +
  29422. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  29423. +
  29424. +old_CC="$CC"
  29425. +old_CFLAGS="$CFLAGS"
  29426. +
  29427. +# Set sane defaults for various variables
  29428. +test -z "$CC" && CC=cc
  29429. +test -z "$LTCC" && LTCC=$CC
  29430. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  29431. +test -z "$LD" && LD=ld
  29432. +test -z "$ac_objext" && ac_objext=o
  29433. +
  29434. +_LT_CC_BASENAME([$compiler])
  29435. +
  29436. +# Only perform the check for file, if the check method requires it
  29437. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  29438. +case $deplibs_check_method in
  29439. +file_magic*)
  29440. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  29441. + _LT_PATH_MAGIC
  29442. + fi
  29443. + ;;
  29444. +esac
  29445. +
  29446. +# Use C for the default configuration in the libtool script
  29447. +LT_SUPPORTED_TAG([CC])
  29448. +_LT_LANG_C_CONFIG
  29449. +_LT_LANG_DEFAULT_CONFIG
  29450. +_LT_CONFIG_COMMANDS
  29451. +])# _LT_SETUP
  29452. +
  29453. +
  29454. +# _LT_PROG_LTMAIN
  29455. +# ---------------
  29456. +# Note that this code is called both from `configure', and `config.status'
  29457. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  29458. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  29459. +# so we pass a copy along to make sure it has a sensible value anyway.
  29460. +m4_defun([_LT_PROG_LTMAIN],
  29461. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  29462. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  29463. +ltmain="$ac_aux_dir/ltmain.sh"
  29464. +])# _LT_PROG_LTMAIN
  29465. +
  29466. +
  29467. +## ------------------------------------- ##
  29468. +## Accumulate code for creating libtool. ##
  29469. +## ------------------------------------- ##
  29470. +
  29471. +# So that we can recreate a full libtool script including additional
  29472. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  29473. +# in macros and then make a single call at the end using the `libtool'
  29474. +# label.
  29475. +
  29476. +
  29477. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  29478. +# ----------------------------------------
  29479. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  29480. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  29481. +[m4_ifval([$1],
  29482. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  29483. + [$1
  29484. +])])])
  29485. +
  29486. +# Initialize.
  29487. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  29488. +
  29489. +
  29490. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  29491. +# ------------------------------
  29492. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  29493. +m4_define([_LT_CONFIG_LIBTOOL],
  29494. +[m4_ifval([$1],
  29495. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  29496. + [$1
  29497. +])])])
  29498. +
  29499. +# Initialize.
  29500. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  29501. +
  29502. +
  29503. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  29504. +# -----------------------------------------------------
  29505. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  29506. +[_LT_CONFIG_LIBTOOL([$1])
  29507. +_LT_CONFIG_LIBTOOL_INIT([$2])
  29508. +])
  29509. +
  29510. +
  29511. +# _LT_FORMAT_COMMENT([COMMENT])
  29512. +# -----------------------------
  29513. +# Add leading comment marks to the start of each line, and a trailing
  29514. +# full-stop to the whole comment if one is not present already.
  29515. +m4_define([_LT_FORMAT_COMMENT],
  29516. +[m4_ifval([$1], [
  29517. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  29518. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  29519. +)])
  29520. +
  29521. +
  29522. +
  29523. +## ------------------------ ##
  29524. +## FIXME: Eliminate VARNAME ##
  29525. +## ------------------------ ##
  29526. +
  29527. +
  29528. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  29529. +# -------------------------------------------------------------------
  29530. +# CONFIGNAME is the name given to the value in the libtool script.
  29531. +# VARNAME is the (base) name used in the configure script.
  29532. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  29533. +# VARNAME. Any other value will be used directly.
  29534. +m4_define([_LT_DECL],
  29535. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  29536. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  29537. + [m4_ifval([$1], [$1], [$2])])
  29538. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  29539. + m4_ifval([$4],
  29540. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  29541. + lt_dict_add_subkey([lt_decl_dict], [$2],
  29542. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  29543. +])
  29544. +
  29545. +
  29546. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  29547. +# --------------------------------------------------------
  29548. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  29549. +
  29550. +
  29551. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  29552. +# ------------------------------------------------
  29553. +m4_define([lt_decl_tag_varnames],
  29554. +[_lt_decl_filter([tagged?], [yes], $@)])
  29555. +
  29556. +
  29557. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  29558. +# ---------------------------------------------------------
  29559. +m4_define([_lt_decl_filter],
  29560. +[m4_case([$#],
  29561. + [0], [m4_fatal([$0: too few arguments: $#])],
  29562. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  29563. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  29564. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  29565. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  29566. +])
  29567. +
  29568. +
  29569. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  29570. +# --------------------------------------------------
  29571. +m4_define([lt_decl_quote_varnames],
  29572. +[_lt_decl_filter([value], [1], $@)])
  29573. +
  29574. +
  29575. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  29576. +# ---------------------------------------------------
  29577. +m4_define([lt_decl_dquote_varnames],
  29578. +[_lt_decl_filter([value], [2], $@)])
  29579. +
  29580. +
  29581. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  29582. +# ---------------------------------------------------
  29583. +m4_define([lt_decl_varnames_tagged],
  29584. +[m4_assert([$# <= 2])dnl
  29585. +_$0(m4_quote(m4_default([$1], [[, ]])),
  29586. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  29587. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  29588. +m4_define([_lt_decl_varnames_tagged],
  29589. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  29590. +
  29591. +
  29592. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  29593. +# ------------------------------------------------
  29594. +m4_define([lt_decl_all_varnames],
  29595. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  29596. + m4_if([$2], [],
  29597. + m4_quote(lt_decl_varnames),
  29598. + m4_quote(m4_shift($@))))[]dnl
  29599. +])
  29600. +m4_define([_lt_decl_all_varnames],
  29601. +[lt_join($@, lt_decl_varnames_tagged([$1],
  29602. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  29603. +])
  29604. +
  29605. +
  29606. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  29607. +# ------------------------------------
  29608. +# Quote a variable value, and forward it to `config.status' so that its
  29609. +# declaration there will have the same value as in `configure'. VARNAME
  29610. +# must have a single quote delimited value for this to work.
  29611. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  29612. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  29613. +
  29614. +
  29615. +# _LT_CONFIG_STATUS_DECLARATIONS
  29616. +# ------------------------------
  29617. +# We delimit libtool config variables with single quotes, so when
  29618. +# we write them to config.status, we have to be sure to quote all
  29619. +# embedded single quotes properly. In configure, this macro expands
  29620. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  29621. +#
  29622. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  29623. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  29624. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  29625. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  29626. +
  29627. +
  29628. +# _LT_LIBTOOL_TAGS
  29629. +# ----------------
  29630. +# Output comment and list of tags supported by the script
  29631. +m4_defun([_LT_LIBTOOL_TAGS],
  29632. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  29633. +available_tags="_LT_TAGS"dnl
  29634. +])
  29635. +
  29636. +
  29637. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  29638. +# -----------------------------------
  29639. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  29640. +# expand to a commented shell variable setting:
  29641. +#
  29642. +# # Some comment about what VAR is for.
  29643. +# visible_name=$lt_internal_name
  29644. +m4_define([_LT_LIBTOOL_DECLARE],
  29645. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  29646. + [description])))[]dnl
  29647. +m4_pushdef([_libtool_name],
  29648. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  29649. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  29650. + [0], [_libtool_name=[$]$1],
  29651. + [1], [_libtool_name=$lt_[]$1],
  29652. + [2], [_libtool_name=$lt_[]$1],
  29653. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  29654. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  29655. +])
  29656. +
  29657. +
  29658. +# _LT_LIBTOOL_CONFIG_VARS
  29659. +# -----------------------
  29660. +# Produce commented declarations of non-tagged libtool config variables
  29661. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  29662. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  29663. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  29664. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  29665. +[m4_foreach([_lt_var],
  29666. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  29667. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  29668. +
  29669. +
  29670. +# _LT_LIBTOOL_TAG_VARS(TAG)
  29671. +# -------------------------
  29672. +m4_define([_LT_LIBTOOL_TAG_VARS],
  29673. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  29674. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  29675. +
  29676. +
  29677. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  29678. +# ------------------------------
  29679. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  29680. +
  29681. +
  29682. +# _LT_CONFIG_COMMANDS
  29683. +# -------------------
  29684. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  29685. +# variables for single and double quote escaping we saved from calls
  29686. +# to _LT_DECL, we can put quote escaped variables declarations
  29687. +# into `config.status', and then the shell code to quote escape them in
  29688. +# for loops in `config.status'. Finally, any additional code accumulated
  29689. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  29690. +m4_defun([_LT_CONFIG_COMMANDS],
  29691. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  29692. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  29693. + dnl instead of duplicating it all over again into config.status,
  29694. + dnl then we will have config.status run $CONFIG_LT later, so it
  29695. + dnl needs to know what name is stored there:
  29696. + [AC_CONFIG_COMMANDS([libtool],
  29697. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  29698. + dnl If the libtool generation code is destined for config.status,
  29699. + dnl expand the accumulated commands and init code now:
  29700. + [AC_CONFIG_COMMANDS([libtool],
  29701. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  29702. +])#_LT_CONFIG_COMMANDS
  29703. +
  29704. +
  29705. +# Initialize.
  29706. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  29707. +[
  29708. +
  29709. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  29710. +# if CDPATH is set.
  29711. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  29712. +
  29713. +sed_quote_subst='$sed_quote_subst'
  29714. +double_quote_subst='$double_quote_subst'
  29715. +delay_variable_subst='$delay_variable_subst'
  29716. +_LT_CONFIG_STATUS_DECLARATIONS
  29717. +LTCC='$LTCC'
  29718. +LTCFLAGS='$LTCFLAGS'
  29719. +compiler='$compiler_DEFAULT'
  29720. +
  29721. +# Quote evaled strings.
  29722. +for var in lt_decl_all_varnames([[ \
  29723. +]], lt_decl_quote_varnames); do
  29724. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  29725. + *[[\\\\\\\`\\"\\\$]]*)
  29726. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  29727. + ;;
  29728. + *)
  29729. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  29730. + ;;
  29731. + esac
  29732. +done
  29733. +
  29734. +# Double-quote double-evaled strings.
  29735. +for var in lt_decl_all_varnames([[ \
  29736. +]], lt_decl_dquote_varnames); do
  29737. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  29738. + *[[\\\\\\\`\\"\\\$]]*)
  29739. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  29740. + ;;
  29741. + *)
  29742. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  29743. + ;;
  29744. + esac
  29745. +done
  29746. +
  29747. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  29748. +case \$lt_ECHO in
  29749. +*'\\\[$]0 --fallback-echo"')dnl "
  29750. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  29751. + ;;
  29752. +esac
  29753. +
  29754. +_LT_OUTPUT_LIBTOOL_INIT
  29755. +])
  29756. +
  29757. +
  29758. +# LT_OUTPUT
  29759. +# ---------
  29760. +# This macro allows early generation of the libtool script (before
  29761. +# AC_OUTPUT is called), incase it is used in configure for compilation
  29762. +# tests.
  29763. +AC_DEFUN([LT_OUTPUT],
  29764. +[: ${CONFIG_LT=./config.lt}
  29765. +AC_MSG_NOTICE([creating $CONFIG_LT])
  29766. +cat >"$CONFIG_LT" <<_LTEOF
  29767. +#! $SHELL
  29768. +# Generated by $as_me.
  29769. +# Run this file to recreate a libtool stub with the current configuration.
  29770. +
  29771. +lt_cl_silent=false
  29772. +SHELL=\${CONFIG_SHELL-$SHELL}
  29773. +_LTEOF
  29774. +
  29775. +cat >>"$CONFIG_LT" <<\_LTEOF
  29776. +AS_SHELL_SANITIZE
  29777. +_AS_PREPARE
  29778. +
  29779. +exec AS_MESSAGE_FD>&1
  29780. +exec AS_MESSAGE_LOG_FD>>config.log
  29781. +{
  29782. + echo
  29783. + AS_BOX([Running $as_me.])
  29784. +} >&AS_MESSAGE_LOG_FD
  29785. +
  29786. +lt_cl_help="\
  29787. +\`$as_me' creates a local libtool stub from the current configuration,
  29788. +for use in further configure time tests before the real libtool is
  29789. +generated.
  29790. +
  29791. +Usage: $[0] [[OPTIONS]]
  29792. +
  29793. + -h, --help print this help, then exit
  29794. + -V, --version print version number, then exit
  29795. + -q, --quiet do not print progress messages
  29796. + -d, --debug don't remove temporary files
  29797. +
  29798. +Report bugs to <bug-libtool@gnu.org>."
  29799. +
  29800. +lt_cl_version="\
  29801. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  29802. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  29803. +configured by $[0], generated by m4_PACKAGE_STRING.
  29804. +
  29805. +Copyright (C) 2008 Free Software Foundation, Inc.
  29806. +This config.lt script is free software; the Free Software Foundation
  29807. +gives unlimited permision to copy, distribute and modify it."
  29808. +
  29809. +while test $[#] != 0
  29810. +do
  29811. + case $[1] in
  29812. + --version | --v* | -V )
  29813. + echo "$lt_cl_version"; exit 0 ;;
  29814. + --help | --h* | -h )
  29815. + echo "$lt_cl_help"; exit 0 ;;
  29816. + --debug | --d* | -d )
  29817. + debug=: ;;
  29818. + --quiet | --q* | --silent | --s* | -q )
  29819. + lt_cl_silent=: ;;
  29820. +
  29821. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  29822. +Try \`$[0] --help' for more information.]) ;;
  29823. +
  29824. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  29825. +Try \`$[0] --help' for more information.]) ;;
  29826. + esac
  29827. + shift
  29828. +done
  29829. +
  29830. +if $lt_cl_silent; then
  29831. + exec AS_MESSAGE_FD>/dev/null
  29832. +fi
  29833. +_LTEOF
  29834. +
  29835. +cat >>"$CONFIG_LT" <<_LTEOF
  29836. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  29837. +_LTEOF
  29838. +
  29839. +cat >>"$CONFIG_LT" <<\_LTEOF
  29840. +AC_MSG_NOTICE([creating $ofile])
  29841. +_LT_OUTPUT_LIBTOOL_COMMANDS
  29842. +AS_EXIT(0)
  29843. +_LTEOF
  29844. +chmod +x "$CONFIG_LT"
  29845. +
  29846. +# configure is writing to config.log, but config.lt does its own redirection,
  29847. +# appending to config.log, which fails on DOS, as config.log is still kept
  29848. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  29849. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  29850. +if test "$no_create" != yes; then
  29851. + lt_cl_success=:
  29852. + test "$silent" = yes &&
  29853. + lt_config_lt_args="$lt_config_lt_args --quiet"
  29854. + exec AS_MESSAGE_LOG_FD>/dev/null
  29855. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  29856. + exec AS_MESSAGE_LOG_FD>>config.log
  29857. + $lt_cl_success || AS_EXIT(1)
  29858. +fi
  29859. +])# LT_OUTPUT
  29860. +
  29861. +
  29862. +# _LT_CONFIG(TAG)
  29863. +# ---------------
  29864. +# If TAG is the built-in tag, create an initial libtool script with a
  29865. +# default configuration from the untagged config vars. Otherwise add code
  29866. +# to config.status for appending the configuration named by TAG from the
  29867. +# matching tagged config vars.
  29868. +m4_defun([_LT_CONFIG],
  29869. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  29870. +_LT_CONFIG_SAVE_COMMANDS([
  29871. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  29872. + m4_if(_LT_TAG, [C], [
  29873. + # See if we are running on zsh, and set the options which allow our
  29874. + # commands through without removal of \ escapes.
  29875. + if test -n "${ZSH_VERSION+set}" ; then
  29876. + setopt NO_GLOB_SUBST
  29877. + fi
  29878. +
  29879. + cfgfile="${ofile}T"
  29880. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  29881. + $RM "$cfgfile"
  29882. +
  29883. + cat <<_LT_EOF >> "$cfgfile"
  29884. +#! $SHELL
  29885. +
  29886. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  29887. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  29888. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  29889. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  29890. +#
  29891. +_LT_COPYING
  29892. +_LT_LIBTOOL_TAGS
  29893. +
  29894. +# ### BEGIN LIBTOOL CONFIG
  29895. +_LT_LIBTOOL_CONFIG_VARS
  29896. +_LT_LIBTOOL_TAG_VARS
  29897. +# ### END LIBTOOL CONFIG
  29898. +
  29899. +_LT_EOF
  29900. +
  29901. + case $host_os in
  29902. + aix3*)
  29903. + cat <<\_LT_EOF >> "$cfgfile"
  29904. +# AIX sometimes has problems with the GCC collect2 program. For some
  29905. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  29906. +# vanish in a puff of smoke.
  29907. +if test "X${COLLECT_NAMES+set}" != Xset; then
  29908. + COLLECT_NAMES=
  29909. + export COLLECT_NAMES
  29910. +fi
  29911. +_LT_EOF
  29912. + ;;
  29913. + esac
  29914. +
  29915. + _LT_PROG_LTMAIN
  29916. +
  29917. + # We use sed instead of cat because bash on DJGPP gets confused if
  29918. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  29919. + # text mode, it properly converts lines to CR/LF. This bash problem
  29920. + # is reportedly fixed, but why not run on old versions too?
  29921. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  29922. + || (rm -f "$cfgfile"; exit 1)
  29923. +
  29924. + _LT_PROG_XSI_SHELLFNS
  29925. +
  29926. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  29927. + || (rm -f "$cfgfile"; exit 1)
  29928. +
  29929. + mv -f "$cfgfile" "$ofile" ||
  29930. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  29931. + chmod +x "$ofile"
  29932. +],
  29933. +[cat <<_LT_EOF >> "$ofile"
  29934. +
  29935. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  29936. +dnl in a comment (ie after a #).
  29937. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  29938. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  29939. +# ### END LIBTOOL TAG CONFIG: $1
  29940. +_LT_EOF
  29941. +])dnl /m4_if
  29942. +],
  29943. +[m4_if([$1], [], [
  29944. + PACKAGE='$PACKAGE'
  29945. + VERSION='$VERSION'
  29946. + TIMESTAMP='$TIMESTAMP'
  29947. + RM='$RM'
  29948. + ofile='$ofile'], [])
  29949. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  29950. +])# _LT_CONFIG
  29951. +
  29952. +
  29953. +# LT_SUPPORTED_TAG(TAG)
  29954. +# ---------------------
  29955. +# Trace this macro to discover what tags are supported by the libtool
  29956. +# --tag option, using:
  29957. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  29958. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  29959. +
  29960. +
  29961. +# C support is built-in for now
  29962. +m4_define([_LT_LANG_C_enabled], [])
  29963. +m4_define([_LT_TAGS], [])
  29964. +
  29965. +
  29966. +# LT_LANG(LANG)
  29967. +# -------------
  29968. +# Enable libtool support for the given language if not already enabled.
  29969. +AC_DEFUN([LT_LANG],
  29970. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  29971. +m4_case([$1],
  29972. + [C], [_LT_LANG(C)],
  29973. + [C++], [_LT_LANG(CXX)],
  29974. + [Java], [_LT_LANG(GCJ)],
  29975. + [Fortran 77], [_LT_LANG(F77)],
  29976. + [Fortran], [_LT_LANG(FC)],
  29977. + [Windows Resource], [_LT_LANG(RC)],
  29978. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  29979. + [_LT_LANG($1)],
  29980. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  29981. +])# LT_LANG
  29982. +
  29983. +
  29984. +# _LT_LANG(LANGNAME)
  29985. +# ------------------
  29986. +m4_defun([_LT_LANG],
  29987. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  29988. + [LT_SUPPORTED_TAG([$1])dnl
  29989. + m4_append([_LT_TAGS], [$1 ])dnl
  29990. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  29991. + _LT_LANG_$1_CONFIG($1)])dnl
  29992. +])# _LT_LANG
  29993. +
  29994. +
  29995. +# _LT_LANG_DEFAULT_CONFIG
  29996. +# -----------------------
  29997. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  29998. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  29999. + [LT_LANG(CXX)],
  30000. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  30001. +
  30002. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  30003. + [LT_LANG(F77)],
  30004. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  30005. +
  30006. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  30007. + [LT_LANG(FC)],
  30008. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  30009. +
  30010. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  30011. +dnl pulling things in needlessly.
  30012. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  30013. + [LT_LANG(GCJ)],
  30014. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  30015. + [LT_LANG(GCJ)],
  30016. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  30017. + [LT_LANG(GCJ)],
  30018. + [m4_ifdef([AC_PROG_GCJ],
  30019. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  30020. + m4_ifdef([A][M_PROG_GCJ],
  30021. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  30022. + m4_ifdef([LT_PROG_GCJ],
  30023. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  30024. +
  30025. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  30026. + [LT_LANG(RC)],
  30027. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  30028. +])# _LT_LANG_DEFAULT_CONFIG
  30029. +
  30030. +# Obsolete macros:
  30031. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  30032. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  30033. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  30034. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  30035. +dnl aclocal-1.4 backwards compatibility:
  30036. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  30037. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  30038. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  30039. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  30040. +
  30041. +
  30042. +# _LT_TAG_COMPILER
  30043. +# ----------------
  30044. +m4_defun([_LT_TAG_COMPILER],
  30045. +[AC_REQUIRE([AC_PROG_CC])dnl
  30046. +
  30047. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  30048. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  30049. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  30050. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  30051. +
  30052. +# If no C compiler was specified, use CC.
  30053. +LTCC=${LTCC-"$CC"}
  30054. +
  30055. +# If no C compiler flags were specified, use CFLAGS.
  30056. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  30057. +
  30058. +# Allow CC to be a program name with arguments.
  30059. +compiler=$CC
  30060. +])# _LT_TAG_COMPILER
  30061. +
  30062. +
  30063. +# _LT_COMPILER_BOILERPLATE
  30064. +# ------------------------
  30065. +# Check for compiler boilerplate output or warnings with
  30066. +# the simple compiler test code.
  30067. +m4_defun([_LT_COMPILER_BOILERPLATE],
  30068. +[m4_require([_LT_DECL_SED])dnl
  30069. +ac_outfile=conftest.$ac_objext
  30070. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  30071. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  30072. +_lt_compiler_boilerplate=`cat conftest.err`
  30073. +$RM conftest*
  30074. +])# _LT_COMPILER_BOILERPLATE
  30075. +
  30076. +
  30077. +# _LT_LINKER_BOILERPLATE
  30078. +# ----------------------
  30079. +# Check for linker boilerplate output or warnings with
  30080. +# the simple link test code.
  30081. +m4_defun([_LT_LINKER_BOILERPLATE],
  30082. +[m4_require([_LT_DECL_SED])dnl
  30083. +ac_outfile=conftest.$ac_objext
  30084. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  30085. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  30086. +_lt_linker_boilerplate=`cat conftest.err`
  30087. +$RM -r conftest*
  30088. +])# _LT_LINKER_BOILERPLATE
  30089. +
  30090. +# _LT_REQUIRED_DARWIN_CHECKS
  30091. +# -------------------------
  30092. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  30093. + case $host_os in
  30094. + rhapsody* | darwin*)
  30095. + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  30096. + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  30097. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  30098. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  30099. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  30100. + _LT_DECL([], [DSYMUTIL], [1],
  30101. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  30102. + _LT_DECL([], [NMEDIT], [1],
  30103. + [Tool to change global to local symbols on Mac OS X])
  30104. + _LT_DECL([], [LIPO], [1],
  30105. + [Tool to manipulate fat objects and archives on Mac OS X])
  30106. + _LT_DECL([], [OTOOL], [1],
  30107. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  30108. + _LT_DECL([], [OTOOL64], [1],
  30109. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  30110. +
  30111. + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  30112. + [lt_cv_apple_cc_single_mod=no
  30113. + if test -z "${LT_MULTI_MODULE}"; then
  30114. + # By default we will add the -single_module flag. You can override
  30115. + # by either setting the environment variable LT_MULTI_MODULE
  30116. + # non-empty at configure time, or by adding -multi_module to the
  30117. + # link flags.
  30118. + rm -rf libconftest.dylib*
  30119. + echo "int foo(void){return 1;}" > conftest.c
  30120. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  30121. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  30122. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  30123. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  30124. + _lt_result=$?
  30125. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  30126. + lt_cv_apple_cc_single_mod=yes
  30127. + else
  30128. + cat conftest.err >&AS_MESSAGE_LOG_FD
  30129. + fi
  30130. + rm -rf libconftest.dylib*
  30131. + rm -f conftest.*
  30132. + fi])
  30133. + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  30134. + [lt_cv_ld_exported_symbols_list],
  30135. + [lt_cv_ld_exported_symbols_list=no
  30136. + save_LDFLAGS=$LDFLAGS
  30137. + echo "_main" > conftest.sym
  30138. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  30139. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  30140. + [lt_cv_ld_exported_symbols_list=yes],
  30141. + [lt_cv_ld_exported_symbols_list=no])
  30142. + LDFLAGS="$save_LDFLAGS"
  30143. + ])
  30144. + case $host_os in
  30145. + rhapsody* | darwin1.[[012]])
  30146. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  30147. + darwin1.*)
  30148. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  30149. + darwin*) # darwin 5.x on
  30150. + # if running on 10.5 or later, the deployment target defaults
  30151. + # to the OS version, if on x86, and 10.4, the deployment
  30152. + # target defaults to 10.4. Don't you love it?
  30153. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  30154. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  30155. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  30156. + 10.[[012]]*)
  30157. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  30158. + 10.*)
  30159. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  30160. + esac
  30161. + ;;
  30162. + esac
  30163. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  30164. + _lt_dar_single_mod='$single_module'
  30165. + fi
  30166. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  30167. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  30168. + else
  30169. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  30170. + fi
  30171. + if test "$DSYMUTIL" != ":"; then
  30172. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  30173. + else
  30174. + _lt_dsymutil=
  30175. + fi
  30176. + ;;
  30177. + esac
  30178. +])
  30179. +
  30180. +
  30181. +# _LT_DARWIN_LINKER_FEATURES
  30182. +# --------------------------
  30183. +# Checks for linker and compiler features on darwin
  30184. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  30185. +[
  30186. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  30187. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  30188. + _LT_TAGVAR(hardcode_direct, $1)=no
  30189. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  30190. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  30191. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  30192. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  30193. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  30194. + case $cc_basename in
  30195. + ifort*) _lt_dar_can_shared=yes ;;
  30196. + *) _lt_dar_can_shared=$GCC ;;
  30197. + esac
  30198. + if test "$_lt_dar_can_shared" = "yes"; then
  30199. + output_verbose_link_cmd=echo
  30200. + _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  30201. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  30202. + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  30203. + _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  30204. + m4_if([$1], [CXX],
  30205. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  30206. + _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  30207. + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  30208. + fi
  30209. +],[])
  30210. + else
  30211. + _LT_TAGVAR(ld_shlibs, $1)=no
  30212. + fi
  30213. +])
  30214. +
  30215. +# _LT_SYS_MODULE_PATH_AIX
  30216. +# -----------------------
  30217. +# Links a minimal program and checks the executable
  30218. +# for the system default hardcoded library path. In most cases,
  30219. +# this is /usr/lib:/lib, but when the MPI compilers are used
  30220. +# the location of the communication and MPI libs are included too.
  30221. +# If we don't find anything, use the default library path according
  30222. +# to the aix ld manual.
  30223. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  30224. +[m4_require([_LT_DECL_SED])dnl
  30225. +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  30226. +lt_aix_libpath_sed='
  30227. + /Import File Strings/,/^$/ {
  30228. + /^0/ {
  30229. + s/^0 *\(.*\)$/\1/
  30230. + p
  30231. + }
  30232. + }'
  30233. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  30234. +# Check for a 64-bit object if we didn't find anything.
  30235. +if test -z "$aix_libpath"; then
  30236. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  30237. +fi],[])
  30238. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  30239. +])# _LT_SYS_MODULE_PATH_AIX
  30240. +
  30241. +
  30242. +# _LT_SHELL_INIT(ARG)
  30243. +# -------------------
  30244. +m4_define([_LT_SHELL_INIT],
  30245. +[ifdef([AC_DIVERSION_NOTICE],
  30246. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  30247. + [AC_DIVERT_PUSH(NOTICE)])
  30248. +$1
  30249. +AC_DIVERT_POP
  30250. +])# _LT_SHELL_INIT
  30251. +
  30252. +
  30253. +# _LT_PROG_ECHO_BACKSLASH
  30254. +# -----------------------
  30255. +# Add some code to the start of the generated configure script which
  30256. +# will find an echo command which doesn't interpret backslashes.
  30257. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  30258. +[_LT_SHELL_INIT([
  30259. +# Check that we are running under the correct shell.
  30260. +SHELL=${CONFIG_SHELL-/bin/sh}
  30261. +
  30262. +case X$lt_ECHO in
  30263. +X*--fallback-echo)
  30264. + # Remove one level of quotation (which was required for Make).
  30265. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  30266. + ;;
  30267. +esac
  30268. +
  30269. +ECHO=${lt_ECHO-echo}
  30270. +if test "X[$]1" = X--no-reexec; then
  30271. + # Discard the --no-reexec flag, and continue.
  30272. + shift
  30273. +elif test "X[$]1" = X--fallback-echo; then
  30274. + # Avoid inline document here, it may be left over
  30275. + :
  30276. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  30277. + # Yippee, $ECHO works!
  30278. + :
  30279. +else
  30280. + # Restart under the correct shell.
  30281. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  30282. +fi
  30283. +
  30284. +if test "X[$]1" = X--fallback-echo; then
  30285. + # used as fallback echo
  30286. + shift
  30287. + cat <<_LT_EOF
  30288. +[$]*
  30289. +_LT_EOF
  30290. + exit 0
  30291. +fi
  30292. +
  30293. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  30294. +# if CDPATH is set.
  30295. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  30296. +
  30297. +if test -z "$lt_ECHO"; then
  30298. + if test "X${echo_test_string+set}" != Xset; then
  30299. + # find a string as large as possible, as long as the shell can cope with it
  30300. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  30301. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  30302. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  30303. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  30304. + then
  30305. + break
  30306. + fi
  30307. + done
  30308. + fi
  30309. +
  30310. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  30311. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  30312. + test "X$echo_testing_string" = "X$echo_test_string"; then
  30313. + :
  30314. + else
  30315. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  30316. + # backslashes. This makes it impossible to quote backslashes using
  30317. + # echo "$something" | sed 's/\\/\\\\/g'
  30318. + #
  30319. + # So, first we look for a working echo in the user's PATH.
  30320. +
  30321. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  30322. + for dir in $PATH /usr/ucb; do
  30323. + IFS="$lt_save_ifs"
  30324. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  30325. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  30326. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  30327. + test "X$echo_testing_string" = "X$echo_test_string"; then
  30328. + ECHO="$dir/echo"
  30329. + break
  30330. + fi
  30331. + done
  30332. + IFS="$lt_save_ifs"
  30333. +
  30334. + if test "X$ECHO" = Xecho; then
  30335. + # We didn't find a better echo, so look for alternatives.
  30336. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  30337. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  30338. + test "X$echo_testing_string" = "X$echo_test_string"; then
  30339. + # This shell has a builtin print -r that does the trick.
  30340. + ECHO='print -r'
  30341. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  30342. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  30343. + # If we have ksh, try running configure again with it.
  30344. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  30345. + export ORIGINAL_CONFIG_SHELL
  30346. + CONFIG_SHELL=/bin/ksh
  30347. + export CONFIG_SHELL
  30348. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  30349. + else
  30350. + # Try using printf.
  30351. + ECHO='printf %s\n'
  30352. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  30353. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  30354. + test "X$echo_testing_string" = "X$echo_test_string"; then
  30355. + # Cool, printf works
  30356. + :
  30357. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  30358. + test "X$echo_testing_string" = 'X\t' &&
  30359. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  30360. + test "X$echo_testing_string" = "X$echo_test_string"; then
  30361. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  30362. + export CONFIG_SHELL
  30363. + SHELL="$CONFIG_SHELL"
  30364. + export SHELL
  30365. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  30366. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  30367. + test "X$echo_testing_string" = 'X\t' &&
  30368. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  30369. + test "X$echo_testing_string" = "X$echo_test_string"; then
  30370. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  30371. + else
  30372. + # maybe with a smaller string...
  30373. + prev=:
  30374. +
  30375. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  30376. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  30377. + then
  30378. + break
  30379. + fi
  30380. + prev="$cmd"
  30381. + done
  30382. +
  30383. + if test "$prev" != 'sed 50q "[$]0"'; then
  30384. + echo_test_string=`eval $prev`
  30385. + export echo_test_string
  30386. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  30387. + else
  30388. + # Oops. We lost completely, so just stick with echo.
  30389. + ECHO=echo
  30390. + fi
  30391. + fi
  30392. + fi
  30393. + fi
  30394. + fi
  30395. +fi
  30396. +
  30397. +# Copy echo and quote the copy suitably for passing to libtool from
  30398. +# the Makefile, instead of quoting the original, which is used later.
  30399. +lt_ECHO=$ECHO
  30400. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  30401. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  30402. +fi
  30403. +
  30404. +AC_SUBST(lt_ECHO)
  30405. +])
  30406. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  30407. +_LT_DECL([], [ECHO], [1],
  30408. + [An echo program that does not interpret backslashes])
  30409. +])# _LT_PROG_ECHO_BACKSLASH
  30410. +
  30411. +
  30412. +# _LT_ENABLE_LOCK
  30413. +# ---------------
  30414. +m4_defun([_LT_ENABLE_LOCK],
  30415. +[AC_ARG_ENABLE([libtool-lock],
  30416. + [AS_HELP_STRING([--disable-libtool-lock],
  30417. + [avoid locking (might break parallel builds)])])
  30418. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  30419. +
  30420. +# Some flags need to be propagated to the compiler or linker for good
  30421. +# libtool support.
  30422. +case $host in
  30423. +ia64-*-hpux*)
  30424. + # Find out which ABI we are using.
  30425. + echo 'int i;' > conftest.$ac_ext
  30426. + if AC_TRY_EVAL(ac_compile); then
  30427. + case `/usr/bin/file conftest.$ac_objext` in
  30428. + *ELF-32*)
  30429. + HPUX_IA64_MODE="32"
  30430. + ;;
  30431. + *ELF-64*)
  30432. + HPUX_IA64_MODE="64"
  30433. + ;;
  30434. + esac
  30435. + fi
  30436. + rm -rf conftest*
  30437. + ;;
  30438. +*-*-irix6*)
  30439. + # Find out which ABI we are using.
  30440. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  30441. + if AC_TRY_EVAL(ac_compile); then
  30442. + if test "$lt_cv_prog_gnu_ld" = yes; then
  30443. + case `/usr/bin/file conftest.$ac_objext` in
  30444. + *32-bit*)
  30445. + LD="${LD-ld} -melf32bsmip"
  30446. + ;;
  30447. + *N32*)
  30448. + LD="${LD-ld} -melf32bmipn32"
  30449. + ;;
  30450. + *64-bit*)
  30451. + LD="${LD-ld} -melf64bmip"
  30452. + ;;
  30453. + esac
  30454. + else
  30455. + case `/usr/bin/file conftest.$ac_objext` in
  30456. + *32-bit*)
  30457. + LD="${LD-ld} -32"
  30458. + ;;
  30459. + *N32*)
  30460. + LD="${LD-ld} -n32"
  30461. + ;;
  30462. + *64-bit*)
  30463. + LD="${LD-ld} -64"
  30464. + ;;
  30465. + esac
  30466. + fi
  30467. + fi
  30468. + rm -rf conftest*
  30469. + ;;
  30470. +
  30471. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  30472. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  30473. + # Find out which ABI we are using.
  30474. + echo 'int i;' > conftest.$ac_ext
  30475. + if AC_TRY_EVAL(ac_compile); then
  30476. + case `/usr/bin/file conftest.o` in
  30477. + *32-bit*)
  30478. + case $host in
  30479. + x86_64-*kfreebsd*-gnu)
  30480. + LD="${LD-ld} -m elf_i386_fbsd"
  30481. + ;;
  30482. + x86_64-*linux*)
  30483. + LD="${LD-ld} -m elf_i386"
  30484. + ;;
  30485. + ppc64-*linux*|powerpc64-*linux*)
  30486. + LD="${LD-ld} -m elf32ppclinux"
  30487. + ;;
  30488. + s390x-*linux*)
  30489. + LD="${LD-ld} -m elf_s390"
  30490. + ;;
  30491. + sparc64-*linux*)
  30492. + LD="${LD-ld} -m elf32_sparc"
  30493. + ;;
  30494. + esac
  30495. + ;;
  30496. + *64-bit*)
  30497. + case $host in
  30498. + x86_64-*kfreebsd*-gnu)
  30499. + LD="${LD-ld} -m elf_x86_64_fbsd"
  30500. + ;;
  30501. + x86_64-*linux*)
  30502. + LD="${LD-ld} -m elf_x86_64"
  30503. + ;;
  30504. + ppc*-*linux*|powerpc*-*linux*)
  30505. + LD="${LD-ld} -m elf64ppc"
  30506. + ;;
  30507. + s390*-*linux*|s390*-*tpf*)
  30508. + LD="${LD-ld} -m elf64_s390"
  30509. + ;;
  30510. + sparc*-*linux*)
  30511. + LD="${LD-ld} -m elf64_sparc"
  30512. + ;;
  30513. + esac
  30514. + ;;
  30515. + esac
  30516. + fi
  30517. + rm -rf conftest*
  30518. + ;;
  30519. +
  30520. +*-*-sco3.2v5*)
  30521. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  30522. + SAVE_CFLAGS="$CFLAGS"
  30523. + CFLAGS="$CFLAGS -belf"
  30524. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  30525. + [AC_LANG_PUSH(C)
  30526. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  30527. + AC_LANG_POP])
  30528. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  30529. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  30530. + CFLAGS="$SAVE_CFLAGS"
  30531. + fi
  30532. + ;;
  30533. +sparc*-*solaris*)
  30534. + # Find out which ABI we are using.
  30535. + echo 'int i;' > conftest.$ac_ext
  30536. + if AC_TRY_EVAL(ac_compile); then
  30537. + case `/usr/bin/file conftest.o` in
  30538. + *64-bit*)
  30539. + case $lt_cv_prog_gnu_ld in
  30540. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  30541. + *)
  30542. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  30543. + LD="${LD-ld} -64"
  30544. + fi
  30545. + ;;
  30546. + esac
  30547. + ;;
  30548. + esac
  30549. + fi
  30550. + rm -rf conftest*
  30551. + ;;
  30552. +esac
  30553. +
  30554. +need_locks="$enable_libtool_lock"
  30555. +])# _LT_ENABLE_LOCK
  30556. +
  30557. +
  30558. +# _LT_CMD_OLD_ARCHIVE
  30559. +# -------------------
  30560. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  30561. +[AC_CHECK_TOOL(AR, ar, false)
  30562. +test -z "$AR" && AR=ar
  30563. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  30564. +_LT_DECL([], [AR], [1], [The archiver])
  30565. +_LT_DECL([], [AR_FLAGS], [1])
  30566. +
  30567. +AC_CHECK_TOOL(STRIP, strip, :)
  30568. +test -z "$STRIP" && STRIP=:
  30569. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  30570. +
  30571. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  30572. +test -z "$RANLIB" && RANLIB=:
  30573. +_LT_DECL([], [RANLIB], [1],
  30574. + [Commands used to install an old-style archive])
  30575. +
  30576. +# Determine commands to create old-style static archives.
  30577. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  30578. +old_postinstall_cmds='chmod 644 $oldlib'
  30579. +old_postuninstall_cmds=
  30580. +
  30581. +if test -n "$RANLIB"; then
  30582. + case $host_os in
  30583. + openbsd*)
  30584. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  30585. + ;;
  30586. + *)
  30587. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  30588. + ;;
  30589. + esac
  30590. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  30591. +fi
  30592. +_LT_DECL([], [old_postinstall_cmds], [2])
  30593. +_LT_DECL([], [old_postuninstall_cmds], [2])
  30594. +_LT_TAGDECL([], [old_archive_cmds], [2],
  30595. + [Commands used to build an old-style archive])
  30596. +])# _LT_CMD_OLD_ARCHIVE
  30597. +
  30598. +
  30599. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  30600. +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  30601. +# ----------------------------------------------------------------
  30602. +# Check whether the given compiler option works
  30603. +AC_DEFUN([_LT_COMPILER_OPTION],
  30604. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  30605. +m4_require([_LT_DECL_SED])dnl
  30606. +AC_CACHE_CHECK([$1], [$2],
  30607. + [$2=no
  30608. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  30609. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  30610. + lt_compiler_flag="$3"
  30611. + # Insert the option either (1) after the last *FLAGS variable, or
  30612. + # (2) before a word containing "conftest.", or (3) at the end.
  30613. + # Note that $ac_compile itself does not contain backslashes and begins
  30614. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  30615. + # The option is referenced via a variable to avoid confusing sed.
  30616. + lt_compile=`echo "$ac_compile" | $SED \
  30617. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  30618. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  30619. + -e 's:$: $lt_compiler_flag:'`
  30620. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  30621. + (eval "$lt_compile" 2>conftest.err)
  30622. + ac_status=$?
  30623. + cat conftest.err >&AS_MESSAGE_LOG_FD
  30624. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  30625. + if (exit $ac_status) && test -s "$ac_outfile"; then
  30626. + # The compiler can only warn and ignore the option if not recognized
  30627. + # So say no if there are warnings other than the usual output.
  30628. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  30629. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  30630. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  30631. + $2=yes
  30632. + fi
  30633. + fi
  30634. + $RM conftest*
  30635. +])
  30636. +
  30637. +if test x"[$]$2" = xyes; then
  30638. + m4_if([$5], , :, [$5])
  30639. +else
  30640. + m4_if([$6], , :, [$6])
  30641. +fi
  30642. +])# _LT_COMPILER_OPTION
  30643. +
  30644. +# Old name:
  30645. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  30646. +dnl aclocal-1.4 backwards compatibility:
  30647. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  30648. +
  30649. +
  30650. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  30651. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  30652. +# ----------------------------------------------------
  30653. +# Check whether the given linker option works
  30654. +AC_DEFUN([_LT_LINKER_OPTION],
  30655. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  30656. +m4_require([_LT_DECL_SED])dnl
  30657. +AC_CACHE_CHECK([$1], [$2],
  30658. + [$2=no
  30659. + save_LDFLAGS="$LDFLAGS"
  30660. + LDFLAGS="$LDFLAGS $3"
  30661. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  30662. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  30663. + # The linker can only warn and ignore the option if not recognized
  30664. + # So say no if there are warnings
  30665. + if test -s conftest.err; then
  30666. + # Append any errors to the config.log.
  30667. + cat conftest.err 1>&AS_MESSAGE_LOG_FD
  30668. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  30669. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  30670. + if diff conftest.exp conftest.er2 >/dev/null; then
  30671. + $2=yes
  30672. + fi
  30673. + else
  30674. + $2=yes
  30675. + fi
  30676. + fi
  30677. + $RM -r conftest*
  30678. + LDFLAGS="$save_LDFLAGS"
  30679. +])
  30680. +
  30681. +if test x"[$]$2" = xyes; then
  30682. + m4_if([$4], , :, [$4])
  30683. +else
  30684. + m4_if([$5], , :, [$5])
  30685. +fi
  30686. +])# _LT_LINKER_OPTION
  30687. +
  30688. +# Old name:
  30689. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  30690. +dnl aclocal-1.4 backwards compatibility:
  30691. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  30692. +
  30693. +
  30694. +# LT_CMD_MAX_LEN
  30695. +#---------------
  30696. +AC_DEFUN([LT_CMD_MAX_LEN],
  30697. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  30698. +# find the maximum length of command line arguments
  30699. +AC_MSG_CHECKING([the maximum length of command line arguments])
  30700. +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  30701. + i=0
  30702. + teststring="ABCD"
  30703. +
  30704. + case $build_os in
  30705. + msdosdjgpp*)
  30706. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  30707. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  30708. + # during glob expansion). Even if it were fixed, the result of this
  30709. + # check would be larger than it should be.
  30710. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  30711. + ;;
  30712. +
  30713. + gnu*)
  30714. + # Under GNU Hurd, this test is not required because there is
  30715. + # no limit to the length of command line arguments.
  30716. + # Libtool will interpret -1 as no limit whatsoever
  30717. + lt_cv_sys_max_cmd_len=-1;
  30718. + ;;
  30719. +
  30720. + cygwin* | mingw* | cegcc*)
  30721. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  30722. + # about 5 minutes as the teststring grows exponentially.
  30723. + # Worse, since 9x/ME are not pre-emptively multitasking,
  30724. + # you end up with a "frozen" computer, even though with patience
  30725. + # the test eventually succeeds (with a max line length of 256k).
  30726. + # Instead, let's just punt: use the minimum linelength reported by
  30727. + # all of the supported platforms: 8192 (on NT/2K/XP).
  30728. + lt_cv_sys_max_cmd_len=8192;
  30729. + ;;
  30730. +
  30731. + amigaos*)
  30732. + # On AmigaOS with pdksh, this test takes hours, literally.
  30733. + # So we just punt and use a minimum line length of 8192.
  30734. + lt_cv_sys_max_cmd_len=8192;
  30735. + ;;
  30736. +
  30737. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  30738. + # This has been around since 386BSD, at least. Likely further.
  30739. + if test -x /sbin/sysctl; then
  30740. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  30741. + elif test -x /usr/sbin/sysctl; then
  30742. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  30743. + else
  30744. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  30745. + fi
  30746. + # And add a safety zone
  30747. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  30748. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  30749. + ;;
  30750. +
  30751. + interix*)
  30752. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  30753. + lt_cv_sys_max_cmd_len=196608
  30754. + ;;
  30755. +
  30756. + osf*)
  30757. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  30758. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  30759. + # nice to cause kernel panics so lets avoid the loop below.
  30760. + # First set a reasonable default.
  30761. + lt_cv_sys_max_cmd_len=16384
  30762. + #
  30763. + if test -x /sbin/sysconfig; then
  30764. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  30765. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  30766. + esac
  30767. + fi
  30768. + ;;
  30769. + sco3.2v5*)
  30770. + lt_cv_sys_max_cmd_len=102400
  30771. + ;;
  30772. + sysv5* | sco5v6* | sysv4.2uw2*)
  30773. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  30774. + if test -n "$kargmax"; then
  30775. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  30776. + else
  30777. + lt_cv_sys_max_cmd_len=32768
  30778. + fi
  30779. + ;;
  30780. + *)
  30781. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  30782. + if test -n "$lt_cv_sys_max_cmd_len"; then
  30783. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  30784. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  30785. + else
  30786. + # Make teststring a little bigger before we do anything with it.
  30787. + # a 1K string should be a reasonable start.
  30788. + for i in 1 2 3 4 5 6 7 8 ; do
  30789. + teststring=$teststring$teststring
  30790. + done
  30791. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  30792. + # If test is not a shell built-in, we'll probably end up computing a
  30793. + # maximum length that is only half of the actual maximum length, but
  30794. + # we can't tell.
  30795. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  30796. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  30797. + test $i != 17 # 1/2 MB should be enough
  30798. + do
  30799. + i=`expr $i + 1`
  30800. + teststring=$teststring$teststring
  30801. + done
  30802. + # Only check the string length outside the loop.
  30803. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  30804. + teststring=
  30805. + # Add a significant safety factor because C++ compilers can tack on
  30806. + # massive amounts of additional arguments before passing them to the
  30807. + # linker. It appears as though 1/2 is a usable value.
  30808. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  30809. + fi
  30810. + ;;
  30811. + esac
  30812. +])
  30813. +if test -n $lt_cv_sys_max_cmd_len ; then
  30814. + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  30815. +else
  30816. + AC_MSG_RESULT(none)
  30817. +fi
  30818. +max_cmd_len=$lt_cv_sys_max_cmd_len
  30819. +_LT_DECL([], [max_cmd_len], [0],
  30820. + [What is the maximum length of a command?])
  30821. +])# LT_CMD_MAX_LEN
  30822. +
  30823. +# Old name:
  30824. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  30825. +dnl aclocal-1.4 backwards compatibility:
  30826. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  30827. +
  30828. +
  30829. +# _LT_HEADER_DLFCN
  30830. +# ----------------
  30831. +m4_defun([_LT_HEADER_DLFCN],
  30832. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  30833. +])# _LT_HEADER_DLFCN
  30834. +
  30835. +
  30836. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  30837. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  30838. +# ----------------------------------------------------------------
  30839. +m4_defun([_LT_TRY_DLOPEN_SELF],
  30840. +[m4_require([_LT_HEADER_DLFCN])dnl
  30841. +if test "$cross_compiling" = yes; then :
  30842. + [$4]
  30843. +else
  30844. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  30845. + lt_status=$lt_dlunknown
  30846. + cat > conftest.$ac_ext <<_LT_EOF
  30847. +[#line __oline__ "configure"
  30848. +#include "confdefs.h"
  30849. +
  30850. +#if HAVE_DLFCN_H
  30851. +#include <dlfcn.h>
  30852. +#endif
  30853. +
  30854. +#include <stdio.h>
  30855. +
  30856. +#ifdef RTLD_GLOBAL
  30857. +# define LT_DLGLOBAL RTLD_GLOBAL
  30858. +#else
  30859. +# ifdef DL_GLOBAL
  30860. +# define LT_DLGLOBAL DL_GLOBAL
  30861. +# else
  30862. +# define LT_DLGLOBAL 0
  30863. +# endif
  30864. +#endif
  30865. +
  30866. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  30867. + find out it does not work in some platform. */
  30868. +#ifndef LT_DLLAZY_OR_NOW
  30869. +# ifdef RTLD_LAZY
  30870. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  30871. +# else
  30872. +# ifdef DL_LAZY
  30873. +# define LT_DLLAZY_OR_NOW DL_LAZY
  30874. +# else
  30875. +# ifdef RTLD_NOW
  30876. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  30877. +# else
  30878. +# ifdef DL_NOW
  30879. +# define LT_DLLAZY_OR_NOW DL_NOW
  30880. +# else
  30881. +# define LT_DLLAZY_OR_NOW 0
  30882. +# endif
  30883. +# endif
  30884. +# endif
  30885. +# endif
  30886. +#endif
  30887. +
  30888. +void fnord() { int i=42;}
  30889. +int main ()
  30890. +{
  30891. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  30892. + int status = $lt_dlunknown;
  30893. +
  30894. + if (self)
  30895. + {
  30896. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  30897. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  30898. + /* dlclose (self); */
  30899. + }
  30900. + else
  30901. + puts (dlerror ());
  30902. +
  30903. + return status;
  30904. +}]
  30905. +_LT_EOF
  30906. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  30907. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  30908. + lt_status=$?
  30909. + case x$lt_status in
  30910. + x$lt_dlno_uscore) $1 ;;
  30911. + x$lt_dlneed_uscore) $2 ;;
  30912. + x$lt_dlunknown|x*) $3 ;;
  30913. + esac
  30914. + else :
  30915. + # compilation failed
  30916. + $3
  30917. + fi
  30918. +fi
  30919. +rm -fr conftest*
  30920. +])# _LT_TRY_DLOPEN_SELF
  30921. +
  30922. +
  30923. +# LT_SYS_DLOPEN_SELF
  30924. +# ------------------
  30925. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  30926. +[m4_require([_LT_HEADER_DLFCN])dnl
  30927. +if test "x$enable_dlopen" != xyes; then
  30928. + enable_dlopen=unknown
  30929. + enable_dlopen_self=unknown
  30930. + enable_dlopen_self_static=unknown
  30931. +else
  30932. + lt_cv_dlopen=no
  30933. + lt_cv_dlopen_libs=
  30934. +
  30935. + case $host_os in
  30936. + beos*)
  30937. + lt_cv_dlopen="load_add_on"
  30938. + lt_cv_dlopen_libs=
  30939. + lt_cv_dlopen_self=yes
  30940. + ;;
  30941. +
  30942. + mingw* | pw32* | cegcc*)
  30943. + lt_cv_dlopen="LoadLibrary"
  30944. + lt_cv_dlopen_libs=
  30945. + ;;
  30946. +
  30947. + cygwin*)
  30948. + lt_cv_dlopen="dlopen"
  30949. + lt_cv_dlopen_libs=
  30950. + ;;
  30951. +
  30952. + darwin*)
  30953. + # if libdl is installed we need to link against it
  30954. + AC_CHECK_LIB([dl], [dlopen],
  30955. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  30956. + lt_cv_dlopen="dyld"
  30957. + lt_cv_dlopen_libs=
  30958. + lt_cv_dlopen_self=yes
  30959. + ])
  30960. + ;;
  30961. +
  30962. + *)
  30963. + AC_CHECK_FUNC([shl_load],
  30964. + [lt_cv_dlopen="shl_load"],
  30965. + [AC_CHECK_LIB([dld], [shl_load],
  30966. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  30967. + [AC_CHECK_FUNC([dlopen],
  30968. + [lt_cv_dlopen="dlopen"],
  30969. + [AC_CHECK_LIB([dl], [dlopen],
  30970. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  30971. + [AC_CHECK_LIB([svld], [dlopen],
  30972. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  30973. + [AC_CHECK_LIB([dld], [dld_link],
  30974. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  30975. + ])
  30976. + ])
  30977. + ])
  30978. + ])
  30979. + ])
  30980. + ;;
  30981. + esac
  30982. +
  30983. + if test "x$lt_cv_dlopen" != xno; then
  30984. + enable_dlopen=yes
  30985. + else
  30986. + enable_dlopen=no
  30987. + fi
  30988. +
  30989. + case $lt_cv_dlopen in
  30990. + dlopen)
  30991. + save_CPPFLAGS="$CPPFLAGS"
  30992. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  30993. +
  30994. + save_LDFLAGS="$LDFLAGS"
  30995. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  30996. +
  30997. + save_LIBS="$LIBS"
  30998. + LIBS="$lt_cv_dlopen_libs $LIBS"
  30999. +
  31000. + AC_CACHE_CHECK([whether a program can dlopen itself],
  31001. + lt_cv_dlopen_self, [dnl
  31002. + _LT_TRY_DLOPEN_SELF(
  31003. + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  31004. + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  31005. + ])
  31006. +
  31007. + if test "x$lt_cv_dlopen_self" = xyes; then
  31008. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  31009. + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  31010. + lt_cv_dlopen_self_static, [dnl
  31011. + _LT_TRY_DLOPEN_SELF(
  31012. + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  31013. + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  31014. + ])
  31015. + fi
  31016. +
  31017. + CPPFLAGS="$save_CPPFLAGS"
  31018. + LDFLAGS="$save_LDFLAGS"
  31019. + LIBS="$save_LIBS"
  31020. + ;;
  31021. + esac
  31022. +
  31023. + case $lt_cv_dlopen_self in
  31024. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  31025. + *) enable_dlopen_self=unknown ;;
  31026. + esac
  31027. +
  31028. + case $lt_cv_dlopen_self_static in
  31029. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  31030. + *) enable_dlopen_self_static=unknown ;;
  31031. + esac
  31032. +fi
  31033. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  31034. + [Whether dlopen is supported])
  31035. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  31036. + [Whether dlopen of programs is supported])
  31037. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  31038. + [Whether dlopen of statically linked programs is supported])
  31039. +])# LT_SYS_DLOPEN_SELF
  31040. +
  31041. +# Old name:
  31042. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  31043. +dnl aclocal-1.4 backwards compatibility:
  31044. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  31045. +
  31046. +
  31047. +# _LT_COMPILER_C_O([TAGNAME])
  31048. +# ---------------------------
  31049. +# Check to see if options -c and -o are simultaneously supported by compiler.
  31050. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  31051. +m4_defun([_LT_COMPILER_C_O],
  31052. +[m4_require([_LT_DECL_SED])dnl
  31053. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  31054. +m4_require([_LT_TAG_COMPILER])dnl
  31055. +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  31056. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  31057. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  31058. + $RM -r conftest 2>/dev/null
  31059. + mkdir conftest
  31060. + cd conftest
  31061. + mkdir out
  31062. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  31063. +
  31064. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  31065. + # Insert the option either (1) after the last *FLAGS variable, or
  31066. + # (2) before a word containing "conftest.", or (3) at the end.
  31067. + # Note that $ac_compile itself does not contain backslashes and begins
  31068. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  31069. + lt_compile=`echo "$ac_compile" | $SED \
  31070. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  31071. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  31072. + -e 's:$: $lt_compiler_flag:'`
  31073. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  31074. + (eval "$lt_compile" 2>out/conftest.err)
  31075. + ac_status=$?
  31076. + cat out/conftest.err >&AS_MESSAGE_LOG_FD
  31077. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  31078. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  31079. + then
  31080. + # The compiler can only warn and ignore the option if not recognized
  31081. + # So say no if there are warnings
  31082. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  31083. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  31084. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  31085. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  31086. + fi
  31087. + fi
  31088. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  31089. + $RM conftest*
  31090. + # SGI C++ compiler will create directory out/ii_files/ for
  31091. + # template instantiation
  31092. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  31093. + $RM out/* && rmdir out
  31094. + cd ..
  31095. + $RM -r conftest
  31096. + $RM conftest*
  31097. +])
  31098. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  31099. + [Does compiler simultaneously support -c and -o options?])
  31100. +])# _LT_COMPILER_C_O
  31101. +
  31102. +
  31103. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  31104. +# ----------------------------------
  31105. +# Check to see if we can do hard links to lock some files if needed
  31106. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  31107. +[m4_require([_LT_ENABLE_LOCK])dnl
  31108. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  31109. +_LT_COMPILER_C_O([$1])
  31110. +
  31111. +hard_links="nottested"
  31112. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  31113. + # do not overwrite the value of need_locks provided by the user
  31114. + AC_MSG_CHECKING([if we can lock with hard links])
  31115. + hard_links=yes
  31116. + $RM conftest*
  31117. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  31118. + touch conftest.a
  31119. + ln conftest.a conftest.b 2>&5 || hard_links=no
  31120. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  31121. + AC_MSG_RESULT([$hard_links])
  31122. + if test "$hard_links" = no; then
  31123. + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  31124. + need_locks=warn
  31125. + fi
  31126. +else
  31127. + need_locks=no
  31128. +fi
  31129. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  31130. +])# _LT_COMPILER_FILE_LOCKS
  31131. +
  31132. +
  31133. +# _LT_CHECK_OBJDIR
  31134. +# ----------------
  31135. +m4_defun([_LT_CHECK_OBJDIR],
  31136. +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  31137. +[rm -f .libs 2>/dev/null
  31138. +mkdir .libs 2>/dev/null
  31139. +if test -d .libs; then
  31140. + lt_cv_objdir=.libs
  31141. +else
  31142. + # MS-DOS does not allow filenames that begin with a dot.
  31143. + lt_cv_objdir=_libs
  31144. +fi
  31145. +rmdir .libs 2>/dev/null])
  31146. +objdir=$lt_cv_objdir
  31147. +_LT_DECL([], [objdir], [0],
  31148. + [The name of the directory that contains temporary libtool files])dnl
  31149. +m4_pattern_allow([LT_OBJDIR])dnl
  31150. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  31151. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  31152. +])# _LT_CHECK_OBJDIR
  31153. +
  31154. +
  31155. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  31156. +# --------------------------------------
  31157. +# Check hardcoding attributes.
  31158. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  31159. +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  31160. +_LT_TAGVAR(hardcode_action, $1)=
  31161. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  31162. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  31163. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  31164. +
  31165. + # We can hardcode non-existent directories.
  31166. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  31167. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  31168. + # have to relink, otherwise we might link with an installed library
  31169. + # when we should be linking with a yet-to-be-installed one
  31170. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  31171. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  31172. + # Linking always hardcodes the temporary library directory.
  31173. + _LT_TAGVAR(hardcode_action, $1)=relink
  31174. + else
  31175. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  31176. + _LT_TAGVAR(hardcode_action, $1)=immediate
  31177. + fi
  31178. +else
  31179. + # We cannot hardcode anything, or else we can only hardcode existing
  31180. + # directories.
  31181. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  31182. +fi
  31183. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  31184. +
  31185. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  31186. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  31187. + # Fast installation is not supported
  31188. + enable_fast_install=no
  31189. +elif test "$shlibpath_overrides_runpath" = yes ||
  31190. + test "$enable_shared" = no; then
  31191. + # Fast installation is not necessary
  31192. + enable_fast_install=needless
  31193. +fi
  31194. +_LT_TAGDECL([], [hardcode_action], [0],
  31195. + [How to hardcode a shared library path into an executable])
  31196. +])# _LT_LINKER_HARDCODE_LIBPATH
  31197. +
  31198. +
  31199. +# _LT_CMD_STRIPLIB
  31200. +# ----------------
  31201. +m4_defun([_LT_CMD_STRIPLIB],
  31202. +[m4_require([_LT_DECL_EGREP])
  31203. +striplib=
  31204. +old_striplib=
  31205. +AC_MSG_CHECKING([whether stripping libraries is possible])
  31206. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  31207. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  31208. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  31209. + AC_MSG_RESULT([yes])
  31210. +else
  31211. +# FIXME - insert some real tests, host_os isn't really good enough
  31212. + case $host_os in
  31213. + darwin*)
  31214. + if test -n "$STRIP" ; then
  31215. + striplib="$STRIP -x"
  31216. + old_striplib="$STRIP -S"
  31217. + AC_MSG_RESULT([yes])
  31218. + else
  31219. + AC_MSG_RESULT([no])
  31220. + fi
  31221. + ;;
  31222. + *)
  31223. + AC_MSG_RESULT([no])
  31224. + ;;
  31225. + esac
  31226. +fi
  31227. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  31228. +_LT_DECL([], [striplib], [1])
  31229. +])# _LT_CMD_STRIPLIB
  31230. +
  31231. +
  31232. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  31233. +# -----------------------------
  31234. +# PORTME Fill in your ld.so characteristics
  31235. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  31236. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  31237. +m4_require([_LT_DECL_EGREP])dnl
  31238. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  31239. +m4_require([_LT_DECL_OBJDUMP])dnl
  31240. +m4_require([_LT_DECL_SED])dnl
  31241. +AC_MSG_CHECKING([dynamic linker characteristics])
  31242. +m4_if([$1],
  31243. + [], [
  31244. +if test "$GCC" = yes; then
  31245. + case $host_os in
  31246. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  31247. + *) lt_awk_arg="/^libraries:/" ;;
  31248. + esac
  31249. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  31250. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  31251. + # if the path contains ";" then we assume it to be the separator
  31252. + # otherwise default to the standard path separator (i.e. ":") - it is
  31253. + # assumed that no part of a normal pathname contains ";" but that should
  31254. + # okay in the real world where ";" in dirpaths is itself problematic.
  31255. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  31256. + else
  31257. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  31258. + fi
  31259. + # Ok, now we have the path, separated by spaces, we can step through it
  31260. + # and add multilib dir if necessary.
  31261. + lt_tmp_lt_search_path_spec=
  31262. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  31263. + for lt_sys_path in $lt_search_path_spec; do
  31264. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  31265. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  31266. + else
  31267. + test -d "$lt_sys_path" && \
  31268. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  31269. + fi
  31270. + done
  31271. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  31272. +BEGIN {RS=" "; FS="/|\n";} {
  31273. + lt_foo="";
  31274. + lt_count=0;
  31275. + for (lt_i = NF; lt_i > 0; lt_i--) {
  31276. + if ($lt_i != "" && $lt_i != ".") {
  31277. + if ($lt_i == "..") {
  31278. + lt_count++;
  31279. + } else {
  31280. + if (lt_count == 0) {
  31281. + lt_foo="/" $lt_i lt_foo;
  31282. + } else {
  31283. + lt_count--;
  31284. + }
  31285. + }
  31286. + }
  31287. + }
  31288. + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  31289. + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  31290. +}'`
  31291. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  31292. +else
  31293. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  31294. +fi])
  31295. +library_names_spec=
  31296. +libname_spec='lib$name'
  31297. +soname_spec=
  31298. +shrext_cmds=".so"
  31299. +postinstall_cmds=
  31300. +postuninstall_cmds=
  31301. +finish_cmds=
  31302. +finish_eval=
  31303. +shlibpath_var=
  31304. +shlibpath_overrides_runpath=unknown
  31305. +version_type=none
  31306. +dynamic_linker="$host_os ld.so"
  31307. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  31308. +need_lib_prefix=unknown
  31309. +hardcode_into_libs=no
  31310. +
  31311. +# when you set need_version to no, make sure it does not cause -set_version
  31312. +# flags to be left without arguments
  31313. +need_version=unknown
  31314. +
  31315. +case $host_os in
  31316. +aix3*)
  31317. + version_type=linux
  31318. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  31319. + shlibpath_var=LIBPATH
  31320. +
  31321. + # AIX 3 has no versioning support, so we append a major version to the name.
  31322. + soname_spec='${libname}${release}${shared_ext}$major'
  31323. + ;;
  31324. +
  31325. +aix[[4-9]]*)
  31326. + version_type=linux
  31327. + need_lib_prefix=no
  31328. + need_version=no
  31329. + hardcode_into_libs=yes
  31330. + if test "$host_cpu" = ia64; then
  31331. + # AIX 5 supports IA64
  31332. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  31333. + shlibpath_var=LD_LIBRARY_PATH
  31334. + else
  31335. + # With GCC up to 2.95.x, collect2 would create an import file
  31336. + # for dependence libraries. The import file would start with
  31337. + # the line `#! .'. This would cause the generated library to
  31338. + # depend on `.', always an invalid library. This was fixed in
  31339. + # development snapshots of GCC prior to 3.0.
  31340. + case $host_os in
  31341. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  31342. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  31343. + echo ' yes '
  31344. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  31345. + :
  31346. + else
  31347. + can_build_shared=no
  31348. + fi
  31349. + ;;
  31350. + esac
  31351. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  31352. + # soname into executable. Probably we can add versioning support to
  31353. + # collect2, so additional links can be useful in future.
  31354. + if test "$aix_use_runtimelinking" = yes; then
  31355. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  31356. + # instead of lib<name>.a to let people know that these are not
  31357. + # typical AIX shared libraries.
  31358. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31359. + else
  31360. + # We preserve .a as extension for shared libraries through AIX4.2
  31361. + # and later when we are not doing run time linking.
  31362. + library_names_spec='${libname}${release}.a $libname.a'
  31363. + soname_spec='${libname}${release}${shared_ext}$major'
  31364. + fi
  31365. + shlibpath_var=LIBPATH
  31366. + fi
  31367. + ;;
  31368. +
  31369. +amigaos*)
  31370. + case $host_cpu in
  31371. + powerpc)
  31372. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  31373. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  31374. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31375. + ;;
  31376. + m68k)
  31377. + library_names_spec='$libname.ixlibrary $libname.a'
  31378. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  31379. + 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'
  31380. + ;;
  31381. + esac
  31382. + ;;
  31383. +
  31384. +beos*)
  31385. + library_names_spec='${libname}${shared_ext}'
  31386. + dynamic_linker="$host_os ld.so"
  31387. + shlibpath_var=LIBRARY_PATH
  31388. + ;;
  31389. +
  31390. +bsdi[[45]]*)
  31391. + version_type=linux
  31392. + need_version=no
  31393. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31394. + soname_spec='${libname}${release}${shared_ext}$major'
  31395. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  31396. + shlibpath_var=LD_LIBRARY_PATH
  31397. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  31398. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  31399. + # the default ld.so.conf also contains /usr/contrib/lib and
  31400. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  31401. + # libtool to hard-code these into programs
  31402. + ;;
  31403. +
  31404. +cygwin* | mingw* | pw32* | cegcc*)
  31405. + version_type=windows
  31406. + shrext_cmds=".dll"
  31407. + need_version=no
  31408. + need_lib_prefix=no
  31409. +
  31410. + case $GCC,$host_os in
  31411. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  31412. + library_names_spec='$libname.dll.a'
  31413. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  31414. + postinstall_cmds='base_file=`basename \${file}`~
  31415. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  31416. + dldir=$destdir/`dirname \$dlpath`~
  31417. + test -d \$dldir || mkdir -p \$dldir~
  31418. + $install_prog $dir/$dlname \$dldir/$dlname~
  31419. + chmod a+x \$dldir/$dlname~
  31420. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  31421. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  31422. + fi'
  31423. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  31424. + dlpath=$dir/\$dldll~
  31425. + $RM \$dlpath'
  31426. + shlibpath_overrides_runpath=yes
  31427. +
  31428. + case $host_os in
  31429. + cygwin*)
  31430. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  31431. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  31432. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  31433. + ;;
  31434. + mingw* | cegcc*)
  31435. + # MinGW DLLs use traditional 'lib' prefix
  31436. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  31437. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  31438. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  31439. + # It is most probably a Windows format PATH printed by
  31440. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  31441. + # path with ; separators, and with drive letters. We can handle the
  31442. + # drive letters (cygwin fileutils understands them), so leave them,
  31443. + # especially as we might pass files found there to a mingw objdump,
  31444. + # which wouldn't understand a cygwinified path. Ahh.
  31445. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  31446. + else
  31447. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  31448. + fi
  31449. + ;;
  31450. + pw32*)
  31451. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  31452. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  31453. + ;;
  31454. + esac
  31455. + ;;
  31456. +
  31457. + *)
  31458. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  31459. + ;;
  31460. + esac
  31461. + dynamic_linker='Win32 ld.exe'
  31462. + # FIXME: first we should search . and the directory the executable is in
  31463. + shlibpath_var=PATH
  31464. + ;;
  31465. +
  31466. +darwin* | rhapsody*)
  31467. + dynamic_linker="$host_os dyld"
  31468. + version_type=darwin
  31469. + need_lib_prefix=no
  31470. + need_version=no
  31471. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  31472. + soname_spec='${libname}${release}${major}$shared_ext'
  31473. + shlibpath_overrides_runpath=yes
  31474. + shlibpath_var=DYLD_LIBRARY_PATH
  31475. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  31476. +m4_if([$1], [],[
  31477. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  31478. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  31479. + ;;
  31480. +
  31481. +dgux*)
  31482. + version_type=linux
  31483. + need_lib_prefix=no
  31484. + need_version=no
  31485. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  31486. + soname_spec='${libname}${release}${shared_ext}$major'
  31487. + shlibpath_var=LD_LIBRARY_PATH
  31488. + ;;
  31489. +
  31490. +freebsd1*)
  31491. + dynamic_linker=no
  31492. + ;;
  31493. +
  31494. +freebsd* | dragonfly*)
  31495. + # DragonFly does not have aout. When/if they implement a new
  31496. + # versioning mechanism, adjust this.
  31497. + if test -x /usr/bin/objformat; then
  31498. + objformat=`/usr/bin/objformat`
  31499. + else
  31500. + case $host_os in
  31501. + freebsd[[123]]*) objformat=aout ;;
  31502. + *) objformat=elf ;;
  31503. + esac
  31504. + fi
  31505. + version_type=freebsd-$objformat
  31506. + case $version_type in
  31507. + freebsd-elf*)
  31508. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  31509. + need_version=no
  31510. + need_lib_prefix=no
  31511. + ;;
  31512. + freebsd-*)
  31513. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  31514. + need_version=yes
  31515. + ;;
  31516. + esac
  31517. + shlibpath_var=LD_LIBRARY_PATH
  31518. + case $host_os in
  31519. + freebsd2*)
  31520. + shlibpath_overrides_runpath=yes
  31521. + ;;
  31522. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  31523. + shlibpath_overrides_runpath=yes
  31524. + hardcode_into_libs=yes
  31525. + ;;
  31526. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  31527. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  31528. + shlibpath_overrides_runpath=no
  31529. + hardcode_into_libs=yes
  31530. + ;;
  31531. + *) # from 4.6 on, and DragonFly
  31532. + shlibpath_overrides_runpath=yes
  31533. + hardcode_into_libs=yes
  31534. + ;;
  31535. + esac
  31536. + ;;
  31537. +
  31538. +gnu*)
  31539. + version_type=linux
  31540. + need_lib_prefix=no
  31541. + need_version=no
  31542. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  31543. + soname_spec='${libname}${release}${shared_ext}$major'
  31544. + shlibpath_var=LD_LIBRARY_PATH
  31545. + hardcode_into_libs=yes
  31546. + ;;
  31547. +
  31548. +hpux9* | hpux10* | hpux11*)
  31549. + # Give a soname corresponding to the major version so that dld.sl refuses to
  31550. + # link against other versions.
  31551. + version_type=sunos
  31552. + need_lib_prefix=no
  31553. + need_version=no
  31554. + case $host_cpu in
  31555. + ia64*)
  31556. + shrext_cmds='.so'
  31557. + hardcode_into_libs=yes
  31558. + dynamic_linker="$host_os dld.so"
  31559. + shlibpath_var=LD_LIBRARY_PATH
  31560. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  31561. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31562. + soname_spec='${libname}${release}${shared_ext}$major'
  31563. + if test "X$HPUX_IA64_MODE" = X32; then
  31564. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  31565. + else
  31566. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  31567. + fi
  31568. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  31569. + ;;
  31570. + hppa*64*)
  31571. + shrext_cmds='.sl'
  31572. + hardcode_into_libs=yes
  31573. + dynamic_linker="$host_os dld.sl"
  31574. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  31575. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  31576. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31577. + soname_spec='${libname}${release}${shared_ext}$major'
  31578. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  31579. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  31580. + ;;
  31581. + *)
  31582. + shrext_cmds='.sl'
  31583. + dynamic_linker="$host_os dld.sl"
  31584. + shlibpath_var=SHLIB_PATH
  31585. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  31586. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31587. + soname_spec='${libname}${release}${shared_ext}$major'
  31588. + ;;
  31589. + esac
  31590. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  31591. + postinstall_cmds='chmod 555 $lib'
  31592. + ;;
  31593. +
  31594. +interix[[3-9]]*)
  31595. + version_type=linux
  31596. + need_lib_prefix=no
  31597. + need_version=no
  31598. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  31599. + soname_spec='${libname}${release}${shared_ext}$major'
  31600. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  31601. + shlibpath_var=LD_LIBRARY_PATH
  31602. + shlibpath_overrides_runpath=no
  31603. + hardcode_into_libs=yes
  31604. + ;;
  31605. +
  31606. +irix5* | irix6* | nonstopux*)
  31607. + case $host_os in
  31608. + nonstopux*) version_type=nonstopux ;;
  31609. + *)
  31610. + if test "$lt_cv_prog_gnu_ld" = yes; then
  31611. + version_type=linux
  31612. + else
  31613. + version_type=irix
  31614. + fi ;;
  31615. + esac
  31616. + need_lib_prefix=no
  31617. + need_version=no
  31618. + soname_spec='${libname}${release}${shared_ext}$major'
  31619. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  31620. + case $host_os in
  31621. + irix5* | nonstopux*)
  31622. + libsuff= shlibsuff=
  31623. + ;;
  31624. + *)
  31625. + case $LD in # libtool.m4 will add one of these switches to LD
  31626. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  31627. + libsuff= shlibsuff= libmagic=32-bit;;
  31628. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  31629. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  31630. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  31631. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  31632. + *) libsuff= shlibsuff= libmagic=never-match;;
  31633. + esac
  31634. + ;;
  31635. + esac
  31636. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  31637. + shlibpath_overrides_runpath=no
  31638. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  31639. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  31640. + hardcode_into_libs=yes
  31641. + ;;
  31642. +
  31643. +# No shared lib support for Linux oldld, aout, or coff.
  31644. +linux*oldld* | linux*aout* | linux*coff*)
  31645. + dynamic_linker=no
  31646. + ;;
  31647. +
  31648. +# This must be Linux ELF.
  31649. +linux* | k*bsd*-gnu)
  31650. + version_type=linux
  31651. + need_lib_prefix=no
  31652. + need_version=no
  31653. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31654. + soname_spec='${libname}${release}${shared_ext}$major'
  31655. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  31656. + shlibpath_var=LD_LIBRARY_PATH
  31657. + shlibpath_overrides_runpath=no
  31658. + # Some binutils ld are patched to set DT_RUNPATH
  31659. + save_LDFLAGS=$LDFLAGS
  31660. + save_libdir=$libdir
  31661. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  31662. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  31663. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  31664. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  31665. + [shlibpath_overrides_runpath=yes])])
  31666. + LDFLAGS=$save_LDFLAGS
  31667. + libdir=$save_libdir
  31668. +
  31669. + # This implies no fast_install, which is unacceptable.
  31670. + # Some rework will be needed to allow for fast_install
  31671. + # before this can be enabled.
  31672. + hardcode_into_libs=yes
  31673. +
  31674. + # Append ld.so.conf contents to the search path
  31675. + if test -f /etc/ld.so.conf; then
  31676. + 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' ' '`
  31677. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  31678. + fi
  31679. +
  31680. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  31681. + # powerpc, because MkLinux only supported shared libraries with the
  31682. + # GNU dynamic linker. Since this was broken with cross compilers,
  31683. + # most powerpc-linux boxes support dynamic linking these days and
  31684. + # people can always --disable-shared, the test was removed, and we
  31685. + # assume the GNU/Linux dynamic linker is in use.
  31686. + dynamic_linker='GNU/Linux ld.so'
  31687. + ;;
  31688. +
  31689. +netbsdelf*-gnu)
  31690. + version_type=linux
  31691. + need_lib_prefix=no
  31692. + need_version=no
  31693. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  31694. + soname_spec='${libname}${release}${shared_ext}$major'
  31695. + shlibpath_var=LD_LIBRARY_PATH
  31696. + shlibpath_overrides_runpath=no
  31697. + hardcode_into_libs=yes
  31698. + dynamic_linker='NetBSD ld.elf_so'
  31699. + ;;
  31700. +
  31701. +netbsd*)
  31702. + version_type=sunos
  31703. + need_lib_prefix=no
  31704. + need_version=no
  31705. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  31706. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  31707. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  31708. + dynamic_linker='NetBSD (a.out) ld.so'
  31709. + else
  31710. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  31711. + soname_spec='${libname}${release}${shared_ext}$major'
  31712. + dynamic_linker='NetBSD ld.elf_so'
  31713. + fi
  31714. + shlibpath_var=LD_LIBRARY_PATH
  31715. + shlibpath_overrides_runpath=yes
  31716. + hardcode_into_libs=yes
  31717. + ;;
  31718. +
  31719. +newsos6)
  31720. + version_type=linux
  31721. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31722. + shlibpath_var=LD_LIBRARY_PATH
  31723. + shlibpath_overrides_runpath=yes
  31724. + ;;
  31725. +
  31726. +*nto* | *qnx*)
  31727. + version_type=qnx
  31728. + need_lib_prefix=no
  31729. + need_version=no
  31730. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31731. + soname_spec='${libname}${release}${shared_ext}$major'
  31732. + shlibpath_var=LD_LIBRARY_PATH
  31733. + shlibpath_overrides_runpath=no
  31734. + hardcode_into_libs=yes
  31735. + dynamic_linker='ldqnx.so'
  31736. + ;;
  31737. +
  31738. +openbsd*)
  31739. + version_type=sunos
  31740. + sys_lib_dlsearch_path_spec="/usr/lib"
  31741. + need_lib_prefix=no
  31742. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  31743. + case $host_os in
  31744. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  31745. + *) need_version=no ;;
  31746. + esac
  31747. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  31748. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  31749. + shlibpath_var=LD_LIBRARY_PATH
  31750. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  31751. + case $host_os in
  31752. + openbsd2.[[89]] | openbsd2.[[89]].*)
  31753. + shlibpath_overrides_runpath=no
  31754. + ;;
  31755. + *)
  31756. + shlibpath_overrides_runpath=yes
  31757. + ;;
  31758. + esac
  31759. + else
  31760. + shlibpath_overrides_runpath=yes
  31761. + fi
  31762. + ;;
  31763. +
  31764. +os2*)
  31765. + libname_spec='$name'
  31766. + shrext_cmds=".dll"
  31767. + need_lib_prefix=no
  31768. + library_names_spec='$libname${shared_ext} $libname.a'
  31769. + dynamic_linker='OS/2 ld.exe'
  31770. + shlibpath_var=LIBPATH
  31771. + ;;
  31772. +
  31773. +osf3* | osf4* | osf5*)
  31774. + version_type=osf
  31775. + need_lib_prefix=no
  31776. + need_version=no
  31777. + soname_spec='${libname}${release}${shared_ext}$major'
  31778. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31779. + shlibpath_var=LD_LIBRARY_PATH
  31780. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  31781. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  31782. + ;;
  31783. +
  31784. +rdos*)
  31785. + dynamic_linker=no
  31786. + ;;
  31787. +
  31788. +solaris*)
  31789. + version_type=linux
  31790. + need_lib_prefix=no
  31791. + need_version=no
  31792. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31793. + soname_spec='${libname}${release}${shared_ext}$major'
  31794. + shlibpath_var=LD_LIBRARY_PATH
  31795. + shlibpath_overrides_runpath=yes
  31796. + hardcode_into_libs=yes
  31797. + # ldd complains unless libraries are executable
  31798. + postinstall_cmds='chmod +x $lib'
  31799. + ;;
  31800. +
  31801. +sunos4*)
  31802. + version_type=sunos
  31803. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  31804. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  31805. + shlibpath_var=LD_LIBRARY_PATH
  31806. + shlibpath_overrides_runpath=yes
  31807. + if test "$with_gnu_ld" = yes; then
  31808. + need_lib_prefix=no
  31809. + fi
  31810. + need_version=yes
  31811. + ;;
  31812. +
  31813. +sysv4 | sysv4.3*)
  31814. + version_type=linux
  31815. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31816. + soname_spec='${libname}${release}${shared_ext}$major'
  31817. + shlibpath_var=LD_LIBRARY_PATH
  31818. + case $host_vendor in
  31819. + sni)
  31820. + shlibpath_overrides_runpath=no
  31821. + need_lib_prefix=no
  31822. + runpath_var=LD_RUN_PATH
  31823. + ;;
  31824. + siemens)
  31825. + need_lib_prefix=no
  31826. + ;;
  31827. + motorola)
  31828. + need_lib_prefix=no
  31829. + need_version=no
  31830. + shlibpath_overrides_runpath=no
  31831. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  31832. + ;;
  31833. + esac
  31834. + ;;
  31835. +
  31836. +sysv4*MP*)
  31837. + if test -d /usr/nec ;then
  31838. + version_type=linux
  31839. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  31840. + soname_spec='$libname${shared_ext}.$major'
  31841. + shlibpath_var=LD_LIBRARY_PATH
  31842. + fi
  31843. + ;;
  31844. +
  31845. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  31846. + version_type=freebsd-elf
  31847. + need_lib_prefix=no
  31848. + need_version=no
  31849. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  31850. + soname_spec='${libname}${release}${shared_ext}$major'
  31851. + shlibpath_var=LD_LIBRARY_PATH
  31852. + shlibpath_overrides_runpath=yes
  31853. + hardcode_into_libs=yes
  31854. + if test "$with_gnu_ld" = yes; then
  31855. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  31856. + else
  31857. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  31858. + case $host_os in
  31859. + sco3.2v5*)
  31860. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  31861. + ;;
  31862. + esac
  31863. + fi
  31864. + sys_lib_dlsearch_path_spec='/usr/lib'
  31865. + ;;
  31866. +
  31867. +tpf*)
  31868. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  31869. + version_type=linux
  31870. + need_lib_prefix=no
  31871. + need_version=no
  31872. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31873. + shlibpath_var=LD_LIBRARY_PATH
  31874. + shlibpath_overrides_runpath=no
  31875. + hardcode_into_libs=yes
  31876. + ;;
  31877. +
  31878. +uts4*)
  31879. + version_type=linux
  31880. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31881. + soname_spec='${libname}${release}${shared_ext}$major'
  31882. + shlibpath_var=LD_LIBRARY_PATH
  31883. + ;;
  31884. +
  31885. +*)
  31886. + dynamic_linker=no
  31887. + ;;
  31888. +esac
  31889. +AC_MSG_RESULT([$dynamic_linker])
  31890. +test "$dynamic_linker" = no && can_build_shared=no
  31891. +
  31892. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  31893. +if test "$GCC" = yes; then
  31894. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  31895. +fi
  31896. +
  31897. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  31898. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  31899. +fi
  31900. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  31901. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  31902. +fi
  31903. +
  31904. +_LT_DECL([], [variables_saved_for_relink], [1],
  31905. + [Variables whose values should be saved in libtool wrapper scripts and
  31906. + restored at link time])
  31907. +_LT_DECL([], [need_lib_prefix], [0],
  31908. + [Do we need the "lib" prefix for modules?])
  31909. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  31910. +_LT_DECL([], [version_type], [0], [Library versioning type])
  31911. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  31912. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  31913. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  31914. + [Is shlibpath searched before the hard-coded library search path?])
  31915. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  31916. +_LT_DECL([], [library_names_spec], [1],
  31917. + [[List of archive names. First name is the real one, the rest are links.
  31918. + The last name is the one that the linker finds with -lNAME]])
  31919. +_LT_DECL([], [soname_spec], [1],
  31920. + [[The coded name of the library, if different from the real name]])
  31921. +_LT_DECL([], [postinstall_cmds], [2],
  31922. + [Command to use after installation of a shared archive])
  31923. +_LT_DECL([], [postuninstall_cmds], [2],
  31924. + [Command to use after uninstallation of a shared archive])
  31925. +_LT_DECL([], [finish_cmds], [2],
  31926. + [Commands used to finish a libtool library installation in a directory])
  31927. +_LT_DECL([], [finish_eval], [1],
  31928. + [[As "finish_cmds", except a single script fragment to be evaled but
  31929. + not shown]])
  31930. +_LT_DECL([], [hardcode_into_libs], [0],
  31931. + [Whether we should hardcode library paths into libraries])
  31932. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  31933. + [Compile-time system search path for libraries])
  31934. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  31935. + [Run-time system search path for libraries])
  31936. +])# _LT_SYS_DYNAMIC_LINKER
  31937. +
  31938. +
  31939. +# _LT_PATH_TOOL_PREFIX(TOOL)
  31940. +# --------------------------
  31941. +# find a file program which can recognize shared library
  31942. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  31943. +[m4_require([_LT_DECL_EGREP])dnl
  31944. +AC_MSG_CHECKING([for $1])
  31945. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  31946. +[case $MAGIC_CMD in
  31947. +[[\\/*] | ?:[\\/]*])
  31948. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  31949. + ;;
  31950. +*)
  31951. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  31952. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  31953. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  31954. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  31955. +dnl not every word. This closes a longstanding sh security hole.
  31956. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  31957. + for ac_dir in $ac_dummy; do
  31958. + IFS="$lt_save_ifs"
  31959. + test -z "$ac_dir" && ac_dir=.
  31960. + if test -f $ac_dir/$1; then
  31961. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  31962. + if test -n "$file_magic_test_file"; then
  31963. + case $deplibs_check_method in
  31964. + "file_magic "*)
  31965. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  31966. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  31967. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  31968. + $EGREP "$file_magic_regex" > /dev/null; then
  31969. + :
  31970. + else
  31971. + cat <<_LT_EOF 1>&2
  31972. +
  31973. +*** Warning: the command libtool uses to detect shared libraries,
  31974. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  31975. +*** The result is that libtool may fail to recognize shared libraries
  31976. +*** as such. This will affect the creation of libtool libraries that
  31977. +*** depend on shared libraries, but programs linked with such libtool
  31978. +*** libraries will work regardless of this problem. Nevertheless, you
  31979. +*** may want to report the problem to your system manager and/or to
  31980. +*** bug-libtool@gnu.org
  31981. +
  31982. +_LT_EOF
  31983. + fi ;;
  31984. + esac
  31985. + fi
  31986. + break
  31987. + fi
  31988. + done
  31989. + IFS="$lt_save_ifs"
  31990. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  31991. + ;;
  31992. +esac])
  31993. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  31994. +if test -n "$MAGIC_CMD"; then
  31995. + AC_MSG_RESULT($MAGIC_CMD)
  31996. +else
  31997. + AC_MSG_RESULT(no)
  31998. +fi
  31999. +_LT_DECL([], [MAGIC_CMD], [0],
  32000. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  32001. +])# _LT_PATH_TOOL_PREFIX
  32002. +
  32003. +# Old name:
  32004. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  32005. +dnl aclocal-1.4 backwards compatibility:
  32006. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  32007. +
  32008. +
  32009. +# _LT_PATH_MAGIC
  32010. +# --------------
  32011. +# find a file program which can recognize a shared library
  32012. +m4_defun([_LT_PATH_MAGIC],
  32013. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  32014. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  32015. + if test -n "$ac_tool_prefix"; then
  32016. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  32017. + else
  32018. + MAGIC_CMD=:
  32019. + fi
  32020. +fi
  32021. +])# _LT_PATH_MAGIC
  32022. +
  32023. +
  32024. +# LT_PATH_LD
  32025. +# ----------
  32026. +# find the pathname to the GNU or non-GNU linker
  32027. +AC_DEFUN([LT_PATH_LD],
  32028. +[AC_REQUIRE([AC_PROG_CC])dnl
  32029. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  32030. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  32031. +m4_require([_LT_DECL_SED])dnl
  32032. +m4_require([_LT_DECL_EGREP])dnl
  32033. +
  32034. +AC_ARG_WITH([gnu-ld],
  32035. + [AS_HELP_STRING([--with-gnu-ld],
  32036. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  32037. + [test "$withval" = no || with_gnu_ld=yes],
  32038. + [with_gnu_ld=no])dnl
  32039. +
  32040. +ac_prog=ld
  32041. +if test "$GCC" = yes; then
  32042. + # Check if gcc -print-prog-name=ld gives a path.
  32043. + AC_MSG_CHECKING([for ld used by $CC])
  32044. + case $host in
  32045. + *-*-mingw*)
  32046. + # gcc leaves a trailing carriage return which upsets mingw
  32047. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  32048. + *)
  32049. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  32050. + esac
  32051. + case $ac_prog in
  32052. + # Accept absolute paths.
  32053. + [[\\/]]* | ?:[[\\/]]*)
  32054. + re_direlt='/[[^/]][[^/]]*/\.\./'
  32055. + # Canonicalize the pathname of ld
  32056. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  32057. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  32058. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  32059. + done
  32060. + test -z "$LD" && LD="$ac_prog"
  32061. + ;;
  32062. + "")
  32063. + # If it fails, then pretend we aren't using GCC.
  32064. + ac_prog=ld
  32065. + ;;
  32066. + *)
  32067. + # If it is relative, then search for the first ld in PATH.
  32068. + with_gnu_ld=unknown
  32069. + ;;
  32070. + esac
  32071. +elif test "$with_gnu_ld" = yes; then
  32072. + AC_MSG_CHECKING([for GNU ld])
  32073. +else
  32074. + AC_MSG_CHECKING([for non-GNU ld])
  32075. +fi
  32076. +AC_CACHE_VAL(lt_cv_path_LD,
  32077. +[if test -z "$LD"; then
  32078. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  32079. + for ac_dir in $PATH; do
  32080. + IFS="$lt_save_ifs"
  32081. + test -z "$ac_dir" && ac_dir=.
  32082. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  32083. + lt_cv_path_LD="$ac_dir/$ac_prog"
  32084. + # Check to see if the program is GNU ld. I'd rather use --version,
  32085. + # but apparently some variants of GNU ld only accept -v.
  32086. + # Break only if it was the GNU/non-GNU ld that we prefer.
  32087. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  32088. + *GNU* | *'with BFD'*)
  32089. + test "$with_gnu_ld" != no && break
  32090. + ;;
  32091. + *)
  32092. + test "$with_gnu_ld" != yes && break
  32093. + ;;
  32094. + esac
  32095. + fi
  32096. + done
  32097. + IFS="$lt_save_ifs"
  32098. +else
  32099. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  32100. +fi])
  32101. +LD="$lt_cv_path_LD"
  32102. +if test -n "$LD"; then
  32103. + AC_MSG_RESULT($LD)
  32104. +else
  32105. + AC_MSG_RESULT(no)
  32106. +fi
  32107. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  32108. +_LT_PATH_LD_GNU
  32109. +AC_SUBST([LD])
  32110. +
  32111. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  32112. +])# LT_PATH_LD
  32113. +
  32114. +# Old names:
  32115. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  32116. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  32117. +dnl aclocal-1.4 backwards compatibility:
  32118. +dnl AC_DEFUN([AM_PROG_LD], [])
  32119. +dnl AC_DEFUN([AC_PROG_LD], [])
  32120. +
  32121. +
  32122. +# _LT_PATH_LD_GNU
  32123. +#- --------------
  32124. +m4_defun([_LT_PATH_LD_GNU],
  32125. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  32126. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  32127. +case `$LD -v 2>&1 </dev/null` in
  32128. +*GNU* | *'with BFD'*)
  32129. + lt_cv_prog_gnu_ld=yes
  32130. + ;;
  32131. +*)
  32132. + lt_cv_prog_gnu_ld=no
  32133. + ;;
  32134. +esac])
  32135. +with_gnu_ld=$lt_cv_prog_gnu_ld
  32136. +])# _LT_PATH_LD_GNU
  32137. +
  32138. +
  32139. +# _LT_CMD_RELOAD
  32140. +# --------------
  32141. +# find reload flag for linker
  32142. +# -- PORTME Some linkers may need a different reload flag.
  32143. +m4_defun([_LT_CMD_RELOAD],
  32144. +[AC_CACHE_CHECK([for $LD option to reload object files],
  32145. + lt_cv_ld_reload_flag,
  32146. + [lt_cv_ld_reload_flag='-r'])
  32147. +reload_flag=$lt_cv_ld_reload_flag
  32148. +case $reload_flag in
  32149. +"" | " "*) ;;
  32150. +*) reload_flag=" $reload_flag" ;;
  32151. +esac
  32152. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  32153. +case $host_os in
  32154. + darwin*)
  32155. + if test "$GCC" = yes; then
  32156. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  32157. + else
  32158. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  32159. + fi
  32160. + ;;
  32161. +esac
  32162. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  32163. +_LT_DECL([], [reload_cmds], [2])dnl
  32164. +])# _LT_CMD_RELOAD
  32165. +
  32166. +
  32167. +# _LT_CHECK_MAGIC_METHOD
  32168. +# ----------------------
  32169. +# how to check for library dependencies
  32170. +# -- PORTME fill in with the dynamic library characteristics
  32171. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  32172. +[m4_require([_LT_DECL_EGREP])
  32173. +m4_require([_LT_DECL_OBJDUMP])
  32174. +AC_CACHE_CHECK([how to recognize dependent libraries],
  32175. +lt_cv_deplibs_check_method,
  32176. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  32177. +lt_cv_file_magic_test_file=
  32178. +lt_cv_deplibs_check_method='unknown'
  32179. +# Need to set the preceding variable on all platforms that support
  32180. +# interlibrary dependencies.
  32181. +# 'none' -- dependencies not supported.
  32182. +# `unknown' -- same as none, but documents that we really don't know.
  32183. +# 'pass_all' -- all dependencies passed with no checks.
  32184. +# 'test_compile' -- check by making test program.
  32185. +# 'file_magic [[regex]]' -- check by looking for files in library path
  32186. +# which responds to the $file_magic_cmd with a given extended regex.
  32187. +# If you have `file' or equivalent on your system and you're not sure
  32188. +# whether `pass_all' will *always* work, you probably want this one.
  32189. +
  32190. +case $host_os in
  32191. +aix[[4-9]]*)
  32192. + lt_cv_deplibs_check_method=pass_all
  32193. + ;;
  32194. +
  32195. +beos*)
  32196. + lt_cv_deplibs_check_method=pass_all
  32197. + ;;
  32198. +
  32199. +bsdi[[45]]*)
  32200. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  32201. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  32202. + lt_cv_file_magic_test_file=/shlib/libc.so
  32203. + ;;
  32204. +
  32205. +cygwin*)
  32206. + # func_win32_libid is a shell function defined in ltmain.sh
  32207. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  32208. + lt_cv_file_magic_cmd='func_win32_libid'
  32209. + ;;
  32210. +
  32211. +mingw* | pw32*)
  32212. + # Base MSYS/MinGW do not provide the 'file' command needed by
  32213. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  32214. + # unless we find 'file', for example because we are cross-compiling.
  32215. + if ( file / ) >/dev/null 2>&1; then
  32216. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  32217. + lt_cv_file_magic_cmd='func_win32_libid'
  32218. + else
  32219. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  32220. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  32221. + fi
  32222. + ;;
  32223. +
  32224. +cegcc)
  32225. + # use the weaker test based on 'objdump'. See mingw*.
  32226. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  32227. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  32228. + ;;
  32229. +
  32230. +darwin* | rhapsody*)
  32231. + lt_cv_deplibs_check_method=pass_all
  32232. + ;;
  32233. +
  32234. +freebsd* | dragonfly*)
  32235. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  32236. + case $host_cpu in
  32237. + i*86 )
  32238. + # Not sure whether the presence of OpenBSD here was a mistake.
  32239. + # Let's accept both of them until this is cleared up.
  32240. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  32241. + lt_cv_file_magic_cmd=/usr/bin/file
  32242. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  32243. + ;;
  32244. + esac
  32245. + else
  32246. + lt_cv_deplibs_check_method=pass_all
  32247. + fi
  32248. + ;;
  32249. +
  32250. +gnu*)
  32251. + lt_cv_deplibs_check_method=pass_all
  32252. + ;;
  32253. +
  32254. +hpux10.20* | hpux11*)
  32255. + lt_cv_file_magic_cmd=/usr/bin/file
  32256. + case $host_cpu in
  32257. + ia64*)
  32258. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  32259. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  32260. + ;;
  32261. + hppa*64*)
  32262. + [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]']
  32263. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  32264. + ;;
  32265. + *)
  32266. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  32267. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  32268. + ;;
  32269. + esac
  32270. + ;;
  32271. +
  32272. +interix[[3-9]]*)
  32273. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  32274. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  32275. + ;;
  32276. +
  32277. +irix5* | irix6* | nonstopux*)
  32278. + case $LD in
  32279. + *-32|*"-32 ") libmagic=32-bit;;
  32280. + *-n32|*"-n32 ") libmagic=N32;;
  32281. + *-64|*"-64 ") libmagic=64-bit;;
  32282. + *) libmagic=never-match;;
  32283. + esac
  32284. + lt_cv_deplibs_check_method=pass_all
  32285. + ;;
  32286. +
  32287. +# This must be Linux ELF.
  32288. +linux* | k*bsd*-gnu)
  32289. + lt_cv_deplibs_check_method=pass_all
  32290. + ;;
  32291. +
  32292. +netbsd* | netbsdelf*-gnu)
  32293. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  32294. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  32295. + else
  32296. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  32297. + fi
  32298. + ;;
  32299. +
  32300. +newos6*)
  32301. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  32302. + lt_cv_file_magic_cmd=/usr/bin/file
  32303. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  32304. + ;;
  32305. +
  32306. +*nto* | *qnx*)
  32307. + lt_cv_deplibs_check_method=pass_all
  32308. + ;;
  32309. +
  32310. +openbsd*)
  32311. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  32312. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  32313. + else
  32314. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  32315. + fi
  32316. + ;;
  32317. +
  32318. +osf3* | osf4* | osf5*)
  32319. + lt_cv_deplibs_check_method=pass_all
  32320. + ;;
  32321. +
  32322. +rdos*)
  32323. + lt_cv_deplibs_check_method=pass_all
  32324. + ;;
  32325. +
  32326. +solaris*)
  32327. + lt_cv_deplibs_check_method=pass_all
  32328. + ;;
  32329. +
  32330. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  32331. + lt_cv_deplibs_check_method=pass_all
  32332. + ;;
  32333. +
  32334. +sysv4 | sysv4.3*)
  32335. + case $host_vendor in
  32336. + motorola)
  32337. + 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]]'
  32338. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  32339. + ;;
  32340. + ncr)
  32341. + lt_cv_deplibs_check_method=pass_all
  32342. + ;;
  32343. + sequent)
  32344. + lt_cv_file_magic_cmd='/bin/file'
  32345. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  32346. + ;;
  32347. + sni)
  32348. + lt_cv_file_magic_cmd='/bin/file'
  32349. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  32350. + lt_cv_file_magic_test_file=/lib/libc.so
  32351. + ;;
  32352. + siemens)
  32353. + lt_cv_deplibs_check_method=pass_all
  32354. + ;;
  32355. + pc)
  32356. + lt_cv_deplibs_check_method=pass_all
  32357. + ;;
  32358. + esac
  32359. + ;;
  32360. +
  32361. +tpf*)
  32362. + lt_cv_deplibs_check_method=pass_all
  32363. + ;;
  32364. +esac
  32365. +])
  32366. +file_magic_cmd=$lt_cv_file_magic_cmd
  32367. +deplibs_check_method=$lt_cv_deplibs_check_method
  32368. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  32369. +
  32370. +_LT_DECL([], [deplibs_check_method], [1],
  32371. + [Method to check whether dependent libraries are shared objects])
  32372. +_LT_DECL([], [file_magic_cmd], [1],
  32373. + [Command to use when deplibs_check_method == "file_magic"])
  32374. +])# _LT_CHECK_MAGIC_METHOD
  32375. +
  32376. +
  32377. +# LT_PATH_NM
  32378. +# ----------
  32379. +# find the pathname to a BSD- or MS-compatible name lister
  32380. +AC_DEFUN([LT_PATH_NM],
  32381. +[AC_REQUIRE([AC_PROG_CC])dnl
  32382. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  32383. +[if test -n "$NM"; then
  32384. + # Let the user override the test.
  32385. + lt_cv_path_NM="$NM"
  32386. +else
  32387. + lt_nm_to_check="${ac_tool_prefix}nm"
  32388. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  32389. + lt_nm_to_check="$lt_nm_to_check nm"
  32390. + fi
  32391. + for lt_tmp_nm in $lt_nm_to_check; do
  32392. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  32393. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  32394. + IFS="$lt_save_ifs"
  32395. + test -z "$ac_dir" && ac_dir=.
  32396. + tmp_nm="$ac_dir/$lt_tmp_nm"
  32397. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  32398. + # Check to see if the nm accepts a BSD-compat flag.
  32399. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  32400. + # nm: unknown option "B" ignored
  32401. + # Tru64's nm complains that /dev/null is an invalid object file
  32402. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  32403. + */dev/null* | *'Invalid file or object type'*)
  32404. + lt_cv_path_NM="$tmp_nm -B"
  32405. + break
  32406. + ;;
  32407. + *)
  32408. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  32409. + */dev/null*)
  32410. + lt_cv_path_NM="$tmp_nm -p"
  32411. + break
  32412. + ;;
  32413. + *)
  32414. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  32415. + continue # so that we can try to find one that supports BSD flags
  32416. + ;;
  32417. + esac
  32418. + ;;
  32419. + esac
  32420. + fi
  32421. + done
  32422. + IFS="$lt_save_ifs"
  32423. + done
  32424. + : ${lt_cv_path_NM=no}
  32425. +fi])
  32426. +if test "$lt_cv_path_NM" != "no"; then
  32427. + NM="$lt_cv_path_NM"
  32428. +else
  32429. + # Didn't find any BSD compatible name lister, look for dumpbin.
  32430. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  32431. + AC_SUBST([DUMPBIN])
  32432. + if test "$DUMPBIN" != ":"; then
  32433. + NM="$DUMPBIN"
  32434. + fi
  32435. +fi
  32436. +test -z "$NM" && NM=nm
  32437. +AC_SUBST([NM])
  32438. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  32439. +
  32440. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  32441. + [lt_cv_nm_interface="BSD nm"
  32442. + echo "int some_variable = 0;" > conftest.$ac_ext
  32443. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  32444. + (eval "$ac_compile" 2>conftest.err)
  32445. + cat conftest.err >&AS_MESSAGE_LOG_FD
  32446. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  32447. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  32448. + cat conftest.err >&AS_MESSAGE_LOG_FD
  32449. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  32450. + cat conftest.out >&AS_MESSAGE_LOG_FD
  32451. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  32452. + lt_cv_nm_interface="MS dumpbin"
  32453. + fi
  32454. + rm -f conftest*])
  32455. +])# LT_PATH_NM
  32456. +
  32457. +# Old names:
  32458. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  32459. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  32460. +dnl aclocal-1.4 backwards compatibility:
  32461. +dnl AC_DEFUN([AM_PROG_NM], [])
  32462. +dnl AC_DEFUN([AC_PROG_NM], [])
  32463. +
  32464. +
  32465. +# LT_LIB_M
  32466. +# --------
  32467. +# check for math library
  32468. +AC_DEFUN([LT_LIB_M],
  32469. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  32470. +LIBM=
  32471. +case $host in
  32472. +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  32473. + # These system don't have libm, or don't need it
  32474. + ;;
  32475. +*-ncr-sysv4.3*)
  32476. + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  32477. + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  32478. + ;;
  32479. +*)
  32480. + AC_CHECK_LIB(m, cos, LIBM="-lm")
  32481. + ;;
  32482. +esac
  32483. +AC_SUBST([LIBM])
  32484. +])# LT_LIB_M
  32485. +
  32486. +# Old name:
  32487. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  32488. +dnl aclocal-1.4 backwards compatibility:
  32489. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  32490. +
  32491. +
  32492. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  32493. +# -------------------------------
  32494. +m4_defun([_LT_COMPILER_NO_RTTI],
  32495. +[m4_require([_LT_TAG_COMPILER])dnl
  32496. +
  32497. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  32498. +
  32499. +if test "$GCC" = yes; then
  32500. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  32501. +
  32502. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  32503. + lt_cv_prog_compiler_rtti_exceptions,
  32504. + [-fno-rtti -fno-exceptions], [],
  32505. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  32506. +fi
  32507. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  32508. + [Compiler flag to turn off builtin functions])
  32509. +])# _LT_COMPILER_NO_RTTI
  32510. +
  32511. +
  32512. +# _LT_CMD_GLOBAL_SYMBOLS
  32513. +# ----------------------
  32514. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  32515. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  32516. +AC_REQUIRE([AC_PROG_CC])dnl
  32517. +AC_REQUIRE([LT_PATH_NM])dnl
  32518. +AC_REQUIRE([LT_PATH_LD])dnl
  32519. +m4_require([_LT_DECL_SED])dnl
  32520. +m4_require([_LT_DECL_EGREP])dnl
  32521. +m4_require([_LT_TAG_COMPILER])dnl
  32522. +
  32523. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  32524. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  32525. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  32526. +[
  32527. +# These are sane defaults that work on at least a few old systems.
  32528. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  32529. +
  32530. +# Character class describing NM global symbol codes.
  32531. +symcode='[[BCDEGRST]]'
  32532. +
  32533. +# Regexp to match symbols that can be accessed directly from C.
  32534. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  32535. +
  32536. +# Define system-specific variables.
  32537. +case $host_os in
  32538. +aix*)
  32539. + symcode='[[BCDT]]'
  32540. + ;;
  32541. +cygwin* | mingw* | pw32* | cegcc*)
  32542. + symcode='[[ABCDGISTW]]'
  32543. + ;;
  32544. +hpux*)
  32545. + if test "$host_cpu" = ia64; then
  32546. + symcode='[[ABCDEGRST]]'
  32547. + fi
  32548. + ;;
  32549. +irix* | nonstopux*)
  32550. + symcode='[[BCDEGRST]]'
  32551. + ;;
  32552. +osf*)
  32553. + symcode='[[BCDEGQRST]]'
  32554. + ;;
  32555. +solaris*)
  32556. + symcode='[[BDRT]]'
  32557. + ;;
  32558. +sco3.2v5*)
  32559. + symcode='[[DT]]'
  32560. + ;;
  32561. +sysv4.2uw2*)
  32562. + symcode='[[DT]]'
  32563. + ;;
  32564. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  32565. + symcode='[[ABDT]]'
  32566. + ;;
  32567. +sysv4)
  32568. + symcode='[[DFNSTU]]'
  32569. + ;;
  32570. +esac
  32571. +
  32572. +# If we're using GNU nm, then use its standard symbol codes.
  32573. +case `$NM -V 2>&1` in
  32574. +*GNU* | *'with BFD'*)
  32575. + symcode='[[ABCDGIRSTW]]' ;;
  32576. +esac
  32577. +
  32578. +# Transform an extracted symbol line into a proper C declaration.
  32579. +# Some systems (esp. on ia64) link data and code symbols differently,
  32580. +# so use this general approach.
  32581. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  32582. +
  32583. +# Transform an extracted symbol line into symbol name and symbol address
  32584. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  32585. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  32586. +
  32587. +# Handle CRLF in mingw tool chain
  32588. +opt_cr=
  32589. +case $build_os in
  32590. +mingw*)
  32591. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  32592. + ;;
  32593. +esac
  32594. +
  32595. +# Try without a prefix underscore, then with it.
  32596. +for ac_symprfx in "" "_"; do
  32597. +
  32598. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  32599. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  32600. +
  32601. + # Write the raw and C identifiers.
  32602. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  32603. + # Fake it for dumpbin and say T for any non-static function
  32604. + # and D for any global variable.
  32605. + # Also find C++ and __fastcall symbols from MSVC++,
  32606. + # which start with @ or ?.
  32607. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  32608. +" {last_section=section; section=\$ 3};"\
  32609. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  32610. +" \$ 0!~/External *\|/{next};"\
  32611. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  32612. +" {if(hide[section]) next};"\
  32613. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  32614. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  32615. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  32616. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  32617. +" ' prfx=^$ac_symprfx]"
  32618. + else
  32619. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  32620. + fi
  32621. +
  32622. + # Check to see that the pipe works correctly.
  32623. + pipe_works=no
  32624. +
  32625. + rm -f conftest*
  32626. + cat > conftest.$ac_ext <<_LT_EOF
  32627. +#ifdef __cplusplus
  32628. +extern "C" {
  32629. +#endif
  32630. +char nm_test_var;
  32631. +void nm_test_func(void);
  32632. +void nm_test_func(void){}
  32633. +#ifdef __cplusplus
  32634. +}
  32635. +#endif
  32636. +int main(){nm_test_var='a';nm_test_func();return(0);}
  32637. +_LT_EOF
  32638. +
  32639. + if AC_TRY_EVAL(ac_compile); then
  32640. + # Now try to grab the symbols.
  32641. + nlist=conftest.nm
  32642. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  32643. + # Try sorting and uniquifying the output.
  32644. + if sort "$nlist" | uniq > "$nlist"T; then
  32645. + mv -f "$nlist"T "$nlist"
  32646. + else
  32647. + rm -f "$nlist"T
  32648. + fi
  32649. +
  32650. + # Make sure that we snagged all the symbols we need.
  32651. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  32652. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  32653. + cat <<_LT_EOF > conftest.$ac_ext
  32654. +#ifdef __cplusplus
  32655. +extern "C" {
  32656. +#endif
  32657. +
  32658. +_LT_EOF
  32659. + # Now generate the symbol file.
  32660. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  32661. +
  32662. + cat <<_LT_EOF >> conftest.$ac_ext
  32663. +
  32664. +/* The mapping between symbol names and symbols. */
  32665. +const struct {
  32666. + const char *name;
  32667. + void *address;
  32668. +}
  32669. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  32670. +{
  32671. + { "@PROGRAM@", (void *) 0 },
  32672. +_LT_EOF
  32673. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  32674. + cat <<\_LT_EOF >> conftest.$ac_ext
  32675. + {0, (void *) 0}
  32676. +};
  32677. +
  32678. +/* This works around a problem in FreeBSD linker */
  32679. +#ifdef FREEBSD_WORKAROUND
  32680. +static const void *lt_preloaded_setup() {
  32681. + return lt__PROGRAM__LTX_preloaded_symbols;
  32682. +}
  32683. +#endif
  32684. +
  32685. +#ifdef __cplusplus
  32686. +}
  32687. +#endif
  32688. +_LT_EOF
  32689. + # Now try linking the two files.
  32690. + mv conftest.$ac_objext conftstm.$ac_objext
  32691. + lt_save_LIBS="$LIBS"
  32692. + lt_save_CFLAGS="$CFLAGS"
  32693. + LIBS="conftstm.$ac_objext"
  32694. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  32695. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  32696. + pipe_works=yes
  32697. + fi
  32698. + LIBS="$lt_save_LIBS"
  32699. + CFLAGS="$lt_save_CFLAGS"
  32700. + else
  32701. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  32702. + fi
  32703. + else
  32704. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  32705. + fi
  32706. + else
  32707. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  32708. + fi
  32709. + else
  32710. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  32711. + cat conftest.$ac_ext >&5
  32712. + fi
  32713. + rm -rf conftest* conftst*
  32714. +
  32715. + # Do not use the global_symbol_pipe unless it works.
  32716. + if test "$pipe_works" = yes; then
  32717. + break
  32718. + else
  32719. + lt_cv_sys_global_symbol_pipe=
  32720. + fi
  32721. +done
  32722. +])
  32723. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  32724. + lt_cv_sys_global_symbol_to_cdecl=
  32725. +fi
  32726. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  32727. + AC_MSG_RESULT(failed)
  32728. +else
  32729. + AC_MSG_RESULT(ok)
  32730. +fi
  32731. +
  32732. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  32733. + [Take the output of nm and produce a listing of raw symbols and C names])
  32734. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  32735. + [Transform the output of nm in a proper C declaration])
  32736. +_LT_DECL([global_symbol_to_c_name_address],
  32737. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  32738. + [Transform the output of nm in a C name address pair])
  32739. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  32740. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  32741. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  32742. +]) # _LT_CMD_GLOBAL_SYMBOLS
  32743. +
  32744. +
  32745. +# _LT_COMPILER_PIC([TAGNAME])
  32746. +# ---------------------------
  32747. +m4_defun([_LT_COMPILER_PIC],
  32748. +[m4_require([_LT_TAG_COMPILER])dnl
  32749. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  32750. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  32751. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  32752. +
  32753. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  32754. +m4_if([$1], [CXX], [
  32755. + # C++ specific cases for pic, static, wl, etc.
  32756. + if test "$GXX" = yes; then
  32757. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  32758. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  32759. +
  32760. + case $host_os in
  32761. + aix*)
  32762. + # All AIX code is PIC.
  32763. + if test "$host_cpu" = ia64; then
  32764. + # AIX 5 now supports IA64 processor
  32765. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  32766. + fi
  32767. + ;;
  32768. +
  32769. + amigaos*)
  32770. + case $host_cpu in
  32771. + powerpc)
  32772. + # see comment about AmigaOS4 .so support
  32773. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  32774. + ;;
  32775. + m68k)
  32776. + # FIXME: we need at least 68020 code to build shared libraries, but
  32777. + # adding the `-m68020' flag to GCC prevents building anything better,
  32778. + # like `-m68040'.
  32779. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  32780. + ;;
  32781. + esac
  32782. + ;;
  32783. +
  32784. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  32785. + # PIC is the default for these OSes.
  32786. + ;;
  32787. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  32788. + # This hack is so that the source file can tell whether it is being
  32789. + # built for inclusion in a dll (and should export symbols for example).
  32790. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  32791. + # (--disable-auto-import) libraries
  32792. + m4_if([$1], [GCJ], [],
  32793. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  32794. + ;;
  32795. + darwin* | rhapsody*)
  32796. + # PIC is the default on this platform
  32797. + # Common symbols not allowed in MH_DYLIB files
  32798. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  32799. + ;;
  32800. + *djgpp*)
  32801. + # DJGPP does not support shared libraries at all
  32802. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  32803. + ;;
  32804. + interix[[3-9]]*)
  32805. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  32806. + # Instead, we relocate shared libraries at runtime.
  32807. + ;;
  32808. + sysv4*MP*)
  32809. + if test -d /usr/nec; then
  32810. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  32811. + fi
  32812. + ;;
  32813. + hpux*)
  32814. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  32815. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  32816. + # sets the default TLS model and affects inlining.
  32817. + case $host_cpu in
  32818. + hppa*64*)
  32819. + ;;
  32820. + *)
  32821. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  32822. + ;;
  32823. + esac
  32824. + ;;
  32825. + *qnx* | *nto*)
  32826. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  32827. + # it will coredump.
  32828. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  32829. + ;;
  32830. + *)
  32831. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  32832. + ;;
  32833. + esac
  32834. + else
  32835. + case $host_os in
  32836. + aix[[4-9]]*)
  32837. + # All AIX code is PIC.
  32838. + if test "$host_cpu" = ia64; then
  32839. + # AIX 5 now supports IA64 processor
  32840. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  32841. + else
  32842. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  32843. + fi
  32844. + ;;
  32845. + chorus*)
  32846. + case $cc_basename in
  32847. + cxch68*)
  32848. + # Green Hills C++ Compiler
  32849. + # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  32850. + ;;
  32851. + esac
  32852. + ;;
  32853. + dgux*)
  32854. + case $cc_basename in
  32855. + ec++*)
  32856. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  32857. + ;;
  32858. + ghcx*)
  32859. + # Green Hills C++ Compiler
  32860. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  32861. + ;;
  32862. + *)
  32863. + ;;
  32864. + esac
  32865. + ;;
  32866. + freebsd* | dragonfly*)
  32867. + # FreeBSD uses GNU C++
  32868. + ;;
  32869. + hpux9* | hpux10* | hpux11*)
  32870. + case $cc_basename in
  32871. + CC*)
  32872. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  32873. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  32874. + if test "$host_cpu" != ia64; then
  32875. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  32876. + fi
  32877. + ;;
  32878. + aCC*)
  32879. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  32880. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  32881. + case $host_cpu in
  32882. + hppa*64*|ia64*)
  32883. + # +Z the default
  32884. + ;;
  32885. + *)
  32886. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  32887. + ;;
  32888. + esac
  32889. + ;;
  32890. + *)
  32891. + ;;
  32892. + esac
  32893. + ;;
  32894. + interix*)
  32895. + # This is c89, which is MS Visual C++ (no shared libs)
  32896. + # Anyone wants to do a port?
  32897. + ;;
  32898. + irix5* | irix6* | nonstopux*)
  32899. + case $cc_basename in
  32900. + CC*)
  32901. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  32902. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  32903. + # CC pic flag -KPIC is the default.
  32904. + ;;
  32905. + *)
  32906. + ;;
  32907. + esac
  32908. + ;;
  32909. + linux* | k*bsd*-gnu)
  32910. + case $cc_basename in
  32911. + KCC*)
  32912. + # KAI C++ Compiler
  32913. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  32914. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  32915. + ;;
  32916. + ecpc* )
  32917. + # old Intel C++ for x86_64 which still supported -KPIC.
  32918. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  32919. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  32920. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  32921. + ;;
  32922. + icpc* )
  32923. + # Intel C++, used to be incompatible with GCC.
  32924. + # ICC 10 doesn't accept -KPIC any more.
  32925. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  32926. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  32927. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  32928. + ;;
  32929. + pgCC* | pgcpp*)
  32930. + # Portland Group C++ compiler
  32931. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  32932. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  32933. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  32934. + ;;
  32935. + cxx*)
  32936. + # Compaq C++
  32937. + # Make sure the PIC flag is empty. It appears that all Alpha
  32938. + # Linux and Compaq Tru64 Unix objects are PIC.
  32939. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  32940. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  32941. + ;;
  32942. + xlc* | xlC*)
  32943. + # IBM XL 8.0 on PPC
  32944. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  32945. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  32946. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  32947. + ;;
  32948. + *)
  32949. + case `$CC -V 2>&1 | sed 5q` in
  32950. + *Sun\ C*)
  32951. + # Sun C++ 5.9
  32952. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  32953. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  32954. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  32955. + ;;
  32956. + esac
  32957. + ;;
  32958. + esac
  32959. + ;;
  32960. + lynxos*)
  32961. + ;;
  32962. + m88k*)
  32963. + ;;
  32964. + mvs*)
  32965. + case $cc_basename in
  32966. + cxx*)
  32967. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  32968. + ;;
  32969. + *)
  32970. + ;;
  32971. + esac
  32972. + ;;
  32973. + netbsd* | netbsdelf*-gnu)
  32974. + ;;
  32975. + *qnx* | *nto*)
  32976. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  32977. + # it will coredump.
  32978. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  32979. + ;;
  32980. + osf3* | osf4* | osf5*)
  32981. + case $cc_basename in
  32982. + KCC*)
  32983. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  32984. + ;;
  32985. + RCC*)
  32986. + # Rational C++ 2.4.1
  32987. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  32988. + ;;
  32989. + cxx*)
  32990. + # Digital/Compaq C++
  32991. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  32992. + # Make sure the PIC flag is empty. It appears that all Alpha
  32993. + # Linux and Compaq Tru64 Unix objects are PIC.
  32994. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  32995. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  32996. + ;;
  32997. + *)
  32998. + ;;
  32999. + esac
  33000. + ;;
  33001. + psos*)
  33002. + ;;
  33003. + solaris*)
  33004. + case $cc_basename in
  33005. + CC*)
  33006. + # Sun C++ 4.2, 5.x and Centerline C++
  33007. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  33008. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  33009. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  33010. + ;;
  33011. + gcx*)
  33012. + # Green Hills C++ Compiler
  33013. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  33014. + ;;
  33015. + *)
  33016. + ;;
  33017. + esac
  33018. + ;;
  33019. + sunos4*)
  33020. + case $cc_basename in
  33021. + CC*)
  33022. + # Sun C++ 4.x
  33023. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  33024. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  33025. + ;;
  33026. + lcc*)
  33027. + # Lucid
  33028. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  33029. + ;;
  33030. + *)
  33031. + ;;
  33032. + esac
  33033. + ;;
  33034. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  33035. + case $cc_basename in
  33036. + CC*)
  33037. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  33038. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  33039. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  33040. + ;;
  33041. + esac
  33042. + ;;
  33043. + tandem*)
  33044. + case $cc_basename in
  33045. + NCC*)
  33046. + # NonStop-UX NCC 3.20
  33047. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  33048. + ;;
  33049. + *)
  33050. + ;;
  33051. + esac
  33052. + ;;
  33053. + vxworks*)
  33054. + ;;
  33055. + *)
  33056. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  33057. + ;;
  33058. + esac
  33059. + fi
  33060. +],
  33061. +[
  33062. + if test "$GCC" = yes; then
  33063. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  33064. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  33065. +
  33066. + case $host_os in
  33067. + aix*)
  33068. + # All AIX code is PIC.
  33069. + if test "$host_cpu" = ia64; then
  33070. + # AIX 5 now supports IA64 processor
  33071. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  33072. + fi
  33073. + ;;
  33074. +
  33075. + amigaos*)
  33076. + case $host_cpu in
  33077. + powerpc)
  33078. + # see comment about AmigaOS4 .so support
  33079. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  33080. + ;;
  33081. + m68k)
  33082. + # FIXME: we need at least 68020 code to build shared libraries, but
  33083. + # adding the `-m68020' flag to GCC prevents building anything better,
  33084. + # like `-m68040'.
  33085. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  33086. + ;;
  33087. + esac
  33088. + ;;
  33089. +
  33090. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  33091. + # PIC is the default for these OSes.
  33092. + ;;
  33093. +
  33094. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  33095. + # This hack is so that the source file can tell whether it is being
  33096. + # built for inclusion in a dll (and should export symbols for example).
  33097. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  33098. + # (--disable-auto-import) libraries
  33099. + m4_if([$1], [GCJ], [],
  33100. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  33101. + ;;
  33102. +
  33103. + darwin* | rhapsody*)
  33104. + # PIC is the default on this platform
  33105. + # Common symbols not allowed in MH_DYLIB files
  33106. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  33107. + ;;
  33108. +
  33109. + hpux*)
  33110. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  33111. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  33112. + # sets the default TLS model and affects inlining.
  33113. + case $host_cpu in
  33114. + hppa*64*)
  33115. + # +Z the default
  33116. + ;;
  33117. + *)
  33118. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  33119. + ;;
  33120. + esac
  33121. + ;;
  33122. +
  33123. + interix[[3-9]]*)
  33124. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  33125. + # Instead, we relocate shared libraries at runtime.
  33126. + ;;
  33127. +
  33128. + msdosdjgpp*)
  33129. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  33130. + # on systems that don't support them.
  33131. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  33132. + enable_shared=no
  33133. + ;;
  33134. +
  33135. + *nto* | *qnx*)
  33136. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  33137. + # it will coredump.
  33138. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  33139. + ;;
  33140. +
  33141. + sysv4*MP*)
  33142. + if test -d /usr/nec; then
  33143. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  33144. + fi
  33145. + ;;
  33146. +
  33147. + *)
  33148. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  33149. + ;;
  33150. + esac
  33151. + else
  33152. + # PORTME Check for flag to pass linker flags through the system compiler.
  33153. + case $host_os in
  33154. + aix*)
  33155. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  33156. + if test "$host_cpu" = ia64; then
  33157. + # AIX 5 now supports IA64 processor
  33158. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  33159. + else
  33160. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  33161. + fi
  33162. + ;;
  33163. +
  33164. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  33165. + # This hack is so that the source file can tell whether it is being
  33166. + # built for inclusion in a dll (and should export symbols for example).
  33167. + m4_if([$1], [GCJ], [],
  33168. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  33169. + ;;
  33170. +
  33171. + hpux9* | hpux10* | hpux11*)
  33172. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  33173. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  33174. + # not for PA HP-UX.
  33175. + case $host_cpu in
  33176. + hppa*64*|ia64*)
  33177. + # +Z the default
  33178. + ;;
  33179. + *)
  33180. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  33181. + ;;
  33182. + esac
  33183. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  33184. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  33185. + ;;
  33186. +
  33187. + irix5* | irix6* | nonstopux*)
  33188. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  33189. + # PIC (with -KPIC) is the default.
  33190. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  33191. + ;;
  33192. +
  33193. + linux* | k*bsd*-gnu)
  33194. + case $cc_basename in
  33195. + # old Intel for x86_64 which still supported -KPIC.
  33196. + ecc*)
  33197. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  33198. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  33199. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  33200. + ;;
  33201. + # icc used to be incompatible with GCC.
  33202. + # ICC 10 doesn't accept -KPIC any more.
  33203. + icc* | ifort*)
  33204. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  33205. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  33206. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  33207. + ;;
  33208. + # Lahey Fortran 8.1.
  33209. + lf95*)
  33210. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  33211. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  33212. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  33213. + ;;
  33214. + pgcc* | pgf77* | pgf90* | pgf95*)
  33215. + # Portland Group compilers (*not* the Pentium gcc compiler,
  33216. + # which looks to be a dead project)
  33217. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  33218. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  33219. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  33220. + ;;
  33221. + ccc*)
  33222. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  33223. + # All Alpha code is PIC.
  33224. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  33225. + ;;
  33226. + xl*)
  33227. + # IBM XL C 8.0/Fortran 10.1 on PPC
  33228. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  33229. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  33230. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  33231. + ;;
  33232. + *)
  33233. + case `$CC -V 2>&1 | sed 5q` in
  33234. + *Sun\ C*)
  33235. + # Sun C 5.9
  33236. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  33237. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  33238. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  33239. + ;;
  33240. + *Sun\ F*)
  33241. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  33242. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  33243. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  33244. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  33245. + ;;
  33246. + esac
  33247. + ;;
  33248. + esac
  33249. + ;;
  33250. +
  33251. + newsos6)
  33252. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  33253. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  33254. + ;;
  33255. +
  33256. + *nto* | *qnx*)
  33257. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  33258. + # it will coredump.
  33259. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  33260. + ;;
  33261. +
  33262. + osf3* | osf4* | osf5*)
  33263. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  33264. + # All OSF/1 code is PIC.
  33265. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  33266. + ;;
  33267. +
  33268. + rdos*)
  33269. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  33270. + ;;
  33271. +
  33272. + solaris*)
  33273. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  33274. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  33275. + case $cc_basename in
  33276. + f77* | f90* | f95*)
  33277. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  33278. + *)
  33279. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  33280. + esac
  33281. + ;;
  33282. +
  33283. + sunos4*)
  33284. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  33285. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  33286. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  33287. + ;;
  33288. +
  33289. + sysv4 | sysv4.2uw2* | sysv4.3*)
  33290. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  33291. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  33292. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  33293. + ;;
  33294. +
  33295. + sysv4*MP*)
  33296. + if test -d /usr/nec ;then
  33297. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  33298. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  33299. + fi
  33300. + ;;
  33301. +
  33302. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  33303. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  33304. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  33305. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  33306. + ;;
  33307. +
  33308. + unicos*)
  33309. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  33310. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  33311. + ;;
  33312. +
  33313. + uts4*)
  33314. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  33315. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  33316. + ;;
  33317. +
  33318. + *)
  33319. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  33320. + ;;
  33321. + esac
  33322. + fi
  33323. +])
  33324. +case $host_os in
  33325. + # For platforms which do not support PIC, -DPIC is meaningless:
  33326. + *djgpp*)
  33327. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  33328. + ;;
  33329. + *)
  33330. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  33331. + ;;
  33332. +esac
  33333. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  33334. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  33335. + [How to pass a linker flag through the compiler])
  33336. +
  33337. +#
  33338. +# Check to make sure the PIC flag actually works.
  33339. +#
  33340. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  33341. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  33342. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  33343. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  33344. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  33345. + "" | " "*) ;;
  33346. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  33347. + esac],
  33348. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  33349. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  33350. +fi
  33351. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  33352. + [Additional compiler flags for building library objects])
  33353. +
  33354. +#
  33355. +# Check to make sure the static flag actually works.
  33356. +#
  33357. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  33358. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  33359. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  33360. + $lt_tmp_static_flag,
  33361. + [],
  33362. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  33363. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  33364. + [Compiler flag to prevent dynamic linking])
  33365. +])# _LT_COMPILER_PIC
  33366. +
  33367. +
  33368. +# _LT_LINKER_SHLIBS([TAGNAME])
  33369. +# ----------------------------
  33370. +# See if the linker supports building shared libraries.
  33371. +m4_defun([_LT_LINKER_SHLIBS],
  33372. +[AC_REQUIRE([LT_PATH_LD])dnl
  33373. +AC_REQUIRE([LT_PATH_NM])dnl
  33374. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  33375. +m4_require([_LT_DECL_EGREP])dnl
  33376. +m4_require([_LT_DECL_SED])dnl
  33377. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  33378. +m4_require([_LT_TAG_COMPILER])dnl
  33379. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  33380. +m4_if([$1], [CXX], [
  33381. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  33382. + case $host_os in
  33383. + aix[[4-9]]*)
  33384. + # If we're using GNU nm, then we don't want the "-C" option.
  33385. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  33386. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  33387. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  33388. + else
  33389. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  33390. + fi
  33391. + ;;
  33392. + pw32*)
  33393. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  33394. + ;;
  33395. + cygwin* | mingw* | cegcc*)
  33396. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  33397. + ;;
  33398. + linux* | k*bsd*-gnu)
  33399. + _LT_TAGVAR(link_all_deplibs, $1)=no
  33400. + ;;
  33401. + *)
  33402. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  33403. + ;;
  33404. + esac
  33405. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  33406. +], [
  33407. + runpath_var=
  33408. + _LT_TAGVAR(allow_undefined_flag, $1)=
  33409. + _LT_TAGVAR(always_export_symbols, $1)=no
  33410. + _LT_TAGVAR(archive_cmds, $1)=
  33411. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  33412. + _LT_TAGVAR(compiler_needs_object, $1)=no
  33413. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  33414. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  33415. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  33416. + _LT_TAGVAR(hardcode_automatic, $1)=no
  33417. + _LT_TAGVAR(hardcode_direct, $1)=no
  33418. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  33419. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  33420. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  33421. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  33422. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  33423. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  33424. + _LT_TAGVAR(inherit_rpath, $1)=no
  33425. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  33426. + _LT_TAGVAR(module_cmds, $1)=
  33427. + _LT_TAGVAR(module_expsym_cmds, $1)=
  33428. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  33429. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  33430. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  33431. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  33432. + # include_expsyms should be a list of space-separated symbols to be *always*
  33433. + # included in the symbol list
  33434. + _LT_TAGVAR(include_expsyms, $1)=
  33435. + # exclude_expsyms can be an extended regexp of symbols to exclude
  33436. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  33437. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  33438. + # as well as any symbol that contains `d'.
  33439. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  33440. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  33441. + # platforms (ab)use it in PIC code, but their linkers get confused if
  33442. + # the symbol is explicitly referenced. Since portable code cannot
  33443. + # rely on this symbol name, it's probably fine to never include it in
  33444. + # preloaded symbol tables.
  33445. + # Exclude shared library initialization/finalization symbols.
  33446. +dnl Note also adjust exclude_expsyms for C++ above.
  33447. + extract_expsyms_cmds=
  33448. +
  33449. + case $host_os in
  33450. + cygwin* | mingw* | pw32* | cegcc*)
  33451. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  33452. + # When not using gcc, we currently assume that we are using
  33453. + # Microsoft Visual C++.
  33454. + if test "$GCC" != yes; then
  33455. + with_gnu_ld=no
  33456. + fi
  33457. + ;;
  33458. + interix*)
  33459. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  33460. + with_gnu_ld=yes
  33461. + ;;
  33462. + openbsd*)
  33463. + with_gnu_ld=no
  33464. + ;;
  33465. + linux* | k*bsd*-gnu)
  33466. + _LT_TAGVAR(link_all_deplibs, $1)=no
  33467. + ;;
  33468. + esac
  33469. +
  33470. + _LT_TAGVAR(ld_shlibs, $1)=yes
  33471. + if test "$with_gnu_ld" = yes; then
  33472. + # If archive_cmds runs LD, not CC, wlarc should be empty
  33473. + wlarc='${wl}'
  33474. +
  33475. + # Set some defaults for GNU ld with shared library support. These
  33476. + # are reset later if shared libraries are not supported. Putting them
  33477. + # here allows them to be overridden if necessary.
  33478. + runpath_var=LD_RUN_PATH
  33479. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  33480. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  33481. + # ancient GNU ld didn't support --whole-archive et. al.
  33482. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  33483. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  33484. + else
  33485. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  33486. + fi
  33487. + supports_anon_versioning=no
  33488. + case `$LD -v 2>&1` in
  33489. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  33490. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  33491. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  33492. + *\ 2.11.*) ;; # other 2.11 versions
  33493. + *) supports_anon_versioning=yes ;;
  33494. + esac
  33495. +
  33496. + # See if GNU ld supports shared libraries.
  33497. + case $host_os in
  33498. + aix[[3-9]]*)
  33499. + # On AIX/PPC, the GNU linker is very broken
  33500. + if test "$host_cpu" != ia64; then
  33501. + _LT_TAGVAR(ld_shlibs, $1)=no
  33502. + cat <<_LT_EOF 1>&2
  33503. +
  33504. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  33505. +*** to be unable to reliably create shared libraries on AIX.
  33506. +*** Therefore, libtool is disabling shared libraries support. If you
  33507. +*** really care for shared libraries, you may want to modify your PATH
  33508. +*** so that a non-GNU linker is found, and then restart.
  33509. +
  33510. +_LT_EOF
  33511. + fi
  33512. + ;;
  33513. +
  33514. + amigaos*)
  33515. + case $host_cpu in
  33516. + powerpc)
  33517. + # see comment about AmigaOS4 .so support
  33518. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33519. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  33520. + ;;
  33521. + m68k)
  33522. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  33523. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  33524. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  33525. + ;;
  33526. + esac
  33527. + ;;
  33528. +
  33529. + beos*)
  33530. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  33531. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  33532. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  33533. + # support --undefined. This deserves some investigation. FIXME
  33534. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33535. + else
  33536. + _LT_TAGVAR(ld_shlibs, $1)=no
  33537. + fi
  33538. + ;;
  33539. +
  33540. + cygwin* | mingw* | pw32* | cegcc*)
  33541. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  33542. + # as there is no search path for DLLs.
  33543. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  33544. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  33545. + _LT_TAGVAR(always_export_symbols, $1)=no
  33546. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  33547. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  33548. +
  33549. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  33550. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  33551. + # If the export-symbols file already is a .def file (1st line
  33552. + # is EXPORTS), use it as is; otherwise, prepend...
  33553. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  33554. + cp $export_symbols $output_objdir/$soname.def;
  33555. + else
  33556. + echo EXPORTS > $output_objdir/$soname.def;
  33557. + cat $export_symbols >> $output_objdir/$soname.def;
  33558. + fi~
  33559. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  33560. + else
  33561. + _LT_TAGVAR(ld_shlibs, $1)=no
  33562. + fi
  33563. + ;;
  33564. +
  33565. + interix[[3-9]]*)
  33566. + _LT_TAGVAR(hardcode_direct, $1)=no
  33567. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  33568. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  33569. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  33570. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  33571. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  33572. + # default) and relocated if they conflict, which is a slow very memory
  33573. + # consuming and fragmenting process. To avoid this, we pick a random,
  33574. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  33575. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  33576. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  33577. + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  33578. + ;;
  33579. +
  33580. + gnu* | linux* | tpf* | k*bsd*-gnu)
  33581. + tmp_diet=no
  33582. + if test "$host_os" = linux-dietlibc; then
  33583. + case $cc_basename in
  33584. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  33585. + esac
  33586. + fi
  33587. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  33588. + && test "$tmp_diet" = no
  33589. + then
  33590. + tmp_addflag=
  33591. + tmp_sharedflag='-shared'
  33592. + case $cc_basename,$host_cpu in
  33593. + pgcc*) # Portland Group C compiler
  33594. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  33595. + tmp_addflag=' $pic_flag'
  33596. + ;;
  33597. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  33598. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  33599. + tmp_addflag=' $pic_flag -Mnomain' ;;
  33600. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  33601. + tmp_addflag=' -i_dynamic' ;;
  33602. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  33603. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  33604. + ifc* | ifort*) # Intel Fortran compiler
  33605. + tmp_addflag=' -nofor_main' ;;
  33606. + lf95*) # Lahey Fortran 8.1
  33607. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  33608. + tmp_sharedflag='--shared' ;;
  33609. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  33610. + tmp_sharedflag='-qmkshrobj'
  33611. + tmp_addflag= ;;
  33612. + esac
  33613. + case `$CC -V 2>&1 | sed 5q` in
  33614. + *Sun\ C*) # Sun C 5.9
  33615. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  33616. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  33617. + tmp_sharedflag='-G' ;;
  33618. + *Sun\ F*) # Sun Fortran 8.3
  33619. + tmp_sharedflag='-G' ;;
  33620. + esac
  33621. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33622. +
  33623. + if test "x$supports_anon_versioning" = xyes; then
  33624. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  33625. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  33626. + echo "local: *; };" >> $output_objdir/$libname.ver~
  33627. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  33628. + fi
  33629. +
  33630. + case $cc_basename in
  33631. + xlf*)
  33632. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  33633. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  33634. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  33635. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  33636. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  33637. + if test "x$supports_anon_versioning" = xyes; then
  33638. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  33639. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  33640. + echo "local: *; };" >> $output_objdir/$libname.ver~
  33641. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  33642. + fi
  33643. + ;;
  33644. + esac
  33645. + else
  33646. + _LT_TAGVAR(ld_shlibs, $1)=no
  33647. + fi
  33648. + ;;
  33649. +
  33650. + netbsd* | netbsdelf*-gnu)
  33651. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  33652. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  33653. + wlarc=
  33654. + else
  33655. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33656. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  33657. + fi
  33658. + ;;
  33659. +
  33660. + solaris*)
  33661. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  33662. + _LT_TAGVAR(ld_shlibs, $1)=no
  33663. + cat <<_LT_EOF 1>&2
  33664. +
  33665. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  33666. +*** create shared libraries on Solaris systems. Therefore, libtool
  33667. +*** is disabling shared libraries support. We urge you to upgrade GNU
  33668. +*** binutils to release 2.9.1 or newer. Another option is to modify
  33669. +*** your PATH or compiler configuration so that the native linker is
  33670. +*** used, and then restart.
  33671. +
  33672. +_LT_EOF
  33673. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  33674. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33675. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  33676. + else
  33677. + _LT_TAGVAR(ld_shlibs, $1)=no
  33678. + fi
  33679. + ;;
  33680. +
  33681. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  33682. + case `$LD -v 2>&1` in
  33683. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  33684. + _LT_TAGVAR(ld_shlibs, $1)=no
  33685. + cat <<_LT_EOF 1>&2
  33686. +
  33687. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  33688. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  33689. +*** is disabling shared libraries support. We urge you to upgrade GNU
  33690. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  33691. +*** your PATH or compiler configuration so that the native linker is
  33692. +*** used, and then restart.
  33693. +
  33694. +_LT_EOF
  33695. + ;;
  33696. + *)
  33697. + # For security reasons, it is highly recommended that you always
  33698. + # use absolute paths for naming shared libraries, and exclude the
  33699. + # DT_RUNPATH tag from executables and libraries. But doing so
  33700. + # requires that you compile everything twice, which is a pain.
  33701. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  33702. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  33703. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33704. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  33705. + else
  33706. + _LT_TAGVAR(ld_shlibs, $1)=no
  33707. + fi
  33708. + ;;
  33709. + esac
  33710. + ;;
  33711. +
  33712. + sunos4*)
  33713. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  33714. + wlarc=
  33715. + _LT_TAGVAR(hardcode_direct, $1)=yes
  33716. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  33717. + ;;
  33718. +
  33719. + *)
  33720. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  33721. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33722. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  33723. + else
  33724. + _LT_TAGVAR(ld_shlibs, $1)=no
  33725. + fi
  33726. + ;;
  33727. + esac
  33728. +
  33729. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  33730. + runpath_var=
  33731. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  33732. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  33733. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  33734. + fi
  33735. + else
  33736. + # PORTME fill in a description of your system's linker (not GNU ld)
  33737. + case $host_os in
  33738. + aix3*)
  33739. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  33740. + _LT_TAGVAR(always_export_symbols, $1)=yes
  33741. + _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  33742. + # Note: this linker hardcodes the directories in LIBPATH if there
  33743. + # are no directories specified by -L.
  33744. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  33745. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  33746. + # Neither direct hardcoding nor static linking is supported with a
  33747. + # broken collect2.
  33748. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  33749. + fi
  33750. + ;;
  33751. +
  33752. + aix[[4-9]]*)
  33753. + if test "$host_cpu" = ia64; then
  33754. + # On IA64, the linker does run time linking by default, so we don't
  33755. + # have to do anything special.
  33756. + aix_use_runtimelinking=no
  33757. + exp_sym_flag='-Bexport'
  33758. + no_entry_flag=""
  33759. + else
  33760. + # If we're using GNU nm, then we don't want the "-C" option.
  33761. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  33762. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  33763. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  33764. + else
  33765. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  33766. + fi
  33767. + aix_use_runtimelinking=no
  33768. +
  33769. + # Test if we are trying to use run time linking or normal
  33770. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  33771. + # need to do runtime linking.
  33772. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  33773. + for ld_flag in $LDFLAGS; do
  33774. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  33775. + aix_use_runtimelinking=yes
  33776. + break
  33777. + fi
  33778. + done
  33779. + ;;
  33780. + esac
  33781. +
  33782. + exp_sym_flag='-bexport'
  33783. + no_entry_flag='-bnoentry'
  33784. + fi
  33785. +
  33786. + # When large executables or shared objects are built, AIX ld can
  33787. + # have problems creating the table of contents. If linking a library
  33788. + # or program results in "error TOC overflow" add -mminimal-toc to
  33789. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  33790. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  33791. +
  33792. + _LT_TAGVAR(archive_cmds, $1)=''
  33793. + _LT_TAGVAR(hardcode_direct, $1)=yes
  33794. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  33795. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  33796. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  33797. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  33798. +
  33799. + if test "$GCC" = yes; then
  33800. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  33801. + # We only want to do this on AIX 4.2 and lower, the check
  33802. + # below for broken collect2 doesn't work under 4.3+
  33803. + collect2name=`${CC} -print-prog-name=collect2`
  33804. + if test -f "$collect2name" &&
  33805. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  33806. + then
  33807. + # We have reworked collect2
  33808. + :
  33809. + else
  33810. + # We have old collect2
  33811. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  33812. + # It fails to find uninstalled libraries when the uninstalled
  33813. + # path is not listed in the libpath. Setting hardcode_minus_L
  33814. + # to unsupported forces relinking
  33815. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  33816. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  33817. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  33818. + fi
  33819. + ;;
  33820. + esac
  33821. + shared_flag='-shared'
  33822. + if test "$aix_use_runtimelinking" = yes; then
  33823. + shared_flag="$shared_flag "'${wl}-G'
  33824. + fi
  33825. + _LT_TAGVAR(link_all_deplibs, $1)=no
  33826. + else
  33827. + # not using gcc
  33828. + if test "$host_cpu" = ia64; then
  33829. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  33830. + # chokes on -Wl,-G. The following line is correct:
  33831. + shared_flag='-G'
  33832. + else
  33833. + if test "$aix_use_runtimelinking" = yes; then
  33834. + shared_flag='${wl}-G'
  33835. + else
  33836. + shared_flag='${wl}-bM:SRE'
  33837. + fi
  33838. + fi
  33839. + fi
  33840. +
  33841. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  33842. + # It seems that -bexpall does not export symbols beginning with
  33843. + # underscore (_), so it is better to generate a list of symbols to export.
  33844. + _LT_TAGVAR(always_export_symbols, $1)=yes
  33845. + if test "$aix_use_runtimelinking" = yes; then
  33846. + # Warning - without using the other runtime loading flags (-brtl),
  33847. + # -berok will link without error, but may produce a broken library.
  33848. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  33849. + # Determine the default libpath from the value encoded in an
  33850. + # empty executable.
  33851. + _LT_SYS_MODULE_PATH_AIX
  33852. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  33853. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  33854. + else
  33855. + if test "$host_cpu" = ia64; then
  33856. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  33857. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  33858. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  33859. + else
  33860. + # Determine the default libpath from the value encoded in an
  33861. + # empty executable.
  33862. + _LT_SYS_MODULE_PATH_AIX
  33863. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  33864. + # Warning - without using the other run time loading flags,
  33865. + # -berok will link without error, but may produce a broken library.
  33866. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  33867. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  33868. + # Exported symbols can be pulled into shared objects from archives
  33869. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  33870. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  33871. + # This is similar to how AIX traditionally builds its shared libraries.
  33872. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  33873. + fi
  33874. + fi
  33875. + ;;
  33876. +
  33877. + amigaos*)
  33878. + case $host_cpu in
  33879. + powerpc)
  33880. + # see comment about AmigaOS4 .so support
  33881. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33882. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  33883. + ;;
  33884. + m68k)
  33885. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  33886. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  33887. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  33888. + ;;
  33889. + esac
  33890. + ;;
  33891. +
  33892. + bsdi[[45]]*)
  33893. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  33894. + ;;
  33895. +
  33896. + cygwin* | mingw* | pw32* | cegcc*)
  33897. + # When not using gcc, we currently assume that we are using
  33898. + # Microsoft Visual C++.
  33899. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  33900. + # no search path for DLLs.
  33901. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  33902. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  33903. + # Tell ltmain to make .lib files, not .a files.
  33904. + libext=lib
  33905. + # Tell ltmain to make .dll files, not .so files.
  33906. + shrext_cmds=".dll"
  33907. + # FIXME: Setting linknames here is a bad hack.
  33908. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  33909. + # The linker will automatically build a .lib file if we build a DLL.
  33910. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  33911. + # FIXME: Should let the user specify the lib program.
  33912. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  33913. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  33914. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  33915. + ;;
  33916. +
  33917. + darwin* | rhapsody*)
  33918. + _LT_DARWIN_LINKER_FEATURES($1)
  33919. + ;;
  33920. +
  33921. + dgux*)
  33922. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  33923. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  33924. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  33925. + ;;
  33926. +
  33927. + freebsd1*)
  33928. + _LT_TAGVAR(ld_shlibs, $1)=no
  33929. + ;;
  33930. +
  33931. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  33932. + # support. Future versions do this automatically, but an explicit c++rt0.o
  33933. + # does not break anything, and helps significantly (at the cost of a little
  33934. + # extra space).
  33935. + freebsd2.2*)
  33936. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  33937. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  33938. + _LT_TAGVAR(hardcode_direct, $1)=yes
  33939. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  33940. + ;;
  33941. +
  33942. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  33943. + freebsd2*)
  33944. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  33945. + _LT_TAGVAR(hardcode_direct, $1)=yes
  33946. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  33947. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  33948. + ;;
  33949. +
  33950. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  33951. + freebsd* | dragonfly*)
  33952. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  33953. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  33954. + _LT_TAGVAR(hardcode_direct, $1)=yes
  33955. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  33956. + ;;
  33957. +
  33958. + hpux9*)
  33959. + if test "$GCC" = yes; then
  33960. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  33961. + else
  33962. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  33963. + fi
  33964. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  33965. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  33966. + _LT_TAGVAR(hardcode_direct, $1)=yes
  33967. +
  33968. + # hardcode_minus_L: Not really in the search PATH,
  33969. + # but as the default location of the library.
  33970. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  33971. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  33972. + ;;
  33973. +
  33974. + hpux10*)
  33975. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  33976. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  33977. + else
  33978. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  33979. + fi
  33980. + if test "$with_gnu_ld" = no; then
  33981. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  33982. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  33983. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  33984. + _LT_TAGVAR(hardcode_direct, $1)=yes
  33985. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  33986. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  33987. + # hardcode_minus_L: Not really in the search PATH,
  33988. + # but as the default location of the library.
  33989. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  33990. + fi
  33991. + ;;
  33992. +
  33993. + hpux11*)
  33994. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  33995. + case $host_cpu in
  33996. + hppa*64*)
  33997. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  33998. + ;;
  33999. + ia64*)
  34000. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  34001. + ;;
  34002. + *)
  34003. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  34004. + ;;
  34005. + esac
  34006. + else
  34007. + case $host_cpu in
  34008. + hppa*64*)
  34009. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  34010. + ;;
  34011. + ia64*)
  34012. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  34013. + ;;
  34014. + *)
  34015. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  34016. + ;;
  34017. + esac
  34018. + fi
  34019. + if test "$with_gnu_ld" = no; then
  34020. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  34021. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  34022. +
  34023. + case $host_cpu in
  34024. + hppa*64*|ia64*)
  34025. + _LT_TAGVAR(hardcode_direct, $1)=no
  34026. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  34027. + ;;
  34028. + *)
  34029. + _LT_TAGVAR(hardcode_direct, $1)=yes
  34030. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  34031. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  34032. +
  34033. + # hardcode_minus_L: Not really in the search PATH,
  34034. + # but as the default location of the library.
  34035. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  34036. + ;;
  34037. + esac
  34038. + fi
  34039. + ;;
  34040. +
  34041. + irix5* | irix6* | nonstopux*)
  34042. + if test "$GCC" = yes; then
  34043. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  34044. + # Try to use the -exported_symbol ld option, if it does not
  34045. + # work, assume that -exports_file does not work either and
  34046. + # implicitly export all symbols.
  34047. + save_LDFLAGS="$LDFLAGS"
  34048. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  34049. + AC_LINK_IFELSE(int foo(void) {},
  34050. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  34051. + )
  34052. + LDFLAGS="$save_LDFLAGS"
  34053. + else
  34054. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  34055. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  34056. + fi
  34057. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  34058. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  34059. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  34060. + _LT_TAGVAR(inherit_rpath, $1)=yes
  34061. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  34062. + ;;
  34063. +
  34064. + netbsd* | netbsdelf*-gnu)
  34065. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  34066. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  34067. + else
  34068. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  34069. + fi
  34070. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  34071. + _LT_TAGVAR(hardcode_direct, $1)=yes
  34072. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  34073. + ;;
  34074. +
  34075. + newsos6)
  34076. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34077. + _LT_TAGVAR(hardcode_direct, $1)=yes
  34078. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  34079. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  34080. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  34081. + ;;
  34082. +
  34083. + *nto* | *qnx*)
  34084. + ;;
  34085. +
  34086. + openbsd*)
  34087. + if test -f /usr/libexec/ld.so; then
  34088. + _LT_TAGVAR(hardcode_direct, $1)=yes
  34089. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  34090. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  34091. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  34092. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  34093. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  34094. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  34095. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  34096. + else
  34097. + case $host_os in
  34098. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  34099. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  34100. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  34101. + ;;
  34102. + *)
  34103. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  34104. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  34105. + ;;
  34106. + esac
  34107. + fi
  34108. + else
  34109. + _LT_TAGVAR(ld_shlibs, $1)=no
  34110. + fi
  34111. + ;;
  34112. +
  34113. + os2*)
  34114. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  34115. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  34116. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  34117. + _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  34118. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  34119. + ;;
  34120. +
  34121. + osf3*)
  34122. + if test "$GCC" = yes; then
  34123. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  34124. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  34125. + else
  34126. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  34127. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  34128. + fi
  34129. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  34130. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  34131. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  34132. + ;;
  34133. +
  34134. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  34135. + if test "$GCC" = yes; then
  34136. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  34137. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  34138. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  34139. + else
  34140. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  34141. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  34142. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  34143. + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  34144. +
  34145. + # Both c and cxx compiler support -rpath directly
  34146. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  34147. + fi
  34148. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  34149. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  34150. + ;;
  34151. +
  34152. + solaris*)
  34153. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  34154. + if test "$GCC" = yes; then
  34155. + wlarc='${wl}'
  34156. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  34157. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  34158. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  34159. + else
  34160. + case `$CC -V 2>&1` in
  34161. + *"Compilers 5.0"*)
  34162. + wlarc=''
  34163. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34164. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  34165. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  34166. + ;;
  34167. + *)
  34168. + wlarc='${wl}'
  34169. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  34170. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  34171. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  34172. + ;;
  34173. + esac
  34174. + fi
  34175. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  34176. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  34177. + case $host_os in
  34178. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  34179. + *)
  34180. + # The compiler driver will combine and reorder linker options,
  34181. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  34182. + # but is careful enough not to reorder.
  34183. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  34184. + if test "$GCC" = yes; then
  34185. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  34186. + else
  34187. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  34188. + fi
  34189. + ;;
  34190. + esac
  34191. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  34192. + ;;
  34193. +
  34194. + sunos4*)
  34195. + if test "x$host_vendor" = xsequent; then
  34196. + # Use $CC to link under sequent, because it throws in some extra .o
  34197. + # files that make .init and .fini sections work.
  34198. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  34199. + else
  34200. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  34201. + fi
  34202. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  34203. + _LT_TAGVAR(hardcode_direct, $1)=yes
  34204. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  34205. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  34206. + ;;
  34207. +
  34208. + sysv4)
  34209. + case $host_vendor in
  34210. + sni)
  34211. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34212. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  34213. + ;;
  34214. + siemens)
  34215. + ## LD is ld it makes a PLAMLIB
  34216. + ## CC just makes a GrossModule.
  34217. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  34218. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  34219. + _LT_TAGVAR(hardcode_direct, $1)=no
  34220. + ;;
  34221. + motorola)
  34222. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34223. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  34224. + ;;
  34225. + esac
  34226. + runpath_var='LD_RUN_PATH'
  34227. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  34228. + ;;
  34229. +
  34230. + sysv4.3*)
  34231. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34232. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  34233. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  34234. + ;;
  34235. +
  34236. + sysv4*MP*)
  34237. + if test -d /usr/nec; then
  34238. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34239. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  34240. + runpath_var=LD_RUN_PATH
  34241. + hardcode_runpath_var=yes
  34242. + _LT_TAGVAR(ld_shlibs, $1)=yes
  34243. + fi
  34244. + ;;
  34245. +
  34246. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  34247. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  34248. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  34249. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  34250. + runpath_var='LD_RUN_PATH'
  34251. +
  34252. + if test "$GCC" = yes; then
  34253. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  34254. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  34255. + else
  34256. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  34257. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  34258. + fi
  34259. + ;;
  34260. +
  34261. + sysv5* | sco3.2v5* | sco5v6*)
  34262. + # Note: We can NOT use -z defs as we might desire, because we do not
  34263. + # link with -lc, and that would cause any symbols used from libc to
  34264. + # always be unresolved, which means just about no library would
  34265. + # ever link correctly. If we're not using GNU ld we use -z text
  34266. + # though, which does catch some bad symbols but isn't as heavy-handed
  34267. + # as -z defs.
  34268. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  34269. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  34270. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  34271. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  34272. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  34273. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  34274. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  34275. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  34276. + runpath_var='LD_RUN_PATH'
  34277. +
  34278. + if test "$GCC" = yes; then
  34279. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  34280. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  34281. + else
  34282. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  34283. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  34284. + fi
  34285. + ;;
  34286. +
  34287. + uts4*)
  34288. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34289. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  34290. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  34291. + ;;
  34292. +
  34293. + *)
  34294. + _LT_TAGVAR(ld_shlibs, $1)=no
  34295. + ;;
  34296. + esac
  34297. +
  34298. + if test x$host_vendor = xsni; then
  34299. + case $host in
  34300. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  34301. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  34302. + ;;
  34303. + esac
  34304. + fi
  34305. + fi
  34306. +])
  34307. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  34308. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  34309. +
  34310. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  34311. +
  34312. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  34313. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  34314. +_LT_DECL([], [extract_expsyms_cmds], [2],
  34315. + [The commands to extract the exported symbol list from a shared archive])
  34316. +
  34317. +#
  34318. +# Do we need to explicitly link libc?
  34319. +#
  34320. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  34321. +x|xyes)
  34322. + # Assume -lc should be added
  34323. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  34324. +
  34325. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  34326. + case $_LT_TAGVAR(archive_cmds, $1) in
  34327. + *'~'*)
  34328. + # FIXME: we may have to deal with multi-command sequences.
  34329. + ;;
  34330. + '$CC '*)
  34331. + # Test whether the compiler implicitly links with -lc since on some
  34332. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  34333. + # to ld, don't add -lc before -lgcc.
  34334. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  34335. + $RM conftest*
  34336. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  34337. +
  34338. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  34339. + soname=conftest
  34340. + lib=conftest
  34341. + libobjs=conftest.$ac_objext
  34342. + deplibs=
  34343. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  34344. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  34345. + compiler_flags=-v
  34346. + linker_flags=-v
  34347. + verstring=
  34348. + output_objdir=.
  34349. + libname=conftest
  34350. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  34351. + _LT_TAGVAR(allow_undefined_flag, $1)=
  34352. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  34353. + then
  34354. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  34355. + else
  34356. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  34357. + fi
  34358. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  34359. + else
  34360. + cat conftest.err 1>&5
  34361. + fi
  34362. + $RM conftest*
  34363. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  34364. + ;;
  34365. + esac
  34366. + fi
  34367. + ;;
  34368. +esac
  34369. +
  34370. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  34371. + [Whether or not to add -lc for building shared libraries])
  34372. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  34373. + [enable_shared_with_static_runtimes], [0],
  34374. + [Whether or not to disallow shared libs when runtime libs are static])
  34375. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  34376. + [Compiler flag to allow reflexive dlopens])
  34377. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  34378. + [Compiler flag to generate shared objects directly from archives])
  34379. +_LT_TAGDECL([], [compiler_needs_object], [1],
  34380. + [Whether the compiler copes with passing no objects directly])
  34381. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  34382. + [Create an old-style archive from a shared archive])
  34383. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  34384. + [Create a temporary old-style archive to link instead of a shared archive])
  34385. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  34386. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  34387. +_LT_TAGDECL([], [module_cmds], [2],
  34388. + [Commands used to build a loadable module if different from building
  34389. + a shared archive.])
  34390. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  34391. +_LT_TAGDECL([], [with_gnu_ld], [1],
  34392. + [Whether we are building with GNU ld or not])
  34393. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  34394. + [Flag that allows shared libraries with undefined symbols to be built])
  34395. +_LT_TAGDECL([], [no_undefined_flag], [1],
  34396. + [Flag that enforces no undefined symbols])
  34397. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  34398. + [Flag to hardcode $libdir into a binary during linking.
  34399. + This must work even if $libdir does not exist])
  34400. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  34401. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  34402. + during linking. This must work even if $libdir does not exist]])
  34403. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  34404. + [Whether we need a single "-rpath" flag with a separated argument])
  34405. +_LT_TAGDECL([], [hardcode_direct], [0],
  34406. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  34407. + DIR into the resulting binary])
  34408. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  34409. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  34410. + DIR into the resulting binary and the resulting library dependency is
  34411. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  34412. + library is relocated])
  34413. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  34414. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  34415. + into the resulting binary])
  34416. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  34417. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  34418. + into the resulting binary])
  34419. +_LT_TAGDECL([], [hardcode_automatic], [0],
  34420. + [Set to "yes" if building a shared library automatically hardcodes DIR
  34421. + into the library and all subsequent libraries and executables linked
  34422. + against it])
  34423. +_LT_TAGDECL([], [inherit_rpath], [0],
  34424. + [Set to yes if linker adds runtime paths of dependent libraries
  34425. + to runtime path list])
  34426. +_LT_TAGDECL([], [link_all_deplibs], [0],
  34427. + [Whether libtool must link a program against all its dependency libraries])
  34428. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  34429. + [Fix the shell variable $srcfile for the compiler])
  34430. +_LT_TAGDECL([], [always_export_symbols], [0],
  34431. + [Set to "yes" if exported symbols are required])
  34432. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  34433. + [The commands to list exported symbols])
  34434. +_LT_TAGDECL([], [exclude_expsyms], [1],
  34435. + [Symbols that should not be listed in the preloaded symbols])
  34436. +_LT_TAGDECL([], [include_expsyms], [1],
  34437. + [Symbols that must always be exported])
  34438. +_LT_TAGDECL([], [prelink_cmds], [2],
  34439. + [Commands necessary for linking programs (against libraries) with templates])
  34440. +_LT_TAGDECL([], [file_list_spec], [1],
  34441. + [Specify filename containing input files])
  34442. +dnl FIXME: Not yet implemented
  34443. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  34444. +dnl [Compiler flag to generate thread safe objects])
  34445. +])# _LT_LINKER_SHLIBS
  34446. +
  34447. +
  34448. +# _LT_LANG_C_CONFIG([TAG])
  34449. +# ------------------------
  34450. +# Ensure that the configuration variables for a C compiler are suitably
  34451. +# defined. These variables are subsequently used by _LT_CONFIG to write
  34452. +# the compiler configuration to `libtool'.
  34453. +m4_defun([_LT_LANG_C_CONFIG],
  34454. +[m4_require([_LT_DECL_EGREP])dnl
  34455. +lt_save_CC="$CC"
  34456. +AC_LANG_PUSH(C)
  34457. +
  34458. +# Source file extension for C test sources.
  34459. +ac_ext=c
  34460. +
  34461. +# Object file extension for compiled C test sources.
  34462. +objext=o
  34463. +_LT_TAGVAR(objext, $1)=$objext
  34464. +
  34465. +# Code to be used in simple compile tests
  34466. +lt_simple_compile_test_code="int some_variable = 0;"
  34467. +
  34468. +# Code to be used in simple link tests
  34469. +lt_simple_link_test_code='int main(){return(0);}'
  34470. +
  34471. +_LT_TAG_COMPILER
  34472. +# Save the default compiler, since it gets overwritten when the other
  34473. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  34474. +compiler_DEFAULT=$CC
  34475. +
  34476. +# save warnings/boilerplate of simple test code
  34477. +_LT_COMPILER_BOILERPLATE
  34478. +_LT_LINKER_BOILERPLATE
  34479. +
  34480. +## CAVEAT EMPTOR:
  34481. +## There is no encapsulation within the following macros, do not change
  34482. +## the running order or otherwise move them around unless you know exactly
  34483. +## what you are doing...
  34484. +if test -n "$compiler"; then
  34485. + _LT_COMPILER_NO_RTTI($1)
  34486. + _LT_COMPILER_PIC($1)
  34487. + _LT_COMPILER_C_O($1)
  34488. + _LT_COMPILER_FILE_LOCKS($1)
  34489. + _LT_LINKER_SHLIBS($1)
  34490. + _LT_SYS_DYNAMIC_LINKER($1)
  34491. + _LT_LINKER_HARDCODE_LIBPATH($1)
  34492. + LT_SYS_DLOPEN_SELF
  34493. + _LT_CMD_STRIPLIB
  34494. +
  34495. + # Report which library types will actually be built
  34496. + AC_MSG_CHECKING([if libtool supports shared libraries])
  34497. + AC_MSG_RESULT([$can_build_shared])
  34498. +
  34499. + AC_MSG_CHECKING([whether to build shared libraries])
  34500. + test "$can_build_shared" = "no" && enable_shared=no
  34501. +
  34502. + # On AIX, shared libraries and static libraries use the same namespace, and
  34503. + # are all built from PIC.
  34504. + case $host_os in
  34505. + aix3*)
  34506. + test "$enable_shared" = yes && enable_static=no
  34507. + if test -n "$RANLIB"; then
  34508. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  34509. + postinstall_cmds='$RANLIB $lib'
  34510. + fi
  34511. + ;;
  34512. +
  34513. + aix[[4-9]]*)
  34514. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  34515. + test "$enable_shared" = yes && enable_static=no
  34516. + fi
  34517. + ;;
  34518. + esac
  34519. + AC_MSG_RESULT([$enable_shared])
  34520. +
  34521. + AC_MSG_CHECKING([whether to build static libraries])
  34522. + # Make sure either enable_shared or enable_static is yes.
  34523. + test "$enable_shared" = yes || enable_static=yes
  34524. + AC_MSG_RESULT([$enable_static])
  34525. +
  34526. + _LT_CONFIG($1)
  34527. +fi
  34528. +AC_LANG_POP
  34529. +CC="$lt_save_CC"
  34530. +])# _LT_LANG_C_CONFIG
  34531. +
  34532. +
  34533. +# _LT_PROG_CXX
  34534. +# ------------
  34535. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  34536. +# compiler, we have our own version here.
  34537. +m4_defun([_LT_PROG_CXX],
  34538. +[
  34539. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  34540. +AC_PROG_CXX
  34541. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  34542. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  34543. + (test "X$CXX" != "Xg++"))) ; then
  34544. + AC_PROG_CXXCPP
  34545. +else
  34546. + _lt_caught_CXX_error=yes
  34547. +fi
  34548. +popdef([AC_MSG_ERROR])
  34549. +])# _LT_PROG_CXX
  34550. +
  34551. +dnl aclocal-1.4 backwards compatibility:
  34552. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  34553. +
  34554. +
  34555. +# _LT_LANG_CXX_CONFIG([TAG])
  34556. +# --------------------------
  34557. +# Ensure that the configuration variables for a C++ compiler are suitably
  34558. +# defined. These variables are subsequently used by _LT_CONFIG to write
  34559. +# the compiler configuration to `libtool'.
  34560. +m4_defun([_LT_LANG_CXX_CONFIG],
  34561. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  34562. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  34563. +m4_require([_LT_DECL_EGREP])dnl
  34564. +
  34565. +AC_LANG_PUSH(C++)
  34566. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  34567. +_LT_TAGVAR(allow_undefined_flag, $1)=
  34568. +_LT_TAGVAR(always_export_symbols, $1)=no
  34569. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  34570. +_LT_TAGVAR(compiler_needs_object, $1)=no
  34571. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  34572. +_LT_TAGVAR(hardcode_direct, $1)=no
  34573. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  34574. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  34575. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  34576. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  34577. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  34578. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  34579. +_LT_TAGVAR(hardcode_automatic, $1)=no
  34580. +_LT_TAGVAR(inherit_rpath, $1)=no
  34581. +_LT_TAGVAR(module_cmds, $1)=
  34582. +_LT_TAGVAR(module_expsym_cmds, $1)=
  34583. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  34584. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  34585. +_LT_TAGVAR(no_undefined_flag, $1)=
  34586. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  34587. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  34588. +
  34589. +# Source file extension for C++ test sources.
  34590. +ac_ext=cpp
  34591. +
  34592. +# Object file extension for compiled C++ test sources.
  34593. +objext=o
  34594. +_LT_TAGVAR(objext, $1)=$objext
  34595. +
  34596. +# No sense in running all these tests if we already determined that
  34597. +# the CXX compiler isn't working. Some variables (like enable_shared)
  34598. +# are currently assumed to apply to all compilers on this platform,
  34599. +# and will be corrupted by setting them based on a non-working compiler.
  34600. +if test "$_lt_caught_CXX_error" != yes; then
  34601. + # Code to be used in simple compile tests
  34602. + lt_simple_compile_test_code="int some_variable = 0;"
  34603. +
  34604. + # Code to be used in simple link tests
  34605. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  34606. +
  34607. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  34608. + _LT_TAG_COMPILER
  34609. +
  34610. + # save warnings/boilerplate of simple test code
  34611. + _LT_COMPILER_BOILERPLATE
  34612. + _LT_LINKER_BOILERPLATE
  34613. +
  34614. + # Allow CC to be a program name with arguments.
  34615. + lt_save_CC=$CC
  34616. + lt_save_LD=$LD
  34617. + lt_save_GCC=$GCC
  34618. + GCC=$GXX
  34619. + lt_save_with_gnu_ld=$with_gnu_ld
  34620. + lt_save_path_LD=$lt_cv_path_LD
  34621. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  34622. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  34623. + else
  34624. + $as_unset lt_cv_prog_gnu_ld
  34625. + fi
  34626. + if test -n "${lt_cv_path_LDCXX+set}"; then
  34627. + lt_cv_path_LD=$lt_cv_path_LDCXX
  34628. + else
  34629. + $as_unset lt_cv_path_LD
  34630. + fi
  34631. + test -z "${LDCXX+set}" || LD=$LDCXX
  34632. + CC=${CXX-"c++"}
  34633. + compiler=$CC
  34634. + _LT_TAGVAR(compiler, $1)=$CC
  34635. + _LT_CC_BASENAME([$compiler])
  34636. +
  34637. + if test -n "$compiler"; then
  34638. + # We don't want -fno-exception when compiling C++ code, so set the
  34639. + # no_builtin_flag separately
  34640. + if test "$GXX" = yes; then
  34641. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  34642. + else
  34643. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  34644. + fi
  34645. +
  34646. + if test "$GXX" = yes; then
  34647. + # Set up default GNU C++ configuration
  34648. +
  34649. + LT_PATH_LD
  34650. +
  34651. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  34652. + # archiving commands below assume that GNU ld is being used.
  34653. + if test "$with_gnu_ld" = yes; then
  34654. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34655. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34656. +
  34657. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  34658. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  34659. +
  34660. + # If archive_cmds runs LD, not CC, wlarc should be empty
  34661. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  34662. + # investigate it a little bit more. (MM)
  34663. + wlarc='${wl}'
  34664. +
  34665. + # ancient GNU ld didn't support --whole-archive et. al.
  34666. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  34667. + $GREP 'no-whole-archive' > /dev/null; then
  34668. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  34669. + else
  34670. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  34671. + fi
  34672. + else
  34673. + with_gnu_ld=no
  34674. + wlarc=
  34675. +
  34676. + # A generic and very simple default shared library creation
  34677. + # command for GNU C++ for the case where it uses the native
  34678. + # linker, instead of GNU ld. If possible, this setting should
  34679. + # overridden to take advantage of the native linker features on
  34680. + # the platform it is being used on.
  34681. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  34682. + fi
  34683. +
  34684. + # Commands to make compiler produce verbose output that lists
  34685. + # what "hidden" libraries, object files and flags are used when
  34686. + # linking a shared library.
  34687. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  34688. +
  34689. + else
  34690. + GXX=no
  34691. + with_gnu_ld=no
  34692. + wlarc=
  34693. + fi
  34694. +
  34695. + # PORTME: fill in a description of your system's C++ link characteristics
  34696. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  34697. + _LT_TAGVAR(ld_shlibs, $1)=yes
  34698. + case $host_os in
  34699. + aix3*)
  34700. + # FIXME: insert proper C++ library support
  34701. + _LT_TAGVAR(ld_shlibs, $1)=no
  34702. + ;;
  34703. + aix[[4-9]]*)
  34704. + if test "$host_cpu" = ia64; then
  34705. + # On IA64, the linker does run time linking by default, so we don't
  34706. + # have to do anything special.
  34707. + aix_use_runtimelinking=no
  34708. + exp_sym_flag='-Bexport'
  34709. + no_entry_flag=""
  34710. + else
  34711. + aix_use_runtimelinking=no
  34712. +
  34713. + # Test if we are trying to use run time linking or normal
  34714. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  34715. + # need to do runtime linking.
  34716. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  34717. + for ld_flag in $LDFLAGS; do
  34718. + case $ld_flag in
  34719. + *-brtl*)
  34720. + aix_use_runtimelinking=yes
  34721. + break
  34722. + ;;
  34723. + esac
  34724. + done
  34725. + ;;
  34726. + esac
  34727. +
  34728. + exp_sym_flag='-bexport'
  34729. + no_entry_flag='-bnoentry'
  34730. + fi
  34731. +
  34732. + # When large executables or shared objects are built, AIX ld can
  34733. + # have problems creating the table of contents. If linking a library
  34734. + # or program results in "error TOC overflow" add -mminimal-toc to
  34735. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  34736. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  34737. +
  34738. + _LT_TAGVAR(archive_cmds, $1)=''
  34739. + _LT_TAGVAR(hardcode_direct, $1)=yes
  34740. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  34741. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  34742. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  34743. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  34744. +
  34745. + if test "$GXX" = yes; then
  34746. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  34747. + # We only want to do this on AIX 4.2 and lower, the check
  34748. + # below for broken collect2 doesn't work under 4.3+
  34749. + collect2name=`${CC} -print-prog-name=collect2`
  34750. + if test -f "$collect2name" &&
  34751. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  34752. + then
  34753. + # We have reworked collect2
  34754. + :
  34755. + else
  34756. + # We have old collect2
  34757. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  34758. + # It fails to find uninstalled libraries when the uninstalled
  34759. + # path is not listed in the libpath. Setting hardcode_minus_L
  34760. + # to unsupported forces relinking
  34761. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  34762. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  34763. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  34764. + fi
  34765. + esac
  34766. + shared_flag='-shared'
  34767. + if test "$aix_use_runtimelinking" = yes; then
  34768. + shared_flag="$shared_flag "'${wl}-G'
  34769. + fi
  34770. + else
  34771. + # not using gcc
  34772. + if test "$host_cpu" = ia64; then
  34773. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  34774. + # chokes on -Wl,-G. The following line is correct:
  34775. + shared_flag='-G'
  34776. + else
  34777. + if test "$aix_use_runtimelinking" = yes; then
  34778. + shared_flag='${wl}-G'
  34779. + else
  34780. + shared_flag='${wl}-bM:SRE'
  34781. + fi
  34782. + fi
  34783. + fi
  34784. +
  34785. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  34786. + # It seems that -bexpall does not export symbols beginning with
  34787. + # underscore (_), so it is better to generate a list of symbols to
  34788. + # export.
  34789. + _LT_TAGVAR(always_export_symbols, $1)=yes
  34790. + if test "$aix_use_runtimelinking" = yes; then
  34791. + # Warning - without using the other runtime loading flags (-brtl),
  34792. + # -berok will link without error, but may produce a broken library.
  34793. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  34794. + # Determine the default libpath from the value encoded in an empty
  34795. + # executable.
  34796. + _LT_SYS_MODULE_PATH_AIX
  34797. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  34798. +
  34799. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  34800. + else
  34801. + if test "$host_cpu" = ia64; then
  34802. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  34803. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  34804. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  34805. + else
  34806. + # Determine the default libpath from the value encoded in an
  34807. + # empty executable.
  34808. + _LT_SYS_MODULE_PATH_AIX
  34809. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  34810. + # Warning - without using the other run time loading flags,
  34811. + # -berok will link without error, but may produce a broken library.
  34812. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  34813. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  34814. + # Exported symbols can be pulled into shared objects from archives
  34815. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  34816. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  34817. + # This is similar to how AIX traditionally builds its shared
  34818. + # libraries.
  34819. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  34820. + fi
  34821. + fi
  34822. + ;;
  34823. +
  34824. + beos*)
  34825. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  34826. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  34827. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  34828. + # support --undefined. This deserves some investigation. FIXME
  34829. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34830. + else
  34831. + _LT_TAGVAR(ld_shlibs, $1)=no
  34832. + fi
  34833. + ;;
  34834. +
  34835. + chorus*)
  34836. + case $cc_basename in
  34837. + *)
  34838. + # FIXME: insert proper C++ library support
  34839. + _LT_TAGVAR(ld_shlibs, $1)=no
  34840. + ;;
  34841. + esac
  34842. + ;;
  34843. +
  34844. + cygwin* | mingw* | pw32* | cegcc*)
  34845. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  34846. + # as there is no search path for DLLs.
  34847. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  34848. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  34849. + _LT_TAGVAR(always_export_symbols, $1)=no
  34850. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  34851. +
  34852. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  34853. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  34854. + # If the export-symbols file already is a .def file (1st line
  34855. + # is EXPORTS), use it as is; otherwise, prepend...
  34856. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  34857. + cp $export_symbols $output_objdir/$soname.def;
  34858. + else
  34859. + echo EXPORTS > $output_objdir/$soname.def;
  34860. + cat $export_symbols >> $output_objdir/$soname.def;
  34861. + fi~
  34862. + $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'
  34863. + else
  34864. + _LT_TAGVAR(ld_shlibs, $1)=no
  34865. + fi
  34866. + ;;
  34867. + darwin* | rhapsody*)
  34868. + _LT_DARWIN_LINKER_FEATURES($1)
  34869. + ;;
  34870. +
  34871. + dgux*)
  34872. + case $cc_basename in
  34873. + ec++*)
  34874. + # FIXME: insert proper C++ library support
  34875. + _LT_TAGVAR(ld_shlibs, $1)=no
  34876. + ;;
  34877. + ghcx*)
  34878. + # Green Hills C++ Compiler
  34879. + # FIXME: insert proper C++ library support
  34880. + _LT_TAGVAR(ld_shlibs, $1)=no
  34881. + ;;
  34882. + *)
  34883. + # FIXME: insert proper C++ library support
  34884. + _LT_TAGVAR(ld_shlibs, $1)=no
  34885. + ;;
  34886. + esac
  34887. + ;;
  34888. +
  34889. + freebsd[[12]]*)
  34890. + # C++ shared libraries reported to be fairly broken before
  34891. + # switch to ELF
  34892. + _LT_TAGVAR(ld_shlibs, $1)=no
  34893. + ;;
  34894. +
  34895. + freebsd-elf*)
  34896. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  34897. + ;;
  34898. +
  34899. + freebsd* | dragonfly*)
  34900. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  34901. + # conventions
  34902. + _LT_TAGVAR(ld_shlibs, $1)=yes
  34903. + ;;
  34904. +
  34905. + gnu*)
  34906. + ;;
  34907. +
  34908. + hpux9*)
  34909. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  34910. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  34911. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  34912. + _LT_TAGVAR(hardcode_direct, $1)=yes
  34913. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  34914. + # but as the default
  34915. + # location of the library.
  34916. +
  34917. + case $cc_basename in
  34918. + CC*)
  34919. + # FIXME: insert proper C++ library support
  34920. + _LT_TAGVAR(ld_shlibs, $1)=no
  34921. + ;;
  34922. + aCC*)
  34923. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  34924. + # Commands to make compiler produce verbose output that lists
  34925. + # what "hidden" libraries, object files and flags are used when
  34926. + # linking a shared library.
  34927. + #
  34928. + # There doesn't appear to be a way to prevent this compiler from
  34929. + # explicitly linking system object files so we need to strip them
  34930. + # from the output so that they don't get included in the library
  34931. + # dependencies.
  34932. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  34933. + ;;
  34934. + *)
  34935. + if test "$GXX" = yes; then
  34936. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  34937. + else
  34938. + # FIXME: insert proper C++ library support
  34939. + _LT_TAGVAR(ld_shlibs, $1)=no
  34940. + fi
  34941. + ;;
  34942. + esac
  34943. + ;;
  34944. +
  34945. + hpux10*|hpux11*)
  34946. + if test $with_gnu_ld = no; then
  34947. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  34948. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  34949. +
  34950. + case $host_cpu in
  34951. + hppa*64*|ia64*)
  34952. + ;;
  34953. + *)
  34954. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  34955. + ;;
  34956. + esac
  34957. + fi
  34958. + case $host_cpu in
  34959. + hppa*64*|ia64*)
  34960. + _LT_TAGVAR(hardcode_direct, $1)=no
  34961. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  34962. + ;;
  34963. + *)
  34964. + _LT_TAGVAR(hardcode_direct, $1)=yes
  34965. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  34966. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  34967. + # but as the default
  34968. + # location of the library.
  34969. + ;;
  34970. + esac
  34971. +
  34972. + case $cc_basename in
  34973. + CC*)
  34974. + # FIXME: insert proper C++ library support
  34975. + _LT_TAGVAR(ld_shlibs, $1)=no
  34976. + ;;
  34977. + aCC*)
  34978. + case $host_cpu in
  34979. + hppa*64*)
  34980. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  34981. + ;;
  34982. + ia64*)
  34983. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  34984. + ;;
  34985. + *)
  34986. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  34987. + ;;
  34988. + esac
  34989. + # Commands to make compiler produce verbose output that lists
  34990. + # what "hidden" libraries, object files and flags are used when
  34991. + # linking a shared library.
  34992. + #
  34993. + # There doesn't appear to be a way to prevent this compiler from
  34994. + # explicitly linking system object files so we need to strip them
  34995. + # from the output so that they don't get included in the library
  34996. + # dependencies.
  34997. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  34998. + ;;
  34999. + *)
  35000. + if test "$GXX" = yes; then
  35001. + if test $with_gnu_ld = no; then
  35002. + case $host_cpu in
  35003. + hppa*64*)
  35004. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  35005. + ;;
  35006. + ia64*)
  35007. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  35008. + ;;
  35009. + *)
  35010. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  35011. + ;;
  35012. + esac
  35013. + fi
  35014. + else
  35015. + # FIXME: insert proper C++ library support
  35016. + _LT_TAGVAR(ld_shlibs, $1)=no
  35017. + fi
  35018. + ;;
  35019. + esac
  35020. + ;;
  35021. +
  35022. + interix[[3-9]]*)
  35023. + _LT_TAGVAR(hardcode_direct, $1)=no
  35024. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  35025. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  35026. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  35027. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  35028. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  35029. + # default) and relocated if they conflict, which is a slow very memory
  35030. + # consuming and fragmenting process. To avoid this, we pick a random,
  35031. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  35032. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  35033. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  35034. + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  35035. + ;;
  35036. + irix5* | irix6*)
  35037. + case $cc_basename in
  35038. + CC*)
  35039. + # SGI C++
  35040. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  35041. +
  35042. + # Archives containing C++ object files must be created using
  35043. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  35044. + # necessary to make sure instantiated templates are included
  35045. + # in the archive.
  35046. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  35047. + ;;
  35048. + *)
  35049. + if test "$GXX" = yes; then
  35050. + if test "$with_gnu_ld" = no; then
  35051. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  35052. + else
  35053. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  35054. + fi
  35055. + fi
  35056. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  35057. + ;;
  35058. + esac
  35059. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  35060. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  35061. + _LT_TAGVAR(inherit_rpath, $1)=yes
  35062. + ;;
  35063. +
  35064. + linux* | k*bsd*-gnu)
  35065. + case $cc_basename in
  35066. + KCC*)
  35067. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  35068. +
  35069. + # KCC will only create a shared library if the output file
  35070. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  35071. + # to its proper name (with version) after linking.
  35072. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  35073. + _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  35074. + # Commands to make compiler produce verbose output that lists
  35075. + # what "hidden" libraries, object files and flags are used when
  35076. + # linking a shared library.
  35077. + #
  35078. + # There doesn't appear to be a way to prevent this compiler from
  35079. + # explicitly linking system object files so we need to strip them
  35080. + # from the output so that they don't get included in the library
  35081. + # dependencies.
  35082. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  35083. +
  35084. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  35085. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  35086. +
  35087. + # Archives containing C++ object files must be created using
  35088. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  35089. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  35090. + ;;
  35091. + icpc* | ecpc* )
  35092. + # Intel C++
  35093. + with_gnu_ld=yes
  35094. + # version 8.0 and above of icpc choke on multiply defined symbols
  35095. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  35096. + # earlier do not add the objects themselves.
  35097. + case `$CC -V 2>&1` in
  35098. + *"Version 7."*)
  35099. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35100. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  35101. + ;;
  35102. + *) # Version 8.0 or newer
  35103. + tmp_idyn=
  35104. + case $host_cpu in
  35105. + ia64*) tmp_idyn=' -i_dynamic';;
  35106. + esac
  35107. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35108. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  35109. + ;;
  35110. + esac
  35111. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  35112. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  35113. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  35114. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  35115. + ;;
  35116. + pgCC* | pgcpp*)
  35117. + # Portland Group C++ compiler
  35118. + case `$CC -V` in
  35119. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  35120. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  35121. + rm -rf $tpldir~
  35122. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  35123. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  35124. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  35125. + rm -rf $tpldir~
  35126. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  35127. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  35128. + $RANLIB $oldlib'
  35129. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  35130. + rm -rf $tpldir~
  35131. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  35132. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  35133. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  35134. + rm -rf $tpldir~
  35135. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  35136. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  35137. + ;;
  35138. + *) # Version 6 will use weak symbols
  35139. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  35140. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  35141. + ;;
  35142. + esac
  35143. +
  35144. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  35145. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  35146. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  35147. + ;;
  35148. + cxx*)
  35149. + # Compaq C++
  35150. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35151. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  35152. +
  35153. + runpath_var=LD_RUN_PATH
  35154. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  35155. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  35156. +
  35157. + # Commands to make compiler produce verbose output that lists
  35158. + # what "hidden" libraries, object files and flags are used when
  35159. + # linking a shared library.
  35160. + #
  35161. + # There doesn't appear to be a way to prevent this compiler from
  35162. + # explicitly linking system object files so we need to strip them
  35163. + # from the output so that they don't get included in the library
  35164. + # dependencies.
  35165. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  35166. + ;;
  35167. + xl*)
  35168. + # IBM XL 8.0 on PPC, with GNU ld
  35169. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  35170. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  35171. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35172. + if test "x$supports_anon_versioning" = xyes; then
  35173. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  35174. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  35175. + echo "local: *; };" >> $output_objdir/$libname.ver~
  35176. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  35177. + fi
  35178. + ;;
  35179. + *)
  35180. + case `$CC -V 2>&1 | sed 5q` in
  35181. + *Sun\ C*)
  35182. + # Sun C++ 5.9
  35183. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  35184. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  35185. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  35186. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  35187. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  35188. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  35189. +
  35190. + # Not sure whether something based on
  35191. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  35192. + # would be better.
  35193. + output_verbose_link_cmd='echo'
  35194. +
  35195. + # Archives containing C++ object files must be created using
  35196. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  35197. + # necessary to make sure instantiated templates are included
  35198. + # in the archive.
  35199. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  35200. + ;;
  35201. + esac
  35202. + ;;
  35203. + esac
  35204. + ;;
  35205. +
  35206. + lynxos*)
  35207. + # FIXME: insert proper C++ library support
  35208. + _LT_TAGVAR(ld_shlibs, $1)=no
  35209. + ;;
  35210. +
  35211. + m88k*)
  35212. + # FIXME: insert proper C++ library support
  35213. + _LT_TAGVAR(ld_shlibs, $1)=no
  35214. + ;;
  35215. +
  35216. + mvs*)
  35217. + case $cc_basename in
  35218. + cxx*)
  35219. + # FIXME: insert proper C++ library support
  35220. + _LT_TAGVAR(ld_shlibs, $1)=no
  35221. + ;;
  35222. + *)
  35223. + # FIXME: insert proper C++ library support
  35224. + _LT_TAGVAR(ld_shlibs, $1)=no
  35225. + ;;
  35226. + esac
  35227. + ;;
  35228. +
  35229. + netbsd*)
  35230. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  35231. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  35232. + wlarc=
  35233. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  35234. + _LT_TAGVAR(hardcode_direct, $1)=yes
  35235. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  35236. + fi
  35237. + # Workaround some broken pre-1.5 toolchains
  35238. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  35239. + ;;
  35240. +
  35241. + *nto* | *qnx*)
  35242. + _LT_TAGVAR(ld_shlibs, $1)=yes
  35243. + ;;
  35244. +
  35245. + openbsd2*)
  35246. + # C++ shared libraries are fairly broken
  35247. + _LT_TAGVAR(ld_shlibs, $1)=no
  35248. + ;;
  35249. +
  35250. + openbsd*)
  35251. + if test -f /usr/libexec/ld.so; then
  35252. + _LT_TAGVAR(hardcode_direct, $1)=yes
  35253. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  35254. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  35255. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  35256. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  35257. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  35258. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  35259. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  35260. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  35261. + fi
  35262. + output_verbose_link_cmd=echo
  35263. + else
  35264. + _LT_TAGVAR(ld_shlibs, $1)=no
  35265. + fi
  35266. + ;;
  35267. +
  35268. + osf3* | osf4* | osf5*)
  35269. + case $cc_basename in
  35270. + KCC*)
  35271. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  35272. +
  35273. + # KCC will only create a shared library if the output file
  35274. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  35275. + # to its proper name (with version) after linking.
  35276. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  35277. +
  35278. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  35279. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  35280. +
  35281. + # Archives containing C++ object files must be created using
  35282. + # the KAI C++ compiler.
  35283. + case $host in
  35284. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  35285. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  35286. + esac
  35287. + ;;
  35288. + RCC*)
  35289. + # Rational C++ 2.4.1
  35290. + # FIXME: insert proper C++ library support
  35291. + _LT_TAGVAR(ld_shlibs, $1)=no
  35292. + ;;
  35293. + cxx*)
  35294. + case $host in
  35295. + osf3*)
  35296. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  35297. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  35298. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  35299. + ;;
  35300. + *)
  35301. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  35302. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  35303. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  35304. + echo "-hidden">> $lib.exp~
  35305. + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  35306. + $RM $lib.exp'
  35307. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  35308. + ;;
  35309. + esac
  35310. +
  35311. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  35312. +
  35313. + # Commands to make compiler produce verbose output that lists
  35314. + # what "hidden" libraries, object files and flags are used when
  35315. + # linking a shared library.
  35316. + #
  35317. + # There doesn't appear to be a way to prevent this compiler from
  35318. + # explicitly linking system object files so we need to strip them
  35319. + # from the output so that they don't get included in the library
  35320. + # dependencies.
  35321. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  35322. + ;;
  35323. + *)
  35324. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  35325. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  35326. + case $host in
  35327. + osf3*)
  35328. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  35329. + ;;
  35330. + *)
  35331. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  35332. + ;;
  35333. + esac
  35334. +
  35335. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  35336. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  35337. +
  35338. + # Commands to make compiler produce verbose output that lists
  35339. + # what "hidden" libraries, object files and flags are used when
  35340. + # linking a shared library.
  35341. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  35342. +
  35343. + else
  35344. + # FIXME: insert proper C++ library support
  35345. + _LT_TAGVAR(ld_shlibs, $1)=no
  35346. + fi
  35347. + ;;
  35348. + esac
  35349. + ;;
  35350. +
  35351. + psos*)
  35352. + # FIXME: insert proper C++ library support
  35353. + _LT_TAGVAR(ld_shlibs, $1)=no
  35354. + ;;
  35355. +
  35356. + sunos4*)
  35357. + case $cc_basename in
  35358. + CC*)
  35359. + # Sun C++ 4.x
  35360. + # FIXME: insert proper C++ library support
  35361. + _LT_TAGVAR(ld_shlibs, $1)=no
  35362. + ;;
  35363. + lcc*)
  35364. + # Lucid
  35365. + # FIXME: insert proper C++ library support
  35366. + _LT_TAGVAR(ld_shlibs, $1)=no
  35367. + ;;
  35368. + *)
  35369. + # FIXME: insert proper C++ library support
  35370. + _LT_TAGVAR(ld_shlibs, $1)=no
  35371. + ;;
  35372. + esac
  35373. + ;;
  35374. +
  35375. + solaris*)
  35376. + case $cc_basename in
  35377. + CC*)
  35378. + # Sun C++ 4.2, 5.x and Centerline C++
  35379. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  35380. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  35381. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  35382. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  35383. + $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'
  35384. +
  35385. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  35386. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  35387. + case $host_os in
  35388. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  35389. + *)
  35390. + # The compiler driver will combine and reorder linker options,
  35391. + # but understands `-z linker_flag'.
  35392. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  35393. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  35394. + ;;
  35395. + esac
  35396. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  35397. +
  35398. + output_verbose_link_cmd='echo'
  35399. +
  35400. + # Archives containing C++ object files must be created using
  35401. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  35402. + # necessary to make sure instantiated templates are included
  35403. + # in the archive.
  35404. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  35405. + ;;
  35406. + gcx*)
  35407. + # Green Hills C++ Compiler
  35408. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  35409. +
  35410. + # The C++ compiler must be used to create the archive.
  35411. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  35412. + ;;
  35413. + *)
  35414. + # GNU C++ compiler with Solaris linker
  35415. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  35416. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  35417. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  35418. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  35419. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  35420. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  35421. +
  35422. + # Commands to make compiler produce verbose output that lists
  35423. + # what "hidden" libraries, object files and flags are used when
  35424. + # linking a shared library.
  35425. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  35426. + else
  35427. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  35428. + # platform.
  35429. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  35430. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  35431. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  35432. +
  35433. + # Commands to make compiler produce verbose output that lists
  35434. + # what "hidden" libraries, object files and flags are used when
  35435. + # linking a shared library.
  35436. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  35437. + fi
  35438. +
  35439. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  35440. + case $host_os in
  35441. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  35442. + *)
  35443. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  35444. + ;;
  35445. + esac
  35446. + fi
  35447. + ;;
  35448. + esac
  35449. + ;;
  35450. +
  35451. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  35452. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  35453. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  35454. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  35455. + runpath_var='LD_RUN_PATH'
  35456. +
  35457. + case $cc_basename in
  35458. + CC*)
  35459. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35460. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35461. + ;;
  35462. + *)
  35463. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35464. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35465. + ;;
  35466. + esac
  35467. + ;;
  35468. +
  35469. + sysv5* | sco3.2v5* | sco5v6*)
  35470. + # Note: We can NOT use -z defs as we might desire, because we do not
  35471. + # link with -lc, and that would cause any symbols used from libc to
  35472. + # always be unresolved, which means just about no library would
  35473. + # ever link correctly. If we're not using GNU ld we use -z text
  35474. + # though, which does catch some bad symbols but isn't as heavy-handed
  35475. + # as -z defs.
  35476. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  35477. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  35478. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  35479. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  35480. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  35481. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  35482. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  35483. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  35484. + runpath_var='LD_RUN_PATH'
  35485. +
  35486. + case $cc_basename in
  35487. + CC*)
  35488. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35489. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35490. + ;;
  35491. + *)
  35492. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35493. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35494. + ;;
  35495. + esac
  35496. + ;;
  35497. +
  35498. + tandem*)
  35499. + case $cc_basename in
  35500. + NCC*)
  35501. + # NonStop-UX NCC 3.20
  35502. + # FIXME: insert proper C++ library support
  35503. + _LT_TAGVAR(ld_shlibs, $1)=no
  35504. + ;;
  35505. + *)
  35506. + # FIXME: insert proper C++ library support
  35507. + _LT_TAGVAR(ld_shlibs, $1)=no
  35508. + ;;
  35509. + esac
  35510. + ;;
  35511. +
  35512. + vxworks*)
  35513. + # FIXME: insert proper C++ library support
  35514. + _LT_TAGVAR(ld_shlibs, $1)=no
  35515. + ;;
  35516. +
  35517. + *)
  35518. + # FIXME: insert proper C++ library support
  35519. + _LT_TAGVAR(ld_shlibs, $1)=no
  35520. + ;;
  35521. + esac
  35522. +
  35523. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  35524. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  35525. +
  35526. + _LT_TAGVAR(GCC, $1)="$GXX"
  35527. + _LT_TAGVAR(LD, $1)="$LD"
  35528. +
  35529. + ## CAVEAT EMPTOR:
  35530. + ## There is no encapsulation within the following macros, do not change
  35531. + ## the running order or otherwise move them around unless you know exactly
  35532. + ## what you are doing...
  35533. + _LT_SYS_HIDDEN_LIBDEPS($1)
  35534. + _LT_COMPILER_PIC($1)
  35535. + _LT_COMPILER_C_O($1)
  35536. + _LT_COMPILER_FILE_LOCKS($1)
  35537. + _LT_LINKER_SHLIBS($1)
  35538. + _LT_SYS_DYNAMIC_LINKER($1)
  35539. + _LT_LINKER_HARDCODE_LIBPATH($1)
  35540. +
  35541. + _LT_CONFIG($1)
  35542. + fi # test -n "$compiler"
  35543. +
  35544. + CC=$lt_save_CC
  35545. + LDCXX=$LD
  35546. + LD=$lt_save_LD
  35547. + GCC=$lt_save_GCC
  35548. + with_gnu_ld=$lt_save_with_gnu_ld
  35549. + lt_cv_path_LDCXX=$lt_cv_path_LD
  35550. + lt_cv_path_LD=$lt_save_path_LD
  35551. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  35552. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  35553. +fi # test "$_lt_caught_CXX_error" != yes
  35554. +
  35555. +AC_LANG_POP
  35556. +])# _LT_LANG_CXX_CONFIG
  35557. +
  35558. +
  35559. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  35560. +# ---------------------------------
  35561. +# Figure out "hidden" library dependencies from verbose
  35562. +# compiler output when linking a shared library.
  35563. +# Parse the compiler output and extract the necessary
  35564. +# objects, libraries and library flags.
  35565. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  35566. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  35567. +# Dependencies to place before and after the object being linked:
  35568. +_LT_TAGVAR(predep_objects, $1)=
  35569. +_LT_TAGVAR(postdep_objects, $1)=
  35570. +_LT_TAGVAR(predeps, $1)=
  35571. +_LT_TAGVAR(postdeps, $1)=
  35572. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  35573. +
  35574. +dnl we can't use the lt_simple_compile_test_code here,
  35575. +dnl because it contains code intended for an executable,
  35576. +dnl not a library. It's possible we should let each
  35577. +dnl tag define a new lt_????_link_test_code variable,
  35578. +dnl but it's only used here...
  35579. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  35580. +int a;
  35581. +void foo (void) { a = 0; }
  35582. +_LT_EOF
  35583. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  35584. +class Foo
  35585. +{
  35586. +public:
  35587. + Foo (void) { a = 0; }
  35588. +private:
  35589. + int a;
  35590. +};
  35591. +_LT_EOF
  35592. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  35593. + subroutine foo
  35594. + implicit none
  35595. + integer*4 a
  35596. + a=0
  35597. + return
  35598. + end
  35599. +_LT_EOF
  35600. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  35601. + subroutine foo
  35602. + implicit none
  35603. + integer a
  35604. + a=0
  35605. + return
  35606. + end
  35607. +_LT_EOF
  35608. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  35609. +public class foo {
  35610. + private int a;
  35611. + public void bar (void) {
  35612. + a = 0;
  35613. + }
  35614. +};
  35615. +_LT_EOF
  35616. +])
  35617. +dnl Parse the compiler output and extract the necessary
  35618. +dnl objects, libraries and library flags.
  35619. +if AC_TRY_EVAL(ac_compile); then
  35620. + # Parse the compiler output and extract the necessary
  35621. + # objects, libraries and library flags.
  35622. +
  35623. + # Sentinel used to keep track of whether or not we are before
  35624. + # the conftest object file.
  35625. + pre_test_object_deps_done=no
  35626. +
  35627. + for p in `eval "$output_verbose_link_cmd"`; do
  35628. + case $p in
  35629. +
  35630. + -L* | -R* | -l*)
  35631. + # Some compilers place space between "-{L,R}" and the path.
  35632. + # Remove the space.
  35633. + if test $p = "-L" ||
  35634. + test $p = "-R"; then
  35635. + prev=$p
  35636. + continue
  35637. + else
  35638. + prev=
  35639. + fi
  35640. +
  35641. + if test "$pre_test_object_deps_done" = no; then
  35642. + case $p in
  35643. + -L* | -R*)
  35644. + # Internal compiler library paths should come after those
  35645. + # provided the user. The postdeps already come after the
  35646. + # user supplied libs so there is no need to process them.
  35647. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  35648. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  35649. + else
  35650. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  35651. + fi
  35652. + ;;
  35653. + # The "-l" case would never come before the object being
  35654. + # linked, so don't bother handling this case.
  35655. + esac
  35656. + else
  35657. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  35658. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  35659. + else
  35660. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  35661. + fi
  35662. + fi
  35663. + ;;
  35664. +
  35665. + *.$objext)
  35666. + # This assumes that the test object file only shows up
  35667. + # once in the compiler output.
  35668. + if test "$p" = "conftest.$objext"; then
  35669. + pre_test_object_deps_done=yes
  35670. + continue
  35671. + fi
  35672. +
  35673. + if test "$pre_test_object_deps_done" = no; then
  35674. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  35675. + _LT_TAGVAR(predep_objects, $1)="$p"
  35676. + else
  35677. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  35678. + fi
  35679. + else
  35680. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  35681. + _LT_TAGVAR(postdep_objects, $1)="$p"
  35682. + else
  35683. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  35684. + fi
  35685. + fi
  35686. + ;;
  35687. +
  35688. + *) ;; # Ignore the rest.
  35689. +
  35690. + esac
  35691. + done
  35692. +
  35693. + # Clean up.
  35694. + rm -f a.out a.exe
  35695. +else
  35696. + echo "libtool.m4: error: problem compiling $1 test program"
  35697. +fi
  35698. +
  35699. +$RM -f confest.$objext
  35700. +
  35701. +# PORTME: override above test on systems where it is broken
  35702. +m4_if([$1], [CXX],
  35703. +[case $host_os in
  35704. +interix[[3-9]]*)
  35705. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  35706. + # hack all around it, let's just trust "g++" to DTRT.
  35707. + _LT_TAGVAR(predep_objects,$1)=
  35708. + _LT_TAGVAR(postdep_objects,$1)=
  35709. + _LT_TAGVAR(postdeps,$1)=
  35710. + ;;
  35711. +
  35712. +linux*)
  35713. + case `$CC -V 2>&1 | sed 5q` in
  35714. + *Sun\ C*)
  35715. + # Sun C++ 5.9
  35716. +
  35717. + # The more standards-conforming stlport4 library is
  35718. + # incompatible with the Cstd library. Avoid specifying
  35719. + # it if it's in CXXFLAGS. Ignore libCrun as
  35720. + # -library=stlport4 depends on it.
  35721. + case " $CXX $CXXFLAGS " in
  35722. + *" -library=stlport4 "*)
  35723. + solaris_use_stlport4=yes
  35724. + ;;
  35725. + esac
  35726. +
  35727. + if test "$solaris_use_stlport4" != yes; then
  35728. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  35729. + fi
  35730. + ;;
  35731. + esac
  35732. + ;;
  35733. +
  35734. +solaris*)
  35735. + case $cc_basename in
  35736. + CC*)
  35737. + # The more standards-conforming stlport4 library is
  35738. + # incompatible with the Cstd library. Avoid specifying
  35739. + # it if it's in CXXFLAGS. Ignore libCrun as
  35740. + # -library=stlport4 depends on it.
  35741. + case " $CXX $CXXFLAGS " in
  35742. + *" -library=stlport4 "*)
  35743. + solaris_use_stlport4=yes
  35744. + ;;
  35745. + esac
  35746. +
  35747. + # Adding this requires a known-good setup of shared libraries for
  35748. + # Sun compiler versions before 5.6, else PIC objects from an old
  35749. + # archive will be linked into the output, leading to subtle bugs.
  35750. + if test "$solaris_use_stlport4" != yes; then
  35751. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  35752. + fi
  35753. + ;;
  35754. + esac
  35755. + ;;
  35756. +esac
  35757. +])
  35758. +
  35759. +case " $_LT_TAGVAR(postdeps, $1) " in
  35760. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  35761. +esac
  35762. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  35763. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  35764. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  35765. +fi
  35766. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  35767. + [The directories searched by this compiler when creating a shared library])
  35768. +_LT_TAGDECL([], [predep_objects], [1],
  35769. + [Dependencies to place before and after the objects being linked to
  35770. + create a shared library])
  35771. +_LT_TAGDECL([], [postdep_objects], [1])
  35772. +_LT_TAGDECL([], [predeps], [1])
  35773. +_LT_TAGDECL([], [postdeps], [1])
  35774. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  35775. + [The library search path used internally by the compiler when linking
  35776. + a shared library])
  35777. +])# _LT_SYS_HIDDEN_LIBDEPS
  35778. +
  35779. +
  35780. +# _LT_PROG_F77
  35781. +# ------------
  35782. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  35783. +# if there is no fortran compiler, we have our own version here.
  35784. +m4_defun([_LT_PROG_F77],
  35785. +[
  35786. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  35787. +AC_PROG_F77
  35788. +if test -z "$F77" || test "X$F77" = "Xno"; then
  35789. + _lt_disable_F77=yes
  35790. +fi
  35791. +popdef([AC_MSG_ERROR])
  35792. +])# _LT_PROG_F77
  35793. +
  35794. +dnl aclocal-1.4 backwards compatibility:
  35795. +dnl AC_DEFUN([_LT_PROG_F77], [])
  35796. +
  35797. +
  35798. +# _LT_LANG_F77_CONFIG([TAG])
  35799. +# --------------------------
  35800. +# Ensure that the configuration variables for a Fortran 77 compiler are
  35801. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  35802. +# to write the compiler configuration to `libtool'.
  35803. +m4_defun([_LT_LANG_F77_CONFIG],
  35804. +[AC_REQUIRE([_LT_PROG_F77])dnl
  35805. +AC_LANG_PUSH(Fortran 77)
  35806. +
  35807. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  35808. +_LT_TAGVAR(allow_undefined_flag, $1)=
  35809. +_LT_TAGVAR(always_export_symbols, $1)=no
  35810. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  35811. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  35812. +_LT_TAGVAR(hardcode_direct, $1)=no
  35813. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  35814. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  35815. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  35816. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  35817. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  35818. +_LT_TAGVAR(hardcode_automatic, $1)=no
  35819. +_LT_TAGVAR(inherit_rpath, $1)=no
  35820. +_LT_TAGVAR(module_cmds, $1)=
  35821. +_LT_TAGVAR(module_expsym_cmds, $1)=
  35822. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  35823. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  35824. +_LT_TAGVAR(no_undefined_flag, $1)=
  35825. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  35826. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  35827. +
  35828. +# Source file extension for f77 test sources.
  35829. +ac_ext=f
  35830. +
  35831. +# Object file extension for compiled f77 test sources.
  35832. +objext=o
  35833. +_LT_TAGVAR(objext, $1)=$objext
  35834. +
  35835. +# No sense in running all these tests if we already determined that
  35836. +# the F77 compiler isn't working. Some variables (like enable_shared)
  35837. +# are currently assumed to apply to all compilers on this platform,
  35838. +# and will be corrupted by setting them based on a non-working compiler.
  35839. +if test "$_lt_disable_F77" != yes; then
  35840. + # Code to be used in simple compile tests
  35841. + lt_simple_compile_test_code="\
  35842. + subroutine t
  35843. + return
  35844. + end
  35845. +"
  35846. +
  35847. + # Code to be used in simple link tests
  35848. + lt_simple_link_test_code="\
  35849. + program t
  35850. + end
  35851. +"
  35852. +
  35853. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  35854. + _LT_TAG_COMPILER
  35855. +
  35856. + # save warnings/boilerplate of simple test code
  35857. + _LT_COMPILER_BOILERPLATE
  35858. + _LT_LINKER_BOILERPLATE
  35859. +
  35860. + # Allow CC to be a program name with arguments.
  35861. + lt_save_CC="$CC"
  35862. + lt_save_GCC=$GCC
  35863. + CC=${F77-"f77"}
  35864. + compiler=$CC
  35865. + _LT_TAGVAR(compiler, $1)=$CC
  35866. + _LT_CC_BASENAME([$compiler])
  35867. + GCC=$G77
  35868. + if test -n "$compiler"; then
  35869. + AC_MSG_CHECKING([if libtool supports shared libraries])
  35870. + AC_MSG_RESULT([$can_build_shared])
  35871. +
  35872. + AC_MSG_CHECKING([whether to build shared libraries])
  35873. + test "$can_build_shared" = "no" && enable_shared=no
  35874. +
  35875. + # On AIX, shared libraries and static libraries use the same namespace, and
  35876. + # are all built from PIC.
  35877. + case $host_os in
  35878. + aix3*)
  35879. + test "$enable_shared" = yes && enable_static=no
  35880. + if test -n "$RANLIB"; then
  35881. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  35882. + postinstall_cmds='$RANLIB $lib'
  35883. + fi
  35884. + ;;
  35885. + aix[[4-9]]*)
  35886. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  35887. + test "$enable_shared" = yes && enable_static=no
  35888. + fi
  35889. + ;;
  35890. + esac
  35891. + AC_MSG_RESULT([$enable_shared])
  35892. +
  35893. + AC_MSG_CHECKING([whether to build static libraries])
  35894. + # Make sure either enable_shared or enable_static is yes.
  35895. + test "$enable_shared" = yes || enable_static=yes
  35896. + AC_MSG_RESULT([$enable_static])
  35897. +
  35898. + _LT_TAGVAR(GCC, $1)="$G77"
  35899. + _LT_TAGVAR(LD, $1)="$LD"
  35900. +
  35901. + ## CAVEAT EMPTOR:
  35902. + ## There is no encapsulation within the following macros, do not change
  35903. + ## the running order or otherwise move them around unless you know exactly
  35904. + ## what you are doing...
  35905. + _LT_COMPILER_PIC($1)
  35906. + _LT_COMPILER_C_O($1)
  35907. + _LT_COMPILER_FILE_LOCKS($1)
  35908. + _LT_LINKER_SHLIBS($1)
  35909. + _LT_SYS_DYNAMIC_LINKER($1)
  35910. + _LT_LINKER_HARDCODE_LIBPATH($1)
  35911. +
  35912. + _LT_CONFIG($1)
  35913. + fi # test -n "$compiler"
  35914. +
  35915. + GCC=$lt_save_GCC
  35916. + CC="$lt_save_CC"
  35917. +fi # test "$_lt_disable_F77" != yes
  35918. +
  35919. +AC_LANG_POP
  35920. +])# _LT_LANG_F77_CONFIG
  35921. +
  35922. +
  35923. +# _LT_PROG_FC
  35924. +# -----------
  35925. +# Since AC_PROG_FC is broken, in that it returns the empty string
  35926. +# if there is no fortran compiler, we have our own version here.
  35927. +m4_defun([_LT_PROG_FC],
  35928. +[
  35929. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  35930. +AC_PROG_FC
  35931. +if test -z "$FC" || test "X$FC" = "Xno"; then
  35932. + _lt_disable_FC=yes
  35933. +fi
  35934. +popdef([AC_MSG_ERROR])
  35935. +])# _LT_PROG_FC
  35936. +
  35937. +dnl aclocal-1.4 backwards compatibility:
  35938. +dnl AC_DEFUN([_LT_PROG_FC], [])
  35939. +
  35940. +
  35941. +# _LT_LANG_FC_CONFIG([TAG])
  35942. +# -------------------------
  35943. +# Ensure that the configuration variables for a Fortran compiler are
  35944. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  35945. +# to write the compiler configuration to `libtool'.
  35946. +m4_defun([_LT_LANG_FC_CONFIG],
  35947. +[AC_REQUIRE([_LT_PROG_FC])dnl
  35948. +AC_LANG_PUSH(Fortran)
  35949. +
  35950. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  35951. +_LT_TAGVAR(allow_undefined_flag, $1)=
  35952. +_LT_TAGVAR(always_export_symbols, $1)=no
  35953. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  35954. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  35955. +_LT_TAGVAR(hardcode_direct, $1)=no
  35956. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  35957. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  35958. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  35959. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  35960. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  35961. +_LT_TAGVAR(hardcode_automatic, $1)=no
  35962. +_LT_TAGVAR(inherit_rpath, $1)=no
  35963. +_LT_TAGVAR(module_cmds, $1)=
  35964. +_LT_TAGVAR(module_expsym_cmds, $1)=
  35965. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  35966. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  35967. +_LT_TAGVAR(no_undefined_flag, $1)=
  35968. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  35969. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  35970. +
  35971. +# Source file extension for fc test sources.
  35972. +ac_ext=${ac_fc_srcext-f}
  35973. +
  35974. +# Object file extension for compiled fc test sources.
  35975. +objext=o
  35976. +_LT_TAGVAR(objext, $1)=$objext
  35977. +
  35978. +# No sense in running all these tests if we already determined that
  35979. +# the FC compiler isn't working. Some variables (like enable_shared)
  35980. +# are currently assumed to apply to all compilers on this platform,
  35981. +# and will be corrupted by setting them based on a non-working compiler.
  35982. +if test "$_lt_disable_FC" != yes; then
  35983. + # Code to be used in simple compile tests
  35984. + lt_simple_compile_test_code="\
  35985. + subroutine t
  35986. + return
  35987. + end
  35988. +"
  35989. +
  35990. + # Code to be used in simple link tests
  35991. + lt_simple_link_test_code="\
  35992. + program t
  35993. + end
  35994. +"
  35995. +
  35996. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  35997. + _LT_TAG_COMPILER
  35998. +
  35999. + # save warnings/boilerplate of simple test code
  36000. + _LT_COMPILER_BOILERPLATE
  36001. + _LT_LINKER_BOILERPLATE
  36002. +
  36003. + # Allow CC to be a program name with arguments.
  36004. + lt_save_CC="$CC"
  36005. + lt_save_GCC=$GCC
  36006. + CC=${FC-"f95"}
  36007. + compiler=$CC
  36008. + GCC=$ac_cv_fc_compiler_gnu
  36009. +
  36010. + _LT_TAGVAR(compiler, $1)=$CC
  36011. + _LT_CC_BASENAME([$compiler])
  36012. +
  36013. + if test -n "$compiler"; then
  36014. + AC_MSG_CHECKING([if libtool supports shared libraries])
  36015. + AC_MSG_RESULT([$can_build_shared])
  36016. +
  36017. + AC_MSG_CHECKING([whether to build shared libraries])
  36018. + test "$can_build_shared" = "no" && enable_shared=no
  36019. +
  36020. + # On AIX, shared libraries and static libraries use the same namespace, and
  36021. + # are all built from PIC.
  36022. + case $host_os in
  36023. + aix3*)
  36024. + test "$enable_shared" = yes && enable_static=no
  36025. + if test -n "$RANLIB"; then
  36026. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  36027. + postinstall_cmds='$RANLIB $lib'
  36028. + fi
  36029. + ;;
  36030. + aix[[4-9]]*)
  36031. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  36032. + test "$enable_shared" = yes && enable_static=no
  36033. + fi
  36034. + ;;
  36035. + esac
  36036. + AC_MSG_RESULT([$enable_shared])
  36037. +
  36038. + AC_MSG_CHECKING([whether to build static libraries])
  36039. + # Make sure either enable_shared or enable_static is yes.
  36040. + test "$enable_shared" = yes || enable_static=yes
  36041. + AC_MSG_RESULT([$enable_static])
  36042. +
  36043. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  36044. + _LT_TAGVAR(LD, $1)="$LD"
  36045. +
  36046. + ## CAVEAT EMPTOR:
  36047. + ## There is no encapsulation within the following macros, do not change
  36048. + ## the running order or otherwise move them around unless you know exactly
  36049. + ## what you are doing...
  36050. + _LT_SYS_HIDDEN_LIBDEPS($1)
  36051. + _LT_COMPILER_PIC($1)
  36052. + _LT_COMPILER_C_O($1)
  36053. + _LT_COMPILER_FILE_LOCKS($1)
  36054. + _LT_LINKER_SHLIBS($1)
  36055. + _LT_SYS_DYNAMIC_LINKER($1)
  36056. + _LT_LINKER_HARDCODE_LIBPATH($1)
  36057. +
  36058. + _LT_CONFIG($1)
  36059. + fi # test -n "$compiler"
  36060. +
  36061. + GCC=$lt_save_GCC
  36062. + CC="$lt_save_CC"
  36063. +fi # test "$_lt_disable_FC" != yes
  36064. +
  36065. +AC_LANG_POP
  36066. +])# _LT_LANG_FC_CONFIG
  36067. +
  36068. +
  36069. +# _LT_LANG_GCJ_CONFIG([TAG])
  36070. +# --------------------------
  36071. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  36072. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  36073. +# to write the compiler configuration to `libtool'.
  36074. +m4_defun([_LT_LANG_GCJ_CONFIG],
  36075. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  36076. +AC_LANG_SAVE
  36077. +
  36078. +# Source file extension for Java test sources.
  36079. +ac_ext=java
  36080. +
  36081. +# Object file extension for compiled Java test sources.
  36082. +objext=o
  36083. +_LT_TAGVAR(objext, $1)=$objext
  36084. +
  36085. +# Code to be used in simple compile tests
  36086. +lt_simple_compile_test_code="class foo {}"
  36087. +
  36088. +# Code to be used in simple link tests
  36089. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  36090. +
  36091. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  36092. +_LT_TAG_COMPILER
  36093. +
  36094. +# save warnings/boilerplate of simple test code
  36095. +_LT_COMPILER_BOILERPLATE
  36096. +_LT_LINKER_BOILERPLATE
  36097. +
  36098. +# Allow CC to be a program name with arguments.
  36099. +lt_save_CC="$CC"
  36100. +lt_save_GCC=$GCC
  36101. +GCC=yes
  36102. +CC=${GCJ-"gcj"}
  36103. +compiler=$CC
  36104. +_LT_TAGVAR(compiler, $1)=$CC
  36105. +_LT_TAGVAR(LD, $1)="$LD"
  36106. +_LT_CC_BASENAME([$compiler])
  36107. +
  36108. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  36109. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  36110. +
  36111. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  36112. +
  36113. +## CAVEAT EMPTOR:
  36114. +## There is no encapsulation within the following macros, do not change
  36115. +## the running order or otherwise move them around unless you know exactly
  36116. +## what you are doing...
  36117. +if test -n "$compiler"; then
  36118. + _LT_COMPILER_NO_RTTI($1)
  36119. + _LT_COMPILER_PIC($1)
  36120. + _LT_COMPILER_C_O($1)
  36121. + _LT_COMPILER_FILE_LOCKS($1)
  36122. + _LT_LINKER_SHLIBS($1)
  36123. + _LT_LINKER_HARDCODE_LIBPATH($1)
  36124. +
  36125. + _LT_CONFIG($1)
  36126. +fi
  36127. +
  36128. +AC_LANG_RESTORE
  36129. +
  36130. +GCC=$lt_save_GCC
  36131. +CC="$lt_save_CC"
  36132. +])# _LT_LANG_GCJ_CONFIG
  36133. +
  36134. +
  36135. +# _LT_LANG_RC_CONFIG([TAG])
  36136. +# -------------------------
  36137. +# Ensure that the configuration variables for the Windows resource compiler
  36138. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  36139. +# to write the compiler configuration to `libtool'.
  36140. +m4_defun([_LT_LANG_RC_CONFIG],
  36141. +[AC_REQUIRE([LT_PROG_RC])dnl
  36142. +AC_LANG_SAVE
  36143. +
  36144. +# Source file extension for RC test sources.
  36145. +ac_ext=rc
  36146. +
  36147. +# Object file extension for compiled RC test sources.
  36148. +objext=o
  36149. +_LT_TAGVAR(objext, $1)=$objext
  36150. +
  36151. +# Code to be used in simple compile tests
  36152. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  36153. +
  36154. +# Code to be used in simple link tests
  36155. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  36156. +
  36157. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  36158. +_LT_TAG_COMPILER
  36159. +
  36160. +# save warnings/boilerplate of simple test code
  36161. +_LT_COMPILER_BOILERPLATE
  36162. +_LT_LINKER_BOILERPLATE
  36163. +
  36164. +# Allow CC to be a program name with arguments.
  36165. +lt_save_CC="$CC"
  36166. +lt_save_GCC=$GCC
  36167. +GCC=
  36168. +CC=${RC-"windres"}
  36169. +compiler=$CC
  36170. +_LT_TAGVAR(compiler, $1)=$CC
  36171. +_LT_CC_BASENAME([$compiler])
  36172. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  36173. +
  36174. +if test -n "$compiler"; then
  36175. + :
  36176. + _LT_CONFIG($1)
  36177. +fi
  36178. +
  36179. +GCC=$lt_save_GCC
  36180. +AC_LANG_RESTORE
  36181. +CC="$lt_save_CC"
  36182. +])# _LT_LANG_RC_CONFIG
  36183. +
  36184. +
  36185. +# LT_PROG_GCJ
  36186. +# -----------
  36187. +AC_DEFUN([LT_PROG_GCJ],
  36188. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  36189. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  36190. + [AC_CHECK_TOOL(GCJ, gcj,)
  36191. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  36192. + AC_SUBST(GCJFLAGS)])])[]dnl
  36193. +])
  36194. +
  36195. +# Old name:
  36196. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  36197. +dnl aclocal-1.4 backwards compatibility:
  36198. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  36199. +
  36200. +
  36201. +# LT_PROG_RC
  36202. +# ----------
  36203. +AC_DEFUN([LT_PROG_RC],
  36204. +[AC_CHECK_TOOL(RC, windres,)
  36205. +])
  36206. +
  36207. +# Old name:
  36208. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  36209. +dnl aclocal-1.4 backwards compatibility:
  36210. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  36211. +
  36212. +
  36213. +# _LT_DECL_EGREP
  36214. +# --------------
  36215. +# If we don't have a new enough Autoconf to choose the best grep
  36216. +# available, choose the one first in the user's PATH.
  36217. +m4_defun([_LT_DECL_EGREP],
  36218. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  36219. +AC_REQUIRE([AC_PROG_FGREP])dnl
  36220. +test -z "$GREP" && GREP=grep
  36221. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  36222. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  36223. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  36224. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  36225. +AC_SUBST([GREP])
  36226. +])
  36227. +
  36228. +
  36229. +# _LT_DECL_OBJDUMP
  36230. +# --------------
  36231. +# If we don't have a new enough Autoconf to choose the best objdump
  36232. +# available, choose the one first in the user's PATH.
  36233. +m4_defun([_LT_DECL_OBJDUMP],
  36234. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  36235. +test -z "$OBJDUMP" && OBJDUMP=objdump
  36236. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  36237. +AC_SUBST([OBJDUMP])
  36238. +])
  36239. +
  36240. +
  36241. +# _LT_DECL_SED
  36242. +# ------------
  36243. +# Check for a fully-functional sed program, that truncates
  36244. +# as few characters as possible. Prefer GNU sed if found.
  36245. +m4_defun([_LT_DECL_SED],
  36246. +[AC_PROG_SED
  36247. +test -z "$SED" && SED=sed
  36248. +Xsed="$SED -e 1s/^X//"
  36249. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  36250. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  36251. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  36252. +])# _LT_DECL_SED
  36253. +
  36254. +m4_ifndef([AC_PROG_SED], [
  36255. +############################################################
  36256. +# NOTE: This macro has been submitted for inclusion into #
  36257. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  36258. +# a released version of Autoconf we should remove this #
  36259. +# macro and use it instead. #
  36260. +############################################################
  36261. +
  36262. +m4_defun([AC_PROG_SED],
  36263. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  36264. +AC_CACHE_VAL(lt_cv_path_SED,
  36265. +[# Loop through the user's path and test for sed and gsed.
  36266. +# Then use that list of sed's as ones to test for truncation.
  36267. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  36268. +for as_dir in $PATH
  36269. +do
  36270. + IFS=$as_save_IFS
  36271. + test -z "$as_dir" && as_dir=.
  36272. + for lt_ac_prog in sed gsed; do
  36273. + for ac_exec_ext in '' $ac_executable_extensions; do
  36274. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  36275. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  36276. + fi
  36277. + done
  36278. + done
  36279. +done
  36280. +IFS=$as_save_IFS
  36281. +lt_ac_max=0
  36282. +lt_ac_count=0
  36283. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  36284. +# along with /bin/sed that truncates output.
  36285. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  36286. + test ! -f $lt_ac_sed && continue
  36287. + cat /dev/null > conftest.in
  36288. + lt_ac_count=0
  36289. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  36290. + # Check for GNU sed and select it if it is found.
  36291. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  36292. + lt_cv_path_SED=$lt_ac_sed
  36293. + break
  36294. + fi
  36295. + while true; do
  36296. + cat conftest.in conftest.in >conftest.tmp
  36297. + mv conftest.tmp conftest.in
  36298. + cp conftest.in conftest.nl
  36299. + echo >>conftest.nl
  36300. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  36301. + cmp -s conftest.out conftest.nl || break
  36302. + # 10000 chars as input seems more than enough
  36303. + test $lt_ac_count -gt 10 && break
  36304. + lt_ac_count=`expr $lt_ac_count + 1`
  36305. + if test $lt_ac_count -gt $lt_ac_max; then
  36306. + lt_ac_max=$lt_ac_count
  36307. + lt_cv_path_SED=$lt_ac_sed
  36308. + fi
  36309. + done
  36310. +done
  36311. +])
  36312. +SED=$lt_cv_path_SED
  36313. +AC_SUBST([SED])
  36314. +AC_MSG_RESULT([$SED])
  36315. +])#AC_PROG_SED
  36316. +])#m4_ifndef
  36317. +
  36318. +# Old name:
  36319. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  36320. +dnl aclocal-1.4 backwards compatibility:
  36321. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  36322. +
  36323. +
  36324. +# _LT_CHECK_SHELL_FEATURES
  36325. +# ------------------------
  36326. +# Find out whether the shell is Bourne or XSI compatible,
  36327. +# or has some other useful features.
  36328. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  36329. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  36330. +# Try some XSI features
  36331. +xsi_shell=no
  36332. +( _lt_dummy="a/b/c"
  36333. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  36334. + = c,a/b,, \
  36335. + && eval 'test $(( 1 + 1 )) -eq 2 \
  36336. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  36337. + && xsi_shell=yes
  36338. +AC_MSG_RESULT([$xsi_shell])
  36339. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  36340. +
  36341. +AC_MSG_CHECKING([whether the shell understands "+="])
  36342. +lt_shell_append=no
  36343. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  36344. + >/dev/null 2>&1 \
  36345. + && lt_shell_append=yes
  36346. +AC_MSG_RESULT([$lt_shell_append])
  36347. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  36348. +
  36349. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  36350. + lt_unset=unset
  36351. +else
  36352. + lt_unset=false
  36353. +fi
  36354. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  36355. +
  36356. +# test EBCDIC or ASCII
  36357. +case `echo X|tr X '\101'` in
  36358. + A) # ASCII based system
  36359. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  36360. + lt_SP2NL='tr \040 \012'
  36361. + lt_NL2SP='tr \015\012 \040\040'
  36362. + ;;
  36363. + *) # EBCDIC based system
  36364. + lt_SP2NL='tr \100 \n'
  36365. + lt_NL2SP='tr \r\n \100\100'
  36366. + ;;
  36367. +esac
  36368. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  36369. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  36370. +])# _LT_CHECK_SHELL_FEATURES
  36371. +
  36372. +
  36373. +# _LT_PROG_XSI_SHELLFNS
  36374. +# ---------------------
  36375. +# Bourne and XSI compatible variants of some useful shell functions.
  36376. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  36377. +[case $xsi_shell in
  36378. + yes)
  36379. + cat << \_LT_EOF >> "$cfgfile"
  36380. +
  36381. +# func_dirname file append nondir_replacement
  36382. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  36383. +# otherwise set result to NONDIR_REPLACEMENT.
  36384. +func_dirname ()
  36385. +{
  36386. + case ${1} in
  36387. + */*) func_dirname_result="${1%/*}${2}" ;;
  36388. + * ) func_dirname_result="${3}" ;;
  36389. + esac
  36390. +}
  36391. +
  36392. +# func_basename file
  36393. +func_basename ()
  36394. +{
  36395. + func_basename_result="${1##*/}"
  36396. +}
  36397. +
  36398. +# func_dirname_and_basename file append nondir_replacement
  36399. +# perform func_basename and func_dirname in a single function
  36400. +# call:
  36401. +# dirname: Compute the dirname of FILE. If nonempty,
  36402. +# add APPEND to the result, otherwise set result
  36403. +# to NONDIR_REPLACEMENT.
  36404. +# value returned in "$func_dirname_result"
  36405. +# basename: Compute filename of FILE.
  36406. +# value retuned in "$func_basename_result"
  36407. +# Implementation must be kept synchronized with func_dirname
  36408. +# and func_basename. For efficiency, we do not delegate to
  36409. +# those functions but instead duplicate the functionality here.
  36410. +func_dirname_and_basename ()
  36411. +{
  36412. + case ${1} in
  36413. + */*) func_dirname_result="${1%/*}${2}" ;;
  36414. + * ) func_dirname_result="${3}" ;;
  36415. + esac
  36416. + func_basename_result="${1##*/}"
  36417. +}
  36418. +
  36419. +# func_stripname prefix suffix name
  36420. +# strip PREFIX and SUFFIX off of NAME.
  36421. +# PREFIX and SUFFIX must not contain globbing or regex special
  36422. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  36423. +# dot (in which case that matches only a dot).
  36424. +func_stripname ()
  36425. +{
  36426. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  36427. + # positional parameters, so assign one to ordinary parameter first.
  36428. + func_stripname_result=${3}
  36429. + func_stripname_result=${func_stripname_result#"${1}"}
  36430. + func_stripname_result=${func_stripname_result%"${2}"}
  36431. +}
  36432. +
  36433. +# func_opt_split
  36434. +func_opt_split ()
  36435. +{
  36436. + func_opt_split_opt=${1%%=*}
  36437. + func_opt_split_arg=${1#*=}
  36438. +}
  36439. +
  36440. +# func_lo2o object
  36441. +func_lo2o ()
  36442. +{
  36443. + case ${1} in
  36444. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  36445. + *) func_lo2o_result=${1} ;;
  36446. + esac
  36447. +}
  36448. +
  36449. +# func_xform libobj-or-source
  36450. +func_xform ()
  36451. +{
  36452. + func_xform_result=${1%.*}.lo
  36453. +}
  36454. +
  36455. +# func_arith arithmetic-term...
  36456. +func_arith ()
  36457. +{
  36458. + func_arith_result=$(( $[*] ))
  36459. +}
  36460. +
  36461. +# func_len string
  36462. +# STRING may not start with a hyphen.
  36463. +func_len ()
  36464. +{
  36465. + func_len_result=${#1}
  36466. +}
  36467. +
  36468. +_LT_EOF
  36469. + ;;
  36470. + *) # Bourne compatible functions.
  36471. + cat << \_LT_EOF >> "$cfgfile"
  36472. +
  36473. +# func_dirname file append nondir_replacement
  36474. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  36475. +# otherwise set result to NONDIR_REPLACEMENT.
  36476. +func_dirname ()
  36477. +{
  36478. + # Extract subdirectory from the argument.
  36479. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  36480. + if test "X$func_dirname_result" = "X${1}"; then
  36481. + func_dirname_result="${3}"
  36482. + else
  36483. + func_dirname_result="$func_dirname_result${2}"
  36484. + fi
  36485. +}
  36486. +
  36487. +# func_basename file
  36488. +func_basename ()
  36489. +{
  36490. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  36491. +}
  36492. +
  36493. +dnl func_dirname_and_basename
  36494. +dnl A portable version of this function is already defined in general.m4sh
  36495. +dnl so there is no need for it here.
  36496. +
  36497. +# func_stripname prefix suffix name
  36498. +# strip PREFIX and SUFFIX off of NAME.
  36499. +# PREFIX and SUFFIX must not contain globbing or regex special
  36500. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  36501. +# dot (in which case that matches only a dot).
  36502. +# func_strip_suffix prefix name
  36503. +func_stripname ()
  36504. +{
  36505. + case ${2} in
  36506. + .*) func_stripname_result=`$ECHO "X${3}" \
  36507. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  36508. + *) func_stripname_result=`$ECHO "X${3}" \
  36509. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  36510. + esac
  36511. +}
  36512. +
  36513. +# sed scripts:
  36514. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  36515. +my_sed_long_arg='1s/^-[[^=]]*=//'
  36516. +
  36517. +# func_opt_split
  36518. +func_opt_split ()
  36519. +{
  36520. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  36521. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  36522. +}
  36523. +
  36524. +# func_lo2o object
  36525. +func_lo2o ()
  36526. +{
  36527. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  36528. +}
  36529. +
  36530. +# func_xform libobj-or-source
  36531. +func_xform ()
  36532. +{
  36533. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  36534. +}
  36535. +
  36536. +# func_arith arithmetic-term...
  36537. +func_arith ()
  36538. +{
  36539. + func_arith_result=`expr "$[@]"`
  36540. +}
  36541. +
  36542. +# func_len string
  36543. +# STRING may not start with a hyphen.
  36544. +func_len ()
  36545. +{
  36546. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  36547. +}
  36548. +
  36549. +_LT_EOF
  36550. +esac
  36551. +
  36552. +case $lt_shell_append in
  36553. + yes)
  36554. + cat << \_LT_EOF >> "$cfgfile"
  36555. +
  36556. +# func_append var value
  36557. +# Append VALUE to the end of shell variable VAR.
  36558. +func_append ()
  36559. +{
  36560. + eval "$[1]+=\$[2]"
  36561. +}
  36562. +_LT_EOF
  36563. + ;;
  36564. + *)
  36565. + cat << \_LT_EOF >> "$cfgfile"
  36566. +
  36567. +# func_append var value
  36568. +# Append VALUE to the end of shell variable VAR.
  36569. +func_append ()
  36570. +{
  36571. + eval "$[1]=\$$[1]\$[2]"
  36572. +}
  36573. +
  36574. +_LT_EOF
  36575. + ;;
  36576. + esac
  36577. +])
  36578. --- libtar-1.2.11.orig/m4/ltoptions.m4
  36579. +++ libtar-1.2.11/m4/ltoptions.m4
  36580. @@ -0,0 +1,368 @@
  36581. +# Helper functions for option handling. -*- Autoconf -*-
  36582. +#
  36583. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  36584. +# Written by Gary V. Vaughan, 2004
  36585. +#
  36586. +# This file is free software; the Free Software Foundation gives
  36587. +# unlimited permission to copy and/or distribute it, with or without
  36588. +# modifications, as long as this notice is preserved.
  36589. +
  36590. +# serial 6 ltoptions.m4
  36591. +
  36592. +# This is to help aclocal find these macros, as it can't see m4_define.
  36593. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  36594. +
  36595. +
  36596. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  36597. +# ------------------------------------------
  36598. +m4_define([_LT_MANGLE_OPTION],
  36599. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  36600. +
  36601. +
  36602. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  36603. +# ---------------------------------------
  36604. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  36605. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  36606. +# saved as a flag.
  36607. +m4_define([_LT_SET_OPTION],
  36608. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  36609. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  36610. + _LT_MANGLE_DEFUN([$1], [$2]),
  36611. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  36612. +])
  36613. +
  36614. +
  36615. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  36616. +# ------------------------------------------------------------
  36617. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  36618. +m4_define([_LT_IF_OPTION],
  36619. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  36620. +
  36621. +
  36622. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  36623. +# -------------------------------------------------------
  36624. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  36625. +# are set.
  36626. +m4_define([_LT_UNLESS_OPTIONS],
  36627. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  36628. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  36629. + [m4_define([$0_found])])])[]dnl
  36630. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  36631. +])[]dnl
  36632. +])
  36633. +
  36634. +
  36635. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  36636. +# ----------------------------------------
  36637. +# OPTION-LIST is a space-separated list of Libtool options associated
  36638. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  36639. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  36640. +# the unknown option and exit.
  36641. +m4_defun([_LT_SET_OPTIONS],
  36642. +[# Set options
  36643. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  36644. + [_LT_SET_OPTION([$1], _LT_Option)])
  36645. +
  36646. +m4_if([$1],[LT_INIT],[
  36647. + dnl
  36648. + dnl Simply set some default values (i.e off) if boolean options were not
  36649. + dnl specified:
  36650. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  36651. + ])
  36652. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  36653. + ])
  36654. + dnl
  36655. + dnl If no reference was made to various pairs of opposing options, then
  36656. + dnl we run the default mode handler for the pair. For example, if neither
  36657. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  36658. + dnl archives by default:
  36659. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  36660. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  36661. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  36662. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  36663. + [_LT_ENABLE_FAST_INSTALL])
  36664. + ])
  36665. +])# _LT_SET_OPTIONS
  36666. +
  36667. +
  36668. +## --------------------------------- ##
  36669. +## Macros to handle LT_INIT options. ##
  36670. +## --------------------------------- ##
  36671. +
  36672. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  36673. +# -----------------------------------------
  36674. +m4_define([_LT_MANGLE_DEFUN],
  36675. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  36676. +
  36677. +
  36678. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  36679. +# -----------------------------------------------
  36680. +m4_define([LT_OPTION_DEFINE],
  36681. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  36682. +])# LT_OPTION_DEFINE
  36683. +
  36684. +
  36685. +# dlopen
  36686. +# ------
  36687. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  36688. +])
  36689. +
  36690. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  36691. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  36692. +AC_DIAGNOSE([obsolete],
  36693. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  36694. +put the `dlopen' option into LT_INIT's first parameter.])
  36695. +])
  36696. +
  36697. +dnl aclocal-1.4 backwards compatibility:
  36698. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  36699. +
  36700. +
  36701. +# win32-dll
  36702. +# ---------
  36703. +# Declare package support for building win32 dll's.
  36704. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  36705. +[enable_win32_dll=yes
  36706. +
  36707. +case $host in
  36708. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  36709. + AC_CHECK_TOOL(AS, as, false)
  36710. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  36711. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  36712. + ;;
  36713. +esac
  36714. +
  36715. +test -z "$AS" && AS=as
  36716. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  36717. +
  36718. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  36719. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  36720. +
  36721. +test -z "$OBJDUMP" && OBJDUMP=objdump
  36722. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  36723. +])# win32-dll
  36724. +
  36725. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  36726. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  36727. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  36728. +AC_DIAGNOSE([obsolete],
  36729. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  36730. +put the `win32-dll' option into LT_INIT's first parameter.])
  36731. +])
  36732. +
  36733. +dnl aclocal-1.4 backwards compatibility:
  36734. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  36735. +
  36736. +
  36737. +# _LT_ENABLE_SHARED([DEFAULT])
  36738. +# ----------------------------
  36739. +# implement the --enable-shared flag, and supports the `shared' and
  36740. +# `disable-shared' LT_INIT options.
  36741. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  36742. +m4_define([_LT_ENABLE_SHARED],
  36743. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  36744. +AC_ARG_ENABLE([shared],
  36745. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  36746. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  36747. + [p=${PACKAGE-default}
  36748. + case $enableval in
  36749. + yes) enable_shared=yes ;;
  36750. + no) enable_shared=no ;;
  36751. + *)
  36752. + enable_shared=no
  36753. + # Look at the argument we got. We use all the common list separators.
  36754. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  36755. + for pkg in $enableval; do
  36756. + IFS="$lt_save_ifs"
  36757. + if test "X$pkg" = "X$p"; then
  36758. + enable_shared=yes
  36759. + fi
  36760. + done
  36761. + IFS="$lt_save_ifs"
  36762. + ;;
  36763. + esac],
  36764. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  36765. +
  36766. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  36767. + [Whether or not to build shared libraries])
  36768. +])# _LT_ENABLE_SHARED
  36769. +
  36770. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  36771. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  36772. +
  36773. +# Old names:
  36774. +AC_DEFUN([AC_ENABLE_SHARED],
  36775. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  36776. +])
  36777. +
  36778. +AC_DEFUN([AC_DISABLE_SHARED],
  36779. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  36780. +])
  36781. +
  36782. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  36783. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  36784. +
  36785. +dnl aclocal-1.4 backwards compatibility:
  36786. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  36787. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  36788. +
  36789. +
  36790. +
  36791. +# _LT_ENABLE_STATIC([DEFAULT])
  36792. +# ----------------------------
  36793. +# implement the --enable-static flag, and support the `static' and
  36794. +# `disable-static' LT_INIT options.
  36795. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  36796. +m4_define([_LT_ENABLE_STATIC],
  36797. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  36798. +AC_ARG_ENABLE([static],
  36799. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  36800. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  36801. + [p=${PACKAGE-default}
  36802. + case $enableval in
  36803. + yes) enable_static=yes ;;
  36804. + no) enable_static=no ;;
  36805. + *)
  36806. + enable_static=no
  36807. + # Look at the argument we got. We use all the common list separators.
  36808. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  36809. + for pkg in $enableval; do
  36810. + IFS="$lt_save_ifs"
  36811. + if test "X$pkg" = "X$p"; then
  36812. + enable_static=yes
  36813. + fi
  36814. + done
  36815. + IFS="$lt_save_ifs"
  36816. + ;;
  36817. + esac],
  36818. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  36819. +
  36820. + _LT_DECL([build_old_libs], [enable_static], [0],
  36821. + [Whether or not to build static libraries])
  36822. +])# _LT_ENABLE_STATIC
  36823. +
  36824. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  36825. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  36826. +
  36827. +# Old names:
  36828. +AC_DEFUN([AC_ENABLE_STATIC],
  36829. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  36830. +])
  36831. +
  36832. +AC_DEFUN([AC_DISABLE_STATIC],
  36833. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  36834. +])
  36835. +
  36836. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  36837. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  36838. +
  36839. +dnl aclocal-1.4 backwards compatibility:
  36840. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  36841. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  36842. +
  36843. +
  36844. +
  36845. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  36846. +# ----------------------------------
  36847. +# implement the --enable-fast-install flag, and support the `fast-install'
  36848. +# and `disable-fast-install' LT_INIT options.
  36849. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  36850. +m4_define([_LT_ENABLE_FAST_INSTALL],
  36851. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  36852. +AC_ARG_ENABLE([fast-install],
  36853. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  36854. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  36855. + [p=${PACKAGE-default}
  36856. + case $enableval in
  36857. + yes) enable_fast_install=yes ;;
  36858. + no) enable_fast_install=no ;;
  36859. + *)
  36860. + enable_fast_install=no
  36861. + # Look at the argument we got. We use all the common list separators.
  36862. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  36863. + for pkg in $enableval; do
  36864. + IFS="$lt_save_ifs"
  36865. + if test "X$pkg" = "X$p"; then
  36866. + enable_fast_install=yes
  36867. + fi
  36868. + done
  36869. + IFS="$lt_save_ifs"
  36870. + ;;
  36871. + esac],
  36872. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  36873. +
  36874. +_LT_DECL([fast_install], [enable_fast_install], [0],
  36875. + [Whether or not to optimize for fast installation])dnl
  36876. +])# _LT_ENABLE_FAST_INSTALL
  36877. +
  36878. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  36879. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  36880. +
  36881. +# Old names:
  36882. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  36883. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  36884. +AC_DIAGNOSE([obsolete],
  36885. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  36886. +the `fast-install' option into LT_INIT's first parameter.])
  36887. +])
  36888. +
  36889. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  36890. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  36891. +AC_DIAGNOSE([obsolete],
  36892. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  36893. +the `disable-fast-install' option into LT_INIT's first parameter.])
  36894. +])
  36895. +
  36896. +dnl aclocal-1.4 backwards compatibility:
  36897. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  36898. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  36899. +
  36900. +
  36901. +# _LT_WITH_PIC([MODE])
  36902. +# --------------------
  36903. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  36904. +# LT_INIT options.
  36905. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  36906. +m4_define([_LT_WITH_PIC],
  36907. +[AC_ARG_WITH([pic],
  36908. + [AS_HELP_STRING([--with-pic],
  36909. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  36910. + [pic_mode="$withval"],
  36911. + [pic_mode=default])
  36912. +
  36913. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  36914. +
  36915. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  36916. +])# _LT_WITH_PIC
  36917. +
  36918. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  36919. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  36920. +
  36921. +# Old name:
  36922. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  36923. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  36924. +AC_DIAGNOSE([obsolete],
  36925. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  36926. +put the `pic-only' option into LT_INIT's first parameter.])
  36927. +])
  36928. +
  36929. +dnl aclocal-1.4 backwards compatibility:
  36930. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  36931. +
  36932. +## ----------------- ##
  36933. +## LTDL_INIT Options ##
  36934. +## ----------------- ##
  36935. +
  36936. +m4_define([_LTDL_MODE], [])
  36937. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  36938. + [m4_define([_LTDL_MODE], [nonrecursive])])
  36939. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  36940. + [m4_define([_LTDL_MODE], [recursive])])
  36941. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  36942. + [m4_define([_LTDL_MODE], [subproject])])
  36943. +
  36944. +m4_define([_LTDL_TYPE], [])
  36945. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  36946. + [m4_define([_LTDL_TYPE], [installable])])
  36947. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  36948. + [m4_define([_LTDL_TYPE], [convenience])])
  36949. --- libtar-1.2.11.orig/m4/ltsugar.m4
  36950. +++ libtar-1.2.11/m4/ltsugar.m4
  36951. @@ -0,0 +1,123 @@
  36952. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  36953. +#
  36954. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  36955. +# Written by Gary V. Vaughan, 2004
  36956. +#
  36957. +# This file is free software; the Free Software Foundation gives
  36958. +# unlimited permission to copy and/or distribute it, with or without
  36959. +# modifications, as long as this notice is preserved.
  36960. +
  36961. +# serial 6 ltsugar.m4
  36962. +
  36963. +# This is to help aclocal find these macros, as it can't see m4_define.
  36964. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  36965. +
  36966. +
  36967. +# lt_join(SEP, ARG1, [ARG2...])
  36968. +# -----------------------------
  36969. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  36970. +# associated separator.
  36971. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  36972. +# versions in m4sugar had bugs.
  36973. +m4_define([lt_join],
  36974. +[m4_if([$#], [1], [],
  36975. + [$#], [2], [[$2]],
  36976. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  36977. +m4_define([_lt_join],
  36978. +[m4_if([$#$2], [2], [],
  36979. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  36980. +
  36981. +
  36982. +# lt_car(LIST)
  36983. +# lt_cdr(LIST)
  36984. +# ------------
  36985. +# Manipulate m4 lists.
  36986. +# These macros are necessary as long as will still need to support
  36987. +# Autoconf-2.59 which quotes differently.
  36988. +m4_define([lt_car], [[$1]])
  36989. +m4_define([lt_cdr],
  36990. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  36991. + [$#], 1, [],
  36992. + [m4_dquote(m4_shift($@))])])
  36993. +m4_define([lt_unquote], $1)
  36994. +
  36995. +
  36996. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  36997. +# ------------------------------------------
  36998. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  36999. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  37000. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  37001. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  37002. +# than defined and empty).
  37003. +#
  37004. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  37005. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  37006. +m4_define([lt_append],
  37007. +[m4_define([$1],
  37008. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  37009. +
  37010. +
  37011. +
  37012. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  37013. +# ----------------------------------------------------------
  37014. +# Produce a SEP delimited list of all paired combinations of elements of
  37015. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  37016. +# has the form PREFIXmINFIXSUFFIXn.
  37017. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  37018. +m4_define([lt_combine],
  37019. +[m4_if(m4_eval([$# > 3]), [1],
  37020. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  37021. +[[m4_foreach([_Lt_prefix], [$2],
  37022. + [m4_foreach([_Lt_suffix],
  37023. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  37024. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  37025. +
  37026. +
  37027. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  37028. +# -----------------------------------------------------------------------
  37029. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  37030. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  37031. +m4_define([lt_if_append_uniq],
  37032. +[m4_ifdef([$1],
  37033. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  37034. + [lt_append([$1], [$2], [$3])$4],
  37035. + [$5])],
  37036. + [lt_append([$1], [$2], [$3])$4])])
  37037. +
  37038. +
  37039. +# lt_dict_add(DICT, KEY, VALUE)
  37040. +# -----------------------------
  37041. +m4_define([lt_dict_add],
  37042. +[m4_define([$1($2)], [$3])])
  37043. +
  37044. +
  37045. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  37046. +# --------------------------------------------
  37047. +m4_define([lt_dict_add_subkey],
  37048. +[m4_define([$1($2:$3)], [$4])])
  37049. +
  37050. +
  37051. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  37052. +# ----------------------------------
  37053. +m4_define([lt_dict_fetch],
  37054. +[m4_ifval([$3],
  37055. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  37056. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  37057. +
  37058. +
  37059. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  37060. +# -----------------------------------------------------------------
  37061. +m4_define([lt_if_dict_fetch],
  37062. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  37063. + [$5],
  37064. + [$6])])
  37065. +
  37066. +
  37067. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  37068. +# --------------------------------------------------------------
  37069. +m4_define([lt_dict_filter],
  37070. +[m4_if([$5], [], [],
  37071. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  37072. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  37073. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  37074. +])
  37075. --- libtar-1.2.11.orig/m4/ltversion.m4
  37076. +++ libtar-1.2.11/m4/ltversion.m4
  37077. @@ -0,0 +1,23 @@
  37078. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  37079. +#
  37080. +# Copyright (C) 2004 Free Software Foundation, Inc.
  37081. +# Written by Scott James Remnant, 2004
  37082. +#
  37083. +# This file is free software; the Free Software Foundation gives
  37084. +# unlimited permission to copy and/or distribute it, with or without
  37085. +# modifications, as long as this notice is preserved.
  37086. +
  37087. +# Generated from ltversion.in.
  37088. +
  37089. +# serial 3012 ltversion.m4
  37090. +# This file is part of GNU Libtool
  37091. +
  37092. +m4_define([LT_PACKAGE_VERSION], [2.2.6])
  37093. +m4_define([LT_PACKAGE_REVISION], [1.3012])
  37094. +
  37095. +AC_DEFUN([LTVERSION_VERSION],
  37096. +[macro_version='2.2.6'
  37097. +macro_revision='1.3012'
  37098. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  37099. +_LT_DECL(, macro_revision, 0)
  37100. +])
  37101. --- libtar-1.2.11.orig/m4/lt~obsolete.m4
  37102. +++ libtar-1.2.11/m4/lt~obsolete.m4
  37103. @@ -0,0 +1,92 @@
  37104. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  37105. +#
  37106. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  37107. +# Written by Scott James Remnant, 2004.
  37108. +#
  37109. +# This file is free software; the Free Software Foundation gives
  37110. +# unlimited permission to copy and/or distribute it, with or without
  37111. +# modifications, as long as this notice is preserved.
  37112. +
  37113. +# serial 4 lt~obsolete.m4
  37114. +
  37115. +# These exist entirely to fool aclocal when bootstrapping libtool.
  37116. +#
  37117. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  37118. +# which have later been changed to m4_define as they aren't part of the
  37119. +# exported API, or moved to Autoconf or Automake where they belong.
  37120. +#
  37121. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  37122. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  37123. +# using a macro with the same name in our local m4/libtool.m4 it'll
  37124. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  37125. +# and doesn't know about Autoconf macros at all.)
  37126. +#
  37127. +# So we provide this file, which has a silly filename so it's always
  37128. +# included after everything else. This provides aclocal with the
  37129. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  37130. +# because those macros already exist, or will be overwritten later.
  37131. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  37132. +#
  37133. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  37134. +# Yes, that means every name once taken will need to remain here until
  37135. +# we give up compatibility with versions before 1.7, at which point
  37136. +# we need to keep only those names which we still refer to.
  37137. +
  37138. +# This is to help aclocal find these macros, as it can't see m4_define.
  37139. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  37140. +
  37141. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  37142. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  37143. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  37144. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  37145. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  37146. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  37147. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  37148. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  37149. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  37150. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  37151. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  37152. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  37153. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  37154. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  37155. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  37156. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  37157. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  37158. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  37159. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  37160. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  37161. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  37162. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  37163. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  37164. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  37165. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  37166. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  37167. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  37168. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  37169. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  37170. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  37171. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  37172. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  37173. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  37174. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  37175. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  37176. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  37177. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  37178. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  37179. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  37180. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  37181. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  37182. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  37183. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  37184. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  37185. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  37186. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  37187. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  37188. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  37189. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  37190. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  37191. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  37192. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  37193. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  37194. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  37195. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])