update-libtool.patch 1.6 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327
  1. diff -urN gtk+-1.2.10.orig/Makefile.in gtk+-1.2.10/Makefile.in
  2. --- gtk+-1.2.10.orig/Makefile.in 2001-04-01 21:14:07.000000000 -0600
  3. +++ gtk+-1.2.10/Makefile.in 2006-07-09 02:29:45.000000000 -0600
  4. @@ -1,6 +1,6 @@
  5. -# Makefile.in generated automatically by automake 1.4 from Makefile.am
  6. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  7. -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
  8. +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  9. # This Makefile.in is free software; the Free Software Foundation
  10. # gives unlimited permission to copy and/or distribute it,
  11. # with or without modifications, as long as this notice is preserved.
  12. @@ -59,13 +59,22 @@
  13. POST_UNINSTALL = :
  14. host_alias = @host_alias@
  15. host_triplet = @host@
  16. +AR = @AR@
  17. AS = @AS@
  18. AWK = @AWK@
  19. CATALOGS = @CATALOGS@
  20. CATOBJEXT = @CATOBJEXT@
  21. CC = @CC@
  22. +CXX = @CXX@
  23. +CXXCPP = @CXXCPP@
  24. DATADIRNAME = @DATADIRNAME@
  25. DLLTOOL = @DLLTOOL@
  26. +ECHO = @ECHO@
  27. +EGREP = @EGREP@
  28. +EXEEXT = @EXEEXT@
  29. +F77 = @F77@
  30. +GCJ = @GCJ@
  31. +GCJFLAGS = @GCJFLAGS@
  32. GDK_WLIBS = @GDK_WLIBS@
  33. GENCAT = @GENCAT@
  34. GLIB_CFLAGS = @GLIB_CFLAGS@
  35. @@ -85,14 +94,17 @@
  36. GTK_XIM_FLAGS = @GTK_XIM_FLAGS@
  37. GT_NO = @GT_NO@
  38. GT_YES = @GT_YES@
  39. +HAVE_LIB = @HAVE_LIB@
  40. INCLUDE_LOCALE_H = @INCLUDE_LOCALE_H@
  41. INDENT = @INDENT@
  42. INSTOBJEXT = @INSTOBJEXT@
  43. INTLDEPS = @INTLDEPS@
  44. INTLLIBS = @INTLLIBS@
  45. INTLOBJS = @INTLOBJS@
  46. +LIB = @LIB@
  47. LIBTOOL = @LIBTOOL@
  48. LN_S = @LN_S@
  49. +LTLIB = @LTLIB@
  50. LT_AGE = @LT_AGE@
  51. LT_CURRENT = @LT_CURRENT@
  52. LT_RELEASE = @LT_RELEASE@
  53. @@ -101,12 +113,16 @@
  54. MAKEINFO = @MAKEINFO@
  55. MKINSTALLDIRS = @MKINSTALLDIRS@
  56. OBJDUMP = @OBJDUMP@
  57. +OBJEXT = @OBJEXT@
  58. PACKAGE = @PACKAGE@
  59. PERL = @PERL@
  60. +PKG_CONFIG = @PKG_CONFIG@
  61. POFILES = @POFILES@
  62. POSUB = @POSUB@
  63. RANLIB = @RANLIB@
  64. +RC = @RC@
  65. REBUILD = @REBUILD@
  66. +STRIP = @STRIP@
  67. STRIP_BEGIN = @STRIP_BEGIN@
  68. STRIP_DUMMY = @STRIP_DUMMY@
  69. STRIP_END = @STRIP_END@
  70. @@ -158,14 +174,14 @@
  71. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  72. -TAR = gtar
  73. +TAR = tar
  74. GZIP_ENV = --best
  75. all: all-redirect
  76. .SUFFIXES:
  77. $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  78. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps Makefile
  79. + cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile
  80. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  81. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  82. cd $(top_builddir) \
  83. && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
  84. @@ -306,7 +322,7 @@
  85. dot_seen=no; \
  86. rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
  87. rev="$$subdir $$rev"; \
  88. - test "$$subdir" = "." && dot_seen=yes; \
  89. + test "$$subdir" != "." || dot_seen=yes; \
  90. done; \
  91. test "$$dot_seen" = "no" && rev=". $$rev"; \
  92. target=`echo $@ | sed s/-recursive//`; \
  93. @@ -348,7 +364,7 @@
  94. awk ' { files[$$0] = 1; } \
  95. END { for (i in files) print i; }'`; \
  96. test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
  97. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
  98. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP))
  99. mostlyclean-tags:
  100. @@ -397,6 +413,11 @@
  101. -rm -rf $(distdir)
  102. mkdir $(distdir)
  103. -chmod 777 $(distdir)
  104. + here=`cd $(top_builddir) && pwd`; \
  105. + top_distdir=`cd $(distdir) && pwd`; \
  106. + distdir=`cd $(distdir) && pwd`; \
  107. + cd $(top_srcdir) \
  108. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu Makefile
  109. $(mkinstalldirs) $(distdir)/examples $(distdir)/examples/aspectframe \
  110. $(distdir)/examples/base $(distdir)/examples/buttons \
  111. $(distdir)/examples/calendar $(distdir)/examples/clist \
  112. diff -urN gtk+-1.2.10.orig/acinclude.m4 gtk+-1.2.10/acinclude.m4
  113. --- gtk+-1.2.10.orig/acinclude.m4 2006-07-09 02:29:43.000000000 -0600
  114. +++ gtk+-1.2.10/acinclude.m4 2006-07-09 02:29:43.000000000 -0600
  115. @@ -248,7 +248,7 @@
  116. AC_DEFINE(HAVE_STPCPY)
  117. fi
  118. - AM_LC_MESSAGES
  119. +
  120. AM_GTK_WITH_NLS
  121. if test "x$CATOBJEXT" != "x"; then
  122. diff -urN gtk+-1.2.10.orig/aclocal.m4 gtk+-1.2.10/aclocal.m4
  123. --- gtk+-1.2.10.orig/aclocal.m4 2001-03-28 14:11:43.000000000 -0700
  124. +++ gtk+-1.2.10/aclocal.m4 2006-07-09 02:29:45.000000000 -0600
  125. @@ -1,6 +1,6 @@
  126. -dnl aclocal.m4 generated automatically by aclocal 1.4
  127. +dnl aclocal.m4 generated automatically by aclocal 1.4-p6
  128. -dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
  129. +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  130. dnl This file is free software; the Free Software Foundation
  131. dnl gives unlimited permission to copy and/or distribute it,
  132. dnl with or without modifications, as long as this notice is preserved.
  133. @@ -11,428 +11,6 @@
  134. dnl PARTICULAR PURPOSE.
  135. -# serial 40 AC_PROG_LIBTOOL
  136. -AC_DEFUN(AC_PROG_LIBTOOL,
  137. -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  138. -
  139. -# Save cache, so that ltconfig can load it
  140. -AC_CACHE_SAVE
  141. -
  142. -# Actually configure libtool. ac_aux_dir is where install-sh is found.
  143. -CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
  144. -LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
  145. -LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
  146. -DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
  147. -${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
  148. -$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
  149. -|| AC_MSG_ERROR([libtool configure failed])
  150. -
  151. -# Reload cache, that may have been modified by ltconfig
  152. -AC_CACHE_LOAD
  153. -
  154. -# This can be used to rebuild libtool when needed
  155. -LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
  156. -
  157. -# Always use our own libtool.
  158. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  159. -AC_SUBST(LIBTOOL)dnl
  160. -
  161. -# Redirect the config.log output again, so that the ltconfig log is not
  162. -# clobbered by the next message.
  163. -exec 5>>./config.log
  164. -])
  165. -
  166. -AC_DEFUN(AC_LIBTOOL_SETUP,
  167. -[AC_PREREQ(2.13)dnl
  168. -AC_REQUIRE([AC_ENABLE_SHARED])dnl
  169. -AC_REQUIRE([AC_ENABLE_STATIC])dnl
  170. -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  171. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  172. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  173. -AC_REQUIRE([AC_PROG_RANLIB])dnl
  174. -AC_REQUIRE([AC_PROG_CC])dnl
  175. -AC_REQUIRE([AC_PROG_LD])dnl
  176. -AC_REQUIRE([AC_PROG_NM])dnl
  177. -AC_REQUIRE([AC_PROG_LN_S])dnl
  178. -dnl
  179. -
  180. -case "$target" in
  181. -NONE) lt_target="$host" ;;
  182. -*) lt_target="$target" ;;
  183. -esac
  184. -
  185. -# Check for any special flags to pass to ltconfig.
  186. -libtool_flags="--cache-file=$cache_file"
  187. -test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
  188. -test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
  189. -test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
  190. -test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
  191. -test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
  192. -ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
  193. -[libtool_flags="$libtool_flags --enable-dlopen"])
  194. -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
  195. -[libtool_flags="$libtool_flags --enable-win32-dll"])
  196. -AC_ARG_ENABLE(libtool-lock,
  197. - [ --disable-libtool-lock avoid locking (might break parallel builds)])
  198. -test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
  199. -test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
  200. -
  201. -# Some flags need to be propagated to the compiler or linker for good
  202. -# libtool support.
  203. -case "$lt_target" in
  204. -*-*-irix6*)
  205. - # Find out which ABI we are using.
  206. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  207. - if AC_TRY_EVAL(ac_compile); then
  208. - case "`/usr/bin/file conftest.o`" in
  209. - *32-bit*)
  210. - LD="${LD-ld} -32"
  211. - ;;
  212. - *N32*)
  213. - LD="${LD-ld} -n32"
  214. - ;;
  215. - *64-bit*)
  216. - LD="${LD-ld} -64"
  217. - ;;
  218. - esac
  219. - fi
  220. - rm -rf conftest*
  221. - ;;
  222. -
  223. -*-*-sco3.2v5*)
  224. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  225. - SAVE_CFLAGS="$CFLAGS"
  226. - CFLAGS="$CFLAGS -belf"
  227. - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  228. - [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
  229. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  230. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  231. - CFLAGS="$SAVE_CFLAGS"
  232. - fi
  233. - ;;
  234. -
  235. -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
  236. -[*-*-cygwin* | *-*-mingw*)
  237. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  238. - AC_CHECK_TOOL(AS, as, false)
  239. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  240. - ;;
  241. -])
  242. -esac
  243. -])
  244. -
  245. -# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
  246. -AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
  247. -
  248. -# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
  249. -AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
  250. -
  251. -# AC_ENABLE_SHARED - implement the --enable-shared flag
  252. -# Usage: AC_ENABLE_SHARED[(DEFAULT)]
  253. -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
  254. -# `yes'.
  255. -AC_DEFUN(AC_ENABLE_SHARED, [dnl
  256. -define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  257. -AC_ARG_ENABLE(shared,
  258. -changequote(<<, >>)dnl
  259. -<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
  260. -changequote([, ])dnl
  261. -[p=${PACKAGE-default}
  262. -case "$enableval" in
  263. -yes) enable_shared=yes ;;
  264. -no) enable_shared=no ;;
  265. -*)
  266. - enable_shared=no
  267. - # Look at the argument we got. We use all the common list separators.
  268. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  269. - for pkg in $enableval; do
  270. - if test "X$pkg" = "X$p"; then
  271. - enable_shared=yes
  272. - fi
  273. - done
  274. - IFS="$ac_save_ifs"
  275. - ;;
  276. -esac],
  277. -enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
  278. -])
  279. -
  280. -# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
  281. -AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  282. -AC_ENABLE_SHARED(no)])
  283. -
  284. -# AC_ENABLE_STATIC - implement the --enable-static flag
  285. -# Usage: AC_ENABLE_STATIC[(DEFAULT)]
  286. -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
  287. -# `yes'.
  288. -AC_DEFUN(AC_ENABLE_STATIC, [dnl
  289. -define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  290. -AC_ARG_ENABLE(static,
  291. -changequote(<<, >>)dnl
  292. -<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
  293. -changequote([, ])dnl
  294. -[p=${PACKAGE-default}
  295. -case "$enableval" in
  296. -yes) enable_static=yes ;;
  297. -no) enable_static=no ;;
  298. -*)
  299. - enable_static=no
  300. - # Look at the argument we got. We use all the common list separators.
  301. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  302. - for pkg in $enableval; do
  303. - if test "X$pkg" = "X$p"; then
  304. - enable_static=yes
  305. - fi
  306. - done
  307. - IFS="$ac_save_ifs"
  308. - ;;
  309. -esac],
  310. -enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
  311. -])
  312. -
  313. -# AC_DISABLE_STATIC - set the default static flag to --disable-static
  314. -AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  315. -AC_ENABLE_STATIC(no)])
  316. -
  317. -
  318. -# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
  319. -# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
  320. -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
  321. -# `yes'.
  322. -AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
  323. -define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  324. -AC_ARG_ENABLE(fast-install,
  325. -changequote(<<, >>)dnl
  326. -<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
  327. -changequote([, ])dnl
  328. -[p=${PACKAGE-default}
  329. -case "$enableval" in
  330. -yes) enable_fast_install=yes ;;
  331. -no) enable_fast_install=no ;;
  332. -*)
  333. - enable_fast_install=no
  334. - # Look at the argument we got. We use all the common list separators.
  335. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  336. - for pkg in $enableval; do
  337. - if test "X$pkg" = "X$p"; then
  338. - enable_fast_install=yes
  339. - fi
  340. - done
  341. - IFS="$ac_save_ifs"
  342. - ;;
  343. -esac],
  344. -enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
  345. -])
  346. -
  347. -# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
  348. -AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  349. -AC_ENABLE_FAST_INSTALL(no)])
  350. -
  351. -# AC_PROG_LD - find the path to the GNU or non-GNU linker
  352. -AC_DEFUN(AC_PROG_LD,
  353. -[AC_ARG_WITH(gnu-ld,
  354. -[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
  355. -test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
  356. -AC_REQUIRE([AC_PROG_CC])dnl
  357. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  358. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  359. -ac_prog=ld
  360. -if test "$ac_cv_prog_gcc" = yes; then
  361. - # Check if gcc -print-prog-name=ld gives a path.
  362. - AC_MSG_CHECKING([for ld used by GCC])
  363. - ac_prog=`($CC -print-prog-name=ld) 2>&5`
  364. - case "$ac_prog" in
  365. - # Accept absolute paths.
  366. -changequote(,)dnl
  367. - [\\/]* | [A-Za-z]:[\\/]*)
  368. - re_direlt='/[^/][^/]*/\.\./'
  369. -changequote([,])dnl
  370. - # Canonicalize the path of ld
  371. - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  372. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  373. - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  374. - done
  375. - test -z "$LD" && LD="$ac_prog"
  376. - ;;
  377. - "")
  378. - # If it fails, then pretend we aren't using GCC.
  379. - ac_prog=ld
  380. - ;;
  381. - *)
  382. - # If it is relative, then search for the first ld in PATH.
  383. - with_gnu_ld=unknown
  384. - ;;
  385. - esac
  386. -elif test "$with_gnu_ld" = yes; then
  387. - AC_MSG_CHECKING([for GNU ld])
  388. -else
  389. - AC_MSG_CHECKING([for non-GNU ld])
  390. -fi
  391. -AC_CACHE_VAL(ac_cv_path_LD,
  392. -[if test -z "$LD"; then
  393. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  394. - for ac_dir in $PATH; do
  395. - test -z "$ac_dir" && ac_dir=.
  396. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  397. - ac_cv_path_LD="$ac_dir/$ac_prog"
  398. - # Check to see if the program is GNU ld. I'd rather use --version,
  399. - # but apparently some GNU ld's only accept -v.
  400. - # Break only if it was the GNU/non-GNU ld that we prefer.
  401. - if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  402. - test "$with_gnu_ld" != no && break
  403. - else
  404. - test "$with_gnu_ld" != yes && break
  405. - fi
  406. - fi
  407. - done
  408. - IFS="$ac_save_ifs"
  409. -else
  410. - ac_cv_path_LD="$LD" # Let the user override the test with a path.
  411. -fi])
  412. -LD="$ac_cv_path_LD"
  413. -if test -n "$LD"; then
  414. - AC_MSG_RESULT($LD)
  415. -else
  416. - AC_MSG_RESULT(no)
  417. -fi
  418. -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  419. -AC_PROG_LD_GNU
  420. -])
  421. -
  422. -AC_DEFUN(AC_PROG_LD_GNU,
  423. -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
  424. -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  425. -if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  426. - ac_cv_prog_gnu_ld=yes
  427. -else
  428. - ac_cv_prog_gnu_ld=no
  429. -fi])
  430. -])
  431. -
  432. -# AC_PROG_NM - find the path to a BSD-compatible name lister
  433. -AC_DEFUN(AC_PROG_NM,
  434. -[AC_MSG_CHECKING([for BSD-compatible nm])
  435. -AC_CACHE_VAL(ac_cv_path_NM,
  436. -[if test -n "$NM"; then
  437. - # Let the user override the test.
  438. - ac_cv_path_NM="$NM"
  439. -else
  440. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  441. - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  442. - test -z "$ac_dir" && ac_dir=.
  443. - if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
  444. - # Check to see if the nm accepts a BSD-compat flag.
  445. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  446. - # nm: unknown option "B" ignored
  447. - if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  448. - ac_cv_path_NM="$ac_dir/nm -B"
  449. - break
  450. - elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  451. - ac_cv_path_NM="$ac_dir/nm -p"
  452. - break
  453. - else
  454. - ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
  455. - continue # so that we can try to find one that supports BSD flags
  456. - fi
  457. - fi
  458. - done
  459. - IFS="$ac_save_ifs"
  460. - test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
  461. -fi])
  462. -NM="$ac_cv_path_NM"
  463. -AC_MSG_RESULT([$NM])
  464. -])
  465. -
  466. -# AC_CHECK_LIBM - check for math library
  467. -AC_DEFUN(AC_CHECK_LIBM,
  468. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  469. -LIBM=
  470. -case "$lt_target" in
  471. -*-*-beos* | *-*-cygwin*)
  472. - # These system don't have libm
  473. - ;;
  474. -*-ncr-sysv4.3*)
  475. - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  476. - AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
  477. - ;;
  478. -*)
  479. - AC_CHECK_LIB(m, main, LIBM="-lm")
  480. - ;;
  481. -esac
  482. -])
  483. -
  484. -# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
  485. -# the libltdl convenience library, adds --enable-ltdl-convenience to
  486. -# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
  487. -# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
  488. -# to be `${top_builddir}/libltdl'. Make sure you start DIR with
  489. -# '${top_builddir}/' (note the single quotes!) if your package is not
  490. -# flat, and, if you're not using automake, define top_builddir as
  491. -# appropriate in the Makefiles.
  492. -AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  493. - case "$enable_ltdl_convenience" in
  494. - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  495. - "") enable_ltdl_convenience=yes
  496. - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  497. - esac
  498. - LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la
  499. - INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
  500. -])
  501. -
  502. -# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
  503. -# the libltdl installable library, and adds --enable-ltdl-install to
  504. -# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
  505. -# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
  506. -# to be `${top_builddir}/libltdl'. Make sure you start DIR with
  507. -# '${top_builddir}/' (note the single quotes!) if your package is not
  508. -# flat, and, if you're not using automake, define top_builddir as
  509. -# appropriate in the Makefiles.
  510. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  511. -AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  512. - AC_CHECK_LIB(ltdl, main,
  513. - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  514. - [if test x"$enable_ltdl_install" = xno; then
  515. - AC_MSG_WARN([libltdl not installed, but installation disabled])
  516. - else
  517. - enable_ltdl_install=yes
  518. - fi
  519. - ])
  520. - if test x"$enable_ltdl_install" = x"yes"; then
  521. - ac_configure_args="$ac_configure_args --enable-ltdl-install"
  522. - LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la
  523. - INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
  524. - else
  525. - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  526. - LIBLTDL="-lltdl"
  527. - INCLTDL=
  528. - fi
  529. -])
  530. -
  531. -dnl old names
  532. -AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
  533. -AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
  534. -AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
  535. -AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
  536. -AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
  537. -AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
  538. -AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
  539. -
  540. -dnl This is just to silence aclocal about the macro not being used
  541. -ifelse([AC_DISABLE_FAST_INSTALL])dnl
  542. -
  543. -# Macro to add for using GNU gettext.
  544. -# Ulrich Drepper <drepper@cygnus.com>, 1995.
  545. -#
  546. -# Modified to never use included libintl.
  547. -# Owen Taylor <otaylor@redhat.com>, 12/15/1998
  548. -#
  549. -#
  550. -# This file can be copied and used freely without restrictions. It can
  551. -# be used in projects which are not available under the GNU Public License
  552. -# but which still want to provide support for the GNU gettext functionality.
  553. -# Please note that the actual code is *not* freely available.
  554. -
  555. -# serial 5
  556. -
  557. AC_DEFUN(AM_GTK_WITH_NLS,
  558. [AC_MSG_CHECKING([whether NLS is requested])
  559. dnl Default is enabled NLS
  560. @@ -660,7 +238,7 @@
  561. AC_DEFINE(HAVE_STPCPY)
  562. fi
  563. - AM_LC_MESSAGES
  564. +
  565. AM_GTK_WITH_NLS
  566. if test "x$CATOBJEXT" != "x"; then
  567. @@ -723,229 +301,7533 @@
  568. AC_SUBST(GT_NO)
  569. AC_SUBST(GT_YES)
  570. - dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
  571. - dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
  572. - dnl Try to locate is.
  573. - MKINSTALLDIRS=
  574. - if test -n "$ac_aux_dir"; then
  575. - MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
  576. - fi
  577. - if test -z "$MKINSTALLDIRS"; then
  578. - MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  579. - fi
  580. - AC_SUBST(MKINSTALLDIRS)
  581. + dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
  582. + dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
  583. + dnl Try to locate is.
  584. + MKINSTALLDIRS=
  585. + if test -n "$ac_aux_dir"; then
  586. + MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
  587. + fi
  588. + if test -z "$MKINSTALLDIRS"; then
  589. + MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  590. + fi
  591. + AC_SUBST(MKINSTALLDIRS)
  592. +
  593. + dnl *** For now the libtool support in intl/Makefile is not for real.
  594. + l=
  595. + AC_SUBST(l)
  596. +
  597. + dnl Generate list of files to be processed by xgettext which will
  598. + dnl be included in po/Makefile.
  599. + test -d po || mkdir po
  600. + if test "x$srcdir" != "x."; then
  601. + if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
  602. + posrcprefix="$srcdir/"
  603. + else
  604. + posrcprefix="../$srcdir/"
  605. + fi
  606. + else
  607. + posrcprefix="../"
  608. + fi
  609. + rm -f po/POTFILES
  610. + sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
  611. + < $srcdir/po/POTFILES.in > po/POTFILES
  612. + ])
  613. +
  614. +
  615. +# lib-prefix.m4 serial 4 (gettext-0.14.2)
  616. +dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
  617. +dnl This file is free software; the Free Software Foundation
  618. +dnl gives unlimited permission to copy and/or distribute it,
  619. +dnl with or without modifications, as long as this notice is preserved.
  620. +
  621. +dnl From Bruno Haible.
  622. +
  623. +dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
  624. +dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
  625. +dnl require excessive bracketing.
  626. +ifdef([AC_HELP_STRING],
  627. +[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
  628. +[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
  629. +
  630. +dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
  631. +dnl to access previously installed libraries. The basic assumption is that
  632. +dnl a user will want packages to use other packages he previously installed
  633. +dnl with the same --prefix option.
  634. +dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
  635. +dnl libraries, but is otherwise very convenient.
  636. +AC_DEFUN([AC_LIB_PREFIX],
  637. +[
  638. + AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
  639. + AC_REQUIRE([AC_PROG_CC])
  640. + AC_REQUIRE([AC_CANONICAL_HOST])
  641. + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  642. + dnl By default, look in $includedir and $libdir.
  643. + use_additional=yes
  644. + AC_LIB_WITH_FINAL_PREFIX([
  645. + eval additional_includedir=\"$includedir\"
  646. + eval additional_libdir=\"$libdir\"
  647. + ])
  648. + AC_LIB_ARG_WITH([lib-prefix],
  649. +[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
  650. + --without-lib-prefix don't search for libraries in includedir and libdir],
  651. +[
  652. + if test "X$withval" = "Xno"; then
  653. + use_additional=no
  654. + else
  655. + if test "X$withval" = "X"; then
  656. + AC_LIB_WITH_FINAL_PREFIX([
  657. + eval additional_includedir=\"$includedir\"
  658. + eval additional_libdir=\"$libdir\"
  659. + ])
  660. + else
  661. + additional_includedir="$withval/include"
  662. + additional_libdir="$withval/lib"
  663. + fi
  664. + fi
  665. +])
  666. + if test $use_additional = yes; then
  667. + dnl Potentially add $additional_includedir to $CPPFLAGS.
  668. + dnl But don't add it
  669. + dnl 1. if it's the standard /usr/include,
  670. + dnl 2. if it's already present in $CPPFLAGS,
  671. + dnl 3. if it's /usr/local/include and we are using GCC on Linux,
  672. + dnl 4. if it doesn't exist as a directory.
  673. + if test "X$additional_includedir" != "X/usr/include"; then
  674. + haveit=
  675. + for x in $CPPFLAGS; do
  676. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  677. + if test "X$x" = "X-I$additional_includedir"; then
  678. + haveit=yes
  679. + break
  680. + fi
  681. + done
  682. + if test -z "$haveit"; then
  683. + if test "X$additional_includedir" = "X/usr/local/include"; then
  684. + if test -n "$GCC"; then
  685. + case $host_os in
  686. + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  687. + esac
  688. + fi
  689. + fi
  690. + if test -z "$haveit"; then
  691. + if test -d "$additional_includedir"; then
  692. + dnl Really add $additional_includedir to $CPPFLAGS.
  693. + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
  694. + fi
  695. + fi
  696. + fi
  697. + fi
  698. + dnl Potentially add $additional_libdir to $LDFLAGS.
  699. + dnl But don't add it
  700. + dnl 1. if it's the standard /usr/lib,
  701. + dnl 2. if it's already present in $LDFLAGS,
  702. + dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
  703. + dnl 4. if it doesn't exist as a directory.
  704. + if test "X$additional_libdir" != "X/usr/lib"; then
  705. + haveit=
  706. + for x in $LDFLAGS; do
  707. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  708. + if test "X$x" = "X-L$additional_libdir"; then
  709. + haveit=yes
  710. + break
  711. + fi
  712. + done
  713. + if test -z "$haveit"; then
  714. + if test "X$additional_libdir" = "X/usr/local/lib"; then
  715. + if test -n "$GCC"; then
  716. + case $host_os in
  717. + linux*) haveit=yes;;
  718. + esac
  719. + fi
  720. + fi
  721. + if test -z "$haveit"; then
  722. + if test -d "$additional_libdir"; then
  723. + dnl Really add $additional_libdir to $LDFLAGS.
  724. + LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
  725. + fi
  726. + fi
  727. + fi
  728. + fi
  729. + fi
  730. +])
  731. +
  732. +dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
  733. +dnl acl_final_exec_prefix, containing the values to which $prefix and
  734. +dnl $exec_prefix will expand at the end of the configure script.
  735. +AC_DEFUN([AC_LIB_PREPARE_PREFIX],
  736. +[
  737. + dnl Unfortunately, prefix and exec_prefix get only finally determined
  738. + dnl at the end of configure.
  739. + if test "X$prefix" = "XNONE"; then
  740. + acl_final_prefix="$ac_default_prefix"
  741. + else
  742. + acl_final_prefix="$prefix"
  743. + fi
  744. + if test "X$exec_prefix" = "XNONE"; then
  745. + acl_final_exec_prefix='${prefix}'
  746. + else
  747. + acl_final_exec_prefix="$exec_prefix"
  748. + fi
  749. + acl_save_prefix="$prefix"
  750. + prefix="$acl_final_prefix"
  751. + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  752. + prefix="$acl_save_prefix"
  753. +])
  754. +
  755. +dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
  756. +dnl variables prefix and exec_prefix bound to the values they will have
  757. +dnl at the end of the configure script.
  758. +AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
  759. +[
  760. + acl_save_prefix="$prefix"
  761. + prefix="$acl_final_prefix"
  762. + acl_save_exec_prefix="$exec_prefix"
  763. + exec_prefix="$acl_final_exec_prefix"
  764. + $1
  765. + exec_prefix="$acl_save_exec_prefix"
  766. + prefix="$acl_save_prefix"
  767. +])
  768. +
  769. +# lib-link.m4 serial 6 (gettext-0.14.3)
  770. +dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
  771. +dnl This file is free software; the Free Software Foundation
  772. +dnl gives unlimited permission to copy and/or distribute it,
  773. +dnl with or without modifications, as long as this notice is preserved.
  774. +
  775. +dnl From Bruno Haible.
  776. +
  777. +AC_PREREQ(2.50)
  778. +
  779. +dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
  780. +dnl the libraries corresponding to explicit and implicit dependencies.
  781. +dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
  782. +dnl augments the CPPFLAGS variable.
  783. +AC_DEFUN([AC_LIB_LINKFLAGS],
  784. +[
  785. + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  786. + AC_REQUIRE([AC_LIB_RPATH])
  787. + define([Name],[translit([$1],[./-], [___])])
  788. + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
  789. + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
  790. + AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
  791. + AC_LIB_LINKFLAGS_BODY([$1], [$2])
  792. + ac_cv_lib[]Name[]_libs="$LIB[]NAME"
  793. + ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
  794. + ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
  795. + ])
  796. + LIB[]NAME="$ac_cv_lib[]Name[]_libs"
  797. + LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
  798. + INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
  799. + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
  800. + AC_SUBST([LIB]NAME)
  801. + AC_SUBST([LTLIB]NAME)
  802. + dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
  803. + dnl results of this search when this library appears as a dependency.
  804. + HAVE_LIB[]NAME=yes
  805. + undefine([Name])
  806. + undefine([NAME])
  807. +])
  808. +
  809. +dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
  810. +dnl searches for libname and the libraries corresponding to explicit and
  811. +dnl implicit dependencies, together with the specified include files and
  812. +dnl the ability to compile and link the specified testcode. If found, it
  813. +dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
  814. +dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
  815. +dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
  816. +dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
  817. +AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
  818. +[
  819. + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  820. + AC_REQUIRE([AC_LIB_RPATH])
  821. + define([Name],[translit([$1],[./-], [___])])
  822. + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
  823. + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
  824. +
  825. + dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
  826. + dnl accordingly.
  827. + AC_LIB_LINKFLAGS_BODY([$1], [$2])
  828. +
  829. + dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
  830. + dnl because if the user has installed lib[]Name and not disabled its use
  831. + dnl via --without-lib[]Name-prefix, he wants to use it.
  832. + ac_save_CPPFLAGS="$CPPFLAGS"
  833. + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
  834. +
  835. + AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
  836. + ac_save_LIBS="$LIBS"
  837. + LIBS="$LIBS $LIB[]NAME"
  838. + AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
  839. + LIBS="$ac_save_LIBS"
  840. + ])
  841. + if test "$ac_cv_lib[]Name" = yes; then
  842. + HAVE_LIB[]NAME=yes
  843. + AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
  844. + AC_MSG_CHECKING([how to link with lib[]$1])
  845. + AC_MSG_RESULT([$LIB[]NAME])
  846. + else
  847. + HAVE_LIB[]NAME=no
  848. + dnl If $LIB[]NAME didn't lead to a usable library, we don't need
  849. + dnl $INC[]NAME either.
  850. + CPPFLAGS="$ac_save_CPPFLAGS"
  851. + LIB[]NAME=
  852. + LTLIB[]NAME=
  853. + fi
  854. + AC_SUBST([HAVE_LIB]NAME)
  855. + AC_SUBST([LIB]NAME)
  856. + AC_SUBST([LTLIB]NAME)
  857. + undefine([Name])
  858. + undefine([NAME])
  859. +])
  860. +
  861. +dnl Determine the platform dependent parameters needed to use rpath:
  862. +dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
  863. +dnl hardcode_direct, hardcode_minus_L.
  864. +AC_DEFUN([AC_LIB_RPATH],
  865. +[
  866. + dnl Tell automake >= 1.10 to complain if config.rpath is missing.
  867. + m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
  868. + AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
  869. + AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
  870. + AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
  871. + AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
  872. + AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
  873. + CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  874. + ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  875. + . ./conftest.sh
  876. + rm -f ./conftest.sh
  877. + acl_cv_rpath=done
  878. + ])
  879. + wl="$acl_cv_wl"
  880. + libext="$acl_cv_libext"
  881. + shlibext="$acl_cv_shlibext"
  882. + hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  883. + hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  884. + hardcode_direct="$acl_cv_hardcode_direct"
  885. + hardcode_minus_L="$acl_cv_hardcode_minus_L"
  886. + dnl Determine whether the user wants rpath handling at all.
  887. + AC_ARG_ENABLE(rpath,
  888. + [ --disable-rpath do not hardcode runtime library paths],
  889. + :, enable_rpath=yes)
  890. +])
  891. +
  892. +dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
  893. +dnl the libraries corresponding to explicit and implicit dependencies.
  894. +dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
  895. +AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
  896. +[
  897. + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
  898. + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
  899. + dnl By default, look in $includedir and $libdir.
  900. + use_additional=yes
  901. + AC_LIB_WITH_FINAL_PREFIX([
  902. + eval additional_includedir=\"$includedir\"
  903. + eval additional_libdir=\"$libdir\"
  904. + ])
  905. + AC_LIB_ARG_WITH([lib$1-prefix],
  906. +[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
  907. + --without-lib$1-prefix don't search for lib$1 in includedir and libdir],
  908. +[
  909. + if test "X$withval" = "Xno"; then
  910. + use_additional=no
  911. + else
  912. + if test "X$withval" = "X"; then
  913. + AC_LIB_WITH_FINAL_PREFIX([
  914. + eval additional_includedir=\"$includedir\"
  915. + eval additional_libdir=\"$libdir\"
  916. + ])
  917. + else
  918. + additional_includedir="$withval/include"
  919. + additional_libdir="$withval/lib"
  920. + fi
  921. + fi
  922. +])
  923. + dnl Search the library and its dependencies in $additional_libdir and
  924. + dnl $LDFLAGS. Using breadth-first-seach.
  925. + LIB[]NAME=
  926. + LTLIB[]NAME=
  927. + INC[]NAME=
  928. + rpathdirs=
  929. + ltrpathdirs=
  930. + names_already_handled=
  931. + names_next_round='$1 $2'
  932. + while test -n "$names_next_round"; do
  933. + names_this_round="$names_next_round"
  934. + names_next_round=
  935. + for name in $names_this_round; do
  936. + already_handled=
  937. + for n in $names_already_handled; do
  938. + if test "$n" = "$name"; then
  939. + already_handled=yes
  940. + break
  941. + fi
  942. + done
  943. + if test -z "$already_handled"; then
  944. + names_already_handled="$names_already_handled $name"
  945. + dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
  946. + dnl or AC_LIB_HAVE_LINKFLAGS call.
  947. + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  948. + eval value=\"\$HAVE_LIB$uppername\"
  949. + if test -n "$value"; then
  950. + if test "$value" = yes; then
  951. + eval value=\"\$LIB$uppername\"
  952. + test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
  953. + eval value=\"\$LTLIB$uppername\"
  954. + test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
  955. + else
  956. + dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
  957. + dnl that this library doesn't exist. So just drop it.
  958. + :
  959. + fi
  960. + else
  961. + dnl Search the library lib$name in $additional_libdir and $LDFLAGS
  962. + dnl and the already constructed $LIBNAME/$LTLIBNAME.
  963. + found_dir=
  964. + found_la=
  965. + found_so=
  966. + found_a=
  967. + if test $use_additional = yes; then
  968. + if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  969. + found_dir="$additional_libdir"
  970. + found_so="$additional_libdir/lib$name.$shlibext"
  971. + if test -f "$additional_libdir/lib$name.la"; then
  972. + found_la="$additional_libdir/lib$name.la"
  973. + fi
  974. + else
  975. + if test -f "$additional_libdir/lib$name.$libext"; then
  976. + found_dir="$additional_libdir"
  977. + found_a="$additional_libdir/lib$name.$libext"
  978. + if test -f "$additional_libdir/lib$name.la"; then
  979. + found_la="$additional_libdir/lib$name.la"
  980. + fi
  981. + fi
  982. + fi
  983. + fi
  984. + if test "X$found_dir" = "X"; then
  985. + for x in $LDFLAGS $LTLIB[]NAME; do
  986. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  987. + case "$x" in
  988. + -L*)
  989. + dir=`echo "X$x" | sed -e 's/^X-L//'`
  990. + if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  991. + found_dir="$dir"
  992. + found_so="$dir/lib$name.$shlibext"
  993. + if test -f "$dir/lib$name.la"; then
  994. + found_la="$dir/lib$name.la"
  995. + fi
  996. + else
  997. + if test -f "$dir/lib$name.$libext"; then
  998. + found_dir="$dir"
  999. + found_a="$dir/lib$name.$libext"
  1000. + if test -f "$dir/lib$name.la"; then
  1001. + found_la="$dir/lib$name.la"
  1002. + fi
  1003. + fi
  1004. + fi
  1005. + ;;
  1006. + esac
  1007. + if test "X$found_dir" != "X"; then
  1008. + break
  1009. + fi
  1010. + done
  1011. + fi
  1012. + if test "X$found_dir" != "X"; then
  1013. + dnl Found the library.
  1014. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
  1015. + if test "X$found_so" != "X"; then
  1016. + dnl Linking with a shared library. We attempt to hardcode its
  1017. + dnl directory into the executable's runpath, unless it's the
  1018. + dnl standard /usr/lib.
  1019. + if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  1020. + dnl No hardcoding is needed.
  1021. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  1022. + else
  1023. + dnl Use an explicit option to hardcode DIR into the resulting
  1024. + dnl binary.
  1025. + dnl Potentially add DIR to ltrpathdirs.
  1026. + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
  1027. + haveit=
  1028. + for x in $ltrpathdirs; do
  1029. + if test "X$x" = "X$found_dir"; then
  1030. + haveit=yes
  1031. + break
  1032. + fi
  1033. + done
  1034. + if test -z "$haveit"; then
  1035. + ltrpathdirs="$ltrpathdirs $found_dir"
  1036. + fi
  1037. + dnl The hardcoding into $LIBNAME is system dependent.
  1038. + if test "$hardcode_direct" = yes; then
  1039. + dnl Using DIR/libNAME.so during linking hardcodes DIR into the
  1040. + dnl resulting binary.
  1041. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  1042. + else
  1043. + if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  1044. + dnl Use an explicit option to hardcode DIR into the resulting
  1045. + dnl binary.
  1046. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  1047. + dnl Potentially add DIR to rpathdirs.
  1048. + dnl The rpathdirs will be appended to $LIBNAME at the end.
  1049. + haveit=
  1050. + for x in $rpathdirs; do
  1051. + if test "X$x" = "X$found_dir"; then
  1052. + haveit=yes
  1053. + break
  1054. + fi
  1055. + done
  1056. + if test -z "$haveit"; then
  1057. + rpathdirs="$rpathdirs $found_dir"
  1058. + fi
  1059. + else
  1060. + dnl Rely on "-L$found_dir".
  1061. + dnl But don't add it if it's already contained in the LDFLAGS
  1062. + dnl or the already constructed $LIBNAME
  1063. + haveit=
  1064. + for x in $LDFLAGS $LIB[]NAME; do
  1065. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  1066. + if test "X$x" = "X-L$found_dir"; then
  1067. + haveit=yes
  1068. + break
  1069. + fi
  1070. + done
  1071. + if test -z "$haveit"; then
  1072. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
  1073. + fi
  1074. + if test "$hardcode_minus_L" != no; then
  1075. + dnl FIXME: Not sure whether we should use
  1076. + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
  1077. + dnl here.
  1078. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  1079. + else
  1080. + dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
  1081. + dnl here, because this doesn't fit in flags passed to the
  1082. + dnl compiler. So give up. No hardcoding. This affects only
  1083. + dnl very old systems.
  1084. + dnl FIXME: Not sure whether we should use
  1085. + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
  1086. + dnl here.
  1087. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
  1088. + fi
  1089. + fi
  1090. + fi
  1091. + fi
  1092. + else
  1093. + if test "X$found_a" != "X"; then
  1094. + dnl Linking with a static library.
  1095. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
  1096. + else
  1097. + dnl We shouldn't come here, but anyway it's good to have a
  1098. + dnl fallback.
  1099. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
  1100. + fi
  1101. + fi
  1102. + dnl Assume the include files are nearby.
  1103. + additional_includedir=
  1104. + case "$found_dir" in
  1105. + */lib | */lib/)
  1106. + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  1107. + additional_includedir="$basedir/include"
  1108. + ;;
  1109. + esac
  1110. + if test "X$additional_includedir" != "X"; then
  1111. + dnl Potentially add $additional_includedir to $INCNAME.
  1112. + dnl But don't add it
  1113. + dnl 1. if it's the standard /usr/include,
  1114. + dnl 2. if it's /usr/local/include and we are using GCC on Linux,
  1115. + dnl 3. if it's already present in $CPPFLAGS or the already
  1116. + dnl constructed $INCNAME,
  1117. + dnl 4. if it doesn't exist as a directory.
  1118. + if test "X$additional_includedir" != "X/usr/include"; then
  1119. + haveit=
  1120. + if test "X$additional_includedir" = "X/usr/local/include"; then
  1121. + if test -n "$GCC"; then
  1122. + case $host_os in
  1123. + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  1124. + esac
  1125. + fi
  1126. + fi
  1127. + if test -z "$haveit"; then
  1128. + for x in $CPPFLAGS $INC[]NAME; do
  1129. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  1130. + if test "X$x" = "X-I$additional_includedir"; then
  1131. + haveit=yes
  1132. + break
  1133. + fi
  1134. + done
  1135. + if test -z "$haveit"; then
  1136. + if test -d "$additional_includedir"; then
  1137. + dnl Really add $additional_includedir to $INCNAME.
  1138. + INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
  1139. + fi
  1140. + fi
  1141. + fi
  1142. + fi
  1143. + fi
  1144. + dnl Look for dependencies.
  1145. + if test -n "$found_la"; then
  1146. + dnl Read the .la file. It defines the variables
  1147. + dnl dlname, library_names, old_library, dependency_libs, current,
  1148. + dnl age, revision, installed, dlopen, dlpreopen, libdir.
  1149. + save_libdir="$libdir"
  1150. + case "$found_la" in
  1151. + */* | *\\*) . "$found_la" ;;
  1152. + *) . "./$found_la" ;;
  1153. + esac
  1154. + libdir="$save_libdir"
  1155. + dnl We use only dependency_libs.
  1156. + for dep in $dependency_libs; do
  1157. + case "$dep" in
  1158. + -L*)
  1159. + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  1160. + dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
  1161. + dnl But don't add it
  1162. + dnl 1. if it's the standard /usr/lib,
  1163. + dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
  1164. + dnl 3. if it's already present in $LDFLAGS or the already
  1165. + dnl constructed $LIBNAME,
  1166. + dnl 4. if it doesn't exist as a directory.
  1167. + if test "X$additional_libdir" != "X/usr/lib"; then
  1168. + haveit=
  1169. + if test "X$additional_libdir" = "X/usr/local/lib"; then
  1170. + if test -n "$GCC"; then
  1171. + case $host_os in
  1172. + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  1173. + esac
  1174. + fi
  1175. + fi
  1176. + if test -z "$haveit"; then
  1177. + haveit=
  1178. + for x in $LDFLAGS $LIB[]NAME; do
  1179. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  1180. + if test "X$x" = "X-L$additional_libdir"; then
  1181. + haveit=yes
  1182. + break
  1183. + fi
  1184. + done
  1185. + if test -z "$haveit"; then
  1186. + if test -d "$additional_libdir"; then
  1187. + dnl Really add $additional_libdir to $LIBNAME.
  1188. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
  1189. + fi
  1190. + fi
  1191. + haveit=
  1192. + for x in $LDFLAGS $LTLIB[]NAME; do
  1193. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  1194. + if test "X$x" = "X-L$additional_libdir"; then
  1195. + haveit=yes
  1196. + break
  1197. + fi
  1198. + done
  1199. + if test -z "$haveit"; then
  1200. + if test -d "$additional_libdir"; then
  1201. + dnl Really add $additional_libdir to $LTLIBNAME.
  1202. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
  1203. + fi
  1204. + fi
  1205. + fi
  1206. + fi
  1207. + ;;
  1208. + -R*)
  1209. + dir=`echo "X$dep" | sed -e 's/^X-R//'`
  1210. + if test "$enable_rpath" != no; then
  1211. + dnl Potentially add DIR to rpathdirs.
  1212. + dnl The rpathdirs will be appended to $LIBNAME at the end.
  1213. + haveit=
  1214. + for x in $rpathdirs; do
  1215. + if test "X$x" = "X$dir"; then
  1216. + haveit=yes
  1217. + break
  1218. + fi
  1219. + done
  1220. + if test -z "$haveit"; then
  1221. + rpathdirs="$rpathdirs $dir"
  1222. + fi
  1223. + dnl Potentially add DIR to ltrpathdirs.
  1224. + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
  1225. + haveit=
  1226. + for x in $ltrpathdirs; do
  1227. + if test "X$x" = "X$dir"; then
  1228. + haveit=yes
  1229. + break
  1230. + fi
  1231. + done
  1232. + if test -z "$haveit"; then
  1233. + ltrpathdirs="$ltrpathdirs $dir"
  1234. + fi
  1235. + fi
  1236. + ;;
  1237. + -l*)
  1238. + dnl Handle this in the next round.
  1239. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  1240. + ;;
  1241. + *.la)
  1242. + dnl Handle this in the next round. Throw away the .la's
  1243. + dnl directory; it is already contained in a preceding -L
  1244. + dnl option.
  1245. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  1246. + ;;
  1247. + *)
  1248. + dnl Most likely an immediate library name.
  1249. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
  1250. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
  1251. + ;;
  1252. + esac
  1253. + done
  1254. + fi
  1255. + else
  1256. + dnl Didn't find the library; assume it is in the system directories
  1257. + dnl known to the linker and runtime loader. (All the system
  1258. + dnl directories known to the linker should also be known to the
  1259. + dnl runtime loader, otherwise the system is severely misconfigured.)
  1260. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
  1261. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
  1262. + fi
  1263. + fi
  1264. + fi
  1265. + done
  1266. + done
  1267. + if test "X$rpathdirs" != "X"; then
  1268. + if test -n "$hardcode_libdir_separator"; then
  1269. + dnl Weird platform: only the last -rpath option counts, the user must
  1270. + dnl pass all path elements in one option. We can arrange that for a
  1271. + dnl single library, but not when more than one $LIBNAMEs are used.
  1272. + alldirs=
  1273. + for found_dir in $rpathdirs; do
  1274. + alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  1275. + done
  1276. + dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
  1277. + acl_save_libdir="$libdir"
  1278. + libdir="$alldirs"
  1279. + eval flag=\"$hardcode_libdir_flag_spec\"
  1280. + libdir="$acl_save_libdir"
  1281. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
  1282. + else
  1283. + dnl The -rpath options are cumulative.
  1284. + for found_dir in $rpathdirs; do
  1285. + acl_save_libdir="$libdir"
  1286. + libdir="$found_dir"
  1287. + eval flag=\"$hardcode_libdir_flag_spec\"
  1288. + libdir="$acl_save_libdir"
  1289. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
  1290. + done
  1291. + fi
  1292. + fi
  1293. + if test "X$ltrpathdirs" != "X"; then
  1294. + dnl When using libtool, the option that works for both libraries and
  1295. + dnl executables is -R. The -R options are cumulative.
  1296. + for found_dir in $ltrpathdirs; do
  1297. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
  1298. + done
  1299. + fi
  1300. +])
  1301. +
  1302. +dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
  1303. +dnl unless already present in VAR.
  1304. +dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
  1305. +dnl contains two or three consecutive elements that belong together.
  1306. +AC_DEFUN([AC_LIB_APPENDTOVAR],
  1307. +[
  1308. + for element in [$2]; do
  1309. + haveit=
  1310. + for x in $[$1]; do
  1311. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  1312. + if test "X$x" = "X$element"; then
  1313. + haveit=yes
  1314. + break
  1315. + fi
  1316. + done
  1317. + if test -z "$haveit"; then
  1318. + [$1]="${[$1]}${[$1]:+ }$element"
  1319. + fi
  1320. + done
  1321. +])
  1322. +
  1323. +# lib-ld.m4 serial 3 (gettext-0.13)
  1324. +dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
  1325. +dnl This file is free software; the Free Software Foundation
  1326. +dnl gives unlimited permission to copy and/or distribute it,
  1327. +dnl with or without modifications, as long as this notice is preserved.
  1328. +
  1329. +dnl Subroutines of libtool.m4,
  1330. +dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
  1331. +dnl with libtool.m4.
  1332. +
  1333. +dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
  1334. +AC_DEFUN([AC_LIB_PROG_LD_GNU],
  1335. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
  1336. +[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  1337. +case `$LD -v 2>&1 </dev/null` in
  1338. +*GNU* | *'with BFD'*)
  1339. + acl_cv_prog_gnu_ld=yes ;;
  1340. +*)
  1341. + acl_cv_prog_gnu_ld=no ;;
  1342. +esac])
  1343. +with_gnu_ld=$acl_cv_prog_gnu_ld
  1344. +])
  1345. +
  1346. +dnl From libtool-1.4. Sets the variable LD.
  1347. +AC_DEFUN([AC_LIB_PROG_LD],
  1348. +[AC_ARG_WITH(gnu-ld,
  1349. +[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
  1350. +test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
  1351. +AC_REQUIRE([AC_PROG_CC])dnl
  1352. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1353. +# Prepare PATH_SEPARATOR.
  1354. +# The user is always right.
  1355. +if test "${PATH_SEPARATOR+set}" != set; then
  1356. + echo "#! /bin/sh" >conf$$.sh
  1357. + echo "exit 0" >>conf$$.sh
  1358. + chmod +x conf$$.sh
  1359. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  1360. + PATH_SEPARATOR=';'
  1361. + else
  1362. + PATH_SEPARATOR=:
  1363. + fi
  1364. + rm -f conf$$.sh
  1365. +fi
  1366. +ac_prog=ld
  1367. +if test "$GCC" = yes; then
  1368. + # Check if gcc -print-prog-name=ld gives a path.
  1369. + AC_MSG_CHECKING([for ld used by GCC])
  1370. + case $host in
  1371. + *-*-mingw*)
  1372. + # gcc leaves a trailing carriage return which upsets mingw
  1373. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  1374. + *)
  1375. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  1376. + esac
  1377. + case $ac_prog in
  1378. + # Accept absolute paths.
  1379. + [[\\/]* | [A-Za-z]:[\\/]*)]
  1380. + [re_direlt='/[^/][^/]*/\.\./']
  1381. + # Canonicalize the path of ld
  1382. + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  1383. + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  1384. + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  1385. + done
  1386. + test -z "$LD" && LD="$ac_prog"
  1387. + ;;
  1388. + "")
  1389. + # If it fails, then pretend we aren't using GCC.
  1390. + ac_prog=ld
  1391. + ;;
  1392. + *)
  1393. + # If it is relative, then search for the first ld in PATH.
  1394. + with_gnu_ld=unknown
  1395. + ;;
  1396. + esac
  1397. +elif test "$with_gnu_ld" = yes; then
  1398. + AC_MSG_CHECKING([for GNU ld])
  1399. +else
  1400. + AC_MSG_CHECKING([for non-GNU ld])
  1401. +fi
  1402. +AC_CACHE_VAL(acl_cv_path_LD,
  1403. +[if test -z "$LD"; then
  1404. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  1405. + for ac_dir in $PATH; do
  1406. + test -z "$ac_dir" && ac_dir=.
  1407. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  1408. + acl_cv_path_LD="$ac_dir/$ac_prog"
  1409. + # Check to see if the program is GNU ld. I'd rather use --version,
  1410. + # but apparently some GNU ld's only accept -v.
  1411. + # Break only if it was the GNU/non-GNU ld that we prefer.
  1412. + case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  1413. + *GNU* | *'with BFD'*)
  1414. + test "$with_gnu_ld" != no && break ;;
  1415. + *)
  1416. + test "$with_gnu_ld" != yes && break ;;
  1417. + esac
  1418. + fi
  1419. + done
  1420. + IFS="$ac_save_ifs"
  1421. +else
  1422. + acl_cv_path_LD="$LD" # Let the user override the test with a path.
  1423. +fi])
  1424. +LD="$acl_cv_path_LD"
  1425. +if test -n "$LD"; then
  1426. + AC_MSG_RESULT($LD)
  1427. +else
  1428. + AC_MSG_RESULT(no)
  1429. +fi
  1430. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  1431. +AC_LIB_PROG_LD_GNU
  1432. +])
  1433. +
  1434. +# progtest.m4 serial 4 (gettext-0.14.2)
  1435. +dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc.
  1436. +dnl This file is free software; the Free Software Foundation
  1437. +dnl gives unlimited permission to copy and/or distribute it,
  1438. +dnl with or without modifications, as long as this notice is preserved.
  1439. +dnl
  1440. +dnl This file can can be used in projects which are not available under
  1441. +dnl the GNU General Public License or the GNU Library General Public
  1442. +dnl License but which still want to provide support for the GNU gettext
  1443. +dnl functionality.
  1444. +dnl Please note that the actual code of the GNU gettext library is covered
  1445. +dnl by the GNU Library General Public License, and the rest of the GNU
  1446. +dnl gettext package package is covered by the GNU General Public License.
  1447. +dnl They are *not* in the public domain.
  1448. +
  1449. +dnl Authors:
  1450. +dnl Ulrich Drepper <drepper@cygnus.com>, 1996.
  1451. +
  1452. +AC_PREREQ(2.50)
  1453. +
  1454. +# Search path for a program which passes the given test.
  1455. +
  1456. +dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
  1457. +dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
  1458. +AC_DEFUN([AM_PATH_PROG_WITH_TEST],
  1459. +[
  1460. +# Prepare PATH_SEPARATOR.
  1461. +# The user is always right.
  1462. +if test "${PATH_SEPARATOR+set}" != set; then
  1463. + echo "#! /bin/sh" >conf$$.sh
  1464. + echo "exit 0" >>conf$$.sh
  1465. + chmod +x conf$$.sh
  1466. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  1467. + PATH_SEPARATOR=';'
  1468. + else
  1469. + PATH_SEPARATOR=:
  1470. + fi
  1471. + rm -f conf$$.sh
  1472. +fi
  1473. +
  1474. +# Find out how to test for executable files. Don't use a zero-byte file,
  1475. +# as systems may use methods other than mode bits to determine executability.
  1476. +cat >conf$$.file <<_ASEOF
  1477. +#! /bin/sh
  1478. +exit 0
  1479. +_ASEOF
  1480. +chmod +x conf$$.file
  1481. +if test -x conf$$.file >/dev/null 2>&1; then
  1482. + ac_executable_p="test -x"
  1483. +else
  1484. + ac_executable_p="test -f"
  1485. +fi
  1486. +rm -f conf$$.file
  1487. +
  1488. +# Extract the first word of "$2", so it can be a program name with args.
  1489. +set dummy $2; ac_word=[$]2
  1490. +AC_MSG_CHECKING([for $ac_word])
  1491. +AC_CACHE_VAL(ac_cv_path_$1,
  1492. +[case "[$]$1" in
  1493. + [[\\/]]* | ?:[[\\/]]*)
  1494. + ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
  1495. + ;;
  1496. + *)
  1497. + ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  1498. + for ac_dir in ifelse([$5], , $PATH, [$5]); do
  1499. + IFS="$ac_save_IFS"
  1500. + test -z "$ac_dir" && ac_dir=.
  1501. + for ac_exec_ext in '' $ac_executable_extensions; do
  1502. + if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  1503. + echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD
  1504. + if [$3]; then
  1505. + ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext"
  1506. + break 2
  1507. + fi
  1508. + fi
  1509. + done
  1510. + done
  1511. + IFS="$ac_save_IFS"
  1512. +dnl If no 4th arg is given, leave the cache variable unset,
  1513. +dnl so AC_PATH_PROGS will keep looking.
  1514. +ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
  1515. +])dnl
  1516. + ;;
  1517. +esac])dnl
  1518. +$1="$ac_cv_path_$1"
  1519. +if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
  1520. + AC_MSG_RESULT([$]$1)
  1521. +else
  1522. + AC_MSG_RESULT(no)
  1523. +fi
  1524. +AC_SUBST($1)dnl
  1525. +])
  1526. +
  1527. +# isc-posix.m4 serial 2 (gettext-0.11.2)
  1528. +dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
  1529. +dnl This file is free software; the Free Software Foundation
  1530. +dnl gives unlimited permission to copy and/or distribute it,
  1531. +dnl with or without modifications, as long as this notice is preserved.
  1532. +
  1533. +# This file is not needed with autoconf-2.53 and newer. Remove it in 2005.
  1534. +
  1535. +# This test replaces the one in autoconf.
  1536. +# Currently this macro should have the same name as the autoconf macro
  1537. +# because gettext's gettext.m4 (distributed in the automake package)
  1538. +# still uses it. Otherwise, the use in gettext.m4 makes autoheader
  1539. +# give these diagnostics:
  1540. +# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
  1541. +# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
  1542. +
  1543. +undefine([AC_ISC_POSIX])
  1544. +
  1545. +AC_DEFUN([AC_ISC_POSIX],
  1546. + [
  1547. + dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
  1548. + AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
  1549. + ]
  1550. +)
  1551. +
  1552. +# Do all the work for Automake. This macro actually does too much --
  1553. +# some checks are only needed if your package does certain things.
  1554. +# But this isn't really a big deal.
  1555. +
  1556. +# serial 1
  1557. +
  1558. +dnl Usage:
  1559. +dnl AM_INIT_AUTOMAKE(package,version, [no-define])
  1560. +
  1561. +AC_DEFUN([AM_INIT_AUTOMAKE],
  1562. +[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  1563. +AC_REQUIRE([AC_PROG_INSTALL])
  1564. +PACKAGE=[$1]
  1565. +AC_SUBST(PACKAGE)
  1566. +VERSION=[$2]
  1567. +AC_SUBST(VERSION)
  1568. +dnl test to see if srcdir already configured
  1569. +if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  1570. + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  1571. +fi
  1572. +ifelse([$3],,
  1573. +AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  1574. +AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
  1575. +AC_REQUIRE([AM_SANITY_CHECK])
  1576. +AC_REQUIRE([AC_ARG_PROGRAM])
  1577. +dnl FIXME This is truly gross.
  1578. +missing_dir=`cd $ac_aux_dir && pwd`
  1579. +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
  1580. +AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
  1581. +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
  1582. +AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
  1583. +AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
  1584. +AC_REQUIRE([AC_PROG_MAKE_SET])])
  1585. +
  1586. +# Copyright 2002 Free Software Foundation, Inc.
  1587. +
  1588. +# This program is free software; you can redistribute it and/or modify
  1589. +# it under the terms of the GNU General Public License as published by
  1590. +# the Free Software Foundation; either version 2, or (at your option)
  1591. +# any later version.
  1592. +
  1593. +# This program is distributed in the hope that it will be useful,
  1594. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  1595. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  1596. +# GNU General Public License for more details.
  1597. +
  1598. +# You should have received a copy of the GNU General Public License
  1599. +# along with this program; if not, write to the Free Software
  1600. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  1601. +
  1602. +# AM_AUTOMAKE_VERSION(VERSION)
  1603. +# ----------------------------
  1604. +# Automake X.Y traces this macro to ensure aclocal.m4 has been
  1605. +# generated from the m4 files accompanying Automake X.Y.
  1606. +AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
  1607. +
  1608. +# AM_SET_CURRENT_AUTOMAKE_VERSION
  1609. +# -------------------------------
  1610. +# Call AM_AUTOMAKE_VERSION so it can be traced.
  1611. +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  1612. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  1613. + [AM_AUTOMAKE_VERSION([1.4-p6])])
  1614. +
  1615. +#
  1616. +# Check to make sure that the build environment is sane.
  1617. +#
  1618. +
  1619. +AC_DEFUN([AM_SANITY_CHECK],
  1620. +[AC_MSG_CHECKING([whether build environment is sane])
  1621. +# Just in case
  1622. +sleep 1
  1623. +echo timestamp > conftestfile
  1624. +# Do `set' in a subshell so we don't clobber the current shell's
  1625. +# arguments. Must try -L first in case configure is actually a
  1626. +# symlink; some systems play weird games with the mod time of symlinks
  1627. +# (eg FreeBSD returns the mod time of the symlink's containing
  1628. +# directory).
  1629. +if (
  1630. + set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  1631. + if test "[$]*" = "X"; then
  1632. + # -L didn't work.
  1633. + set X `ls -t $srcdir/configure conftestfile`
  1634. + fi
  1635. + if test "[$]*" != "X $srcdir/configure conftestfile" \
  1636. + && test "[$]*" != "X conftestfile $srcdir/configure"; then
  1637. +
  1638. + # If neither matched, then we have a broken ls. This can happen
  1639. + # if, for instance, CONFIG_SHELL is bash and it inherits a
  1640. + # broken ls alias from the environment. This has actually
  1641. + # happened. Such a system could not be considered "sane".
  1642. + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  1643. +alias in your environment])
  1644. + fi
  1645. +
  1646. + test "[$]2" = conftestfile
  1647. + )
  1648. +then
  1649. + # Ok.
  1650. + :
  1651. +else
  1652. + AC_MSG_ERROR([newly created file is older than distributed files!
  1653. +Check your system clock])
  1654. +fi
  1655. +rm -f conftest*
  1656. +AC_MSG_RESULT(yes)])
  1657. +
  1658. +dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
  1659. +dnl The program must properly implement --version.
  1660. +AC_DEFUN([AM_MISSING_PROG],
  1661. +[AC_MSG_CHECKING(for working $2)
  1662. +# Run test in a subshell; some versions of sh will print an error if
  1663. +# an executable is not found, even if stderr is redirected.
  1664. +# Redirect stdin to placate older versions of autoconf. Sigh.
  1665. +if ($2 --version) < /dev/null > /dev/null 2>&1; then
  1666. + $1=$2
  1667. + AC_MSG_RESULT(found)
  1668. +else
  1669. + $1="$3/missing $2"
  1670. + AC_MSG_RESULT(missing)
  1671. +fi
  1672. +AC_SUBST($1)])
  1673. +
  1674. +# Like AC_CONFIG_HEADER, but automatically create stamp file.
  1675. +
  1676. +AC_DEFUN([AM_CONFIG_HEADER],
  1677. +[AC_PREREQ([2.12])
  1678. +AC_CONFIG_HEADER([$1])
  1679. +dnl When config.status generates a header, we must update the stamp-h file.
  1680. +dnl This file resides in the same directory as the config header
  1681. +dnl that is generated. We must strip everything past the first ":",
  1682. +dnl and everything past the last "/".
  1683. +AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
  1684. +ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
  1685. +<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
  1686. +<<am_indx=1
  1687. +for am_file in <<$1>>; do
  1688. + case " <<$>>CONFIG_HEADERS " in
  1689. + *" <<$>>am_file "*<<)>>
  1690. + echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
  1691. + ;;
  1692. + esac
  1693. + am_indx=`expr "<<$>>am_indx" + 1`
  1694. +done<<>>dnl>>)
  1695. +changequote([,]))])
  1696. +
  1697. +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  1698. +
  1699. +# serial 48 Debian 1.5.22-2 AC_PROG_LIBTOOL
  1700. +
  1701. +
  1702. +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  1703. +# -----------------------------------------------------------
  1704. +# If this macro is not defined by Autoconf, define it here.
  1705. +m4_ifdef([AC_PROVIDE_IFELSE],
  1706. + [],
  1707. + [m4_define([AC_PROVIDE_IFELSE],
  1708. + [m4_ifdef([AC_PROVIDE_$1],
  1709. + [$2], [$3])])])
  1710. +
  1711. +
  1712. +# AC_PROG_LIBTOOL
  1713. +# ---------------
  1714. +AC_DEFUN([AC_PROG_LIBTOOL],
  1715. +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  1716. +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  1717. +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  1718. + AC_PROVIDE_IFELSE([AC_PROG_CXX],
  1719. + [AC_LIBTOOL_CXX],
  1720. + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  1721. + ])])
  1722. +dnl And a similar setup for Fortran 77 support
  1723. + AC_PROVIDE_IFELSE([AC_PROG_F77],
  1724. + [AC_LIBTOOL_F77],
  1725. + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  1726. +])])
  1727. +
  1728. +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  1729. +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  1730. +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  1731. + AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  1732. + [AC_LIBTOOL_GCJ],
  1733. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  1734. + [AC_LIBTOOL_GCJ],
  1735. + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  1736. + [AC_LIBTOOL_GCJ],
  1737. + [ifdef([AC_PROG_GCJ],
  1738. + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  1739. + ifdef([A][M_PROG_GCJ],
  1740. + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  1741. + ifdef([LT_AC_PROG_GCJ],
  1742. + [define([LT_AC_PROG_GCJ],
  1743. + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  1744. +])])# AC_PROG_LIBTOOL
  1745. +
  1746. +
  1747. +# _AC_PROG_LIBTOOL
  1748. +# ----------------
  1749. +AC_DEFUN([_AC_PROG_LIBTOOL],
  1750. +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  1751. +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  1752. +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  1753. +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  1754. +
  1755. +# This can be used to rebuild libtool when needed
  1756. +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  1757. +
  1758. +# Always use our own libtool.
  1759. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  1760. +AC_SUBST(LIBTOOL)dnl
  1761. +
  1762. +# Prevent multiple expansion
  1763. +define([AC_PROG_LIBTOOL], [])
  1764. +])# _AC_PROG_LIBTOOL
  1765. +
  1766. +
  1767. +# AC_LIBTOOL_SETUP
  1768. +# ----------------
  1769. +AC_DEFUN([AC_LIBTOOL_SETUP],
  1770. +[AC_PREREQ(2.50)dnl
  1771. +AC_REQUIRE([AC_ENABLE_SHARED])dnl
  1772. +AC_REQUIRE([AC_ENABLE_STATIC])dnl
  1773. +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  1774. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1775. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  1776. +AC_REQUIRE([AC_PROG_CC])dnl
  1777. +AC_REQUIRE([AC_PROG_LD])dnl
  1778. +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  1779. +AC_REQUIRE([AC_PROG_NM])dnl
  1780. +
  1781. +AC_REQUIRE([AC_PROG_LN_S])dnl
  1782. +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  1783. +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  1784. +AC_REQUIRE([AC_OBJEXT])dnl
  1785. +AC_REQUIRE([AC_EXEEXT])dnl
  1786. +dnl
  1787. +
  1788. +AC_LIBTOOL_SYS_MAX_CMD_LEN
  1789. +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  1790. +AC_LIBTOOL_OBJDIR
  1791. +
  1792. +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  1793. +_LT_AC_PROG_ECHO_BACKSLASH
  1794. +
  1795. +case $host_os in
  1796. +aix3*)
  1797. + # AIX sometimes has problems with the GCC collect2 program. For some
  1798. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  1799. + # vanish in a puff of smoke.
  1800. + if test "X${COLLECT_NAMES+set}" != Xset; then
  1801. + COLLECT_NAMES=
  1802. + export COLLECT_NAMES
  1803. + fi
  1804. + ;;
  1805. +esac
  1806. +
  1807. +# Sed substitution that helps us do robust quoting. It backslashifies
  1808. +# metacharacters that are still active within double-quoted strings.
  1809. +Xsed='sed -e 1s/^X//'
  1810. +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  1811. +
  1812. +# Same as above, but do not quote variable references.
  1813. +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  1814. +
  1815. +# Sed substitution to delay expansion of an escaped shell variable in a
  1816. +# double_quote_subst'ed string.
  1817. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  1818. +
  1819. +# Sed substitution to avoid accidental globbing in evaled expressions
  1820. +no_glob_subst='s/\*/\\\*/g'
  1821. +
  1822. +# Constants:
  1823. +rm="rm -f"
  1824. +
  1825. +# Global variables:
  1826. +default_ofile=libtool
  1827. +can_build_shared=yes
  1828. +
  1829. +# All known linkers require a `.a' archive for static linking (except MSVC,
  1830. +# which needs '.lib').
  1831. +libext=a
  1832. +ltmain="$ac_aux_dir/ltmain.sh"
  1833. +ofile="$default_ofile"
  1834. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  1835. +
  1836. +AC_CHECK_TOOL(AR, ar, false)
  1837. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  1838. +AC_CHECK_TOOL(STRIP, strip, :)
  1839. +
  1840. +old_CC="$CC"
  1841. +old_CFLAGS="$CFLAGS"
  1842. +
  1843. +# Set sane defaults for various variables
  1844. +test -z "$AR" && AR=ar
  1845. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  1846. +test -z "$AS" && AS=as
  1847. +test -z "$CC" && CC=cc
  1848. +test -z "$LTCC" && LTCC=$CC
  1849. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  1850. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  1851. +test -z "$LD" && LD=ld
  1852. +test -z "$LN_S" && LN_S="ln -s"
  1853. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  1854. +test -z "$NM" && NM=nm
  1855. +test -z "$SED" && SED=sed
  1856. +test -z "$OBJDUMP" && OBJDUMP=objdump
  1857. +test -z "$RANLIB" && RANLIB=:
  1858. +test -z "$STRIP" && STRIP=:
  1859. +test -z "$ac_objext" && ac_objext=o
  1860. +
  1861. +# Determine commands to create old-style static archives.
  1862. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  1863. +old_postinstall_cmds='chmod 644 $oldlib'
  1864. +old_postuninstall_cmds=
  1865. +
  1866. +if test -n "$RANLIB"; then
  1867. + case $host_os in
  1868. + openbsd*)
  1869. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  1870. + ;;
  1871. + *)
  1872. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  1873. + ;;
  1874. + esac
  1875. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  1876. +fi
  1877. +
  1878. +_LT_CC_BASENAME([$compiler])
  1879. +
  1880. +# Only perform the check for file, if the check method requires it
  1881. +case $deplibs_check_method in
  1882. +file_magic*)
  1883. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  1884. + AC_PATH_MAGIC
  1885. + fi
  1886. + ;;
  1887. +esac
  1888. +
  1889. +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  1890. +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  1891. +enable_win32_dll=yes, enable_win32_dll=no)
  1892. +
  1893. +AC_ARG_ENABLE([libtool-lock],
  1894. + [AC_HELP_STRING([--disable-libtool-lock],
  1895. + [avoid locking (might break parallel builds)])])
  1896. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1897. +
  1898. +AC_ARG_WITH([pic],
  1899. + [AC_HELP_STRING([--with-pic],
  1900. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  1901. + [pic_mode="$withval"],
  1902. + [pic_mode=default])
  1903. +test -z "$pic_mode" && pic_mode=default
  1904. +
  1905. +# Use C for the default configuration in the libtool script
  1906. +tagname=
  1907. +AC_LIBTOOL_LANG_C_CONFIG
  1908. +_LT_AC_TAGCONFIG
  1909. +])# AC_LIBTOOL_SETUP
  1910. +
  1911. +
  1912. +# _LT_AC_SYS_COMPILER
  1913. +# -------------------
  1914. +AC_DEFUN([_LT_AC_SYS_COMPILER],
  1915. +[AC_REQUIRE([AC_PROG_CC])dnl
  1916. +
  1917. +# If no C compiler was specified, use CC.
  1918. +LTCC=${LTCC-"$CC"}
  1919. +
  1920. +# If no C compiler flags were specified, use CFLAGS.
  1921. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  1922. +
  1923. +# Allow CC to be a program name with arguments.
  1924. +compiler=$CC
  1925. +])# _LT_AC_SYS_COMPILER
  1926. +
  1927. +
  1928. +# _LT_CC_BASENAME(CC)
  1929. +# -------------------
  1930. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  1931. +AC_DEFUN([_LT_CC_BASENAME],
  1932. +[for cc_temp in $1""; do
  1933. + case $cc_temp in
  1934. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  1935. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  1936. + \-*) ;;
  1937. + *) break;;
  1938. + esac
  1939. +done
  1940. +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  1941. +])
  1942. +
  1943. +
  1944. +# _LT_COMPILER_BOILERPLATE
  1945. +# ------------------------
  1946. +# Check for compiler boilerplate output or warnings with
  1947. +# the simple compiler test code.
  1948. +AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  1949. +[ac_outfile=conftest.$ac_objext
  1950. +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  1951. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1952. +_lt_compiler_boilerplate=`cat conftest.err`
  1953. +$rm conftest*
  1954. +])# _LT_COMPILER_BOILERPLATE
  1955. +
  1956. +
  1957. +# _LT_LINKER_BOILERPLATE
  1958. +# ----------------------
  1959. +# Check for linker boilerplate output or warnings with
  1960. +# the simple link test code.
  1961. +AC_DEFUN([_LT_LINKER_BOILERPLATE],
  1962. +[ac_outfile=conftest.$ac_objext
  1963. +printf "$lt_simple_link_test_code" >conftest.$ac_ext
  1964. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1965. +_lt_linker_boilerplate=`cat conftest.err`
  1966. +$rm conftest*
  1967. +])# _LT_LINKER_BOILERPLATE
  1968. +
  1969. +
  1970. +# _LT_AC_SYS_LIBPATH_AIX
  1971. +# ----------------------
  1972. +# Links a minimal program and checks the executable
  1973. +# for the system default hardcoded library path. In most cases,
  1974. +# this is /usr/lib:/lib, but when the MPI compilers are used
  1975. +# the location of the communication and MPI libs are included too.
  1976. +# If we don't find anything, use the default library path according
  1977. +# to the aix ld manual.
  1978. +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  1979. +[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1980. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  1981. +}'`
  1982. +# Check for a 64-bit object if we didn't find anything.
  1983. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  1984. +}'`; fi],[])
  1985. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1986. +])# _LT_AC_SYS_LIBPATH_AIX
  1987. +
  1988. +
  1989. +# _LT_AC_SHELL_INIT(ARG)
  1990. +# ----------------------
  1991. +AC_DEFUN([_LT_AC_SHELL_INIT],
  1992. +[ifdef([AC_DIVERSION_NOTICE],
  1993. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1994. + [AC_DIVERT_PUSH(NOTICE)])
  1995. +$1
  1996. +AC_DIVERT_POP
  1997. +])# _LT_AC_SHELL_INIT
  1998. +
  1999. +
  2000. +# _LT_AC_PROG_ECHO_BACKSLASH
  2001. +# --------------------------
  2002. +# Add some code to the start of the generated configure script which
  2003. +# will find an echo command which doesn't interpret backslashes.
  2004. +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  2005. +[_LT_AC_SHELL_INIT([
  2006. +# Check that we are running under the correct shell.
  2007. +SHELL=${CONFIG_SHELL-/bin/sh}
  2008. +
  2009. +case X$ECHO in
  2010. +X*--fallback-echo)
  2011. + # Remove one level of quotation (which was required for Make).
  2012. + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  2013. + ;;
  2014. +esac
  2015. +
  2016. +echo=${ECHO-echo}
  2017. +if test "X[$]1" = X--no-reexec; then
  2018. + # Discard the --no-reexec flag, and continue.
  2019. + shift
  2020. +elif test "X[$]1" = X--fallback-echo; then
  2021. + # Avoid inline document here, it may be left over
  2022. + :
  2023. +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  2024. + # Yippee, $echo works!
  2025. + :
  2026. +else
  2027. + # Restart under the correct shell.
  2028. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  2029. +fi
  2030. +
  2031. +if test "X[$]1" = X--fallback-echo; then
  2032. + # used as fallback echo
  2033. + shift
  2034. + cat <<EOF
  2035. +[$]*
  2036. +EOF
  2037. + exit 0
  2038. +fi
  2039. +
  2040. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  2041. +# if CDPATH is set.
  2042. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  2043. +
  2044. +if test -z "$ECHO"; then
  2045. +if test "X${echo_test_string+set}" != Xset; then
  2046. +# find a string as large as possible, as long as the shell can cope with it
  2047. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  2048. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  2049. + if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  2050. + echo_test_string=`eval $cmd` &&
  2051. + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  2052. + then
  2053. + break
  2054. + fi
  2055. + done
  2056. +fi
  2057. +
  2058. +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  2059. + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  2060. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2061. + :
  2062. +else
  2063. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  2064. + # backslashes. This makes it impossible to quote backslashes using
  2065. + # echo "$something" | sed 's/\\/\\\\/g'
  2066. + #
  2067. + # So, first we look for a working echo in the user's PATH.
  2068. +
  2069. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2070. + for dir in $PATH /usr/ucb; do
  2071. + IFS="$lt_save_ifs"
  2072. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  2073. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  2074. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  2075. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2076. + echo="$dir/echo"
  2077. + break
  2078. + fi
  2079. + done
  2080. + IFS="$lt_save_ifs"
  2081. +
  2082. + if test "X$echo" = Xecho; then
  2083. + # We didn't find a better echo, so look for alternatives.
  2084. + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  2085. + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  2086. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2087. + # This shell has a builtin print -r that does the trick.
  2088. + echo='print -r'
  2089. + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  2090. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  2091. + # If we have ksh, try running configure again with it.
  2092. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  2093. + export ORIGINAL_CONFIG_SHELL
  2094. + CONFIG_SHELL=/bin/ksh
  2095. + export CONFIG_SHELL
  2096. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  2097. + else
  2098. + # Try using printf.
  2099. + echo='printf %s\n'
  2100. + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  2101. + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  2102. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2103. + # Cool, printf works
  2104. + :
  2105. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  2106. + test "X$echo_testing_string" = 'X\t' &&
  2107. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  2108. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2109. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  2110. + export CONFIG_SHELL
  2111. + SHELL="$CONFIG_SHELL"
  2112. + export SHELL
  2113. + echo="$CONFIG_SHELL [$]0 --fallback-echo"
  2114. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  2115. + test "X$echo_testing_string" = 'X\t' &&
  2116. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  2117. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2118. + echo="$CONFIG_SHELL [$]0 --fallback-echo"
  2119. + else
  2120. + # maybe with a smaller string...
  2121. + prev=:
  2122. +
  2123. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  2124. + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  2125. + then
  2126. + break
  2127. + fi
  2128. + prev="$cmd"
  2129. + done
  2130. +
  2131. + if test "$prev" != 'sed 50q "[$]0"'; then
  2132. + echo_test_string=`eval $prev`
  2133. + export echo_test_string
  2134. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  2135. + else
  2136. + # Oops. We lost completely, so just stick with echo.
  2137. + echo=echo
  2138. + fi
  2139. + fi
  2140. + fi
  2141. + fi
  2142. +fi
  2143. +fi
  2144. +
  2145. +# Copy echo and quote the copy suitably for passing to libtool from
  2146. +# the Makefile, instead of quoting the original, which is used later.
  2147. +ECHO=$echo
  2148. +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  2149. + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  2150. +fi
  2151. +
  2152. +AC_SUBST(ECHO)
  2153. +])])# _LT_AC_PROG_ECHO_BACKSLASH
  2154. +
  2155. +
  2156. +# _LT_AC_LOCK
  2157. +# -----------
  2158. +AC_DEFUN([_LT_AC_LOCK],
  2159. +[AC_ARG_ENABLE([libtool-lock],
  2160. + [AC_HELP_STRING([--disable-libtool-lock],
  2161. + [avoid locking (might break parallel builds)])])
  2162. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  2163. +
  2164. +# Some flags need to be propagated to the compiler or linker for good
  2165. +# libtool support.
  2166. +case $host in
  2167. +ia64-*-hpux*)
  2168. + # Find out which ABI we are using.
  2169. + echo 'int i;' > conftest.$ac_ext
  2170. + if AC_TRY_EVAL(ac_compile); then
  2171. + case `/usr/bin/file conftest.$ac_objext` in
  2172. + *ELF-32*)
  2173. + HPUX_IA64_MODE="32"
  2174. + ;;
  2175. + *ELF-64*)
  2176. + HPUX_IA64_MODE="64"
  2177. + ;;
  2178. + esac
  2179. + fi
  2180. + rm -rf conftest*
  2181. + ;;
  2182. +*-*-irix6*)
  2183. + # Find out which ABI we are using.
  2184. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  2185. + if AC_TRY_EVAL(ac_compile); then
  2186. + if test "$lt_cv_prog_gnu_ld" = yes; then
  2187. + case `/usr/bin/file conftest.$ac_objext` in
  2188. + *32-bit*)
  2189. + LD="${LD-ld} -melf32bsmip"
  2190. + ;;
  2191. + *N32*)
  2192. + LD="${LD-ld} -melf32bmipn32"
  2193. + ;;
  2194. + *64-bit*)
  2195. + LD="${LD-ld} -melf64bmip"
  2196. + ;;
  2197. + esac
  2198. + else
  2199. + case `/usr/bin/file conftest.$ac_objext` in
  2200. + *32-bit*)
  2201. + LD="${LD-ld} -32"
  2202. + ;;
  2203. + *N32*)
  2204. + LD="${LD-ld} -n32"
  2205. + ;;
  2206. + *64-bit*)
  2207. + LD="${LD-ld} -64"
  2208. + ;;
  2209. + esac
  2210. + fi
  2211. + fi
  2212. + rm -rf conftest*
  2213. + ;;
  2214. +
  2215. +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  2216. + # Find out which ABI we are using.
  2217. + echo 'int i;' > conftest.$ac_ext
  2218. + if AC_TRY_EVAL(ac_compile); then
  2219. + case `/usr/bin/file conftest.o` in
  2220. + *32-bit*)
  2221. + case $host in
  2222. + x86_64-*linux*)
  2223. + LD="${LD-ld} -m elf_i386"
  2224. + ;;
  2225. + ppc64-*linux*|powerpc64-*linux*)
  2226. + LD="${LD-ld} -m elf32ppclinux"
  2227. + ;;
  2228. + s390x-*linux*)
  2229. + LD="${LD-ld} -m elf_s390"
  2230. + ;;
  2231. + sparc64-*linux*)
  2232. + LD="${LD-ld} -m elf32_sparc"
  2233. + ;;
  2234. + esac
  2235. + ;;
  2236. + *64-bit*)
  2237. + case $host in
  2238. + x86_64-*linux*)
  2239. + LD="${LD-ld} -m elf_x86_64"
  2240. + ;;
  2241. + ppc*-*linux*|powerpc*-*linux*)
  2242. + LD="${LD-ld} -m elf64ppc"
  2243. + ;;
  2244. + s390*-*linux*)
  2245. + LD="${LD-ld} -m elf64_s390"
  2246. + ;;
  2247. + sparc*-*linux*)
  2248. + LD="${LD-ld} -m elf64_sparc"
  2249. + ;;
  2250. + esac
  2251. + ;;
  2252. + esac
  2253. + fi
  2254. + rm -rf conftest*
  2255. + ;;
  2256. +
  2257. +*-*-sco3.2v5*)
  2258. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  2259. + SAVE_CFLAGS="$CFLAGS"
  2260. + CFLAGS="$CFLAGS -belf"
  2261. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  2262. + [AC_LANG_PUSH(C)
  2263. + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  2264. + AC_LANG_POP])
  2265. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  2266. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  2267. + CFLAGS="$SAVE_CFLAGS"
  2268. + fi
  2269. + ;;
  2270. +sparc*-*solaris*)
  2271. + # Find out which ABI we are using.
  2272. + echo 'int i;' > conftest.$ac_ext
  2273. + if AC_TRY_EVAL(ac_compile); then
  2274. + case `/usr/bin/file conftest.o` in
  2275. + *64-bit*)
  2276. + case $lt_cv_prog_gnu_ld in
  2277. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  2278. + *) LD="${LD-ld} -64" ;;
  2279. + esac
  2280. + ;;
  2281. + esac
  2282. + fi
  2283. + rm -rf conftest*
  2284. + ;;
  2285. +
  2286. +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  2287. +[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  2288. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  2289. + AC_CHECK_TOOL(AS, as, false)
  2290. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  2291. + ;;
  2292. + ])
  2293. +esac
  2294. +
  2295. +need_locks="$enable_libtool_lock"
  2296. +
  2297. +])# _LT_AC_LOCK
  2298. +
  2299. +
  2300. +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2301. +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  2302. +# ----------------------------------------------------------------
  2303. +# Check whether the given compiler option works
  2304. +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  2305. +[AC_REQUIRE([LT_AC_PROG_SED])
  2306. +AC_CACHE_CHECK([$1], [$2],
  2307. + [$2=no
  2308. + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  2309. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  2310. + lt_compiler_flag="$3"
  2311. + # Insert the option either (1) after the last *FLAGS variable, or
  2312. + # (2) before a word containing "conftest.", or (3) at the end.
  2313. + # Note that $ac_compile itself does not contain backslashes and begins
  2314. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  2315. + # The option is referenced via a variable to avoid confusing sed.
  2316. + lt_compile=`echo "$ac_compile" | $SED \
  2317. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  2318. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  2319. + -e 's:$: $lt_compiler_flag:'`
  2320. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  2321. + (eval "$lt_compile" 2>conftest.err)
  2322. + ac_status=$?
  2323. + cat conftest.err >&AS_MESSAGE_LOG_FD
  2324. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  2325. + if (exit $ac_status) && test -s "$ac_outfile"; then
  2326. + # The compiler can only warn and ignore the option if not recognized
  2327. + # So say no if there are warnings other than the usual output.
  2328. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  2329. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2330. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  2331. + $2=yes
  2332. + fi
  2333. + fi
  2334. + $rm conftest*
  2335. +])
  2336. +
  2337. +if test x"[$]$2" = xyes; then
  2338. + ifelse([$5], , :, [$5])
  2339. +else
  2340. + ifelse([$6], , :, [$6])
  2341. +fi
  2342. +])# AC_LIBTOOL_COMPILER_OPTION
  2343. +
  2344. +
  2345. +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2346. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  2347. +# ------------------------------------------------------------
  2348. +# Check whether the given compiler option works
  2349. +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  2350. +[AC_CACHE_CHECK([$1], [$2],
  2351. + [$2=no
  2352. + save_LDFLAGS="$LDFLAGS"
  2353. + LDFLAGS="$LDFLAGS $3"
  2354. + printf "$lt_simple_link_test_code" > conftest.$ac_ext
  2355. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  2356. + # The linker can only warn and ignore the option if not recognized
  2357. + # So say no if there are warnings
  2358. + if test -s conftest.err; then
  2359. + # Append any errors to the config.log.
  2360. + cat conftest.err 1>&AS_MESSAGE_LOG_FD
  2361. + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  2362. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2363. + if diff conftest.exp conftest.er2 >/dev/null; then
  2364. + $2=yes
  2365. + fi
  2366. + else
  2367. + $2=yes
  2368. + fi
  2369. + fi
  2370. + $rm conftest*
  2371. + LDFLAGS="$save_LDFLAGS"
  2372. +])
  2373. +
  2374. +if test x"[$]$2" = xyes; then
  2375. + ifelse([$4], , :, [$4])
  2376. +else
  2377. + ifelse([$5], , :, [$5])
  2378. +fi
  2379. +])# AC_LIBTOOL_LINKER_OPTION
  2380. +
  2381. +
  2382. +# AC_LIBTOOL_SYS_MAX_CMD_LEN
  2383. +# --------------------------
  2384. +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  2385. +[# find the maximum length of command line arguments
  2386. +AC_MSG_CHECKING([the maximum length of command line arguments])
  2387. +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  2388. + i=0
  2389. + teststring="ABCD"
  2390. +
  2391. + case $build_os in
  2392. + msdosdjgpp*)
  2393. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  2394. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  2395. + # during glob expansion). Even if it were fixed, the result of this
  2396. + # check would be larger than it should be.
  2397. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  2398. + ;;
  2399. +
  2400. + gnu*)
  2401. + # Under GNU Hurd, this test is not required because there is
  2402. + # no limit to the length of command line arguments.
  2403. + # Libtool will interpret -1 as no limit whatsoever
  2404. + lt_cv_sys_max_cmd_len=-1;
  2405. + ;;
  2406. +
  2407. + cygwin* | mingw*)
  2408. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  2409. + # about 5 minutes as the teststring grows exponentially.
  2410. + # Worse, since 9x/ME are not pre-emptively multitasking,
  2411. + # you end up with a "frozen" computer, even though with patience
  2412. + # the test eventually succeeds (with a max line length of 256k).
  2413. + # Instead, let's just punt: use the minimum linelength reported by
  2414. + # all of the supported platforms: 8192 (on NT/2K/XP).
  2415. + lt_cv_sys_max_cmd_len=8192;
  2416. + ;;
  2417. +
  2418. + amigaos*)
  2419. + # On AmigaOS with pdksh, this test takes hours, literally.
  2420. + # So we just punt and use a minimum line length of 8192.
  2421. + lt_cv_sys_max_cmd_len=8192;
  2422. + ;;
  2423. +
  2424. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  2425. + # This has been around since 386BSD, at least. Likely further.
  2426. + if test -x /sbin/sysctl; then
  2427. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  2428. + elif test -x /usr/sbin/sysctl; then
  2429. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  2430. + else
  2431. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  2432. + fi
  2433. + # And add a safety zone
  2434. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  2435. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  2436. + ;;
  2437. +
  2438. + interix*)
  2439. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  2440. + lt_cv_sys_max_cmd_len=196608
  2441. + ;;
  2442. +
  2443. + osf*)
  2444. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  2445. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  2446. + # nice to cause kernel panics so lets avoid the loop below.
  2447. + # First set a reasonable default.
  2448. + lt_cv_sys_max_cmd_len=16384
  2449. + #
  2450. + if test -x /sbin/sysconfig; then
  2451. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  2452. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  2453. + esac
  2454. + fi
  2455. + ;;
  2456. + sco3.2v5*)
  2457. + lt_cv_sys_max_cmd_len=102400
  2458. + ;;
  2459. + sysv5* | sco5v6* | sysv4.2uw2*)
  2460. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  2461. + if test -n "$kargmax"; then
  2462. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  2463. + else
  2464. + lt_cv_sys_max_cmd_len=32768
  2465. + fi
  2466. + ;;
  2467. + *)
  2468. + # If test is not a shell built-in, we'll probably end up computing a
  2469. + # maximum length that is only half of the actual maximum length, but
  2470. + # we can't tell.
  2471. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  2472. + while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  2473. + = "XX$teststring") >/dev/null 2>&1 &&
  2474. + new_result=`expr "X$teststring" : ".*" 2>&1` &&
  2475. + lt_cv_sys_max_cmd_len=$new_result &&
  2476. + test $i != 17 # 1/2 MB should be enough
  2477. + do
  2478. + i=`expr $i + 1`
  2479. + teststring=$teststring$teststring
  2480. + done
  2481. + teststring=
  2482. + # Add a significant safety factor because C++ compilers can tack on massive
  2483. + # amounts of additional arguments before passing them to the linker.
  2484. + # It appears as though 1/2 is a usable value.
  2485. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  2486. + ;;
  2487. + esac
  2488. +])
  2489. +if test -n $lt_cv_sys_max_cmd_len ; then
  2490. + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  2491. +else
  2492. + AC_MSG_RESULT(none)
  2493. +fi
  2494. +])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  2495. +
  2496. +
  2497. +# _LT_AC_CHECK_DLFCN
  2498. +# ------------------
  2499. +AC_DEFUN([_LT_AC_CHECK_DLFCN],
  2500. +[AC_CHECK_HEADERS(dlfcn.h)dnl
  2501. +])# _LT_AC_CHECK_DLFCN
  2502. +
  2503. +
  2504. +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  2505. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  2506. +# ---------------------------------------------------------------------
  2507. +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  2508. +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  2509. +if test "$cross_compiling" = yes; then :
  2510. + [$4]
  2511. +else
  2512. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  2513. + lt_status=$lt_dlunknown
  2514. + cat > conftest.$ac_ext <<EOF
  2515. +[#line __oline__ "configure"
  2516. +#include "confdefs.h"
  2517. +
  2518. +#if HAVE_DLFCN_H
  2519. +#include <dlfcn.h>
  2520. +#endif
  2521. +
  2522. +#include <stdio.h>
  2523. +
  2524. +#ifdef RTLD_GLOBAL
  2525. +# define LT_DLGLOBAL RTLD_GLOBAL
  2526. +#else
  2527. +# ifdef DL_GLOBAL
  2528. +# define LT_DLGLOBAL DL_GLOBAL
  2529. +# else
  2530. +# define LT_DLGLOBAL 0
  2531. +# endif
  2532. +#endif
  2533. +
  2534. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  2535. + find out it does not work in some platform. */
  2536. +#ifndef LT_DLLAZY_OR_NOW
  2537. +# ifdef RTLD_LAZY
  2538. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  2539. +# else
  2540. +# ifdef DL_LAZY
  2541. +# define LT_DLLAZY_OR_NOW DL_LAZY
  2542. +# else
  2543. +# ifdef RTLD_NOW
  2544. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  2545. +# else
  2546. +# ifdef DL_NOW
  2547. +# define LT_DLLAZY_OR_NOW DL_NOW
  2548. +# else
  2549. +# define LT_DLLAZY_OR_NOW 0
  2550. +# endif
  2551. +# endif
  2552. +# endif
  2553. +# endif
  2554. +#endif
  2555. +
  2556. +#ifdef __cplusplus
  2557. +extern "C" void exit (int);
  2558. +#endif
  2559. +
  2560. +void fnord() { int i=42;}
  2561. +int main ()
  2562. +{
  2563. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  2564. + int status = $lt_dlunknown;
  2565. +
  2566. + if (self)
  2567. + {
  2568. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  2569. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  2570. + /* dlclose (self); */
  2571. + }
  2572. + else
  2573. + puts (dlerror ());
  2574. +
  2575. + exit (status);
  2576. +}]
  2577. +EOF
  2578. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  2579. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  2580. + lt_status=$?
  2581. + case x$lt_status in
  2582. + x$lt_dlno_uscore) $1 ;;
  2583. + x$lt_dlneed_uscore) $2 ;;
  2584. + x$lt_dlunknown|x*) $3 ;;
  2585. + esac
  2586. + else :
  2587. + # compilation failed
  2588. + $3
  2589. + fi
  2590. +fi
  2591. +rm -fr conftest*
  2592. +])# _LT_AC_TRY_DLOPEN_SELF
  2593. +
  2594. +
  2595. +# AC_LIBTOOL_DLOPEN_SELF
  2596. +# ----------------------
  2597. +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  2598. +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  2599. +if test "x$enable_dlopen" != xyes; then
  2600. + enable_dlopen=unknown
  2601. + enable_dlopen_self=unknown
  2602. + enable_dlopen_self_static=unknown
  2603. +else
  2604. + lt_cv_dlopen=no
  2605. + lt_cv_dlopen_libs=
  2606. +
  2607. + case $host_os in
  2608. + beos*)
  2609. + lt_cv_dlopen="load_add_on"
  2610. + lt_cv_dlopen_libs=
  2611. + lt_cv_dlopen_self=yes
  2612. + ;;
  2613. +
  2614. + mingw* | pw32*)
  2615. + lt_cv_dlopen="LoadLibrary"
  2616. + lt_cv_dlopen_libs=
  2617. + ;;
  2618. +
  2619. + cygwin*)
  2620. + lt_cv_dlopen="dlopen"
  2621. + lt_cv_dlopen_libs=
  2622. + ;;
  2623. +
  2624. + darwin*)
  2625. + # if libdl is installed we need to link against it
  2626. + AC_CHECK_LIB([dl], [dlopen],
  2627. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  2628. + lt_cv_dlopen="dyld"
  2629. + lt_cv_dlopen_libs=
  2630. + lt_cv_dlopen_self=yes
  2631. + ])
  2632. + ;;
  2633. +
  2634. + *)
  2635. + AC_CHECK_FUNC([shl_load],
  2636. + [lt_cv_dlopen="shl_load"],
  2637. + [AC_CHECK_LIB([dld], [shl_load],
  2638. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  2639. + [AC_CHECK_FUNC([dlopen],
  2640. + [lt_cv_dlopen="dlopen"],
  2641. + [AC_CHECK_LIB([dl], [dlopen],
  2642. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  2643. + [AC_CHECK_LIB([svld], [dlopen],
  2644. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  2645. + [AC_CHECK_LIB([dld], [dld_link],
  2646. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  2647. + ])
  2648. + ])
  2649. + ])
  2650. + ])
  2651. + ])
  2652. + ;;
  2653. + esac
  2654. +
  2655. + if test "x$lt_cv_dlopen" != xno; then
  2656. + enable_dlopen=yes
  2657. + else
  2658. + enable_dlopen=no
  2659. + fi
  2660. +
  2661. + case $lt_cv_dlopen in
  2662. + dlopen)
  2663. + save_CPPFLAGS="$CPPFLAGS"
  2664. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  2665. +
  2666. + save_LDFLAGS="$LDFLAGS"
  2667. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  2668. +
  2669. + save_LIBS="$LIBS"
  2670. + LIBS="$lt_cv_dlopen_libs $LIBS"
  2671. +
  2672. + AC_CACHE_CHECK([whether a program can dlopen itself],
  2673. + lt_cv_dlopen_self, [dnl
  2674. + _LT_AC_TRY_DLOPEN_SELF(
  2675. + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  2676. + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  2677. + ])
  2678. +
  2679. + if test "x$lt_cv_dlopen_self" = xyes; then
  2680. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  2681. + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  2682. + lt_cv_dlopen_self_static, [dnl
  2683. + _LT_AC_TRY_DLOPEN_SELF(
  2684. + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  2685. + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  2686. + ])
  2687. + fi
  2688. +
  2689. + CPPFLAGS="$save_CPPFLAGS"
  2690. + LDFLAGS="$save_LDFLAGS"
  2691. + LIBS="$save_LIBS"
  2692. + ;;
  2693. + esac
  2694. +
  2695. + case $lt_cv_dlopen_self in
  2696. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  2697. + *) enable_dlopen_self=unknown ;;
  2698. + esac
  2699. +
  2700. + case $lt_cv_dlopen_self_static in
  2701. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  2702. + *) enable_dlopen_self_static=unknown ;;
  2703. + esac
  2704. +fi
  2705. +])# AC_LIBTOOL_DLOPEN_SELF
  2706. +
  2707. +
  2708. +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  2709. +# ---------------------------------
  2710. +# Check to see if options -c and -o are simultaneously supported by compiler
  2711. +AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  2712. +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  2713. +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  2714. + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  2715. + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  2716. + $rm -r conftest 2>/dev/null
  2717. + mkdir conftest
  2718. + cd conftest
  2719. + mkdir out
  2720. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  2721. +
  2722. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  2723. + # Insert the option either (1) after the last *FLAGS variable, or
  2724. + # (2) before a word containing "conftest.", or (3) at the end.
  2725. + # Note that $ac_compile itself does not contain backslashes and begins
  2726. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  2727. + lt_compile=`echo "$ac_compile" | $SED \
  2728. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  2729. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  2730. + -e 's:$: $lt_compiler_flag:'`
  2731. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  2732. + (eval "$lt_compile" 2>out/conftest.err)
  2733. + ac_status=$?
  2734. + cat out/conftest.err >&AS_MESSAGE_LOG_FD
  2735. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  2736. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  2737. + then
  2738. + # The compiler can only warn and ignore the option if not recognized
  2739. + # So say no if there are warnings
  2740. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  2741. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  2742. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  2743. + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  2744. + fi
  2745. + fi
  2746. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  2747. + $rm conftest*
  2748. + # SGI C++ compiler will create directory out/ii_files/ for
  2749. + # template instantiation
  2750. + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  2751. + $rm out/* && rmdir out
  2752. + cd ..
  2753. + rmdir conftest
  2754. + $rm conftest*
  2755. +])
  2756. +])# AC_LIBTOOL_PROG_CC_C_O
  2757. +
  2758. +
  2759. +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  2760. +# -----------------------------------------
  2761. +# Check to see if we can do hard links to lock some files if needed
  2762. +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  2763. +[AC_REQUIRE([_LT_AC_LOCK])dnl
  2764. +
  2765. +hard_links="nottested"
  2766. +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  2767. + # do not overwrite the value of need_locks provided by the user
  2768. + AC_MSG_CHECKING([if we can lock with hard links])
  2769. + hard_links=yes
  2770. + $rm conftest*
  2771. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2772. + touch conftest.a
  2773. + ln conftest.a conftest.b 2>&5 || hard_links=no
  2774. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2775. + AC_MSG_RESULT([$hard_links])
  2776. + if test "$hard_links" = no; then
  2777. + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  2778. + need_locks=warn
  2779. + fi
  2780. +else
  2781. + need_locks=no
  2782. +fi
  2783. +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  2784. +
  2785. +
  2786. +# AC_LIBTOOL_OBJDIR
  2787. +# -----------------
  2788. +AC_DEFUN([AC_LIBTOOL_OBJDIR],
  2789. +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  2790. +[rm -f .libs 2>/dev/null
  2791. +mkdir .libs 2>/dev/null
  2792. +if test -d .libs; then
  2793. + lt_cv_objdir=.libs
  2794. +else
  2795. + # MS-DOS does not allow filenames that begin with a dot.
  2796. + lt_cv_objdir=_libs
  2797. +fi
  2798. +rmdir .libs 2>/dev/null])
  2799. +objdir=$lt_cv_objdir
  2800. +])# AC_LIBTOOL_OBJDIR
  2801. +
  2802. +
  2803. +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  2804. +# ----------------------------------------------
  2805. +# Check hardcoding attributes.
  2806. +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  2807. +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  2808. +_LT_AC_TAGVAR(hardcode_action, $1)=
  2809. +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  2810. + test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  2811. + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  2812. +
  2813. + # We can hardcode non-existant directories.
  2814. + if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  2815. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  2816. + # have to relink, otherwise we might link with an installed library
  2817. + # when we should be linking with a yet-to-be-installed one
  2818. + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  2819. + test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  2820. + # Linking always hardcodes the temporary library directory.
  2821. + _LT_AC_TAGVAR(hardcode_action, $1)=relink
  2822. + else
  2823. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  2824. + _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  2825. + fi
  2826. +else
  2827. + # We cannot hardcode anything, or else we can only hardcode existing
  2828. + # directories.
  2829. + _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  2830. +fi
  2831. +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  2832. +
  2833. +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  2834. + # Fast installation is not supported
  2835. + enable_fast_install=no
  2836. +elif test "$shlibpath_overrides_runpath" = yes ||
  2837. + test "$enable_shared" = no; then
  2838. + # Fast installation is not necessary
  2839. + enable_fast_install=needless
  2840. +fi
  2841. +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  2842. +
  2843. +
  2844. +# AC_LIBTOOL_SYS_LIB_STRIP
  2845. +# ------------------------
  2846. +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  2847. +[striplib=
  2848. +old_striplib=
  2849. +AC_MSG_CHECKING([whether stripping libraries is possible])
  2850. +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  2851. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  2852. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  2853. + AC_MSG_RESULT([yes])
  2854. +else
  2855. +# FIXME - insert some real tests, host_os isn't really good enough
  2856. + case $host_os in
  2857. + darwin*)
  2858. + if test -n "$STRIP" ; then
  2859. + striplib="$STRIP -x"
  2860. + AC_MSG_RESULT([yes])
  2861. + else
  2862. + AC_MSG_RESULT([no])
  2863. +fi
  2864. + ;;
  2865. + *)
  2866. + AC_MSG_RESULT([no])
  2867. + ;;
  2868. + esac
  2869. +fi
  2870. +])# AC_LIBTOOL_SYS_LIB_STRIP
  2871. +
  2872. +
  2873. +# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  2874. +# -----------------------------
  2875. +# PORTME Fill in your ld.so characteristics
  2876. +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  2877. +[AC_MSG_CHECKING([dynamic linker characteristics])
  2878. +library_names_spec=
  2879. +libname_spec='lib$name'
  2880. +soname_spec=
  2881. +shrext_cmds=".so"
  2882. +postinstall_cmds=
  2883. +postuninstall_cmds=
  2884. +finish_cmds=
  2885. +finish_eval=
  2886. +shlibpath_var=
  2887. +shlibpath_overrides_runpath=unknown
  2888. +version_type=none
  2889. +dynamic_linker="$host_os ld.so"
  2890. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2891. +if test "$GCC" = yes; then
  2892. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2893. + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  2894. + # if the path contains ";" then we assume it to be the separator
  2895. + # otherwise default to the standard path separator (i.e. ":") - it is
  2896. + # assumed that no part of a normal pathname contains ";" but that should
  2897. + # okay in the real world where ";" in dirpaths is itself problematic.
  2898. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2899. + else
  2900. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2901. + fi
  2902. +else
  2903. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2904. +fi
  2905. +need_lib_prefix=unknown
  2906. +hardcode_into_libs=no
  2907. +
  2908. +# when you set need_version to no, make sure it does not cause -set_version
  2909. +# flags to be left without arguments
  2910. +need_version=unknown
  2911. +
  2912. +case $host_os in
  2913. +aix3*)
  2914. + version_type=linux
  2915. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  2916. + shlibpath_var=LIBPATH
  2917. +
  2918. + # AIX 3 has no versioning support, so we append a major version to the name.
  2919. + soname_spec='${libname}${release}${shared_ext}$major'
  2920. + ;;
  2921. +
  2922. +aix4* | aix5*)
  2923. + version_type=linux
  2924. + need_lib_prefix=no
  2925. + need_version=no
  2926. + hardcode_into_libs=yes
  2927. + if test "$host_cpu" = ia64; then
  2928. + # AIX 5 supports IA64
  2929. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2930. + shlibpath_var=LD_LIBRARY_PATH
  2931. + else
  2932. + # With GCC up to 2.95.x, collect2 would create an import file
  2933. + # for dependence libraries. The import file would start with
  2934. + # the line `#! .'. This would cause the generated library to
  2935. + # depend on `.', always an invalid library. This was fixed in
  2936. + # development snapshots of GCC prior to 3.0.
  2937. + case $host_os in
  2938. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  2939. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2940. + echo ' yes '
  2941. + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  2942. + :
  2943. + else
  2944. + can_build_shared=no
  2945. + fi
  2946. + ;;
  2947. + esac
  2948. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2949. + # soname into executable. Probably we can add versioning support to
  2950. + # collect2, so additional links can be useful in future.
  2951. + if test "$aix_use_runtimelinking" = yes; then
  2952. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2953. + # instead of lib<name>.a to let people know that these are not
  2954. + # typical AIX shared libraries.
  2955. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2956. + else
  2957. + # We preserve .a as extension for shared libraries through AIX4.2
  2958. + # and later when we are not doing run time linking.
  2959. + library_names_spec='${libname}${release}.a $libname.a'
  2960. + soname_spec='${libname}${release}${shared_ext}$major'
  2961. + fi
  2962. + shlibpath_var=LIBPATH
  2963. + fi
  2964. + ;;
  2965. +
  2966. +amigaos*)
  2967. + library_names_spec='$libname.ixlibrary $libname.a'
  2968. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2969. + 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'
  2970. + ;;
  2971. +
  2972. +beos*)
  2973. + library_names_spec='${libname}${shared_ext}'
  2974. + dynamic_linker="$host_os ld.so"
  2975. + shlibpath_var=LIBRARY_PATH
  2976. + ;;
  2977. +
  2978. +bsdi[[45]]*)
  2979. + version_type=linux
  2980. + need_version=no
  2981. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2982. + soname_spec='${libname}${release}${shared_ext}$major'
  2983. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2984. + shlibpath_var=LD_LIBRARY_PATH
  2985. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2986. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2987. + # the default ld.so.conf also contains /usr/contrib/lib and
  2988. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2989. + # libtool to hard-code these into programs
  2990. + ;;
  2991. +
  2992. +cygwin* | mingw* | pw32*)
  2993. + version_type=windows
  2994. + shrext_cmds=".dll"
  2995. + need_version=no
  2996. + need_lib_prefix=no
  2997. +
  2998. + case $GCC,$host_os in
  2999. + yes,cygwin* | yes,mingw* | yes,pw32*)
  3000. + library_names_spec='$libname.dll.a'
  3001. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  3002. + postinstall_cmds='base_file=`basename \${file}`~
  3003. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  3004. + dldir=$destdir/`dirname \$dlpath`~
  3005. + test -d \$dldir || mkdir -p \$dldir~
  3006. + $install_prog $dir/$dlname \$dldir/$dlname~
  3007. + chmod a+x \$dldir/$dlname'
  3008. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  3009. + dlpath=$dir/\$dldll~
  3010. + $rm \$dlpath'
  3011. + shlibpath_overrides_runpath=yes
  3012. +
  3013. + case $host_os in
  3014. + cygwin*)
  3015. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  3016. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  3017. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  3018. + ;;
  3019. + mingw*)
  3020. + # MinGW DLLs use traditional 'lib' prefix
  3021. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  3022. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  3023. + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  3024. + # It is most probably a Windows format PATH printed by
  3025. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  3026. + # path with ; separators, and with drive letters. We can handle the
  3027. + # drive letters (cygwin fileutils understands them), so leave them,
  3028. + # especially as we might pass files found there to a mingw objdump,
  3029. + # which wouldn't understand a cygwinified path. Ahh.
  3030. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  3031. + else
  3032. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  3033. + fi
  3034. + ;;
  3035. + pw32*)
  3036. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  3037. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  3038. + ;;
  3039. + esac
  3040. + ;;
  3041. +
  3042. + *)
  3043. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  3044. + ;;
  3045. + esac
  3046. + dynamic_linker='Win32 ld.exe'
  3047. + # FIXME: first we should search . and the directory the executable is in
  3048. + shlibpath_var=PATH
  3049. + ;;
  3050. +
  3051. +darwin* | rhapsody*)
  3052. + dynamic_linker="$host_os dyld"
  3053. + version_type=darwin
  3054. + need_lib_prefix=no
  3055. + need_version=no
  3056. + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  3057. + soname_spec='${libname}${release}${major}$shared_ext'
  3058. + shlibpath_overrides_runpath=yes
  3059. + shlibpath_var=DYLD_LIBRARY_PATH
  3060. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  3061. + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  3062. + if test "$GCC" = yes; then
  3063. + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  3064. + else
  3065. + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  3066. + fi
  3067. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  3068. + ;;
  3069. +
  3070. +dgux*)
  3071. + version_type=linux
  3072. + need_lib_prefix=no
  3073. + need_version=no
  3074. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  3075. + soname_spec='${libname}${release}${shared_ext}$major'
  3076. + shlibpath_var=LD_LIBRARY_PATH
  3077. + ;;
  3078. +
  3079. +freebsd1*)
  3080. + dynamic_linker=no
  3081. + ;;
  3082. +
  3083. +kfreebsd*-gnu)
  3084. + version_type=linux
  3085. + need_lib_prefix=no
  3086. + need_version=no
  3087. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  3088. + soname_spec='${libname}${release}${shared_ext}$major'
  3089. + shlibpath_var=LD_LIBRARY_PATH
  3090. + shlibpath_overrides_runpath=no
  3091. + hardcode_into_libs=yes
  3092. + dynamic_linker='GNU ld.so'
  3093. + ;;
  3094. +
  3095. +freebsd* | dragonfly*)
  3096. + # DragonFly does not have aout. When/if they implement a new
  3097. + # versioning mechanism, adjust this.
  3098. + if test -x /usr/bin/objformat; then
  3099. + objformat=`/usr/bin/objformat`
  3100. + else
  3101. + case $host_os in
  3102. + freebsd[[123]]*) objformat=aout ;;
  3103. + *) objformat=elf ;;
  3104. + esac
  3105. + fi
  3106. + version_type=freebsd-$objformat
  3107. + case $version_type in
  3108. + freebsd-elf*)
  3109. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  3110. + need_version=no
  3111. + need_lib_prefix=no
  3112. + ;;
  3113. + freebsd-*)
  3114. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  3115. + need_version=yes
  3116. + ;;
  3117. + esac
  3118. + shlibpath_var=LD_LIBRARY_PATH
  3119. + case $host_os in
  3120. + freebsd2*)
  3121. + shlibpath_overrides_runpath=yes
  3122. + ;;
  3123. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  3124. + shlibpath_overrides_runpath=yes
  3125. + hardcode_into_libs=yes
  3126. + ;;
  3127. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  3128. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  3129. + shlibpath_overrides_runpath=no
  3130. + hardcode_into_libs=yes
  3131. + ;;
  3132. + freebsd*) # from 4.6 on
  3133. + shlibpath_overrides_runpath=yes
  3134. + hardcode_into_libs=yes
  3135. + ;;
  3136. + esac
  3137. + ;;
  3138. +
  3139. +gnu*)
  3140. + version_type=linux
  3141. + need_lib_prefix=no
  3142. + need_version=no
  3143. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  3144. + soname_spec='${libname}${release}${shared_ext}$major'
  3145. + shlibpath_var=LD_LIBRARY_PATH
  3146. + hardcode_into_libs=yes
  3147. + ;;
  3148. +
  3149. +hpux9* | hpux10* | hpux11*)
  3150. + # Give a soname corresponding to the major version so that dld.sl refuses to
  3151. + # link against other versions.
  3152. + version_type=sunos
  3153. + need_lib_prefix=no
  3154. + need_version=no
  3155. + case $host_cpu in
  3156. + ia64*)
  3157. + shrext_cmds='.so'
  3158. + hardcode_into_libs=yes
  3159. + dynamic_linker="$host_os dld.so"
  3160. + shlibpath_var=LD_LIBRARY_PATH
  3161. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  3162. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3163. + soname_spec='${libname}${release}${shared_ext}$major'
  3164. + if test "X$HPUX_IA64_MODE" = X32; then
  3165. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  3166. + else
  3167. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  3168. + fi
  3169. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  3170. + ;;
  3171. + hppa*64*)
  3172. + shrext_cmds='.sl'
  3173. + hardcode_into_libs=yes
  3174. + dynamic_linker="$host_os dld.sl"
  3175. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  3176. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  3177. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3178. + soname_spec='${libname}${release}${shared_ext}$major'
  3179. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  3180. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  3181. + ;;
  3182. + *)
  3183. + shrext_cmds='.sl'
  3184. + dynamic_linker="$host_os dld.sl"
  3185. + shlibpath_var=SHLIB_PATH
  3186. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  3187. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3188. + soname_spec='${libname}${release}${shared_ext}$major'
  3189. + ;;
  3190. + esac
  3191. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  3192. + postinstall_cmds='chmod 555 $lib'
  3193. + ;;
  3194. +
  3195. +interix3*)
  3196. + version_type=linux
  3197. + need_lib_prefix=no
  3198. + need_version=no
  3199. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  3200. + soname_spec='${libname}${release}${shared_ext}$major'
  3201. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  3202. + shlibpath_var=LD_LIBRARY_PATH
  3203. + shlibpath_overrides_runpath=no
  3204. + hardcode_into_libs=yes
  3205. + ;;
  3206. +
  3207. +irix5* | irix6* | nonstopux*)
  3208. + case $host_os in
  3209. + nonstopux*) version_type=nonstopux ;;
  3210. + *)
  3211. + if test "$lt_cv_prog_gnu_ld" = yes; then
  3212. + version_type=linux
  3213. + else
  3214. + version_type=irix
  3215. + fi ;;
  3216. + esac
  3217. + need_lib_prefix=no
  3218. + need_version=no
  3219. + soname_spec='${libname}${release}${shared_ext}$major'
  3220. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  3221. + case $host_os in
  3222. + irix5* | nonstopux*)
  3223. + libsuff= shlibsuff=
  3224. + ;;
  3225. + *)
  3226. + case $LD in # libtool.m4 will add one of these switches to LD
  3227. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  3228. + libsuff= shlibsuff= libmagic=32-bit;;
  3229. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  3230. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  3231. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  3232. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  3233. + *) libsuff= shlibsuff= libmagic=never-match;;
  3234. + esac
  3235. + ;;
  3236. + esac
  3237. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  3238. + shlibpath_overrides_runpath=no
  3239. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  3240. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  3241. + hardcode_into_libs=yes
  3242. + ;;
  3243. +
  3244. +# No shared lib support for Linux oldld, aout, or coff.
  3245. +linux*oldld* | linux*aout* | linux*coff*)
  3246. + dynamic_linker=no
  3247. + ;;
  3248. +
  3249. +# This must be Linux ELF.
  3250. +linux*)
  3251. + version_type=linux
  3252. + need_lib_prefix=no
  3253. + need_version=no
  3254. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3255. + soname_spec='${libname}${release}${shared_ext}$major'
  3256. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  3257. + shlibpath_var=LD_LIBRARY_PATH
  3258. + shlibpath_overrides_runpath=no
  3259. + # This implies no fast_install, which is unacceptable.
  3260. + # Some rework will be needed to allow for fast_install
  3261. + # before this can be enabled.
  3262. + hardcode_into_libs=yes
  3263. +
  3264. + # Append ld.so.conf contents to the search path
  3265. + if test -f /etc/ld.so.conf; then
  3266. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  3267. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  3268. + fi
  3269. +
  3270. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  3271. + # powerpc, because MkLinux only supported shared libraries with the
  3272. + # GNU dynamic linker. Since this was broken with cross compilers,
  3273. + # most powerpc-linux boxes support dynamic linking these days and
  3274. + # people can always --disable-shared, the test was removed, and we
  3275. + # assume the GNU/Linux dynamic linker is in use.
  3276. + dynamic_linker='GNU/Linux ld.so'
  3277. + ;;
  3278. +
  3279. +netbsdelf*-gnu)
  3280. + version_type=linux
  3281. + need_lib_prefix=no
  3282. + need_version=no
  3283. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  3284. + soname_spec='${libname}${release}${shared_ext}$major'
  3285. + shlibpath_var=LD_LIBRARY_PATH
  3286. + shlibpath_overrides_runpath=no
  3287. + hardcode_into_libs=yes
  3288. + dynamic_linker='NetBSD ld.elf_so'
  3289. + ;;
  3290. +
  3291. +knetbsd*-gnu)
  3292. + version_type=linux
  3293. + need_lib_prefix=no
  3294. + need_version=no
  3295. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  3296. + soname_spec='${libname}${release}${shared_ext}$major'
  3297. + shlibpath_var=LD_LIBRARY_PATH
  3298. + shlibpath_overrides_runpath=no
  3299. + hardcode_into_libs=yes
  3300. + dynamic_linker='GNU ld.so'
  3301. + ;;
  3302. +
  3303. +netbsd*)
  3304. + version_type=sunos
  3305. + need_lib_prefix=no
  3306. + need_version=no
  3307. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  3308. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  3309. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  3310. + dynamic_linker='NetBSD (a.out) ld.so'
  3311. + else
  3312. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  3313. + soname_spec='${libname}${release}${shared_ext}$major'
  3314. + dynamic_linker='NetBSD ld.elf_so'
  3315. + fi
  3316. + shlibpath_var=LD_LIBRARY_PATH
  3317. + shlibpath_overrides_runpath=yes
  3318. + hardcode_into_libs=yes
  3319. + ;;
  3320. +
  3321. +newsos6)
  3322. + version_type=linux
  3323. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3324. + shlibpath_var=LD_LIBRARY_PATH
  3325. + shlibpath_overrides_runpath=yes
  3326. + ;;
  3327. +
  3328. +nto-qnx*)
  3329. + version_type=linux
  3330. + need_lib_prefix=no
  3331. + need_version=no
  3332. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3333. + soname_spec='${libname}${release}${shared_ext}$major'
  3334. + shlibpath_var=LD_LIBRARY_PATH
  3335. + shlibpath_overrides_runpath=yes
  3336. + ;;
  3337. +
  3338. +openbsd*)
  3339. + version_type=sunos
  3340. + sys_lib_dlsearch_path_spec="/usr/lib"
  3341. + need_lib_prefix=no
  3342. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  3343. + case $host_os in
  3344. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  3345. + *) need_version=no ;;
  3346. + esac
  3347. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  3348. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  3349. + shlibpath_var=LD_LIBRARY_PATH
  3350. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3351. + case $host_os in
  3352. + openbsd2.[[89]] | openbsd2.[[89]].*)
  3353. + shlibpath_overrides_runpath=no
  3354. + ;;
  3355. + *)
  3356. + shlibpath_overrides_runpath=yes
  3357. + ;;
  3358. + esac
  3359. + else
  3360. + shlibpath_overrides_runpath=yes
  3361. + fi
  3362. + ;;
  3363. +
  3364. +os2*)
  3365. + libname_spec='$name'
  3366. + shrext_cmds=".dll"
  3367. + need_lib_prefix=no
  3368. + library_names_spec='$libname${shared_ext} $libname.a'
  3369. + dynamic_linker='OS/2 ld.exe'
  3370. + shlibpath_var=LIBPATH
  3371. + ;;
  3372. +
  3373. +osf3* | osf4* | osf5*)
  3374. + version_type=osf
  3375. + need_lib_prefix=no
  3376. + need_version=no
  3377. + soname_spec='${libname}${release}${shared_ext}$major'
  3378. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3379. + shlibpath_var=LD_LIBRARY_PATH
  3380. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  3381. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  3382. + ;;
  3383. +
  3384. +solaris*)
  3385. + version_type=linux
  3386. + need_lib_prefix=no
  3387. + need_version=no
  3388. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3389. + soname_spec='${libname}${release}${shared_ext}$major'
  3390. + shlibpath_var=LD_LIBRARY_PATH
  3391. + shlibpath_overrides_runpath=yes
  3392. + hardcode_into_libs=yes
  3393. + # ldd complains unless libraries are executable
  3394. + postinstall_cmds='chmod +x $lib'
  3395. + ;;
  3396. +
  3397. +sunos4*)
  3398. + version_type=sunos
  3399. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  3400. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  3401. + shlibpath_var=LD_LIBRARY_PATH
  3402. + shlibpath_overrides_runpath=yes
  3403. + if test "$with_gnu_ld" = yes; then
  3404. + need_lib_prefix=no
  3405. + fi
  3406. + need_version=yes
  3407. + ;;
  3408. +
  3409. +sysv4 | sysv4.3*)
  3410. + version_type=linux
  3411. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3412. + soname_spec='${libname}${release}${shared_ext}$major'
  3413. + shlibpath_var=LD_LIBRARY_PATH
  3414. + case $host_vendor in
  3415. + sni)
  3416. + shlibpath_overrides_runpath=no
  3417. + need_lib_prefix=no
  3418. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  3419. + runpath_var=LD_RUN_PATH
  3420. + ;;
  3421. + siemens)
  3422. + need_lib_prefix=no
  3423. + ;;
  3424. + motorola)
  3425. + need_lib_prefix=no
  3426. + need_version=no
  3427. + shlibpath_overrides_runpath=no
  3428. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  3429. + ;;
  3430. + esac
  3431. + ;;
  3432. +
  3433. +sysv4*MP*)
  3434. + if test -d /usr/nec ;then
  3435. + version_type=linux
  3436. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  3437. + soname_spec='$libname${shared_ext}.$major'
  3438. + shlibpath_var=LD_LIBRARY_PATH
  3439. + fi
  3440. + ;;
  3441. +
  3442. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3443. + version_type=freebsd-elf
  3444. + need_lib_prefix=no
  3445. + need_version=no
  3446. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  3447. + soname_spec='${libname}${release}${shared_ext}$major'
  3448. + shlibpath_var=LD_LIBRARY_PATH
  3449. + hardcode_into_libs=yes
  3450. + if test "$with_gnu_ld" = yes; then
  3451. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  3452. + shlibpath_overrides_runpath=no
  3453. + else
  3454. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  3455. + shlibpath_overrides_runpath=yes
  3456. + case $host_os in
  3457. + sco3.2v5*)
  3458. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  3459. + ;;
  3460. + esac
  3461. + fi
  3462. + sys_lib_dlsearch_path_spec='/usr/lib'
  3463. + ;;
  3464. +
  3465. +uts4*)
  3466. + version_type=linux
  3467. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3468. + soname_spec='${libname}${release}${shared_ext}$major'
  3469. + shlibpath_var=LD_LIBRARY_PATH
  3470. + ;;
  3471. +
  3472. +*)
  3473. + dynamic_linker=no
  3474. + ;;
  3475. +esac
  3476. +AC_MSG_RESULT([$dynamic_linker])
  3477. +test "$dynamic_linker" = no && can_build_shared=no
  3478. +
  3479. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  3480. +if test "$GCC" = yes; then
  3481. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  3482. +fi
  3483. +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  3484. +
  3485. +
  3486. +# _LT_AC_TAGCONFIG
  3487. +# ----------------
  3488. +AC_DEFUN([_LT_AC_TAGCONFIG],
  3489. +[AC_ARG_WITH([tags],
  3490. + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  3491. + [include additional configurations @<:@automatic@:>@])],
  3492. + [tagnames="$withval"])
  3493. +
  3494. +if test -f "$ltmain" && test -n "$tagnames"; then
  3495. + if test ! -f "${ofile}"; then
  3496. + AC_MSG_WARN([output file `$ofile' does not exist])
  3497. + fi
  3498. +
  3499. + if test -z "$LTCC"; then
  3500. + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  3501. + if test -z "$LTCC"; then
  3502. + AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  3503. + else
  3504. + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  3505. + fi
  3506. + fi
  3507. + if test -z "$LTCFLAGS"; then
  3508. + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  3509. + fi
  3510. +
  3511. + # Extract list of available tagged configurations in $ofile.
  3512. + # Note that this assumes the entire list is on one line.
  3513. + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  3514. +
  3515. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3516. + for tagname in $tagnames; do
  3517. + IFS="$lt_save_ifs"
  3518. + # Check whether tagname contains only valid characters
  3519. + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  3520. + "") ;;
  3521. + *) AC_MSG_ERROR([invalid tag name: $tagname])
  3522. + ;;
  3523. + esac
  3524. +
  3525. + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  3526. + then
  3527. + AC_MSG_ERROR([tag name \"$tagname\" already exists])
  3528. + fi
  3529. +
  3530. + # Update the list of available tags.
  3531. + if test -n "$tagname"; then
  3532. + echo appending configuration tag \"$tagname\" to $ofile
  3533. +
  3534. + case $tagname in
  3535. + CXX)
  3536. + if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  3537. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  3538. + (test "X$CXX" != "Xg++"))) ; then
  3539. + AC_LIBTOOL_LANG_CXX_CONFIG
  3540. + else
  3541. + tagname=""
  3542. + fi
  3543. + ;;
  3544. +
  3545. + F77)
  3546. + if test -n "$F77" && test "X$F77" != "Xno"; then
  3547. + AC_LIBTOOL_LANG_F77_CONFIG
  3548. + else
  3549. + tagname=""
  3550. + fi
  3551. + ;;
  3552. +
  3553. + GCJ)
  3554. + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  3555. + AC_LIBTOOL_LANG_GCJ_CONFIG
  3556. + else
  3557. + tagname=""
  3558. + fi
  3559. + ;;
  3560. +
  3561. + RC)
  3562. + AC_LIBTOOL_LANG_RC_CONFIG
  3563. + ;;
  3564. +
  3565. + *)
  3566. + AC_MSG_ERROR([Unsupported tag name: $tagname])
  3567. + ;;
  3568. + esac
  3569. +
  3570. + # Append the new tag name to the list of available tags.
  3571. + if test -n "$tagname" ; then
  3572. + available_tags="$available_tags $tagname"
  3573. + fi
  3574. + fi
  3575. + done
  3576. + IFS="$lt_save_ifs"
  3577. +
  3578. + # Now substitute the updated list of available tags.
  3579. + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  3580. + mv "${ofile}T" "$ofile"
  3581. + chmod +x "$ofile"
  3582. + else
  3583. + rm -f "${ofile}T"
  3584. + AC_MSG_ERROR([unable to update list of available tagged configurations.])
  3585. + fi
  3586. +fi
  3587. +])# _LT_AC_TAGCONFIG
  3588. +
  3589. +
  3590. +# AC_LIBTOOL_DLOPEN
  3591. +# -----------------
  3592. +# enable checks for dlopen support
  3593. +AC_DEFUN([AC_LIBTOOL_DLOPEN],
  3594. + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  3595. +])# AC_LIBTOOL_DLOPEN
  3596. +
  3597. +
  3598. +# AC_LIBTOOL_WIN32_DLL
  3599. +# --------------------
  3600. +# declare package support for building win32 DLLs
  3601. +AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  3602. +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  3603. +])# AC_LIBTOOL_WIN32_DLL
  3604. +
  3605. +
  3606. +# AC_ENABLE_SHARED([DEFAULT])
  3607. +# ---------------------------
  3608. +# implement the --enable-shared flag
  3609. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3610. +AC_DEFUN([AC_ENABLE_SHARED],
  3611. +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  3612. +AC_ARG_ENABLE([shared],
  3613. + [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  3614. + [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  3615. + [p=${PACKAGE-default}
  3616. + case $enableval in
  3617. + yes) enable_shared=yes ;;
  3618. + no) enable_shared=no ;;
  3619. + *)
  3620. + enable_shared=no
  3621. + # Look at the argument we got. We use all the common list separators.
  3622. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3623. + for pkg in $enableval; do
  3624. + IFS="$lt_save_ifs"
  3625. + if test "X$pkg" = "X$p"; then
  3626. + enable_shared=yes
  3627. + fi
  3628. + done
  3629. + IFS="$lt_save_ifs"
  3630. + ;;
  3631. + esac],
  3632. + [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  3633. +])# AC_ENABLE_SHARED
  3634. +
  3635. +
  3636. +# AC_DISABLE_SHARED
  3637. +# -----------------
  3638. +# set the default shared flag to --disable-shared
  3639. +AC_DEFUN([AC_DISABLE_SHARED],
  3640. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3641. +AC_ENABLE_SHARED(no)
  3642. +])# AC_DISABLE_SHARED
  3643. +
  3644. +
  3645. +# AC_ENABLE_STATIC([DEFAULT])
  3646. +# ---------------------------
  3647. +# implement the --enable-static flag
  3648. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3649. +AC_DEFUN([AC_ENABLE_STATIC],
  3650. +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  3651. +AC_ARG_ENABLE([static],
  3652. + [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  3653. + [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  3654. + [p=${PACKAGE-default}
  3655. + case $enableval in
  3656. + yes) enable_static=yes ;;
  3657. + no) enable_static=no ;;
  3658. + *)
  3659. + enable_static=no
  3660. + # Look at the argument we got. We use all the common list separators.
  3661. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3662. + for pkg in $enableval; do
  3663. + IFS="$lt_save_ifs"
  3664. + if test "X$pkg" = "X$p"; then
  3665. + enable_static=yes
  3666. + fi
  3667. + done
  3668. + IFS="$lt_save_ifs"
  3669. + ;;
  3670. + esac],
  3671. + [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  3672. +])# AC_ENABLE_STATIC
  3673. +
  3674. +
  3675. +# AC_DISABLE_STATIC
  3676. +# -----------------
  3677. +# set the default static flag to --disable-static
  3678. +AC_DEFUN([AC_DISABLE_STATIC],
  3679. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3680. +AC_ENABLE_STATIC(no)
  3681. +])# AC_DISABLE_STATIC
  3682. +
  3683. +
  3684. +# AC_ENABLE_FAST_INSTALL([DEFAULT])
  3685. +# ---------------------------------
  3686. +# implement the --enable-fast-install flag
  3687. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3688. +AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  3689. +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  3690. +AC_ARG_ENABLE([fast-install],
  3691. + [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  3692. + [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  3693. + [p=${PACKAGE-default}
  3694. + case $enableval in
  3695. + yes) enable_fast_install=yes ;;
  3696. + no) enable_fast_install=no ;;
  3697. + *)
  3698. + enable_fast_install=no
  3699. + # Look at the argument we got. We use all the common list separators.
  3700. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3701. + for pkg in $enableval; do
  3702. + IFS="$lt_save_ifs"
  3703. + if test "X$pkg" = "X$p"; then
  3704. + enable_fast_install=yes
  3705. + fi
  3706. + done
  3707. + IFS="$lt_save_ifs"
  3708. + ;;
  3709. + esac],
  3710. + [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  3711. +])# AC_ENABLE_FAST_INSTALL
  3712. +
  3713. +
  3714. +# AC_DISABLE_FAST_INSTALL
  3715. +# -----------------------
  3716. +# set the default to --disable-fast-install
  3717. +AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  3718. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3719. +AC_ENABLE_FAST_INSTALL(no)
  3720. +])# AC_DISABLE_FAST_INSTALL
  3721. +
  3722. +
  3723. +# AC_LIBTOOL_PICMODE([MODE])
  3724. +# --------------------------
  3725. +# implement the --with-pic flag
  3726. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  3727. +AC_DEFUN([AC_LIBTOOL_PICMODE],
  3728. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3729. +pic_mode=ifelse($#,1,$1,default)
  3730. +])# AC_LIBTOOL_PICMODE
  3731. +
  3732. +
  3733. +# AC_PROG_EGREP
  3734. +# -------------
  3735. +# This is predefined starting with Autoconf 2.54, so this conditional
  3736. +# definition can be removed once we require Autoconf 2.54 or later.
  3737. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  3738. +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  3739. + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3740. + then ac_cv_prog_egrep='grep -E'
  3741. + else ac_cv_prog_egrep='egrep'
  3742. + fi])
  3743. + EGREP=$ac_cv_prog_egrep
  3744. + AC_SUBST([EGREP])
  3745. +])])
  3746. +
  3747. +
  3748. +# AC_PATH_TOOL_PREFIX
  3749. +# -------------------
  3750. +# find a file program which can recognise shared library
  3751. +AC_DEFUN([AC_PATH_TOOL_PREFIX],
  3752. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  3753. +AC_MSG_CHECKING([for $1])
  3754. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  3755. +[case $MAGIC_CMD in
  3756. +[[\\/*] | ?:[\\/]*])
  3757. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  3758. + ;;
  3759. +*)
  3760. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  3761. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3762. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  3763. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  3764. +dnl not every word. This closes a longstanding sh security hole.
  3765. + ac_dummy="ifelse([$2], , $PATH, [$2])"
  3766. + for ac_dir in $ac_dummy; do
  3767. + IFS="$lt_save_ifs"
  3768. + test -z "$ac_dir" && ac_dir=.
  3769. + if test -f $ac_dir/$1; then
  3770. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  3771. + if test -n "$file_magic_test_file"; then
  3772. + case $deplibs_check_method in
  3773. + "file_magic "*)
  3774. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  3775. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3776. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  3777. + $EGREP "$file_magic_regex" > /dev/null; then
  3778. + :
  3779. + else
  3780. + cat <<EOF 1>&2
  3781. +
  3782. +*** Warning: the command libtool uses to detect shared libraries,
  3783. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  3784. +*** The result is that libtool may fail to recognize shared libraries
  3785. +*** as such. This will affect the creation of libtool libraries that
  3786. +*** depend on shared libraries, but programs linked with such libtool
  3787. +*** libraries will work regardless of this problem. Nevertheless, you
  3788. +*** may want to report the problem to your system manager and/or to
  3789. +*** bug-libtool@gnu.org
  3790. +
  3791. +EOF
  3792. + fi ;;
  3793. + esac
  3794. + fi
  3795. + break
  3796. + fi
  3797. + done
  3798. + IFS="$lt_save_ifs"
  3799. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  3800. + ;;
  3801. +esac])
  3802. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3803. +if test -n "$MAGIC_CMD"; then
  3804. + AC_MSG_RESULT($MAGIC_CMD)
  3805. +else
  3806. + AC_MSG_RESULT(no)
  3807. +fi
  3808. +])# AC_PATH_TOOL_PREFIX
  3809. +
  3810. +
  3811. +# AC_PATH_MAGIC
  3812. +# -------------
  3813. +# find a file program which can recognise a shared library
  3814. +AC_DEFUN([AC_PATH_MAGIC],
  3815. +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  3816. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  3817. + if test -n "$ac_tool_prefix"; then
  3818. + AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  3819. + else
  3820. + MAGIC_CMD=:
  3821. + fi
  3822. +fi
  3823. +])# AC_PATH_MAGIC
  3824. +
  3825. +
  3826. +# AC_PROG_LD
  3827. +# ----------
  3828. +# find the pathname to the GNU or non-GNU linker
  3829. +AC_DEFUN([AC_PROG_LD],
  3830. +[AC_ARG_WITH([gnu-ld],
  3831. + [AC_HELP_STRING([--with-gnu-ld],
  3832. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  3833. + [test "$withval" = no || with_gnu_ld=yes],
  3834. + [with_gnu_ld=no])
  3835. +AC_REQUIRE([LT_AC_PROG_SED])dnl
  3836. +AC_REQUIRE([AC_PROG_CC])dnl
  3837. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3838. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  3839. +ac_prog=ld
  3840. +if test "$GCC" = yes; then
  3841. + # Check if gcc -print-prog-name=ld gives a path.
  3842. + AC_MSG_CHECKING([for ld used by $CC])
  3843. + case $host in
  3844. + *-*-mingw*)
  3845. + # gcc leaves a trailing carriage return which upsets mingw
  3846. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3847. + *)
  3848. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3849. + esac
  3850. + case $ac_prog in
  3851. + # Accept absolute paths.
  3852. + [[\\/]]* | ?:[[\\/]]*)
  3853. + re_direlt='/[[^/]][[^/]]*/\.\./'
  3854. + # Canonicalize the pathname of ld
  3855. + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3856. + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3857. + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3858. + done
  3859. + test -z "$LD" && LD="$ac_prog"
  3860. + ;;
  3861. + "")
  3862. + # If it fails, then pretend we aren't using GCC.
  3863. + ac_prog=ld
  3864. + ;;
  3865. + *)
  3866. + # If it is relative, then search for the first ld in PATH.
  3867. + with_gnu_ld=unknown
  3868. + ;;
  3869. + esac
  3870. +elif test "$with_gnu_ld" = yes; then
  3871. + AC_MSG_CHECKING([for GNU ld])
  3872. +else
  3873. + AC_MSG_CHECKING([for non-GNU ld])
  3874. +fi
  3875. +AC_CACHE_VAL(lt_cv_path_LD,
  3876. +[if test -z "$LD"; then
  3877. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3878. + for ac_dir in $PATH; do
  3879. + IFS="$lt_save_ifs"
  3880. + test -z "$ac_dir" && ac_dir=.
  3881. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3882. + lt_cv_path_LD="$ac_dir/$ac_prog"
  3883. + # Check to see if the program is GNU ld. I'd rather use --version,
  3884. + # but apparently some variants of GNU ld only accept -v.
  3885. + # Break only if it was the GNU/non-GNU ld that we prefer.
  3886. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3887. + *GNU* | *'with BFD'*)
  3888. + test "$with_gnu_ld" != no && break
  3889. + ;;
  3890. + *)
  3891. + test "$with_gnu_ld" != yes && break
  3892. + ;;
  3893. + esac
  3894. + fi
  3895. + done
  3896. + IFS="$lt_save_ifs"
  3897. +else
  3898. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3899. +fi])
  3900. +LD="$lt_cv_path_LD"
  3901. +if test -n "$LD"; then
  3902. + AC_MSG_RESULT($LD)
  3903. +else
  3904. + AC_MSG_RESULT(no)
  3905. +fi
  3906. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  3907. +AC_PROG_LD_GNU
  3908. +])# AC_PROG_LD
  3909. +
  3910. +
  3911. +# AC_PROG_LD_GNU
  3912. +# --------------
  3913. +AC_DEFUN([AC_PROG_LD_GNU],
  3914. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  3915. +AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3916. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  3917. +case `$LD -v 2>&1 </dev/null` in
  3918. +*GNU* | *'with BFD'*)
  3919. + lt_cv_prog_gnu_ld=yes
  3920. + ;;
  3921. +*)
  3922. + lt_cv_prog_gnu_ld=no
  3923. + ;;
  3924. +esac])
  3925. +with_gnu_ld=$lt_cv_prog_gnu_ld
  3926. +])# AC_PROG_LD_GNU
  3927. +
  3928. +
  3929. +# AC_PROG_LD_RELOAD_FLAG
  3930. +# ----------------------
  3931. +# find reload flag for linker
  3932. +# -- PORTME Some linkers may need a different reload flag.
  3933. +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  3934. +[AC_CACHE_CHECK([for $LD option to reload object files],
  3935. + lt_cv_ld_reload_flag,
  3936. + [lt_cv_ld_reload_flag='-r'])
  3937. +reload_flag=$lt_cv_ld_reload_flag
  3938. +case $reload_flag in
  3939. +"" | " "*) ;;
  3940. +*) reload_flag=" $reload_flag" ;;
  3941. +esac
  3942. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3943. +case $host_os in
  3944. + darwin*)
  3945. + if test "$GCC" = yes; then
  3946. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3947. + else
  3948. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3949. + fi
  3950. + ;;
  3951. +esac
  3952. +])# AC_PROG_LD_RELOAD_FLAG
  3953. +
  3954. +
  3955. +# AC_DEPLIBS_CHECK_METHOD
  3956. +# -----------------------
  3957. +# how to check for library dependencies
  3958. +# -- PORTME fill in with the dynamic library characteristics
  3959. +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  3960. +[AC_CACHE_CHECK([how to recognise dependent libraries],
  3961. +lt_cv_deplibs_check_method,
  3962. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  3963. +lt_cv_file_magic_test_file=
  3964. +lt_cv_deplibs_check_method='unknown'
  3965. +# Need to set the preceding variable on all platforms that support
  3966. +# interlibrary dependencies.
  3967. +# 'none' -- dependencies not supported.
  3968. +# `unknown' -- same as none, but documents that we really don't know.
  3969. +# 'pass_all' -- all dependencies passed with no checks.
  3970. +# 'test_compile' -- check by making test program.
  3971. +# 'file_magic [[regex]]' -- check by looking for files in library path
  3972. +# which responds to the $file_magic_cmd with a given extended regex.
  3973. +# If you have `file' or equivalent on your system and you're not sure
  3974. +# whether `pass_all' will *always* work, you probably want this one.
  3975. +
  3976. +case $host_os in
  3977. +aix4* | aix5*)
  3978. + lt_cv_deplibs_check_method=pass_all
  3979. + ;;
  3980. +
  3981. +beos*)
  3982. + lt_cv_deplibs_check_method=pass_all
  3983. + ;;
  3984. +
  3985. +bsdi[[45]]*)
  3986. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  3987. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  3988. + lt_cv_file_magic_test_file=/shlib/libc.so
  3989. + ;;
  3990. +
  3991. +cygwin*)
  3992. + # func_win32_libid is a shell function defined in ltmain.sh
  3993. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3994. + lt_cv_file_magic_cmd='func_win32_libid'
  3995. + ;;
  3996. +
  3997. +mingw* | pw32*)
  3998. + # Base MSYS/MinGW do not provide the 'file' command needed by
  3999. + # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  4000. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4001. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  4002. + ;;
  4003. +
  4004. +darwin* | rhapsody*)
  4005. + lt_cv_deplibs_check_method=pass_all
  4006. + ;;
  4007. +
  4008. +freebsd* | kfreebsd*-gnu | dragonfly*)
  4009. + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4010. + case $host_cpu in
  4011. + i*86 )
  4012. + # Not sure whether the presence of OpenBSD here was a mistake.
  4013. + # Let's accept both of them until this is cleared up.
  4014. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  4015. + lt_cv_file_magic_cmd=/usr/bin/file
  4016. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4017. + ;;
  4018. + esac
  4019. + else
  4020. + lt_cv_deplibs_check_method=pass_all
  4021. + fi
  4022. + ;;
  4023. +
  4024. +gnu*)
  4025. + lt_cv_deplibs_check_method=pass_all
  4026. + ;;
  4027. +
  4028. +hpux10.20* | hpux11*)
  4029. + lt_cv_file_magic_cmd=/usr/bin/file
  4030. + case $host_cpu in
  4031. + ia64*)
  4032. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  4033. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4034. + ;;
  4035. + hppa*64*)
  4036. + [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]']
  4037. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4038. + ;;
  4039. + *)
  4040. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  4041. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4042. + ;;
  4043. + esac
  4044. + ;;
  4045. +
  4046. +interix3*)
  4047. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4048. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  4049. + ;;
  4050. +
  4051. +irix5* | irix6* | nonstopux*)
  4052. + case $LD in
  4053. + *-32|*"-32 ") libmagic=32-bit;;
  4054. + *-n32|*"-n32 ") libmagic=N32;;
  4055. + *-64|*"-64 ") libmagic=64-bit;;
  4056. + *) libmagic=never-match;;
  4057. + esac
  4058. + lt_cv_deplibs_check_method=pass_all
  4059. + ;;
  4060. +
  4061. +# This must be Linux ELF.
  4062. +linux*)
  4063. + lt_cv_deplibs_check_method=pass_all
  4064. + ;;
  4065. +
  4066. +netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  4067. + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4068. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  4069. + else
  4070. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  4071. + fi
  4072. + ;;
  4073. +
  4074. +newos6*)
  4075. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  4076. + lt_cv_file_magic_cmd=/usr/bin/file
  4077. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4078. + ;;
  4079. +
  4080. +nto-qnx*)
  4081. + lt_cv_deplibs_check_method=unknown
  4082. + ;;
  4083. +
  4084. +openbsd*)
  4085. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4086. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  4087. + else
  4088. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  4089. + fi
  4090. + ;;
  4091. +
  4092. +osf3* | osf4* | osf5*)
  4093. + lt_cv_deplibs_check_method=pass_all
  4094. + ;;
  4095. +
  4096. +solaris*)
  4097. + lt_cv_deplibs_check_method=pass_all
  4098. + ;;
  4099. +
  4100. +sysv4 | sysv4.3*)
  4101. + case $host_vendor in
  4102. + motorola)
  4103. + 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]]'
  4104. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4105. + ;;
  4106. + ncr)
  4107. + lt_cv_deplibs_check_method=pass_all
  4108. + ;;
  4109. + sequent)
  4110. + lt_cv_file_magic_cmd='/bin/file'
  4111. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  4112. + ;;
  4113. + sni)
  4114. + lt_cv_file_magic_cmd='/bin/file'
  4115. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  4116. + lt_cv_file_magic_test_file=/lib/libc.so
  4117. + ;;
  4118. + siemens)
  4119. + lt_cv_deplibs_check_method=pass_all
  4120. + ;;
  4121. + pc)
  4122. + lt_cv_deplibs_check_method=pass_all
  4123. + ;;
  4124. + esac
  4125. + ;;
  4126. +
  4127. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4128. + lt_cv_deplibs_check_method=pass_all
  4129. + ;;
  4130. +esac
  4131. +])
  4132. +file_magic_cmd=$lt_cv_file_magic_cmd
  4133. +deplibs_check_method=$lt_cv_deplibs_check_method
  4134. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4135. +])# AC_DEPLIBS_CHECK_METHOD
  4136. +
  4137. +
  4138. +# AC_PROG_NM
  4139. +# ----------
  4140. +# find the pathname to a BSD-compatible name lister
  4141. +AC_DEFUN([AC_PROG_NM],
  4142. +[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  4143. +[if test -n "$NM"; then
  4144. + # Let the user override the test.
  4145. + lt_cv_path_NM="$NM"
  4146. +else
  4147. + lt_nm_to_check="${ac_tool_prefix}nm"
  4148. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4149. + lt_nm_to_check="$lt_nm_to_check nm"
  4150. + fi
  4151. + for lt_tmp_nm in $lt_nm_to_check; do
  4152. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4153. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4154. + IFS="$lt_save_ifs"
  4155. + test -z "$ac_dir" && ac_dir=.
  4156. + tmp_nm="$ac_dir/$lt_tmp_nm"
  4157. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4158. + # Check to see if the nm accepts a BSD-compat flag.
  4159. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4160. + # nm: unknown option "B" ignored
  4161. + # Tru64's nm complains that /dev/null is an invalid object file
  4162. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4163. + */dev/null* | *'Invalid file or object type'*)
  4164. + lt_cv_path_NM="$tmp_nm -B"
  4165. + break
  4166. + ;;
  4167. + *)
  4168. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4169. + */dev/null*)
  4170. + lt_cv_path_NM="$tmp_nm -p"
  4171. + break
  4172. + ;;
  4173. + *)
  4174. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4175. + continue # so that we can try to find one that supports BSD flags
  4176. + ;;
  4177. + esac
  4178. + ;;
  4179. + esac
  4180. + fi
  4181. + done
  4182. + IFS="$lt_save_ifs"
  4183. + done
  4184. + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4185. +fi])
  4186. +NM="$lt_cv_path_NM"
  4187. +])# AC_PROG_NM
  4188. +
  4189. +
  4190. +# AC_CHECK_LIBM
  4191. +# -------------
  4192. +# check for math library
  4193. +AC_DEFUN([AC_CHECK_LIBM],
  4194. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  4195. +LIBM=
  4196. +case $host in
  4197. +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  4198. + # These system don't have libm, or don't need it
  4199. + ;;
  4200. +*-ncr-sysv4.3*)
  4201. + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  4202. + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  4203. + ;;
  4204. +*)
  4205. + AC_CHECK_LIB(m, cos, LIBM="-lm")
  4206. + ;;
  4207. +esac
  4208. +])# AC_CHECK_LIBM
  4209. +
  4210. +
  4211. +# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  4212. +# -----------------------------------
  4213. +# sets LIBLTDL to the link flags for the libltdl convenience library and
  4214. +# LTDLINCL to the include flags for the libltdl header and adds
  4215. +# --enable-ltdl-convenience to the configure arguments. Note that
  4216. +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  4217. +# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
  4218. +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  4219. +# (note the single quotes!). If your package is not flat and you're not
  4220. +# using automake, define top_builddir and top_srcdir appropriately in
  4221. +# the Makefiles.
  4222. +AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  4223. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4224. + case $enable_ltdl_convenience in
  4225. + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  4226. + "") enable_ltdl_convenience=yes
  4227. + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  4228. + esac
  4229. + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  4230. + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  4231. + # For backwards non-gettext consistent compatibility...
  4232. + INCLTDL="$LTDLINCL"
  4233. +])# AC_LIBLTDL_CONVENIENCE
  4234. +
  4235. +
  4236. +# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  4237. +# -----------------------------------
  4238. +# sets LIBLTDL to the link flags for the libltdl installable library and
  4239. +# LTDLINCL to the include flags for the libltdl header and adds
  4240. +# --enable-ltdl-install to the configure arguments. Note that
  4241. +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  4242. +# and an installed libltdl is not found, it is assumed to be `libltdl'.
  4243. +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  4244. +# '${top_srcdir}/' (note the single quotes!). If your package is not
  4245. +# flat and you're not using automake, define top_builddir and top_srcdir
  4246. +# appropriately in the Makefiles.
  4247. +# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  4248. +AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  4249. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4250. + AC_CHECK_LIB(ltdl, lt_dlinit,
  4251. + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  4252. + [if test x"$enable_ltdl_install" = xno; then
  4253. + AC_MSG_WARN([libltdl not installed, but installation disabled])
  4254. + else
  4255. + enable_ltdl_install=yes
  4256. + fi
  4257. + ])
  4258. + if test x"$enable_ltdl_install" = x"yes"; then
  4259. + ac_configure_args="$ac_configure_args --enable-ltdl-install"
  4260. + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  4261. + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  4262. + else
  4263. + ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  4264. + LIBLTDL="-lltdl"
  4265. + LTDLINCL=
  4266. + fi
  4267. + # For backwards non-gettext consistent compatibility...
  4268. + INCLTDL="$LTDLINCL"
  4269. +])# AC_LIBLTDL_INSTALLABLE
  4270. +
  4271. +
  4272. +# AC_LIBTOOL_CXX
  4273. +# --------------
  4274. +# enable support for C++ libraries
  4275. +AC_DEFUN([AC_LIBTOOL_CXX],
  4276. +[AC_REQUIRE([_LT_AC_LANG_CXX])
  4277. +])# AC_LIBTOOL_CXX
  4278. +
  4279. +
  4280. +# _LT_AC_LANG_CXX
  4281. +# ---------------
  4282. +AC_DEFUN([_LT_AC_LANG_CXX],
  4283. +[AC_REQUIRE([AC_PROG_CXX])
  4284. +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  4285. +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  4286. +])# _LT_AC_LANG_CXX
  4287. +
  4288. +# _LT_AC_PROG_CXXCPP
  4289. +# ------------------
  4290. +AC_DEFUN([_LT_AC_PROG_CXXCPP],
  4291. +[
  4292. +AC_REQUIRE([AC_PROG_CXX])
  4293. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  4294. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  4295. + (test "X$CXX" != "Xg++"))) ; then
  4296. + AC_PROG_CXXCPP
  4297. +fi
  4298. +])# _LT_AC_PROG_CXXCPP
  4299. +
  4300. +# AC_LIBTOOL_F77
  4301. +# --------------
  4302. +# enable support for Fortran 77 libraries
  4303. +AC_DEFUN([AC_LIBTOOL_F77],
  4304. +[AC_REQUIRE([_LT_AC_LANG_F77])
  4305. +])# AC_LIBTOOL_F77
  4306. +
  4307. +
  4308. +# _LT_AC_LANG_F77
  4309. +# ---------------
  4310. +AC_DEFUN([_LT_AC_LANG_F77],
  4311. +[AC_REQUIRE([AC_PROG_F77])
  4312. +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  4313. +])# _LT_AC_LANG_F77
  4314. +
  4315. +
  4316. +# AC_LIBTOOL_GCJ
  4317. +# --------------
  4318. +# enable support for GCJ libraries
  4319. +AC_DEFUN([AC_LIBTOOL_GCJ],
  4320. +[AC_REQUIRE([_LT_AC_LANG_GCJ])
  4321. +])# AC_LIBTOOL_GCJ
  4322. +
  4323. +
  4324. +# _LT_AC_LANG_GCJ
  4325. +# ---------------
  4326. +AC_DEFUN([_LT_AC_LANG_GCJ],
  4327. +[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  4328. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  4329. + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  4330. + [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  4331. + [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  4332. + [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  4333. +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  4334. +])# _LT_AC_LANG_GCJ
  4335. +
  4336. +
  4337. +# AC_LIBTOOL_RC
  4338. +# -------------
  4339. +# enable support for Windows resource files
  4340. +AC_DEFUN([AC_LIBTOOL_RC],
  4341. +[AC_REQUIRE([LT_AC_PROG_RC])
  4342. +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  4343. +])# AC_LIBTOOL_RC
  4344. +
  4345. +
  4346. +# AC_LIBTOOL_LANG_C_CONFIG
  4347. +# ------------------------
  4348. +# Ensure that the configuration vars for the C compiler are
  4349. +# suitably defined. Those variables are subsequently used by
  4350. +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4351. +AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  4352. +AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  4353. +[lt_save_CC="$CC"
  4354. +AC_LANG_PUSH(C)
  4355. +
  4356. +# Source file extension for C test sources.
  4357. +ac_ext=c
  4358. +
  4359. +# Object file extension for compiled C test sources.
  4360. +objext=o
  4361. +_LT_AC_TAGVAR(objext, $1)=$objext
  4362. +
  4363. +# Code to be used in simple compile tests
  4364. +lt_simple_compile_test_code="int some_variable = 0;\n"
  4365. +
  4366. +# Code to be used in simple link tests
  4367. +lt_simple_link_test_code='int main(){return(0);}\n'
  4368. +
  4369. +_LT_AC_SYS_COMPILER
  4370. +
  4371. +# save warnings/boilerplate of simple test code
  4372. +_LT_COMPILER_BOILERPLATE
  4373. +_LT_LINKER_BOILERPLATE
  4374. +
  4375. +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  4376. +AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4377. +AC_LIBTOOL_PROG_CC_C_O($1)
  4378. +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  4379. +AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4380. +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4381. +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4382. +AC_LIBTOOL_SYS_LIB_STRIP
  4383. +AC_LIBTOOL_DLOPEN_SELF
  4384. +
  4385. +# Report which library types will actually be built
  4386. +AC_MSG_CHECKING([if libtool supports shared libraries])
  4387. +AC_MSG_RESULT([$can_build_shared])
  4388. +
  4389. +AC_MSG_CHECKING([whether to build shared libraries])
  4390. +test "$can_build_shared" = "no" && enable_shared=no
  4391. +
  4392. +# On AIX, shared libraries and static libraries use the same namespace, and
  4393. +# are all built from PIC.
  4394. +case $host_os in
  4395. +aix3*)
  4396. + test "$enable_shared" = yes && enable_static=no
  4397. + if test -n "$RANLIB"; then
  4398. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  4399. + postinstall_cmds='$RANLIB $lib'
  4400. + fi
  4401. + ;;
  4402. +
  4403. +aix4* | aix5*)
  4404. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  4405. + test "$enable_shared" = yes && enable_static=no
  4406. + fi
  4407. + ;;
  4408. +esac
  4409. +AC_MSG_RESULT([$enable_shared])
  4410. +
  4411. +AC_MSG_CHECKING([whether to build static libraries])
  4412. +# Make sure either enable_shared or enable_static is yes.
  4413. +test "$enable_shared" = yes || enable_static=yes
  4414. +AC_MSG_RESULT([$enable_static])
  4415. +
  4416. +AC_LIBTOOL_CONFIG($1)
  4417. +
  4418. +AC_LANG_POP
  4419. +CC="$lt_save_CC"
  4420. +])# AC_LIBTOOL_LANG_C_CONFIG
  4421. +
  4422. +
  4423. +# AC_LIBTOOL_LANG_CXX_CONFIG
  4424. +# --------------------------
  4425. +# Ensure that the configuration vars for the C compiler are
  4426. +# suitably defined. Those variables are subsequently used by
  4427. +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4428. +AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  4429. +AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  4430. +[AC_LANG_PUSH(C++)
  4431. +AC_REQUIRE([AC_PROG_CXX])
  4432. +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  4433. +
  4434. +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4435. +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  4436. +_LT_AC_TAGVAR(always_export_symbols, $1)=no
  4437. +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  4438. +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  4439. +_LT_AC_TAGVAR(hardcode_direct, $1)=no
  4440. +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4441. +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  4442. +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  4443. +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  4444. +_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4445. +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  4446. +_LT_AC_TAGVAR(module_cmds, $1)=
  4447. +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  4448. +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  4449. +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  4450. +_LT_AC_TAGVAR(no_undefined_flag, $1)=
  4451. +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4452. +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4453. +
  4454. +# Dependencies to place before and after the object being linked:
  4455. +_LT_AC_TAGVAR(predep_objects, $1)=
  4456. +_LT_AC_TAGVAR(postdep_objects, $1)=
  4457. +_LT_AC_TAGVAR(predeps, $1)=
  4458. +_LT_AC_TAGVAR(postdeps, $1)=
  4459. +_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  4460. +
  4461. +# Source file extension for C++ test sources.
  4462. +ac_ext=cpp
  4463. +
  4464. +# Object file extension for compiled C++ test sources.
  4465. +objext=o
  4466. +_LT_AC_TAGVAR(objext, $1)=$objext
  4467. +
  4468. +# Code to be used in simple compile tests
  4469. +lt_simple_compile_test_code="int some_variable = 0;\n"
  4470. +
  4471. +# Code to be used in simple link tests
  4472. +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
  4473. +
  4474. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  4475. +_LT_AC_SYS_COMPILER
  4476. +
  4477. +# save warnings/boilerplate of simple test code
  4478. +_LT_COMPILER_BOILERPLATE
  4479. +_LT_LINKER_BOILERPLATE
  4480. +
  4481. +# Allow CC to be a program name with arguments.
  4482. +lt_save_CC=$CC
  4483. +lt_save_LD=$LD
  4484. +lt_save_GCC=$GCC
  4485. +GCC=$GXX
  4486. +lt_save_with_gnu_ld=$with_gnu_ld
  4487. +lt_save_path_LD=$lt_cv_path_LD
  4488. +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  4489. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  4490. +else
  4491. + $as_unset lt_cv_prog_gnu_ld
  4492. +fi
  4493. +if test -n "${lt_cv_path_LDCXX+set}"; then
  4494. + lt_cv_path_LD=$lt_cv_path_LDCXX
  4495. +else
  4496. + $as_unset lt_cv_path_LD
  4497. +fi
  4498. +test -z "${LDCXX+set}" || LD=$LDCXX
  4499. +CC=${CXX-"c++"}
  4500. +compiler=$CC
  4501. +_LT_AC_TAGVAR(compiler, $1)=$CC
  4502. +_LT_CC_BASENAME([$compiler])
  4503. +
  4504. +# We don't want -fno-exception wen compiling C++ code, so set the
  4505. +# no_builtin_flag separately
  4506. +if test "$GXX" = yes; then
  4507. + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  4508. +else
  4509. + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  4510. +fi
  4511. +
  4512. +if test "$GXX" = yes; then
  4513. + # Set up default GNU C++ configuration
  4514. +
  4515. + AC_PROG_LD
  4516. +
  4517. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  4518. + # archiving commands below assume that GNU ld is being used.
  4519. + if test "$with_gnu_ld" = yes; then
  4520. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4521. + _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'
  4522. +
  4523. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  4524. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4525. +
  4526. + # If archive_cmds runs LD, not CC, wlarc should be empty
  4527. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  4528. + # investigate it a little bit more. (MM)
  4529. + wlarc='${wl}'
  4530. +
  4531. + # ancient GNU ld didn't support --whole-archive et. al.
  4532. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  4533. + grep 'no-whole-archive' > /dev/null; then
  4534. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4535. + else
  4536. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4537. + fi
  4538. + else
  4539. + with_gnu_ld=no
  4540. + wlarc=
  4541. +
  4542. + # A generic and very simple default shared library creation
  4543. + # command for GNU C++ for the case where it uses the native
  4544. + # linker, instead of GNU ld. If possible, this setting should
  4545. + # overridden to take advantage of the native linker features on
  4546. + # the platform it is being used on.
  4547. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  4548. + fi
  4549. +
  4550. + # Commands to make compiler produce verbose output that lists
  4551. + # what "hidden" libraries, object files and flags are used when
  4552. + # linking a shared library.
  4553. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  4554. +
  4555. +else
  4556. + GXX=no
  4557. + with_gnu_ld=no
  4558. + wlarc=
  4559. +fi
  4560. +
  4561. +# PORTME: fill in a description of your system's C++ link characteristics
  4562. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4563. +_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  4564. +case $host_os in
  4565. + aix3*)
  4566. + # FIXME: insert proper C++ library support
  4567. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4568. + ;;
  4569. + aix4* | aix5*)
  4570. + if test "$host_cpu" = ia64; then
  4571. + # On IA64, the linker does run time linking by default, so we don't
  4572. + # have to do anything special.
  4573. + aix_use_runtimelinking=no
  4574. + exp_sym_flag='-Bexport'
  4575. + no_entry_flag=""
  4576. + else
  4577. + aix_use_runtimelinking=no
  4578. +
  4579. + # Test if we are trying to use run time linking or normal
  4580. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4581. + # need to do runtime linking.
  4582. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  4583. + for ld_flag in $LDFLAGS; do
  4584. + case $ld_flag in
  4585. + *-brtl*)
  4586. + aix_use_runtimelinking=yes
  4587. + break
  4588. + ;;
  4589. + esac
  4590. + done
  4591. + ;;
  4592. + esac
  4593. +
  4594. + exp_sym_flag='-bexport'
  4595. + no_entry_flag='-bnoentry'
  4596. + fi
  4597. +
  4598. + # When large executables or shared objects are built, AIX ld can
  4599. + # have problems creating the table of contents. If linking a library
  4600. + # or program results in "error TOC overflow" add -mminimal-toc to
  4601. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  4602. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  4603. +
  4604. + _LT_AC_TAGVAR(archive_cmds, $1)=''
  4605. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4606. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  4607. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4608. +
  4609. + if test "$GXX" = yes; then
  4610. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  4611. + # We only want to do this on AIX 4.2 and lower, the check
  4612. + # below for broken collect2 doesn't work under 4.3+
  4613. + collect2name=`${CC} -print-prog-name=collect2`
  4614. + if test -f "$collect2name" && \
  4615. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  4616. + then
  4617. + # We have reworked collect2
  4618. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4619. + else
  4620. + # We have old collect2
  4621. + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  4622. + # It fails to find uninstalled libraries when the uninstalled
  4623. + # path is not listed in the libpath. Setting hardcode_minus_L
  4624. + # to unsupported forces relinking
  4625. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  4626. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4627. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  4628. + fi
  4629. + ;;
  4630. + esac
  4631. + shared_flag='-shared'
  4632. + if test "$aix_use_runtimelinking" = yes; then
  4633. + shared_flag="$shared_flag "'${wl}-G'
  4634. + fi
  4635. + else
  4636. + # not using gcc
  4637. + if test "$host_cpu" = ia64; then
  4638. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  4639. + # chokes on -Wl,-G. The following line is correct:
  4640. + shared_flag='-G'
  4641. + else
  4642. + if test "$aix_use_runtimelinking" = yes; then
  4643. + shared_flag='${wl}-G'
  4644. + else
  4645. + shared_flag='${wl}-bM:SRE'
  4646. + fi
  4647. + fi
  4648. + fi
  4649. +
  4650. + # It seems that -bexpall does not export symbols beginning with
  4651. + # underscore (_), so it is better to generate a list of symbols to export.
  4652. + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  4653. + if test "$aix_use_runtimelinking" = yes; then
  4654. + # Warning - without using the other runtime loading flags (-brtl),
  4655. + # -berok will link without error, but may produce a broken library.
  4656. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  4657. + # Determine the default libpath from the value encoded in an empty executable.
  4658. + _LT_AC_SYS_LIBPATH_AIX
  4659. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4660. +
  4661. + _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"
  4662. + else
  4663. + if test "$host_cpu" = ia64; then
  4664. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  4665. + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  4666. + _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"
  4667. + else
  4668. + # Determine the default libpath from the value encoded in an empty executable.
  4669. + _LT_AC_SYS_LIBPATH_AIX
  4670. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4671. + # Warning - without using the other run time loading flags,
  4672. + # -berok will link without error, but may produce a broken library.
  4673. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  4674. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  4675. + # Exported symbols can be pulled into shared objects from archives
  4676. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  4677. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  4678. + # This is similar to how AIX traditionally builds its shared libraries.
  4679. + _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'
  4680. + fi
  4681. + fi
  4682. + ;;
  4683. +
  4684. + beos*)
  4685. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  4686. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  4687. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  4688. + # support --undefined. This deserves some investigation. FIXME
  4689. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4690. + else
  4691. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4692. + fi
  4693. + ;;
  4694. +
  4695. + chorus*)
  4696. + case $cc_basename in
  4697. + *)
  4698. + # FIXME: insert proper C++ library support
  4699. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4700. + ;;
  4701. + esac
  4702. + ;;
  4703. +
  4704. + cygwin* | mingw* | pw32*)
  4705. + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4706. + # as there is no search path for DLLs.
  4707. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4708. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  4709. + _LT_AC_TAGVAR(always_export_symbols, $1)=no
  4710. + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4711. +
  4712. + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  4713. + _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'
  4714. + # If the export-symbols file already is a .def file (1st line
  4715. + # is EXPORTS), use it as is; otherwise, prepend...
  4716. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4717. + cp $export_symbols $output_objdir/$soname.def;
  4718. + else
  4719. + echo EXPORTS > $output_objdir/$soname.def;
  4720. + cat $export_symbols >> $output_objdir/$soname.def;
  4721. + fi~
  4722. + $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'
  4723. + else
  4724. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4725. + fi
  4726. + ;;
  4727. + darwin* | rhapsody*)
  4728. + case $host_os in
  4729. + rhapsody* | darwin1.[[012]])
  4730. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  4731. + ;;
  4732. + *) # Darwin 1.3 on
  4733. + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  4734. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  4735. + else
  4736. + case ${MACOSX_DEPLOYMENT_TARGET} in
  4737. + 10.[[012]])
  4738. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  4739. + ;;
  4740. + 10.*)
  4741. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  4742. + ;;
  4743. + esac
  4744. + fi
  4745. + ;;
  4746. + esac
  4747. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4748. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4749. + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  4750. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4751. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  4752. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4753. +
  4754. + if test "$GXX" = yes ; then
  4755. + lt_int_apple_cc_single_mod=no
  4756. + output_verbose_link_cmd='echo'
  4757. + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  4758. + lt_int_apple_cc_single_mod=yes
  4759. + fi
  4760. + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  4761. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  4762. + else
  4763. + _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'
  4764. + fi
  4765. + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  4766. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  4767. + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  4768. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  4769. + else
  4770. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  4771. + fi
  4772. + _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}'
  4773. + else
  4774. + case $cc_basename in
  4775. + xlc*)
  4776. + output_verbose_link_cmd='echo'
  4777. + _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` $verstring'
  4778. + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  4779. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  4780. + _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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  4781. + _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}'
  4782. + ;;
  4783. + *)
  4784. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4785. + ;;
  4786. + esac
  4787. + fi
  4788. + ;;
  4789. +
  4790. + dgux*)
  4791. + case $cc_basename in
  4792. + ec++*)
  4793. + # FIXME: insert proper C++ library support
  4794. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4795. + ;;
  4796. + ghcx*)
  4797. + # Green Hills C++ Compiler
  4798. + # FIXME: insert proper C++ library support
  4799. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4800. + ;;
  4801. + *)
  4802. + # FIXME: insert proper C++ library support
  4803. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4804. + ;;
  4805. + esac
  4806. + ;;
  4807. + freebsd[[12]]*)
  4808. + # C++ shared libraries reported to be fairly broken before switch to ELF
  4809. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4810. + ;;
  4811. + freebsd-elf*)
  4812. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4813. + ;;
  4814. + freebsd* | kfreebsd*-gnu | dragonfly*)
  4815. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  4816. + # conventions
  4817. + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  4818. + ;;
  4819. + gnu*)
  4820. + ;;
  4821. + hpux9*)
  4822. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4823. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4824. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4825. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4826. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  4827. + # but as the default
  4828. + # location of the library.
  4829. +
  4830. + case $cc_basename in
  4831. + CC*)
  4832. + # FIXME: insert proper C++ library support
  4833. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4834. + ;;
  4835. + aCC*)
  4836. + _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'
  4837. + # Commands to make compiler produce verbose output that lists
  4838. + # what "hidden" libraries, object files and flags are used when
  4839. + # linking a shared library.
  4840. + #
  4841. + # There doesn't appear to be a way to prevent this compiler from
  4842. + # explicitly linking system object files so we need to strip them
  4843. + # from the output so that they don't get included in the library
  4844. + # dependencies.
  4845. + 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'
  4846. + ;;
  4847. + *)
  4848. + if test "$GXX" = yes; then
  4849. + _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'
  4850. + else
  4851. + # FIXME: insert proper C++ library support
  4852. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4853. + fi
  4854. + ;;
  4855. + esac
  4856. + ;;
  4857. + hpux10*|hpux11*)
  4858. + if test $with_gnu_ld = no; then
  4859. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4860. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4861. +
  4862. + case $host_cpu in
  4863. + hppa*64*|ia64*)
  4864. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  4865. + ;;
  4866. + *)
  4867. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4868. + ;;
  4869. + esac
  4870. + fi
  4871. + case $host_cpu in
  4872. + hppa*64*|ia64*)
  4873. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4874. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4875. + ;;
  4876. + *)
  4877. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4878. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  4879. + # but as the default
  4880. + # location of the library.
  4881. + ;;
  4882. + esac
  4883. +
  4884. + case $cc_basename in
  4885. + CC*)
  4886. + # FIXME: insert proper C++ library support
  4887. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4888. + ;;
  4889. + aCC*)
  4890. + case $host_cpu in
  4891. + hppa*64*)
  4892. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4893. + ;;
  4894. + ia64*)
  4895. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4896. + ;;
  4897. + *)
  4898. + _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'
  4899. + ;;
  4900. + esac
  4901. + # Commands to make compiler produce verbose output that lists
  4902. + # what "hidden" libraries, object files and flags are used when
  4903. + # linking a shared library.
  4904. + #
  4905. + # There doesn't appear to be a way to prevent this compiler from
  4906. + # explicitly linking system object files so we need to strip them
  4907. + # from the output so that they don't get included in the library
  4908. + # dependencies.
  4909. + 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'
  4910. + ;;
  4911. + *)
  4912. + if test "$GXX" = yes; then
  4913. + if test $with_gnu_ld = no; then
  4914. + case $host_cpu in
  4915. + hppa*64*)
  4916. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4917. + ;;
  4918. + ia64*)
  4919. + _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'
  4920. + ;;
  4921. + *)
  4922. + _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'
  4923. + ;;
  4924. + esac
  4925. + fi
  4926. + else
  4927. + # FIXME: insert proper C++ library support
  4928. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4929. + fi
  4930. + ;;
  4931. + esac
  4932. + ;;
  4933. + interix3*)
  4934. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4935. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4936. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4937. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4938. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4939. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  4940. + # default) and relocated if they conflict, which is a slow very memory
  4941. + # consuming and fragmenting process. To avoid this, we pick a random,
  4942. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4943. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  4944. + _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'
  4945. + _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'
  4946. + ;;
  4947. + irix5* | irix6*)
  4948. + case $cc_basename in
  4949. + CC*)
  4950. + # SGI C++
  4951. + _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'
  4952. +
  4953. + # Archives containing C++ object files must be created using
  4954. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  4955. + # necessary to make sure instantiated templates are included
  4956. + # in the archive.
  4957. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  4958. + ;;
  4959. + *)
  4960. + if test "$GXX" = yes; then
  4961. + if test "$with_gnu_ld" = no; then
  4962. + _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'
  4963. + else
  4964. + _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'
  4965. + fi
  4966. + fi
  4967. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4968. + ;;
  4969. + esac
  4970. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4971. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4972. + ;;
  4973. + linux*)
  4974. + case $cc_basename in
  4975. + KCC*)
  4976. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  4977. +
  4978. + # KCC will only create a shared library if the output file
  4979. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  4980. + # to its proper name (with version) after linking.
  4981. + _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'
  4982. + _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'
  4983. + # Commands to make compiler produce verbose output that lists
  4984. + # what "hidden" libraries, object files and flags are used when
  4985. + # linking a shared library.
  4986. + #
  4987. + # There doesn't appear to be a way to prevent this compiler from
  4988. + # explicitly linking system object files so we need to strip them
  4989. + # from the output so that they don't get included in the library
  4990. + # dependencies.
  4991. + 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'
  4992. +
  4993. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  4994. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4995. +
  4996. + # Archives containing C++ object files must be created using
  4997. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  4998. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  4999. + ;;
  5000. + icpc*)
  5001. + # Intel C++
  5002. + with_gnu_ld=yes
  5003. + # version 8.0 and above of icpc choke on multiply defined symbols
  5004. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  5005. + # earlier do not add the objects themselves.
  5006. + case `$CC -V 2>&1` in
  5007. + *"Version 7."*)
  5008. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5009. + _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'
  5010. + ;;
  5011. + *) # Version 8.0 or newer
  5012. + tmp_idyn=
  5013. + case $host_cpu in
  5014. + ia64*) tmp_idyn=' -i_dynamic';;
  5015. + esac
  5016. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5017. + _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'
  5018. + ;;
  5019. + esac
  5020. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5021. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5022. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5023. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5024. + ;;
  5025. + pgCC*)
  5026. + # Portland Group C++ compiler
  5027. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5028. + _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'
  5029. +
  5030. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5031. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5032. + _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'
  5033. + ;;
  5034. + cxx*)
  5035. + # Compaq C++
  5036. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5037. + _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'
  5038. +
  5039. + runpath_var=LD_RUN_PATH
  5040. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5041. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5042. +
  5043. + # Commands to make compiler produce verbose output that lists
  5044. + # what "hidden" libraries, object files and flags are used when
  5045. + # linking a shared library.
  5046. + #
  5047. + # There doesn't appear to be a way to prevent this compiler from
  5048. + # explicitly linking system object files so we need to strip them
  5049. + # from the output so that they don't get included in the library
  5050. + # dependencies.
  5051. + 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'
  5052. + ;;
  5053. + esac
  5054. + ;;
  5055. + lynxos*)
  5056. + # FIXME: insert proper C++ library support
  5057. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5058. + ;;
  5059. + m88k*)
  5060. + # FIXME: insert proper C++ library support
  5061. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5062. + ;;
  5063. + mvs*)
  5064. + case $cc_basename in
  5065. + cxx*)
  5066. + # FIXME: insert proper C++ library support
  5067. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5068. + ;;
  5069. + *)
  5070. + # FIXME: insert proper C++ library support
  5071. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5072. + ;;
  5073. + esac
  5074. + ;;
  5075. + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  5076. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5077. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  5078. + wlarc=
  5079. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5080. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5081. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5082. + fi
  5083. + # Workaround some broken pre-1.5 toolchains
  5084. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  5085. + ;;
  5086. + openbsd2*)
  5087. + # C++ shared libraries are fairly broken
  5088. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5089. + ;;
  5090. + openbsd*)
  5091. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5092. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5093. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5094. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5095. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5096. + _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'
  5097. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5098. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5099. + fi
  5100. + output_verbose_link_cmd='echo'
  5101. + ;;
  5102. + osf3*)
  5103. + case $cc_basename in
  5104. + KCC*)
  5105. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  5106. +
  5107. + # KCC will only create a shared library if the output file
  5108. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5109. + # to its proper name (with version) after linking.
  5110. + _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'
  5111. +
  5112. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5113. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5114. +
  5115. + # Archives containing C++ object files must be created using
  5116. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5117. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5118. +
  5119. + ;;
  5120. + RCC*)
  5121. + # Rational C++ 2.4.1
  5122. + # FIXME: insert proper C++ library support
  5123. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5124. + ;;
  5125. + cxx*)
  5126. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5127. + _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'
  5128. +
  5129. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5130. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5131. +
  5132. + # Commands to make compiler produce verbose output that lists
  5133. + # what "hidden" libraries, object files and flags are used when
  5134. + # linking a shared library.
  5135. + #
  5136. + # There doesn't appear to be a way to prevent this compiler from
  5137. + # explicitly linking system object files so we need to strip them
  5138. + # from the output so that they don't get included in the library
  5139. + # dependencies.
  5140. + 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'
  5141. + ;;
  5142. + *)
  5143. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5144. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5145. + _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'
  5146. +
  5147. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5148. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5149. +
  5150. + # Commands to make compiler produce verbose output that lists
  5151. + # what "hidden" libraries, object files and flags are used when
  5152. + # linking a shared library.
  5153. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5154. +
  5155. + else
  5156. + # FIXME: insert proper C++ library support
  5157. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5158. + fi
  5159. + ;;
  5160. + esac
  5161. + ;;
  5162. + osf4* | osf5*)
  5163. + case $cc_basename in
  5164. + KCC*)
  5165. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  5166. +
  5167. + # KCC will only create a shared library if the output file
  5168. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5169. + # to its proper name (with version) after linking.
  5170. + _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'
  5171. +
  5172. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5173. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5174. +
  5175. + # Archives containing C++ object files must be created using
  5176. + # the KAI C++ compiler.
  5177. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  5178. + ;;
  5179. + RCC*)
  5180. + # Rational C++ 2.4.1
  5181. + # FIXME: insert proper C++ library support
  5182. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5183. + ;;
  5184. + cxx*)
  5185. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5186. + _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'
  5187. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  5188. + echo "-hidden">> $lib.exp~
  5189. + $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~
  5190. + $rm $lib.exp'
  5191. +
  5192. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5193. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5194. +
  5195. + # Commands to make compiler produce verbose output that lists
  5196. + # what "hidden" libraries, object files and flags are used when
  5197. + # linking a shared library.
  5198. + #
  5199. + # There doesn't appear to be a way to prevent this compiler from
  5200. + # explicitly linking system object files so we need to strip them
  5201. + # from the output so that they don't get included in the library
  5202. + # dependencies.
  5203. + 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'
  5204. + ;;
  5205. + *)
  5206. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5207. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5208. + _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'
  5209. +
  5210. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5211. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5212. +
  5213. + # Commands to make compiler produce verbose output that lists
  5214. + # what "hidden" libraries, object files and flags are used when
  5215. + # linking a shared library.
  5216. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5217. +
  5218. + else
  5219. + # FIXME: insert proper C++ library support
  5220. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5221. + fi
  5222. + ;;
  5223. + esac
  5224. + ;;
  5225. + psos*)
  5226. + # FIXME: insert proper C++ library support
  5227. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5228. + ;;
  5229. + sunos4*)
  5230. + case $cc_basename in
  5231. + CC*)
  5232. + # Sun C++ 4.x
  5233. + # FIXME: insert proper C++ library support
  5234. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5235. + ;;
  5236. + lcc*)
  5237. + # Lucid
  5238. + # FIXME: insert proper C++ library support
  5239. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5240. + ;;
  5241. + *)
  5242. + # FIXME: insert proper C++ library support
  5243. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5244. + ;;
  5245. + esac
  5246. + ;;
  5247. + solaris*)
  5248. + case $cc_basename in
  5249. + CC*)
  5250. + # Sun C++ 4.2, 5.x and Centerline C++
  5251. + _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  5252. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  5253. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5254. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5255. + $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'
  5256. +
  5257. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5258. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5259. + case $host_os in
  5260. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  5261. + *)
  5262. + # The C++ compiler is used as linker so we must use $wl
  5263. + # flag to pass the commands to the underlying system
  5264. + # linker. We must also pass each convience library through
  5265. + # to the system linker between allextract/defaultextract.
  5266. + # The C++ compiler will combine linker options so we
  5267. + # cannot just pass the convience library names through
  5268. + # without $wl.
  5269. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  5270. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  5271. + ;;
  5272. + esac
  5273. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5274. +
  5275. + output_verbose_link_cmd='echo'
  5276. +
  5277. + # Archives containing C++ object files must be created using
  5278. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  5279. + # necessary to make sure instantiated templates are included
  5280. + # in the archive.
  5281. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  5282. + ;;
  5283. + gcx*)
  5284. + # Green Hills C++ Compiler
  5285. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  5286. +
  5287. + # The C++ compiler must be used to create the archive.
  5288. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  5289. + ;;
  5290. + *)
  5291. + # GNU C++ compiler with Solaris linker
  5292. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5293. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  5294. + if $CC --version | grep -v '^2\.7' > /dev/null; then
  5295. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  5296. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5297. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  5298. +
  5299. + # Commands to make compiler produce verbose output that lists
  5300. + # what "hidden" libraries, object files and flags are used when
  5301. + # linking a shared library.
  5302. + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  5303. + else
  5304. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  5305. + # platform.
  5306. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  5307. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5308. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  5309. +
  5310. + # Commands to make compiler produce verbose output that lists
  5311. + # what "hidden" libraries, object files and flags are used when
  5312. + # linking a shared library.
  5313. + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  5314. + fi
  5315. +
  5316. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  5317. + fi
  5318. + ;;
  5319. + esac
  5320. + ;;
  5321. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  5322. + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5323. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5324. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5325. + runpath_var='LD_RUN_PATH'
  5326. +
  5327. + case $cc_basename in
  5328. + CC*)
  5329. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5330. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5331. + ;;
  5332. + *)
  5333. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5334. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5335. + ;;
  5336. + esac
  5337. + ;;
  5338. + sysv5* | sco3.2v5* | sco5v6*)
  5339. + # Note: We can NOT use -z defs as we might desire, because we do not
  5340. + # link with -lc, and that would cause any symbols used from libc to
  5341. + # always be unresolved, which means just about no library would
  5342. + # ever link correctly. If we're not using GNU ld we use -z text
  5343. + # though, which does catch some bad symbols but isn't as heavy-handed
  5344. + # as -z defs.
  5345. + # For security reasons, it is highly recommended that you always
  5346. + # use absolute paths for naming shared libraries, and exclude the
  5347. + # DT_RUNPATH tag from executables and libraries. But doing so
  5348. + # requires that you compile everything twice, which is a pain.
  5349. + # So that behaviour is only enabled if SCOABSPATH is set to a
  5350. + # non-empty value in the environment. Most likely only useful for
  5351. + # creating official distributions of packages.
  5352. + # This is a hack until libtool officially supports absolute path
  5353. + # names for shared libraries.
  5354. + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5355. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  5356. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5357. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5358. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  5359. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  5360. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5361. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  5362. + runpath_var='LD_RUN_PATH'
  5363. +
  5364. + case $cc_basename in
  5365. + CC*)
  5366. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5367. + _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'
  5368. + ;;
  5369. + *)
  5370. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5371. + _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'
  5372. + ;;
  5373. + esac
  5374. + ;;
  5375. + tandem*)
  5376. + case $cc_basename in
  5377. + NCC*)
  5378. + # NonStop-UX NCC 3.20
  5379. + # FIXME: insert proper C++ library support
  5380. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5381. + ;;
  5382. + *)
  5383. + # FIXME: insert proper C++ library support
  5384. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5385. + ;;
  5386. + esac
  5387. + ;;
  5388. + vxworks*)
  5389. + # FIXME: insert proper C++ library support
  5390. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5391. + ;;
  5392. + *)
  5393. + # FIXME: insert proper C++ library support
  5394. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5395. + ;;
  5396. +esac
  5397. +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  5398. +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5399. +
  5400. +_LT_AC_TAGVAR(GCC, $1)="$GXX"
  5401. +_LT_AC_TAGVAR(LD, $1)="$LD"
  5402. +
  5403. +AC_LIBTOOL_POSTDEP_PREDEP($1)
  5404. +AC_LIBTOOL_PROG_COMPILER_PIC($1)
  5405. +AC_LIBTOOL_PROG_CC_C_O($1)
  5406. +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  5407. +AC_LIBTOOL_PROG_LD_SHLIBS($1)
  5408. +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  5409. +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  5410. +
  5411. +AC_LIBTOOL_CONFIG($1)
  5412. +
  5413. +AC_LANG_POP
  5414. +CC=$lt_save_CC
  5415. +LDCXX=$LD
  5416. +LD=$lt_save_LD
  5417. +GCC=$lt_save_GCC
  5418. +with_gnu_ldcxx=$with_gnu_ld
  5419. +with_gnu_ld=$lt_save_with_gnu_ld
  5420. +lt_cv_path_LDCXX=$lt_cv_path_LD
  5421. +lt_cv_path_LD=$lt_save_path_LD
  5422. +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  5423. +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  5424. +])# AC_LIBTOOL_LANG_CXX_CONFIG
  5425. +
  5426. +# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  5427. +# ------------------------------------
  5428. +# Figure out "hidden" library dependencies from verbose
  5429. +# compiler output when linking a shared library.
  5430. +# Parse the compiler output and extract the necessary
  5431. +# objects, libraries and library flags.
  5432. +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
  5433. +dnl we can't use the lt_simple_compile_test_code here,
  5434. +dnl because it contains code intended for an executable,
  5435. +dnl not a library. It's possible we should let each
  5436. +dnl tag define a new lt_????_link_test_code variable,
  5437. +dnl but it's only used here...
  5438. +ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  5439. +int a;
  5440. +void foo (void) { a = 0; }
  5441. +EOF
  5442. +],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  5443. +class Foo
  5444. +{
  5445. +public:
  5446. + Foo (void) { a = 0; }
  5447. +private:
  5448. + int a;
  5449. +};
  5450. +EOF
  5451. +],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  5452. + subroutine foo
  5453. + implicit none
  5454. + integer*4 a
  5455. + a=0
  5456. + return
  5457. + end
  5458. +EOF
  5459. +],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  5460. +public class foo {
  5461. + private int a;
  5462. + public void bar (void) {
  5463. + a = 0;
  5464. + }
  5465. +};
  5466. +EOF
  5467. +])
  5468. +dnl Parse the compiler output and extract the necessary
  5469. +dnl objects, libraries and library flags.
  5470. +if AC_TRY_EVAL(ac_compile); then
  5471. + # Parse the compiler output and extract the necessary
  5472. + # objects, libraries and library flags.
  5473. +
  5474. + # Sentinel used to keep track of whether or not we are before
  5475. + # the conftest object file.
  5476. + pre_test_object_deps_done=no
  5477. +
  5478. + # The `*' in the case matches for architectures that use `case' in
  5479. + # $output_verbose_cmd can trigger glob expansion during the loop
  5480. + # eval without this substitution.
  5481. + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  5482. +
  5483. + for p in `eval $output_verbose_link_cmd`; do
  5484. + case $p in
  5485. +
  5486. + -L* | -R* | -l*)
  5487. + # Some compilers place space between "-{L,R}" and the path.
  5488. + # Remove the space.
  5489. + if test $p = "-L" \
  5490. + || test $p = "-R"; then
  5491. + prev=$p
  5492. + continue
  5493. + else
  5494. + prev=
  5495. + fi
  5496. +
  5497. + if test "$pre_test_object_deps_done" = no; then
  5498. + case $p in
  5499. + -L* | -R*)
  5500. + # Internal compiler library paths should come after those
  5501. + # provided the user. The postdeps already come after the
  5502. + # user supplied libs so there is no need to process them.
  5503. + if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  5504. + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  5505. + else
  5506. + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  5507. + fi
  5508. + ;;
  5509. + # The "-l" case would never come before the object being
  5510. + # linked, so don't bother handling this case.
  5511. + esac
  5512. + else
  5513. + if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  5514. + _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  5515. + else
  5516. + _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  5517. + fi
  5518. + fi
  5519. + ;;
  5520. +
  5521. + *.$objext)
  5522. + # This assumes that the test object file only shows up
  5523. + # once in the compiler output.
  5524. + if test "$p" = "conftest.$objext"; then
  5525. + pre_test_object_deps_done=yes
  5526. + continue
  5527. + fi
  5528. +
  5529. + if test "$pre_test_object_deps_done" = no; then
  5530. + if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  5531. + _LT_AC_TAGVAR(predep_objects, $1)="$p"
  5532. + else
  5533. + _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  5534. + fi
  5535. + else
  5536. + if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  5537. + _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  5538. + else
  5539. + _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  5540. + fi
  5541. + fi
  5542. + ;;
  5543. +
  5544. + *) ;; # Ignore the rest.
  5545. +
  5546. + esac
  5547. + done
  5548. +
  5549. + # Clean up.
  5550. + rm -f a.out a.exe
  5551. +else
  5552. + echo "libtool.m4: error: problem compiling $1 test program"
  5553. +fi
  5554. +
  5555. +$rm -f confest.$objext
  5556. +
  5557. +# PORTME: override above test on systems where it is broken
  5558. +ifelse([$1],[CXX],
  5559. +[case $host_os in
  5560. +interix3*)
  5561. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  5562. + # hack all around it, let's just trust "g++" to DTRT.
  5563. + _LT_AC_TAGVAR(predep_objects,$1)=
  5564. + _LT_AC_TAGVAR(postdep_objects,$1)=
  5565. + _LT_AC_TAGVAR(postdeps,$1)=
  5566. + ;;
  5567. +
  5568. +solaris*)
  5569. + case $cc_basename in
  5570. + CC*)
  5571. + # Adding this requires a known-good setup of shared libraries for
  5572. + # Sun compiler versions before 5.6, else PIC objects from an old
  5573. + # archive will be linked into the output, leading to subtle bugs.
  5574. + _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
  5575. + ;;
  5576. + esac
  5577. + ;;
  5578. +esac
  5579. +])
  5580. +
  5581. +case " $_LT_AC_TAGVAR(postdeps, $1) " in
  5582. +*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  5583. +esac
  5584. +])# AC_LIBTOOL_POSTDEP_PREDEP
  5585. +
  5586. +# AC_LIBTOOL_LANG_F77_CONFIG
  5587. +# --------------------------
  5588. +# Ensure that the configuration vars for the C compiler are
  5589. +# suitably defined. Those variables are subsequently used by
  5590. +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5591. +AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  5592. +AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  5593. +[AC_REQUIRE([AC_PROG_F77])
  5594. +AC_LANG_PUSH(Fortran 77)
  5595. +
  5596. +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5597. +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  5598. +_LT_AC_TAGVAR(always_export_symbols, $1)=no
  5599. +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  5600. +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  5601. +_LT_AC_TAGVAR(hardcode_direct, $1)=no
  5602. +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5603. +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5604. +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5605. +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  5606. +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  5607. +_LT_AC_TAGVAR(module_cmds, $1)=
  5608. +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  5609. +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  5610. +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5611. +_LT_AC_TAGVAR(no_undefined_flag, $1)=
  5612. +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5613. +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5614. +
  5615. +# Source file extension for f77 test sources.
  5616. +ac_ext=f
  5617. +
  5618. +# Object file extension for compiled f77 test sources.
  5619. +objext=o
  5620. +_LT_AC_TAGVAR(objext, $1)=$objext
  5621. +
  5622. +# Code to be used in simple compile tests
  5623. +lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  5624. +
  5625. +# Code to be used in simple link tests
  5626. +lt_simple_link_test_code=" program t\n end\n"
  5627. +
  5628. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5629. +_LT_AC_SYS_COMPILER
  5630. +
  5631. +# save warnings/boilerplate of simple test code
  5632. +_LT_COMPILER_BOILERPLATE
  5633. +_LT_LINKER_BOILERPLATE
  5634. +
  5635. +# Allow CC to be a program name with arguments.
  5636. +lt_save_CC="$CC"
  5637. +CC=${F77-"f77"}
  5638. +compiler=$CC
  5639. +_LT_AC_TAGVAR(compiler, $1)=$CC
  5640. +_LT_CC_BASENAME([$compiler])
  5641. +
  5642. +AC_MSG_CHECKING([if libtool supports shared libraries])
  5643. +AC_MSG_RESULT([$can_build_shared])
  5644. +
  5645. +AC_MSG_CHECKING([whether to build shared libraries])
  5646. +test "$can_build_shared" = "no" && enable_shared=no
  5647. +
  5648. +# On AIX, shared libraries and static libraries use the same namespace, and
  5649. +# are all built from PIC.
  5650. +case $host_os in
  5651. +aix3*)
  5652. + test "$enable_shared" = yes && enable_static=no
  5653. + if test -n "$RANLIB"; then
  5654. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5655. + postinstall_cmds='$RANLIB $lib'
  5656. + fi
  5657. + ;;
  5658. +aix4* | aix5*)
  5659. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5660. + test "$enable_shared" = yes && enable_static=no
  5661. + fi
  5662. + ;;
  5663. +esac
  5664. +AC_MSG_RESULT([$enable_shared])
  5665. +
  5666. +AC_MSG_CHECKING([whether to build static libraries])
  5667. +# Make sure either enable_shared or enable_static is yes.
  5668. +test "$enable_shared" = yes || enable_static=yes
  5669. +AC_MSG_RESULT([$enable_static])
  5670. +
  5671. +_LT_AC_TAGVAR(GCC, $1)="$G77"
  5672. +_LT_AC_TAGVAR(LD, $1)="$LD"
  5673. +
  5674. +AC_LIBTOOL_PROG_COMPILER_PIC($1)
  5675. +AC_LIBTOOL_PROG_CC_C_O($1)
  5676. +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  5677. +AC_LIBTOOL_PROG_LD_SHLIBS($1)
  5678. +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  5679. +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  5680. +
  5681. +AC_LIBTOOL_CONFIG($1)
  5682. +
  5683. +AC_LANG_POP
  5684. +CC="$lt_save_CC"
  5685. +])# AC_LIBTOOL_LANG_F77_CONFIG
  5686. +
  5687. +
  5688. +# AC_LIBTOOL_LANG_GCJ_CONFIG
  5689. +# --------------------------
  5690. +# Ensure that the configuration vars for the C compiler are
  5691. +# suitably defined. Those variables are subsequently used by
  5692. +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5693. +AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  5694. +AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  5695. +[AC_LANG_SAVE
  5696. +
  5697. +# Source file extension for Java test sources.
  5698. +ac_ext=java
  5699. +
  5700. +# Object file extension for compiled Java test sources.
  5701. +objext=o
  5702. +_LT_AC_TAGVAR(objext, $1)=$objext
  5703. +
  5704. +# Code to be used in simple compile tests
  5705. +lt_simple_compile_test_code="class foo {}\n"
  5706. +
  5707. +# Code to be used in simple link tests
  5708. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
  5709. +
  5710. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5711. +_LT_AC_SYS_COMPILER
  5712. +
  5713. +# save warnings/boilerplate of simple test code
  5714. +_LT_COMPILER_BOILERPLATE
  5715. +_LT_LINKER_BOILERPLATE
  5716. +
  5717. +# Allow CC to be a program name with arguments.
  5718. +lt_save_CC="$CC"
  5719. +CC=${GCJ-"gcj"}
  5720. +compiler=$CC
  5721. +_LT_AC_TAGVAR(compiler, $1)=$CC
  5722. +_LT_CC_BASENAME([$compiler])
  5723. +
  5724. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  5725. +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5726. +
  5727. +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5728. +
  5729. +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  5730. +AC_LIBTOOL_PROG_COMPILER_PIC($1)
  5731. +AC_LIBTOOL_PROG_CC_C_O($1)
  5732. +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  5733. +AC_LIBTOOL_PROG_LD_SHLIBS($1)
  5734. +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  5735. +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  5736. +
  5737. +AC_LIBTOOL_CONFIG($1)
  5738. +
  5739. +AC_LANG_RESTORE
  5740. +CC="$lt_save_CC"
  5741. +])# AC_LIBTOOL_LANG_GCJ_CONFIG
  5742. +
  5743. +
  5744. +# AC_LIBTOOL_LANG_RC_CONFIG
  5745. +# -------------------------
  5746. +# Ensure that the configuration vars for the Windows resource compiler are
  5747. +# suitably defined. Those variables are subsequently used by
  5748. +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5749. +AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  5750. +AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  5751. +[AC_LANG_SAVE
  5752. +
  5753. +# Source file extension for RC test sources.
  5754. +ac_ext=rc
  5755. +
  5756. +# Object file extension for compiled RC test sources.
  5757. +objext=o
  5758. +_LT_AC_TAGVAR(objext, $1)=$objext
  5759. +
  5760. +# Code to be used in simple compile tests
  5761. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  5762. +
  5763. +# Code to be used in simple link tests
  5764. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  5765. +
  5766. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5767. +_LT_AC_SYS_COMPILER
  5768. +
  5769. +# save warnings/boilerplate of simple test code
  5770. +_LT_COMPILER_BOILERPLATE
  5771. +_LT_LINKER_BOILERPLATE
  5772. +
  5773. +# Allow CC to be a program name with arguments.
  5774. +lt_save_CC="$CC"
  5775. +CC=${RC-"windres"}
  5776. +compiler=$CC
  5777. +_LT_AC_TAGVAR(compiler, $1)=$CC
  5778. +_LT_CC_BASENAME([$compiler])
  5779. +_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  5780. +
  5781. +AC_LIBTOOL_CONFIG($1)
  5782. +
  5783. +AC_LANG_RESTORE
  5784. +CC="$lt_save_CC"
  5785. +])# AC_LIBTOOL_LANG_RC_CONFIG
  5786. +
  5787. +
  5788. +# AC_LIBTOOL_CONFIG([TAGNAME])
  5789. +# ----------------------------
  5790. +# If TAGNAME is not passed, then create an initial libtool script
  5791. +# with a default configuration from the untagged config vars. Otherwise
  5792. +# add code to config.status for appending the configuration named by
  5793. +# TAGNAME from the matching tagged config vars.
  5794. +AC_DEFUN([AC_LIBTOOL_CONFIG],
  5795. +[# The else clause should only fire when bootstrapping the
  5796. +# libtool distribution, otherwise you forgot to ship ltmain.sh
  5797. +# with your package, and you will get complaints that there are
  5798. +# no rules to generate ltmain.sh.
  5799. +if test -f "$ltmain"; then
  5800. + # See if we are running on zsh, and set the options which allow our commands through
  5801. + # without removal of \ escapes.
  5802. + if test -n "${ZSH_VERSION+set}" ; then
  5803. + setopt NO_GLOB_SUBST
  5804. + fi
  5805. + # Now quote all the things that may contain metacharacters while being
  5806. + # careful not to overquote the AC_SUBSTed values. We take copies of the
  5807. + # variables and quote the copies for generation of the libtool script.
  5808. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  5809. + SED SHELL STRIP \
  5810. + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  5811. + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  5812. + deplibs_check_method reload_flag reload_cmds need_locks \
  5813. + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  5814. + lt_cv_sys_global_symbol_to_c_name_address \
  5815. + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  5816. + old_postinstall_cmds old_postuninstall_cmds \
  5817. + _LT_AC_TAGVAR(compiler, $1) \
  5818. + _LT_AC_TAGVAR(CC, $1) \
  5819. + _LT_AC_TAGVAR(LD, $1) \
  5820. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  5821. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  5822. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  5823. + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  5824. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  5825. + _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  5826. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  5827. + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  5828. + _LT_AC_TAGVAR(old_archive_cmds, $1) \
  5829. + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  5830. + _LT_AC_TAGVAR(predep_objects, $1) \
  5831. + _LT_AC_TAGVAR(postdep_objects, $1) \
  5832. + _LT_AC_TAGVAR(predeps, $1) \
  5833. + _LT_AC_TAGVAR(postdeps, $1) \
  5834. + _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  5835. + _LT_AC_TAGVAR(archive_cmds, $1) \
  5836. + _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  5837. + _LT_AC_TAGVAR(postinstall_cmds, $1) \
  5838. + _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  5839. + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  5840. + _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  5841. + _LT_AC_TAGVAR(no_undefined_flag, $1) \
  5842. + _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  5843. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  5844. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  5845. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  5846. + _LT_AC_TAGVAR(hardcode_automatic, $1) \
  5847. + _LT_AC_TAGVAR(module_cmds, $1) \
  5848. + _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  5849. + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  5850. + _LT_AC_TAGVAR(exclude_expsyms, $1) \
  5851. + _LT_AC_TAGVAR(include_expsyms, $1); do
  5852. +
  5853. + case $var in
  5854. + _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  5855. + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  5856. + _LT_AC_TAGVAR(archive_cmds, $1) | \
  5857. + _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  5858. + _LT_AC_TAGVAR(module_cmds, $1) | \
  5859. + _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  5860. + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  5861. + _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  5862. + extract_expsyms_cmds | reload_cmds | finish_cmds | \
  5863. + postinstall_cmds | postuninstall_cmds | \
  5864. + old_postinstall_cmds | old_postuninstall_cmds | \
  5865. + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  5866. + # Double-quote double-evaled strings.
  5867. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  5868. + ;;
  5869. + *)
  5870. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  5871. + ;;
  5872. + esac
  5873. + done
  5874. +
  5875. + case $lt_echo in
  5876. + *'\[$]0 --fallback-echo"')
  5877. + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  5878. + ;;
  5879. + esac
  5880. +
  5881. +ifelse([$1], [],
  5882. + [cfgfile="${ofile}T"
  5883. + trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  5884. + $rm -f "$cfgfile"
  5885. + AC_MSG_NOTICE([creating $ofile])],
  5886. + [cfgfile="$ofile"])
  5887. +
  5888. + cat <<__EOF__ >> "$cfgfile"
  5889. +ifelse([$1], [],
  5890. +[#! $SHELL
  5891. +
  5892. +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  5893. +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  5894. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  5895. +#
  5896. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  5897. +# Free Software Foundation, Inc.
  5898. +#
  5899. +# This file is part of GNU Libtool:
  5900. +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  5901. +#
  5902. +# This program is free software; you can redistribute it and/or modify
  5903. +# it under the terms of the GNU General Public License as published by
  5904. +# the Free Software Foundation; either version 2 of the License, or
  5905. +# (at your option) any later version.
  5906. +#
  5907. +# This program is distributed in the hope that it will be useful, but
  5908. +# WITHOUT ANY WARRANTY; without even the implied warranty of
  5909. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  5910. +# General Public License for more details.
  5911. +#
  5912. +# You should have received a copy of the GNU General Public License
  5913. +# along with this program; if not, write to the Free Software
  5914. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  5915. +#
  5916. +# As a special exception to the GNU General Public License, if you
  5917. +# distribute this file as part of a program that contains a
  5918. +# configuration script generated by Autoconf, you may include it under
  5919. +# the same distribution terms that you use for the rest of that program.
  5920. +
  5921. +# A sed program that does not truncate output.
  5922. +SED=$lt_SED
  5923. +
  5924. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  5925. +Xsed="$SED -e 1s/^X//"
  5926. +
  5927. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  5928. +# if CDPATH is set.
  5929. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  5930. +
  5931. +# The names of the tagged configurations supported by this script.
  5932. +available_tags=
  5933. +
  5934. +# ### BEGIN LIBTOOL CONFIG],
  5935. +[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  5936. +
  5937. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  5938. +
  5939. +# Shell to use when invoking shell scripts.
  5940. +SHELL=$lt_SHELL
  5941. +
  5942. +# Whether or not to build shared libraries.
  5943. +build_libtool_libs=$enable_shared
  5944. +
  5945. +# Whether or not to build static libraries.
  5946. +build_old_libs=$enable_static
  5947. +
  5948. +# Whether or not to add -lc for building shared libraries.
  5949. +build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  5950. +
  5951. +# Whether or not to disallow shared libs when runtime libs are static
  5952. +allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  5953. +
  5954. +# Whether or not to optimize for fast installation.
  5955. +fast_install=$enable_fast_install
  5956. +
  5957. +# The host system.
  5958. +host_alias=$host_alias
  5959. +host=$host
  5960. +host_os=$host_os
  5961. +
  5962. +# The build system.
  5963. +build_alias=$build_alias
  5964. +build=$build
  5965. +build_os=$build_os
  5966. +
  5967. +# An echo program that does not interpret backslashes.
  5968. +echo=$lt_echo
  5969. +
  5970. +# The archiver.
  5971. +AR=$lt_AR
  5972. +AR_FLAGS=$lt_AR_FLAGS
  5973. +
  5974. +# A C compiler.
  5975. +LTCC=$lt_LTCC
  5976. +
  5977. +# LTCC compiler flags.
  5978. +LTCFLAGS=$lt_LTCFLAGS
  5979. +
  5980. +# A language-specific compiler.
  5981. +CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  5982. +
  5983. +# Is the compiler the GNU C compiler?
  5984. +with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  5985. +
  5986. +# An ERE matcher.
  5987. +EGREP=$lt_EGREP
  5988. +
  5989. +# The linker used to build libraries.
  5990. +LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  5991. +
  5992. +# Whether we need hard or soft links.
  5993. +LN_S=$lt_LN_S
  5994. +
  5995. +# A BSD-compatible nm program.
  5996. +NM=$lt_NM
  5997. +
  5998. +# A symbol stripping program
  5999. +STRIP=$lt_STRIP
  6000. +
  6001. +# Used to examine libraries when file_magic_cmd begins "file"
  6002. +MAGIC_CMD=$MAGIC_CMD
  6003. +
  6004. +# Used on cygwin: DLL creation program.
  6005. +DLLTOOL="$DLLTOOL"
  6006. +
  6007. +# Used on cygwin: object dumper.
  6008. +OBJDUMP="$OBJDUMP"
  6009. +
  6010. +# Used on cygwin: assembler.
  6011. +AS="$AS"
  6012. +
  6013. +# The name of the directory that contains temporary libtool files.
  6014. +objdir=$objdir
  6015. +
  6016. +# How to create reloadable object files.
  6017. +reload_flag=$lt_reload_flag
  6018. +reload_cmds=$lt_reload_cmds
  6019. +
  6020. +# How to pass a linker flag through the compiler.
  6021. +wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  6022. +
  6023. +# Object file suffix (normally "o").
  6024. +objext="$ac_objext"
  6025. +
  6026. +# Old archive suffix (normally "a").
  6027. +libext="$libext"
  6028. +
  6029. +# Shared library suffix (normally ".so").
  6030. +shrext_cmds='$shrext_cmds'
  6031. +
  6032. +# Executable file suffix (normally "").
  6033. +exeext="$exeext"
  6034. +
  6035. +# Additional compiler flags for building library objects.
  6036. +pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  6037. +pic_mode=$pic_mode
  6038. +
  6039. +# What is the maximum length of a command?
  6040. +max_cmd_len=$lt_cv_sys_max_cmd_len
  6041. +
  6042. +# Does compiler simultaneously support -c and -o options?
  6043. +compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  6044. +
  6045. +# Must we lock files when doing compilation?
  6046. +need_locks=$lt_need_locks
  6047. +
  6048. +# Do we need the lib prefix for modules?
  6049. +need_lib_prefix=$need_lib_prefix
  6050. +
  6051. +# Do we need a version for libraries?
  6052. +need_version=$need_version
  6053. +
  6054. +# Whether dlopen is supported.
  6055. +dlopen_support=$enable_dlopen
  6056. +
  6057. +# Whether dlopen of programs is supported.
  6058. +dlopen_self=$enable_dlopen_self
  6059. +
  6060. +# Whether dlopen of statically linked programs is supported.
  6061. +dlopen_self_static=$enable_dlopen_self_static
  6062. +
  6063. +# Compiler flag to prevent dynamic linking.
  6064. +link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  6065. +
  6066. +# Compiler flag to turn off builtin functions.
  6067. +no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  6068. +
  6069. +# Compiler flag to allow reflexive dlopens.
  6070. +export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  6071. +
  6072. +# Compiler flag to generate shared objects directly from archives.
  6073. +whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  6074. +
  6075. +# Compiler flag to generate thread-safe objects.
  6076. +thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  6077. +
  6078. +# Library versioning type.
  6079. +version_type=$version_type
  6080. +
  6081. +# Format of library name prefix.
  6082. +libname_spec=$lt_libname_spec
  6083. +
  6084. +# List of archive names. First name is the real one, the rest are links.
  6085. +# The last name is the one that the linker finds with -lNAME.
  6086. +library_names_spec=$lt_library_names_spec
  6087. +
  6088. +# The coded name of the library, if different from the real name.
  6089. +soname_spec=$lt_soname_spec
  6090. +
  6091. +# Commands used to build and install an old-style archive.
  6092. +RANLIB=$lt_RANLIB
  6093. +old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  6094. +old_postinstall_cmds=$lt_old_postinstall_cmds
  6095. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  6096. +
  6097. +# Create an old-style archive from a shared archive.
  6098. +old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  6099. +
  6100. +# Create a temporary old-style archive to link instead of a shared archive.
  6101. +old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  6102. +
  6103. +# Commands used to build and install a shared archive.
  6104. +archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  6105. +archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  6106. +postinstall_cmds=$lt_postinstall_cmds
  6107. +postuninstall_cmds=$lt_postuninstall_cmds
  6108. +
  6109. +# Commands used to build a loadable module (assumed same as above if empty)
  6110. +module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  6111. +module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  6112. +
  6113. +# Commands to strip libraries.
  6114. +old_striplib=$lt_old_striplib
  6115. +striplib=$lt_striplib
  6116. +
  6117. +# Dependencies to place before the objects being linked to create a
  6118. +# shared library.
  6119. +predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  6120. +
  6121. +# Dependencies to place after the objects being linked to create a
  6122. +# shared library.
  6123. +postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  6124. +
  6125. +# Dependencies to place before the objects being linked to create a
  6126. +# shared library.
  6127. +predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  6128. +
  6129. +# Dependencies to place after the objects being linked to create a
  6130. +# shared library.
  6131. +postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  6132. +
  6133. +# The library search path used internally by the compiler when linking
  6134. +# a shared library.
  6135. +compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  6136. +
  6137. +# Method to check whether dependent libraries are shared objects.
  6138. +deplibs_check_method=$lt_deplibs_check_method
  6139. +
  6140. +# Command to use when deplibs_check_method == file_magic.
  6141. +file_magic_cmd=$lt_file_magic_cmd
  6142. +
  6143. +# Flag that allows shared libraries with undefined symbols to be built.
  6144. +allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  6145. +
  6146. +# Flag that forces no undefined symbols.
  6147. +no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  6148. +
  6149. +# Commands used to finish a libtool library installation in a directory.
  6150. +finish_cmds=$lt_finish_cmds
  6151. +
  6152. +# Same as above, but a single script fragment to be evaled but not shown.
  6153. +finish_eval=$lt_finish_eval
  6154. +
  6155. +# Take the output of nm and produce a listing of raw symbols and C names.
  6156. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  6157. +
  6158. +# Transform the output of nm in a proper C declaration
  6159. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  6160. +
  6161. +# Transform the output of nm in a C name address pair
  6162. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  6163. +
  6164. +# This is the shared library runtime path variable.
  6165. +runpath_var=$runpath_var
  6166. +
  6167. +# This is the shared library path variable.
  6168. +shlibpath_var=$shlibpath_var
  6169. +
  6170. +# Is shlibpath searched before the hard-coded library search path?
  6171. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  6172. +
  6173. +# How to hardcode a shared library path into an executable.
  6174. +hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  6175. +
  6176. +# Whether we should hardcode library paths into libraries.
  6177. +hardcode_into_libs=$hardcode_into_libs
  6178. +
  6179. +# Flag to hardcode \$libdir into a binary during linking.
  6180. +# This must work even if \$libdir does not exist.
  6181. +hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  6182. +
  6183. +# If ld is used when linking, flag to hardcode \$libdir into
  6184. +# a binary during linking. This must work even if \$libdir does
  6185. +# not exist.
  6186. +hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  6187. +
  6188. +# Whether we need a single -rpath flag with a separated argument.
  6189. +hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  6190. +
  6191. +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  6192. +# resulting binary.
  6193. +hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  6194. +
  6195. +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  6196. +# resulting binary.
  6197. +hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  6198. +
  6199. +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  6200. +# the resulting binary.
  6201. +hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  6202. +
  6203. +# Set to yes if building a shared library automatically hardcodes DIR into the library
  6204. +# and all subsequent libraries and executables linked against it.
  6205. +hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  6206. +
  6207. +# Variables whose values should be saved in libtool wrapper scripts and
  6208. +# restored at relink time.
  6209. +variables_saved_for_relink="$variables_saved_for_relink"
  6210. +
  6211. +# Whether libtool must link a program against all its dependency libraries.
  6212. +link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  6213. +
  6214. +# Compile-time system search path for libraries
  6215. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  6216. +
  6217. +# Run-time system search path for libraries
  6218. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  6219. +
  6220. +# Fix the shell variable \$srcfile for the compiler.
  6221. +fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
  6222. +
  6223. +# Set to yes if exported symbols are required.
  6224. +always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  6225. +
  6226. +# The commands to list exported symbols.
  6227. +export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  6228. +
  6229. +# The commands to extract the exported symbol list from a shared archive.
  6230. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  6231. +
  6232. +# Symbols that should not be listed in the preloaded symbols.
  6233. +exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  6234. +
  6235. +# Symbols that must always be exported.
  6236. +include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  6237. +
  6238. +ifelse([$1],[],
  6239. +[# ### END LIBTOOL CONFIG],
  6240. +[# ### END LIBTOOL TAG CONFIG: $tagname])
  6241. +
  6242. +__EOF__
  6243. +
  6244. +ifelse([$1],[], [
  6245. + case $host_os in
  6246. + aix3*)
  6247. + cat <<\EOF >> "$cfgfile"
  6248. +
  6249. +# AIX sometimes has problems with the GCC collect2 program. For some
  6250. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  6251. +# vanish in a puff of smoke.
  6252. +if test "X${COLLECT_NAMES+set}" != Xset; then
  6253. + COLLECT_NAMES=
  6254. + export COLLECT_NAMES
  6255. +fi
  6256. +EOF
  6257. + ;;
  6258. + esac
  6259. +
  6260. + # We use sed instead of cat because bash on DJGPP gets confused if
  6261. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  6262. + # text mode, it properly converts lines to CR/LF. This bash problem
  6263. + # is reportedly fixed, but why not run on old versions too?
  6264. + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  6265. +
  6266. + mv -f "$cfgfile" "$ofile" || \
  6267. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  6268. + chmod +x "$ofile"
  6269. +])
  6270. +else
  6271. + # If there is no Makefile yet, we rely on a make rule to execute
  6272. + # `config.status --recheck' to rerun these tests and create the
  6273. + # libtool script then.
  6274. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  6275. + if test -f "$ltmain_in"; then
  6276. + test -f Makefile && make "$ltmain"
  6277. + fi
  6278. +fi
  6279. +])# AC_LIBTOOL_CONFIG
  6280. +
  6281. +
  6282. +# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  6283. +# -------------------------------------------
  6284. +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  6285. +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  6286. +
  6287. +_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  6288. +
  6289. +if test "$GCC" = yes; then
  6290. + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  6291. +
  6292. + AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  6293. + lt_cv_prog_compiler_rtti_exceptions,
  6294. + [-fno-rtti -fno-exceptions], [],
  6295. + [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  6296. +fi
  6297. +])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  6298. +
  6299. +
  6300. +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  6301. +# ---------------------------------
  6302. +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  6303. +[AC_REQUIRE([AC_CANONICAL_HOST])
  6304. +AC_REQUIRE([AC_PROG_NM])
  6305. +AC_REQUIRE([AC_OBJEXT])
  6306. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  6307. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  6308. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  6309. +[
  6310. +# These are sane defaults that work on at least a few old systems.
  6311. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6312. +
  6313. +# Character class describing NM global symbol codes.
  6314. +symcode='[[BCDEGRST]]'
  6315. +
  6316. +# Regexp to match symbols that can be accessed directly from C.
  6317. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  6318. +
  6319. +# Transform an extracted symbol line into a proper C declaration
  6320. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  6321. +
  6322. +# Transform an extracted symbol line into symbol name and symbol address
  6323. +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'"
  6324. +
  6325. +# Define system-specific variables.
  6326. +case $host_os in
  6327. +aix*)
  6328. + symcode='[[BCDT]]'
  6329. + ;;
  6330. +cygwin* | mingw* | pw32*)
  6331. + symcode='[[ABCDGISTW]]'
  6332. + ;;
  6333. +hpux*) # Its linker distinguishes data from code symbols
  6334. + if test "$host_cpu" = ia64; then
  6335. + symcode='[[ABCDEGRST]]'
  6336. + fi
  6337. + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6338. + 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'"
  6339. + ;;
  6340. +linux*)
  6341. + if test "$host_cpu" = ia64; then
  6342. + symcode='[[ABCDGIRSTW]]'
  6343. + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6344. + 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'"
  6345. + fi
  6346. + ;;
  6347. +irix* | nonstopux*)
  6348. + symcode='[[BCDEGRST]]'
  6349. + ;;
  6350. +osf*)
  6351. + symcode='[[BCDEGQRST]]'
  6352. + ;;
  6353. +solaris*)
  6354. + symcode='[[BDRT]]'
  6355. + ;;
  6356. +sco3.2v5*)
  6357. + symcode='[[DT]]'
  6358. + ;;
  6359. +sysv4.2uw2*)
  6360. + symcode='[[DT]]'
  6361. + ;;
  6362. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6363. + symcode='[[ABDT]]'
  6364. + ;;
  6365. +sysv4)
  6366. + symcode='[[DFNSTU]]'
  6367. + ;;
  6368. +esac
  6369. +
  6370. +# Handle CRLF in mingw tool chain
  6371. +opt_cr=
  6372. +case $build_os in
  6373. +mingw*)
  6374. + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6375. + ;;
  6376. +esac
  6377. +
  6378. +# If we're using GNU nm, then use its standard symbol codes.
  6379. +case `$NM -V 2>&1` in
  6380. +*GNU* | *'with BFD'*)
  6381. + symcode='[[ABCDGIRSTW]]' ;;
  6382. +esac
  6383. +
  6384. +# Try without a prefix undercore, then with it.
  6385. +for ac_symprfx in "" "_"; do
  6386. +
  6387. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6388. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  6389. +
  6390. + # Write the raw and C identifiers.
  6391. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6392. +
  6393. + # Check to see that the pipe works correctly.
  6394. + pipe_works=no
  6395. +
  6396. + rm -f conftest*
  6397. + cat > conftest.$ac_ext <<EOF
  6398. +#ifdef __cplusplus
  6399. +extern "C" {
  6400. +#endif
  6401. +char nm_test_var;
  6402. +void nm_test_func(){}
  6403. +#ifdef __cplusplus
  6404. +}
  6405. +#endif
  6406. +int main(){nm_test_var='a';nm_test_func();return(0);}
  6407. +EOF
  6408. +
  6409. + if AC_TRY_EVAL(ac_compile); then
  6410. + # Now try to grab the symbols.
  6411. + nlist=conftest.nm
  6412. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  6413. + # Try sorting and uniquifying the output.
  6414. + if sort "$nlist" | uniq > "$nlist"T; then
  6415. + mv -f "$nlist"T "$nlist"
  6416. + else
  6417. + rm -f "$nlist"T
  6418. + fi
  6419. +
  6420. + # Make sure that we snagged all the symbols we need.
  6421. + if grep ' nm_test_var$' "$nlist" >/dev/null; then
  6422. + if grep ' nm_test_func$' "$nlist" >/dev/null; then
  6423. + cat <<EOF > conftest.$ac_ext
  6424. +#ifdef __cplusplus
  6425. +extern "C" {
  6426. +#endif
  6427. +
  6428. +EOF
  6429. + # Now generate the symbol file.
  6430. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  6431. +
  6432. + cat <<EOF >> conftest.$ac_ext
  6433. +#if defined (__STDC__) && __STDC__
  6434. +# define lt_ptr_t void *
  6435. +#else
  6436. +# define lt_ptr_t char *
  6437. +# define const
  6438. +#endif
  6439. +
  6440. +/* The mapping between symbol names and symbols. */
  6441. +const struct {
  6442. + const char *name;
  6443. + lt_ptr_t address;
  6444. +}
  6445. +lt_preloaded_symbols[[]] =
  6446. +{
  6447. +EOF
  6448. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  6449. + cat <<\EOF >> conftest.$ac_ext
  6450. + {0, (lt_ptr_t) 0}
  6451. +};
  6452. +
  6453. +#ifdef __cplusplus
  6454. +}
  6455. +#endif
  6456. +EOF
  6457. + # Now try linking the two files.
  6458. + mv conftest.$ac_objext conftstm.$ac_objext
  6459. + lt_save_LIBS="$LIBS"
  6460. + lt_save_CFLAGS="$CFLAGS"
  6461. + LIBS="conftstm.$ac_objext"
  6462. + CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  6463. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  6464. + pipe_works=yes
  6465. + fi
  6466. + LIBS="$lt_save_LIBS"
  6467. + CFLAGS="$lt_save_CFLAGS"
  6468. + else
  6469. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  6470. + fi
  6471. + else
  6472. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  6473. + fi
  6474. + else
  6475. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  6476. + fi
  6477. + else
  6478. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  6479. + cat conftest.$ac_ext >&5
  6480. + fi
  6481. + rm -f conftest* conftst*
  6482. +
  6483. + # Do not use the global_symbol_pipe unless it works.
  6484. + if test "$pipe_works" = yes; then
  6485. + break
  6486. + else
  6487. + lt_cv_sys_global_symbol_pipe=
  6488. + fi
  6489. +done
  6490. +])
  6491. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6492. + lt_cv_sys_global_symbol_to_cdecl=
  6493. +fi
  6494. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6495. + AC_MSG_RESULT(failed)
  6496. +else
  6497. + AC_MSG_RESULT(ok)
  6498. +fi
  6499. +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  6500. +
  6501. +
  6502. +# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  6503. +# ---------------------------------------
  6504. +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  6505. +[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  6506. +_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  6507. +_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  6508. +
  6509. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  6510. + ifelse([$1],[CXX],[
  6511. + # C++ specific cases for pic, static, wl, etc.
  6512. + if test "$GXX" = yes; then
  6513. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6514. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6515. +
  6516. + case $host_os in
  6517. + aix*)
  6518. + # All AIX code is PIC.
  6519. + if test "$host_cpu" = ia64; then
  6520. + # AIX 5 now supports IA64 processor
  6521. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6522. + fi
  6523. + ;;
  6524. + amigaos*)
  6525. + # FIXME: we need at least 68020 code to build shared libraries, but
  6526. + # adding the `-m68020' flag to GCC prevents building anything better,
  6527. + # like `-m68040'.
  6528. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  6529. + ;;
  6530. + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6531. + # PIC is the default for these OSes.
  6532. + ;;
  6533. + mingw* | os2* | pw32*)
  6534. + # This hack is so that the source file can tell whether it is being
  6535. + # built for inclusion in a dll (and should export symbols for example).
  6536. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  6537. + ;;
  6538. + darwin* | rhapsody*)
  6539. + # PIC is the default on this platform
  6540. + # Common symbols not allowed in MH_DYLIB files
  6541. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  6542. + ;;
  6543. + *djgpp*)
  6544. + # DJGPP does not support shared libraries at all
  6545. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  6546. + ;;
  6547. + interix3*)
  6548. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6549. + # Instead, we relocate shared libraries at runtime.
  6550. + ;;
  6551. + sysv4*MP*)
  6552. + if test -d /usr/nec; then
  6553. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  6554. + fi
  6555. + ;;
  6556. + hpux*)
  6557. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6558. + # not for PA HP-UX.
  6559. + case $host_cpu in
  6560. + hppa*64*|ia64*)
  6561. + ;;
  6562. + *)
  6563. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6564. + ;;
  6565. + esac
  6566. + ;;
  6567. + *)
  6568. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6569. + ;;
  6570. + esac
  6571. + else
  6572. + case $host_os in
  6573. + aix4* | aix5*)
  6574. + # All AIX code is PIC.
  6575. + if test "$host_cpu" = ia64; then
  6576. + # AIX 5 now supports IA64 processor
  6577. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6578. + else
  6579. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  6580. + fi
  6581. + ;;
  6582. + chorus*)
  6583. + case $cc_basename in
  6584. + cxch68*)
  6585. + # Green Hills C++ Compiler
  6586. + # _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"
  6587. + ;;
  6588. + esac
  6589. + ;;
  6590. + darwin*)
  6591. + # PIC is the default on this platform
  6592. + # Common symbols not allowed in MH_DYLIB files
  6593. + case $cc_basename in
  6594. + xlc*)
  6595. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  6596. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6597. + ;;
  6598. + esac
  6599. + ;;
  6600. + dgux*)
  6601. + case $cc_basename in
  6602. + ec++*)
  6603. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6604. + ;;
  6605. + ghcx*)
  6606. + # Green Hills C++ Compiler
  6607. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  6608. + ;;
  6609. + *)
  6610. + ;;
  6611. + esac
  6612. + ;;
  6613. + freebsd* | kfreebsd*-gnu | dragonfly*)
  6614. + # FreeBSD uses GNU C++
  6615. + ;;
  6616. + hpux9* | hpux10* | hpux11*)
  6617. + case $cc_basename in
  6618. + CC*)
  6619. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6620. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  6621. + if test "$host_cpu" != ia64; then
  6622. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  6623. + fi
  6624. + ;;
  6625. + aCC*)
  6626. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6627. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  6628. + case $host_cpu in
  6629. + hppa*64*|ia64*)
  6630. + # +Z the default
  6631. + ;;
  6632. + *)
  6633. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  6634. + ;;
  6635. + esac
  6636. + ;;
  6637. + *)
  6638. + ;;
  6639. + esac
  6640. + ;;
  6641. + interix*)
  6642. + # This is c89, which is MS Visual C++ (no shared libs)
  6643. + # Anyone wants to do a port?
  6644. + ;;
  6645. + irix5* | irix6* | nonstopux*)
  6646. + case $cc_basename in
  6647. + CC*)
  6648. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6649. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6650. + # CC pic flag -KPIC is the default.
  6651. + ;;
  6652. + *)
  6653. + ;;
  6654. + esac
  6655. + ;;
  6656. + linux*)
  6657. + case $cc_basename in
  6658. + KCC*)
  6659. + # KAI C++ Compiler
  6660. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  6661. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6662. + ;;
  6663. + icpc* | ecpc*)
  6664. + # Intel C++
  6665. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6666. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6667. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6668. + ;;
  6669. + pgCC*)
  6670. + # Portland Group C++ compiler.
  6671. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6672. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  6673. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6674. + ;;
  6675. + cxx*)
  6676. + # Compaq C++
  6677. + # Make sure the PIC flag is empty. It appears that all Alpha
  6678. + # Linux and Compaq Tru64 Unix objects are PIC.
  6679. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  6680. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6681. + ;;
  6682. + *)
  6683. + ;;
  6684. + esac
  6685. + ;;
  6686. + lynxos*)
  6687. + ;;
  6688. + m88k*)
  6689. + ;;
  6690. + mvs*)
  6691. + case $cc_basename in
  6692. + cxx*)
  6693. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  6694. + ;;
  6695. + *)
  6696. + ;;
  6697. + esac
  6698. + ;;
  6699. + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  6700. + ;;
  6701. + osf3* | osf4* | osf5*)
  6702. + case $cc_basename in
  6703. + KCC*)
  6704. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  6705. + ;;
  6706. + RCC*)
  6707. + # Rational C++ 2.4.1
  6708. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  6709. + ;;
  6710. + cxx*)
  6711. + # Digital/Compaq C++
  6712. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6713. + # Make sure the PIC flag is empty. It appears that all Alpha
  6714. + # Linux and Compaq Tru64 Unix objects are PIC.
  6715. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  6716. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6717. + ;;
  6718. + *)
  6719. + ;;
  6720. + esac
  6721. + ;;
  6722. + psos*)
  6723. + ;;
  6724. + solaris*)
  6725. + case $cc_basename in
  6726. + CC*)
  6727. + # Sun C++ 4.2, 5.x and Centerline C++
  6728. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6729. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6730. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  6731. + ;;
  6732. + gcx*)
  6733. + # Green Hills C++ Compiler
  6734. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  6735. + ;;
  6736. + *)
  6737. + ;;
  6738. + esac
  6739. + ;;
  6740. + sunos4*)
  6741. + case $cc_basename in
  6742. + CC*)
  6743. + # Sun C++ 4.x
  6744. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  6745. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6746. + ;;
  6747. + lcc*)
  6748. + # Lucid
  6749. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  6750. + ;;
  6751. + *)
  6752. + ;;
  6753. + esac
  6754. + ;;
  6755. + tandem*)
  6756. + case $cc_basename in
  6757. + NCC*)
  6758. + # NonStop-UX NCC 3.20
  6759. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6760. + ;;
  6761. + *)
  6762. + ;;
  6763. + esac
  6764. + ;;
  6765. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6766. + case $cc_basename in
  6767. + CC*)
  6768. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6769. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6770. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6771. + ;;
  6772. + esac
  6773. + ;;
  6774. + vxworks*)
  6775. + ;;
  6776. + *)
  6777. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  6778. + ;;
  6779. + esac
  6780. + fi
  6781. +],
  6782. +[
  6783. + if test "$GCC" = yes; then
  6784. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6785. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6786. +
  6787. + case $host_os in
  6788. + aix*)
  6789. + # All AIX code is PIC.
  6790. + if test "$host_cpu" = ia64; then
  6791. + # AIX 5 now supports IA64 processor
  6792. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6793. + fi
  6794. + ;;
  6795. +
  6796. + amigaos*)
  6797. + # FIXME: we need at least 68020 code to build shared libraries, but
  6798. + # adding the `-m68020' flag to GCC prevents building anything better,
  6799. + # like `-m68040'.
  6800. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  6801. + ;;
  6802. +
  6803. + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6804. + # PIC is the default for these OSes.
  6805. + ;;
  6806. +
  6807. + mingw* | pw32* | os2*)
  6808. + # This hack is so that the source file can tell whether it is being
  6809. + # built for inclusion in a dll (and should export symbols for example).
  6810. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  6811. + ;;
  6812. +
  6813. + darwin* | rhapsody*)
  6814. + # PIC is the default on this platform
  6815. + # Common symbols not allowed in MH_DYLIB files
  6816. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  6817. + ;;
  6818. +
  6819. + interix3*)
  6820. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6821. + # Instead, we relocate shared libraries at runtime.
  6822. + ;;
  6823. +
  6824. + msdosdjgpp*)
  6825. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  6826. + # on systems that don't support them.
  6827. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  6828. + enable_shared=no
  6829. + ;;
  6830. +
  6831. + sysv4*MP*)
  6832. + if test -d /usr/nec; then
  6833. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  6834. + fi
  6835. + ;;
  6836. +
  6837. + hpux*)
  6838. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6839. + # not for PA HP-UX.
  6840. + case $host_cpu in
  6841. + hppa*64*|ia64*)
  6842. + # +Z the default
  6843. + ;;
  6844. + *)
  6845. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6846. + ;;
  6847. + esac
  6848. + ;;
  6849. +
  6850. + *)
  6851. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6852. + ;;
  6853. + esac
  6854. + else
  6855. + # PORTME Check for flag to pass linker flags through the system compiler.
  6856. + case $host_os in
  6857. + aix*)
  6858. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6859. + if test "$host_cpu" = ia64; then
  6860. + # AIX 5 now supports IA64 processor
  6861. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6862. + else
  6863. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  6864. + fi
  6865. + ;;
  6866. + darwin*)
  6867. + # PIC is the default on this platform
  6868. + # Common symbols not allowed in MH_DYLIB files
  6869. + case $cc_basename in
  6870. + xlc*)
  6871. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  6872. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6873. + ;;
  6874. + esac
  6875. + ;;
  6876. +
  6877. + mingw* | pw32* | os2*)
  6878. + # This hack is so that the source file can tell whether it is being
  6879. + # built for inclusion in a dll (and should export symbols for example).
  6880. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  6881. + ;;
  6882. +
  6883. + hpux9* | hpux10* | hpux11*)
  6884. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6885. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6886. + # not for PA HP-UX.
  6887. + case $host_cpu in
  6888. + hppa*64*|ia64*)
  6889. + # +Z the default
  6890. + ;;
  6891. + *)
  6892. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  6893. + ;;
  6894. + esac
  6895. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6896. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  6897. + ;;
  6898. +
  6899. + irix5* | irix6* | nonstopux*)
  6900. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6901. + # PIC (with -KPIC) is the default.
  6902. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6903. + ;;
  6904. +
  6905. + newsos6)
  6906. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6907. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6908. + ;;
  6909. +
  6910. + linux*)
  6911. + case $cc_basename in
  6912. + icc* | ecc*)
  6913. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6914. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6915. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6916. + ;;
  6917. + pgcc* | pgf77* | pgf90* | pgf95*)
  6918. + # Portland Group compilers (*not* the Pentium gcc compiler,
  6919. + # which looks to be a dead project)
  6920. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6921. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  6922. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6923. + ;;
  6924. + ccc*)
  6925. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6926. + # All Alpha code is PIC.
  6927. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6928. + ;;
  6929. + esac
  6930. + ;;
  6931. +
  6932. + osf3* | osf4* | osf5*)
  6933. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6934. + # All OSF/1 code is PIC.
  6935. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6936. + ;;
  6937. +
  6938. + solaris*)
  6939. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6940. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6941. + case $cc_basename in
  6942. + f77* | f90* | f95*)
  6943. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  6944. + *)
  6945. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  6946. + esac
  6947. + ;;
  6948. +
  6949. + sunos4*)
  6950. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  6951. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  6952. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6953. + ;;
  6954. +
  6955. + sysv4 | sysv4.2uw2* | sysv4.3*)
  6956. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6957. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6958. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6959. + ;;
  6960. +
  6961. + sysv4*MP*)
  6962. + if test -d /usr/nec ;then
  6963. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  6964. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6965. + fi
  6966. + ;;
  6967. +
  6968. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6969. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6970. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6971. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6972. + ;;
  6973. +
  6974. + unicos*)
  6975. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6976. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  6977. + ;;
  6978. +
  6979. + uts4*)
  6980. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  6981. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6982. + ;;
  6983. +
  6984. + *)
  6985. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  6986. + ;;
  6987. + esac
  6988. + fi
  6989. +])
  6990. +AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  6991. +
  6992. +#
  6993. +# Check to make sure the PIC flag actually works.
  6994. +#
  6995. +if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  6996. + AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  6997. + _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
  6998. + [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  6999. + [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  7000. + "" | " "*) ;;
  7001. + *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  7002. + esac],
  7003. + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  7004. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  7005. +fi
  7006. +case $host_os in
  7007. + # For platforms which do not support PIC, -DPIC is meaningless:
  7008. + *djgpp*)
  7009. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  7010. + ;;
  7011. + *)
  7012. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  7013. + ;;
  7014. +esac
  7015. +
  7016. +#
  7017. +# Check to make sure the static flag actually works.
  7018. +#
  7019. +wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  7020. +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  7021. + _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  7022. + $lt_tmp_static_flag,
  7023. + [],
  7024. + [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  7025. +])
  7026. +
  7027. +
  7028. +# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  7029. +# ------------------------------------
  7030. +# See if the linker supports building shared libraries.
  7031. +AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  7032. +[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  7033. +ifelse([$1],[CXX],[
  7034. + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7035. + case $host_os in
  7036. + aix4* | aix5*)
  7037. + # If we're using GNU nm, then we don't want the "-C" option.
  7038. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7039. + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7040. + _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'
  7041. + else
  7042. + _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'
  7043. + fi
  7044. + ;;
  7045. + pw32*)
  7046. + _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  7047. + ;;
  7048. + cygwin* | mingw*)
  7049. + _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'
  7050. + ;;
  7051. + kfreebsd*-gnu)
  7052. + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  7053. + ;;
  7054. + linux*)
  7055. + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  7056. + ;;
  7057. + *)
  7058. + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7059. + ;;
  7060. + esac
  7061. +],[
  7062. + runpath_var=
  7063. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  7064. + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  7065. + _LT_AC_TAGVAR(archive_cmds, $1)=
  7066. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  7067. + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  7068. + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  7069. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  7070. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  7071. + _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  7072. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7073. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  7074. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  7075. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  7076. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  7077. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  7078. + _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  7079. + _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  7080. + _LT_AC_TAGVAR(module_cmds, $1)=
  7081. + _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  7082. + _LT_AC_TAGVAR(always_export_symbols, $1)=no
  7083. + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7084. + # include_expsyms should be a list of space-separated symbols to be *always*
  7085. + # included in the symbol list
  7086. + _LT_AC_TAGVAR(include_expsyms, $1)=
  7087. + # exclude_expsyms can be an extended regexp of symbols to exclude
  7088. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7089. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7090. + # as well as any symbol that contains `d'.
  7091. + _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  7092. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7093. + # platforms (ab)use it in PIC code, but their linkers get confused if
  7094. + # the symbol is explicitly referenced. Since portable code cannot
  7095. + # rely on this symbol name, it's probably fine to never include it in
  7096. + # preloaded symbol tables.
  7097. + extract_expsyms_cmds=
  7098. + # Just being paranoid about ensuring that cc_basename is set.
  7099. + _LT_CC_BASENAME([$compiler])
  7100. + case $host_os in
  7101. + cygwin* | mingw* | pw32*)
  7102. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7103. + # When not using gcc, we currently assume that we are using
  7104. + # Microsoft Visual C++.
  7105. + if test "$GCC" != yes; then
  7106. + with_gnu_ld=no
  7107. + fi
  7108. + ;;
  7109. + interix*)
  7110. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  7111. + with_gnu_ld=yes
  7112. + ;;
  7113. + openbsd*)
  7114. + with_gnu_ld=no
  7115. + ;;
  7116. + esac
  7117. +
  7118. + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  7119. + if test "$with_gnu_ld" = yes; then
  7120. + # If archive_cmds runs LD, not CC, wlarc should be empty
  7121. + wlarc='${wl}'
  7122. +
  7123. + # Set some defaults for GNU ld with shared library support. These
  7124. + # are reset later if shared libraries are not supported. Putting them
  7125. + # here allows them to be overridden if necessary.
  7126. + runpath_var=LD_RUN_PATH
  7127. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  7128. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7129. + # ancient GNU ld didn't support --whole-archive et. al.
  7130. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  7131. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7132. + else
  7133. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  7134. + fi
  7135. + supports_anon_versioning=no
  7136. + case `$LD -v 2>/dev/null` in
  7137. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  7138. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7139. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7140. + *\ 2.11.*) ;; # other 2.11 versions
  7141. + *) supports_anon_versioning=yes ;;
  7142. + esac
  7143. +
  7144. + # See if GNU ld supports shared libraries.
  7145. + case $host_os in
  7146. + aix3* | aix4* | aix5*)
  7147. + # On AIX/PPC, the GNU linker is very broken
  7148. + if test "$host_cpu" != ia64; then
  7149. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7150. + cat <<EOF 1>&2
  7151. +
  7152. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7153. +*** to be unable to reliably create shared libraries on AIX.
  7154. +*** Therefore, libtool is disabling shared libraries support. If you
  7155. +*** really care for shared libraries, you may want to modify your PATH
  7156. +*** so that a non-GNU linker is found, and then restart.
  7157. +
  7158. +EOF
  7159. + fi
  7160. + ;;
  7161. +
  7162. + amigaos*)
  7163. + _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)'
  7164. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7165. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  7166. +
  7167. + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  7168. + # that the semantics of dynamic libraries on AmigaOS, at least up
  7169. + # to version 4, is to share data among multiple programs linked
  7170. + # with the same dynamic library. Since this doesn't match the
  7171. + # behavior of shared libraries on other platforms, we can't use
  7172. + # them.
  7173. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7174. + ;;
  7175. +
  7176. + beos*)
  7177. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7178. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  7179. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7180. + # support --undefined. This deserves some investigation. FIXME
  7181. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7182. + else
  7183. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7184. + fi
  7185. + ;;
  7186. +
  7187. + cygwin* | mingw* | pw32*)
  7188. + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  7189. + # as there is no search path for DLLs.
  7190. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7191. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  7192. + _LT_AC_TAGVAR(always_export_symbols, $1)=no
  7193. + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  7194. + _LT_AC_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'
  7195. +
  7196. + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  7197. + _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'
  7198. + # If the export-symbols file already is a .def file (1st line
  7199. + # is EXPORTS), use it as is; otherwise, prepend...
  7200. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7201. + cp $export_symbols $output_objdir/$soname.def;
  7202. + else
  7203. + echo EXPORTS > $output_objdir/$soname.def;
  7204. + cat $export_symbols >> $output_objdir/$soname.def;
  7205. + fi~
  7206. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7207. + else
  7208. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7209. + fi
  7210. + ;;
  7211. +
  7212. + interix3*)
  7213. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  7214. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7215. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7216. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7217. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7218. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  7219. + # default) and relocated if they conflict, which is a slow very memory
  7220. + # consuming and fragmenting process. To avoid this, we pick a random,
  7221. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7222. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7223. + _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'
  7224. + _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'
  7225. + ;;
  7226. +
  7227. + linux*)
  7228. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7229. + tmp_addflag=
  7230. + case $cc_basename,$host_cpu in
  7231. + pgcc*) # Portland Group C compiler
  7232. + _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'
  7233. + tmp_addflag=' $pic_flag'
  7234. + ;;
  7235. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7236. + _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'
  7237. + tmp_addflag=' $pic_flag -Mnomain' ;;
  7238. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7239. + tmp_addflag=' -i_dynamic' ;;
  7240. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7241. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  7242. + ifc* | ifort*) # Intel Fortran compiler
  7243. + tmp_addflag=' -nofor_main' ;;
  7244. + esac
  7245. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7246. +
  7247. + if test $supports_anon_versioning = yes; then
  7248. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  7249. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7250. + $echo "local: *; };" >> $output_objdir/$libname.ver~
  7251. + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7252. + fi
  7253. + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  7254. + else
  7255. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7256. + fi
  7257. + ;;
  7258. +
  7259. + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  7260. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7261. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7262. + wlarc=
  7263. + else
  7264. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7265. + _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'
  7266. + fi
  7267. + ;;
  7268. +
  7269. + solaris*)
  7270. + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  7271. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7272. + cat <<EOF 1>&2
  7273. +
  7274. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7275. +*** create shared libraries on Solaris systems. Therefore, libtool
  7276. +*** is disabling shared libraries support. We urge you to upgrade GNU
  7277. +*** binutils to release 2.9.1 or newer. Another option is to modify
  7278. +*** your PATH or compiler configuration so that the native linker is
  7279. +*** used, and then restart.
  7280. +
  7281. +EOF
  7282. + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7283. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7284. + _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'
  7285. + else
  7286. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7287. + fi
  7288. + ;;
  7289. +
  7290. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7291. + case `$LD -v 2>&1` in
  7292. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  7293. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7294. + cat <<_LT_EOF 1>&2
  7295. +
  7296. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7297. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  7298. +*** is disabling shared libraries support. We urge you to upgrade GNU
  7299. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7300. +*** your PATH or compiler configuration so that the native linker is
  7301. +*** used, and then restart.
  7302. +
  7303. +_LT_EOF
  7304. + ;;
  7305. + *)
  7306. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7307. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  7308. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  7309. + _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'
  7310. + else
  7311. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7312. + fi
  7313. + ;;
  7314. + esac
  7315. + ;;
  7316. +
  7317. + sunos4*)
  7318. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7319. + wlarc=
  7320. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7321. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7322. + ;;
  7323. +
  7324. + *)
  7325. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7326. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7327. + _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'
  7328. + else
  7329. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7330. + fi
  7331. + ;;
  7332. + esac
  7333. +
  7334. + if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  7335. + runpath_var=
  7336. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7337. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  7338. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  7339. + fi
  7340. + else
  7341. + # PORTME fill in a description of your system's linker (not GNU ld)
  7342. + case $host_os in
  7343. + aix3*)
  7344. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  7345. + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  7346. + _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'
  7347. + # Note: this linker hardcodes the directories in LIBPATH if there
  7348. + # are no directories specified by -L.
  7349. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  7350. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7351. + # Neither direct hardcoding nor static linking is supported with a
  7352. + # broken collect2.
  7353. + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  7354. + fi
  7355. + ;;
  7356. +
  7357. + aix4* | aix5*)
  7358. + if test "$host_cpu" = ia64; then
  7359. + # On IA64, the linker does run time linking by default, so we don't
  7360. + # have to do anything special.
  7361. + aix_use_runtimelinking=no
  7362. + exp_sym_flag='-Bexport'
  7363. + no_entry_flag=""
  7364. + else
  7365. + # If we're using GNU nm, then we don't want the "-C" option.
  7366. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7367. + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7368. + _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'
  7369. + else
  7370. + _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'
  7371. + fi
  7372. + aix_use_runtimelinking=no
  7373. +
  7374. + # Test if we are trying to use run time linking or normal
  7375. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7376. + # need to do runtime linking.
  7377. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  7378. + for ld_flag in $LDFLAGS; do
  7379. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7380. + aix_use_runtimelinking=yes
  7381. + break
  7382. + fi
  7383. + done
  7384. + ;;
  7385. + esac
  7386. +
  7387. + exp_sym_flag='-bexport'
  7388. + no_entry_flag='-bnoentry'
  7389. + fi
  7390. +
  7391. + # When large executables or shared objects are built, AIX ld can
  7392. + # have problems creating the table of contents. If linking a library
  7393. + # or program results in "error TOC overflow" add -mminimal-toc to
  7394. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7395. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7396. +
  7397. + _LT_AC_TAGVAR(archive_cmds, $1)=''
  7398. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7399. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  7400. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  7401. +
  7402. + if test "$GCC" = yes; then
  7403. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  7404. + # We only want to do this on AIX 4.2 and lower, the check
  7405. + # below for broken collect2 doesn't work under 4.3+
  7406. + collect2name=`${CC} -print-prog-name=collect2`
  7407. + if test -f "$collect2name" && \
  7408. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  7409. + then
  7410. + # We have reworked collect2
  7411. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7412. + else
  7413. + # We have old collect2
  7414. + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  7415. + # It fails to find uninstalled libraries when the uninstalled
  7416. + # path is not listed in the libpath. Setting hardcode_minus_L
  7417. + # to unsupported forces relinking
  7418. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  7419. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7420. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  7421. + fi
  7422. + ;;
  7423. + esac
  7424. + shared_flag='-shared'
  7425. + if test "$aix_use_runtimelinking" = yes; then
  7426. + shared_flag="$shared_flag "'${wl}-G'
  7427. + fi
  7428. + else
  7429. + # not using gcc
  7430. + if test "$host_cpu" = ia64; then
  7431. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7432. + # chokes on -Wl,-G. The following line is correct:
  7433. + shared_flag='-G'
  7434. + else
  7435. + if test "$aix_use_runtimelinking" = yes; then
  7436. + shared_flag='${wl}-G'
  7437. + else
  7438. + shared_flag='${wl}-bM:SRE'
  7439. + fi
  7440. + fi
  7441. + fi
  7442. +
  7443. + # It seems that -bexpall does not export symbols beginning with
  7444. + # underscore (_), so it is better to generate a list of symbols to export.
  7445. + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  7446. + if test "$aix_use_runtimelinking" = yes; then
  7447. + # Warning - without using the other runtime loading flags (-brtl),
  7448. + # -berok will link without error, but may produce a broken library.
  7449. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  7450. + # Determine the default libpath from the value encoded in an empty executable.
  7451. + _LT_AC_SYS_LIBPATH_AIX
  7452. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  7453. + _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"
  7454. + else
  7455. + if test "$host_cpu" = ia64; then
  7456. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  7457. + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  7458. + _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"
  7459. + else
  7460. + # Determine the default libpath from the value encoded in an empty executable.
  7461. + _LT_AC_SYS_LIBPATH_AIX
  7462. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  7463. + # Warning - without using the other run time loading flags,
  7464. + # -berok will link without error, but may produce a broken library.
  7465. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  7466. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  7467. + # Exported symbols can be pulled into shared objects from archives
  7468. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  7469. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  7470. + # This is similar to how AIX traditionally builds its shared libraries.
  7471. + _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'
  7472. + fi
  7473. + fi
  7474. + ;;
  7475. +
  7476. + amigaos*)
  7477. + _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)'
  7478. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7479. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  7480. + # see comment about different semantics on the GNU ld section
  7481. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7482. + ;;
  7483. +
  7484. + bsdi[[45]]*)
  7485. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  7486. + ;;
  7487. +
  7488. + cygwin* | mingw* | pw32*)
  7489. + # When not using gcc, we currently assume that we are using
  7490. + # Microsoft Visual C++.
  7491. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  7492. + # no search path for DLLs.
  7493. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  7494. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  7495. + # Tell ltmain to make .lib files, not .a files.
  7496. + libext=lib
  7497. + # Tell ltmain to make .dll files, not .so files.
  7498. + shrext_cmds=".dll"
  7499. + # FIXME: Setting linknames here is a bad hack.
  7500. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7501. + # The linker will automatically build a .lib file if we build a DLL.
  7502. + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  7503. + # FIXME: Should let the user specify the lib program.
  7504. + _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
  7505. + _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  7506. + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  7507. + ;;
  7508. +
  7509. + darwin* | rhapsody*)
  7510. + case $host_os in
  7511. + rhapsody* | darwin1.[[012]])
  7512. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  7513. + ;;
  7514. + *) # Darwin 1.3 on
  7515. + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  7516. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7517. + else
  7518. + case ${MACOSX_DEPLOYMENT_TARGET} in
  7519. + 10.[[012]])
  7520. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7521. + ;;
  7522. + 10.*)
  7523. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  7524. + ;;
  7525. + esac
  7526. + fi
  7527. + ;;
  7528. + esac
  7529. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  7530. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  7531. + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  7532. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  7533. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  7534. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  7535. + if test "$GCC" = yes ; then
  7536. + output_verbose_link_cmd='echo'
  7537. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  7538. + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7539. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7540. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7541. + _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}'
  7542. + else
  7543. + case $cc_basename in
  7544. + xlc*)
  7545. + output_verbose_link_cmd='echo'
  7546. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  7547. + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7548. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7549. + _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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7550. + _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}'
  7551. + ;;
  7552. + *)
  7553. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7554. + ;;
  7555. + esac
  7556. + fi
  7557. + ;;
  7558. +
  7559. + dgux*)
  7560. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7561. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7562. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7563. + ;;
  7564. +
  7565. + freebsd1*)
  7566. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7567. + ;;
  7568. +
  7569. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7570. + # support. Future versions do this automatically, but an explicit c++rt0.o
  7571. + # does not break anything, and helps significantly (at the cost of a little
  7572. + # extra space).
  7573. + freebsd2.2*)
  7574. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7575. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7576. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7577. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7578. + ;;
  7579. +
  7580. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7581. + freebsd2*)
  7582. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7583. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7584. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  7585. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7586. + ;;
  7587. +
  7588. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7589. + freebsd* | dragonfly*)
  7590. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7591. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7592. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7593. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7594. + ;;
  7595. +
  7596. + # GNU/kFreeBSD uses gcc -shared to do shared libraries.
  7597. + kfreebsd*-gnu)
  7598. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7599. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7600. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7601. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7602. + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  7603. + ;;
  7604. +
  7605. + hpux9*)
  7606. + if test "$GCC" = yes; then
  7607. + _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'
  7608. + else
  7609. + _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'
  7610. + fi
  7611. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  7612. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  7613. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7614. +
  7615. + # hardcode_minus_L: Not really in the search PATH,
  7616. + # but as the default location of the library.
  7617. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  7618. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7619. + ;;
  7620. +
  7621. + hpux10*)
  7622. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7623. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7624. + else
  7625. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7626. + fi
  7627. + if test "$with_gnu_ld" = no; then
  7628. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  7629. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  7630. +
  7631. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7632. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7633. +
  7634. + # hardcode_minus_L: Not really in the search PATH,
  7635. + # but as the default location of the library.
  7636. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  7637. + fi
  7638. + ;;
  7639. +
  7640. + hpux11*)
  7641. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7642. + case $host_cpu in
  7643. + hppa*64*)
  7644. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7645. + ;;
  7646. + ia64*)
  7647. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7648. + ;;
  7649. + *)
  7650. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7651. + ;;
  7652. + esac
  7653. + else
  7654. + case $host_cpu in
  7655. + hppa*64*)
  7656. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7657. + ;;
  7658. + ia64*)
  7659. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7660. + ;;
  7661. + *)
  7662. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7663. + ;;
  7664. + esac
  7665. + fi
  7666. + if test "$with_gnu_ld" = no; then
  7667. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  7668. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  7669. +
  7670. + case $host_cpu in
  7671. + hppa*64*|ia64*)
  7672. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  7673. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  7674. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7675. + ;;
  7676. + *)
  7677. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7678. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7679. +
  7680. + # hardcode_minus_L: Not really in the search PATH,
  7681. + # but as the default location of the library.
  7682. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  7683. + ;;
  7684. + esac
  7685. + fi
  7686. + ;;
  7687. +
  7688. + irix5* | irix6* | nonstopux*)
  7689. + if test "$GCC" = yes; then
  7690. + _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'
  7691. + else
  7692. + _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'
  7693. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  7694. + fi
  7695. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7696. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  7697. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  7698. + ;;
  7699. +
  7700. + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  7701. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7702. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7703. + else
  7704. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7705. + fi
  7706. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7707. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7708. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7709. + ;;
  7710. - dnl *** For now the libtool support in intl/Makefile is not for real.
  7711. - l=
  7712. - AC_SUBST(l)
  7713. + newsos6)
  7714. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7715. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7716. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7717. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  7718. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7719. + ;;
  7720. - dnl Generate list of files to be processed by xgettext which will
  7721. - dnl be included in po/Makefile.
  7722. - test -d po || mkdir po
  7723. - if test "x$srcdir" != "x."; then
  7724. - if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
  7725. - posrcprefix="$srcdir/"
  7726. - else
  7727. - posrcprefix="../$srcdir/"
  7728. - fi
  7729. - else
  7730. - posrcprefix="../"
  7731. - fi
  7732. - rm -f po/POTFILES
  7733. - sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
  7734. - < $srcdir/po/POTFILES.in > po/POTFILES
  7735. - ])
  7736. + openbsd*)
  7737. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7738. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7739. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7740. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7741. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7742. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7743. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7744. + else
  7745. + case $host_os in
  7746. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  7747. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7748. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7749. + ;;
  7750. + *)
  7751. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7752. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7753. + ;;
  7754. + esac
  7755. + fi
  7756. + ;;
  7757. + os2*)
  7758. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7759. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  7760. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  7761. + _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'
  7762. + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7763. + ;;
  7764. -# Search path for a program which passes the given test.
  7765. -# Ulrich Drepper <drepper@cygnus.com>, 1996.
  7766. -#
  7767. -# This file can be copied and used freely without restrictions. It can
  7768. -# be used in projects which are not available under the GNU Public License
  7769. -# but which still want to provide support for the GNU gettext functionality.
  7770. -# Please note that the actual code is *not* freely available.
  7771. + osf3*)
  7772. + if test "$GCC" = yes; then
  7773. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  7774. + _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'
  7775. + else
  7776. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  7777. + _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'
  7778. + fi
  7779. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7780. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  7781. + ;;
  7782. -# serial 1
  7783. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  7784. + if test "$GCC" = yes; then
  7785. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  7786. + _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'
  7787. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7788. + else
  7789. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  7790. + _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'
  7791. + _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~
  7792. + $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'
  7793. -dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
  7794. -dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
  7795. -AC_DEFUN(AM_PATH_PROG_WITH_TEST,
  7796. -[# Extract the first word of "$2", so it can be a program name with args.
  7797. -set dummy $2; ac_word=[$]2
  7798. -AC_MSG_CHECKING([for $ac_word])
  7799. -AC_CACHE_VAL(ac_cv_path_$1,
  7800. -[case "[$]$1" in
  7801. - /*)
  7802. - ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
  7803. - ;;
  7804. - *)
  7805. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  7806. - for ac_dir in ifelse([$5], , $PATH, [$5]); do
  7807. - test -z "$ac_dir" && ac_dir=.
  7808. - if test -f $ac_dir/$ac_word; then
  7809. - if [$3]; then
  7810. - ac_cv_path_$1="$ac_dir/$ac_word"
  7811. - break
  7812. + # Both c and cxx compiler support -rpath directly
  7813. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  7814. fi
  7815. - fi
  7816. - done
  7817. - IFS="$ac_save_ifs"
  7818. -dnl If no 4th arg is given, leave the cache variable unset,
  7819. -dnl so AC_PATH_PROGS will keep looking.
  7820. -ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
  7821. -])dnl
  7822. - ;;
  7823. -esac])dnl
  7824. -$1="$ac_cv_path_$1"
  7825. -if test -n "[$]$1"; then
  7826. - AC_MSG_RESULT([$]$1)
  7827. -else
  7828. - AC_MSG_RESULT(no)
  7829. -fi
  7830. -AC_SUBST($1)dnl
  7831. -])
  7832. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  7833. + ;;
  7834. -# Check whether LC_MESSAGES is available in <locale.h>.
  7835. -# Ulrich Drepper <drepper@cygnus.com>, 1995.
  7836. -#
  7837. -# This file can be copied and used freely without restrictions. It can
  7838. -# be used in projects which are not available under the GNU Public License
  7839. -# but which still want to provide support for the GNU gettext functionality.
  7840. -# Please note that the actual code is *not* freely available.
  7841. + solaris*)
  7842. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  7843. + if test "$GCC" = yes; then
  7844. + wlarc='${wl}'
  7845. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7846. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7847. + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7848. + else
  7849. + wlarc=''
  7850. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7851. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7852. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7853. + fi
  7854. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7855. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7856. + case $host_os in
  7857. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  7858. + *)
  7859. + # The compiler driver will combine linker options so we
  7860. + # cannot just pass the convience library names through
  7861. + # without $wl, iff we do not link with $LD.
  7862. + # Luckily, gcc supports the same syntax we need for Sun Studio.
  7863. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  7864. + case $wlarc in
  7865. + '')
  7866. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
  7867. + *)
  7868. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  7869. + esac ;;
  7870. + esac
  7871. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  7872. + ;;
  7873. -# serial 1
  7874. + sunos4*)
  7875. + if test "x$host_vendor" = xsequent; then
  7876. + # Use $CC to link under sequent, because it throws in some extra .o
  7877. + # files that make .init and .fini sections work.
  7878. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7879. + else
  7880. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7881. + fi
  7882. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7883. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7884. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  7885. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7886. + ;;
  7887. -AC_DEFUN(AM_LC_MESSAGES,
  7888. - [if test $ac_cv_header_locale_h = yes; then
  7889. - AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
  7890. - [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
  7891. - am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
  7892. - if test $am_cv_val_LC_MESSAGES = yes; then
  7893. - AC_DEFINE(HAVE_LC_MESSAGES)
  7894. - fi
  7895. - fi])
  7896. + sysv4)
  7897. + case $host_vendor in
  7898. + sni)
  7899. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7900. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  7901. + ;;
  7902. + siemens)
  7903. + ## LD is ld it makes a PLAMLIB
  7904. + ## CC just makes a GrossModule.
  7905. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7906. + _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  7907. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  7908. + ;;
  7909. + motorola)
  7910. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7911. + _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  7912. + ;;
  7913. + esac
  7914. + runpath_var='LD_RUN_PATH'
  7915. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7916. + ;;
  7917. -# Do all the work for Automake. This macro actually does too much --
  7918. -# some checks are only needed if your package does certain things.
  7919. -# But this isn't really a big deal.
  7920. + sysv4.3*)
  7921. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7922. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7923. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  7924. + ;;
  7925. -# serial 1
  7926. + sysv4*MP*)
  7927. + if test -d /usr/nec; then
  7928. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7929. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7930. + runpath_var=LD_RUN_PATH
  7931. + hardcode_runpath_var=yes
  7932. + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  7933. + fi
  7934. + ;;
  7935. -dnl Usage:
  7936. -dnl AM_INIT_AUTOMAKE(package,version, [no-define])
  7937. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
  7938. + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  7939. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  7940. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7941. + runpath_var='LD_RUN_PATH'
  7942. +
  7943. + if test "$GCC" = yes; then
  7944. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7945. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7946. + else
  7947. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7948. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7949. + fi
  7950. + ;;
  7951. -AC_DEFUN(AM_INIT_AUTOMAKE,
  7952. -[AC_REQUIRE([AC_PROG_INSTALL])
  7953. -PACKAGE=[$1]
  7954. -AC_SUBST(PACKAGE)
  7955. -VERSION=[$2]
  7956. -AC_SUBST(VERSION)
  7957. -dnl test to see if srcdir already configured
  7958. -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  7959. - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  7960. -fi
  7961. -ifelse([$3],,
  7962. -AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  7963. -AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
  7964. -AC_REQUIRE([AM_SANITY_CHECK])
  7965. -AC_REQUIRE([AC_ARG_PROGRAM])
  7966. -dnl FIXME This is truly gross.
  7967. -missing_dir=`cd $ac_aux_dir && pwd`
  7968. -AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
  7969. -AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
  7970. -AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
  7971. -AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
  7972. -AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
  7973. -AC_REQUIRE([AC_PROG_MAKE_SET])])
  7974. + sysv5* | sco3.2v5* | sco5v6*)
  7975. + # Note: We can NOT use -z defs as we might desire, because we do not
  7976. + # link with -lc, and that would cause any symbols used from libc to
  7977. + # always be unresolved, which means just about no library would
  7978. + # ever link correctly. If we're not using GNU ld we use -z text
  7979. + # though, which does catch some bad symbols but isn't as heavy-handed
  7980. + # as -z defs.
  7981. + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  7982. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  7983. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  7984. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7985. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  7986. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  7987. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  7988. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  7989. + runpath_var='LD_RUN_PATH'
  7990. +
  7991. + if test "$GCC" = yes; then
  7992. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7993. + _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'
  7994. + else
  7995. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7996. + _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'
  7997. + fi
  7998. + ;;
  7999. -#
  8000. -# Check to make sure that the build environment is sane.
  8001. -#
  8002. + uts4*)
  8003. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8004. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8005. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8006. + ;;
  8007. -AC_DEFUN(AM_SANITY_CHECK,
  8008. -[AC_MSG_CHECKING([whether build environment is sane])
  8009. -# Just in case
  8010. -sleep 1
  8011. -echo timestamp > conftestfile
  8012. -# Do `set' in a subshell so we don't clobber the current shell's
  8013. -# arguments. Must try -L first in case configure is actually a
  8014. -# symlink; some systems play weird games with the mod time of symlinks
  8015. -# (eg FreeBSD returns the mod time of the symlink's containing
  8016. -# directory).
  8017. -if (
  8018. - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  8019. - if test "[$]*" = "X"; then
  8020. - # -L didn't work.
  8021. - set X `ls -t $srcdir/configure conftestfile`
  8022. - fi
  8023. - if test "[$]*" != "X $srcdir/configure conftestfile" \
  8024. - && test "[$]*" != "X conftestfile $srcdir/configure"; then
  8025. + *)
  8026. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  8027. + ;;
  8028. + esac
  8029. + fi
  8030. +])
  8031. +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  8032. +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  8033. - # If neither matched, then we have a broken ls. This can happen
  8034. - # if, for instance, CONFIG_SHELL is bash and it inherits a
  8035. - # broken ls alias from the environment. This has actually
  8036. - # happened. Such a system could not be considered "sane".
  8037. - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  8038. -alias in your environment])
  8039. - fi
  8040. +#
  8041. +# Do we need to explicitly link libc?
  8042. +#
  8043. +case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  8044. +x|xyes)
  8045. + # Assume -lc should be added
  8046. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  8047. +
  8048. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  8049. + case $_LT_AC_TAGVAR(archive_cmds, $1) in
  8050. + *'~'*)
  8051. + # FIXME: we may have to deal with multi-command sequences.
  8052. + ;;
  8053. + '$CC '*)
  8054. + # Test whether the compiler implicitly links with -lc since on some
  8055. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8056. + # to ld, don't add -lc before -lgcc.
  8057. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  8058. + $rm conftest*
  8059. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  8060. +
  8061. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  8062. + soname=conftest
  8063. + lib=conftest
  8064. + libobjs=conftest.$ac_objext
  8065. + deplibs=
  8066. + wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  8067. + pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  8068. + compiler_flags=-v
  8069. + linker_flags=-v
  8070. + verstring=
  8071. + output_objdir=.
  8072. + libname=conftest
  8073. + lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  8074. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  8075. + if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  8076. + then
  8077. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  8078. + else
  8079. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  8080. + fi
  8081. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  8082. + else
  8083. + cat conftest.err 1>&5
  8084. + fi
  8085. + $rm conftest*
  8086. + AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  8087. + ;;
  8088. + esac
  8089. + fi
  8090. + ;;
  8091. +esac
  8092. +])# AC_LIBTOOL_PROG_LD_SHLIBS
  8093. - test "[$]2" = conftestfile
  8094. - )
  8095. -then
  8096. - # Ok.
  8097. - :
  8098. -else
  8099. - AC_MSG_ERROR([newly created file is older than distributed files!
  8100. -Check your system clock])
  8101. -fi
  8102. -rm -f conftest*
  8103. -AC_MSG_RESULT(yes)])
  8104. -dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
  8105. -dnl The program must properly implement --version.
  8106. -AC_DEFUN(AM_MISSING_PROG,
  8107. -[AC_MSG_CHECKING(for working $2)
  8108. -# Run test in a subshell; some versions of sh will print an error if
  8109. -# an executable is not found, even if stderr is redirected.
  8110. -# Redirect stdin to placate older versions of autoconf. Sigh.
  8111. -if ($2 --version) < /dev/null > /dev/null 2>&1; then
  8112. - $1=$2
  8113. - AC_MSG_RESULT(found)
  8114. -else
  8115. - $1="$3/missing $2"
  8116. - AC_MSG_RESULT(missing)
  8117. -fi
  8118. -AC_SUBST($1)])
  8119. +# _LT_AC_FILE_LTDLL_C
  8120. +# -------------------
  8121. +# Be careful that the start marker always follows a newline.
  8122. +AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  8123. +# /* ltdll.c starts here */
  8124. +# #define WIN32_LEAN_AND_MEAN
  8125. +# #include <windows.h>
  8126. +# #undef WIN32_LEAN_AND_MEAN
  8127. +# #include <stdio.h>
  8128. +#
  8129. +# #ifndef __CYGWIN__
  8130. +# # ifdef __CYGWIN32__
  8131. +# # define __CYGWIN__ __CYGWIN32__
  8132. +# # endif
  8133. +# #endif
  8134. +#
  8135. +# #ifdef __cplusplus
  8136. +# extern "C" {
  8137. +# #endif
  8138. +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  8139. +# #ifdef __cplusplus
  8140. +# }
  8141. +# #endif
  8142. +#
  8143. +# #ifdef __CYGWIN__
  8144. +# #include <cygwin/cygwin_dll.h>
  8145. +# DECLARE_CYGWIN_DLL( DllMain );
  8146. +# #endif
  8147. +# HINSTANCE __hDllInstance_base;
  8148. +#
  8149. +# BOOL APIENTRY
  8150. +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  8151. +# {
  8152. +# __hDllInstance_base = hInst;
  8153. +# return TRUE;
  8154. +# }
  8155. +# /* ltdll.c ends here */
  8156. +])# _LT_AC_FILE_LTDLL_C
  8157. +
  8158. +
  8159. +# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  8160. +# ---------------------------------
  8161. +AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  8162. +
  8163. +
  8164. +# old names
  8165. +AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  8166. +AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  8167. +AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  8168. +AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  8169. +AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  8170. +AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  8171. +AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  8172. +
  8173. +# This is just to silence aclocal about the macro not being used
  8174. +ifelse([AC_DISABLE_FAST_INSTALL])
  8175. +
  8176. +AC_DEFUN([LT_AC_PROG_GCJ],
  8177. +[AC_CHECK_TOOL(GCJ, gcj, no)
  8178. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  8179. + AC_SUBST(GCJFLAGS)
  8180. +])
  8181. -# Like AC_CONFIG_HEADER, but automatically create stamp file.
  8182. +AC_DEFUN([LT_AC_PROG_RC],
  8183. +[AC_CHECK_TOOL(RC, windres, no)
  8184. +])
  8185. -AC_DEFUN(AM_CONFIG_HEADER,
  8186. -[AC_PREREQ([2.12])
  8187. -AC_CONFIG_HEADER([$1])
  8188. -dnl When config.status generates a header, we must update the stamp-h file.
  8189. -dnl This file resides in the same directory as the config header
  8190. -dnl that is generated. We must strip everything past the first ":",
  8191. -dnl and everything past the last "/".
  8192. -AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
  8193. -ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
  8194. -<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
  8195. -<<am_indx=1
  8196. -for am_file in <<$1>>; do
  8197. - case " <<$>>CONFIG_HEADERS " in
  8198. - *" <<$>>am_file "*<<)>>
  8199. - echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
  8200. - ;;
  8201. - esac
  8202. - am_indx=`expr "<<$>>am_indx" + 1`
  8203. -done<<>>dnl>>)
  8204. -changequote([,]))])
  8205. +# NOTE: This macro has been submitted for inclusion into #
  8206. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  8207. +# a released version of Autoconf we should remove this #
  8208. +# macro and use it instead. #
  8209. +# LT_AC_PROG_SED
  8210. +# --------------
  8211. +# Check for a fully-functional sed program, that truncates
  8212. +# as few characters as possible. Prefer GNU sed if found.
  8213. +AC_DEFUN([LT_AC_PROG_SED],
  8214. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  8215. +AC_CACHE_VAL(lt_cv_path_SED,
  8216. +[# Loop through the user's path and test for sed and gsed.
  8217. +# Then use that list of sed's as ones to test for truncation.
  8218. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8219. +for as_dir in $PATH
  8220. +do
  8221. + IFS=$as_save_IFS
  8222. + test -z "$as_dir" && as_dir=.
  8223. + for lt_ac_prog in sed gsed; do
  8224. + for ac_exec_ext in '' $ac_executable_extensions; do
  8225. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  8226. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  8227. + fi
  8228. + done
  8229. + done
  8230. +done
  8231. +lt_ac_max=0
  8232. +lt_ac_count=0
  8233. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  8234. +# along with /bin/sed that truncates output.
  8235. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  8236. + test ! -f $lt_ac_sed && continue
  8237. + cat /dev/null > conftest.in
  8238. + lt_ac_count=0
  8239. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  8240. + # Check for GNU sed and select it if it is found.
  8241. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  8242. + lt_cv_path_SED=$lt_ac_sed
  8243. + break
  8244. + fi
  8245. + while true; do
  8246. + cat conftest.in conftest.in >conftest.tmp
  8247. + mv conftest.tmp conftest.in
  8248. + cp conftest.in conftest.nl
  8249. + echo >>conftest.nl
  8250. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  8251. + cmp -s conftest.out conftest.nl || break
  8252. + # 10000 chars as input seems more than enough
  8253. + test $lt_ac_count -gt 10 && break
  8254. + lt_ac_count=`expr $lt_ac_count + 1`
  8255. + if test $lt_ac_count -gt $lt_ac_max; then
  8256. + lt_ac_max=$lt_ac_count
  8257. + lt_cv_path_SED=$lt_ac_sed
  8258. + fi
  8259. + done
  8260. +done
  8261. +])
  8262. +SED=$lt_cv_path_SED
  8263. +AC_MSG_RESULT([$SED])
  8264. +])
  8265. # Add --enable-maintainer-mode option to configure.
  8266. # From Jim Meyering
  8267. # serial 1
  8268. -AC_DEFUN(AM_MAINTAINER_MODE,
  8269. +AC_DEFUN([AM_MAINTAINER_MODE],
  8270. [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  8271. dnl maintainer-mode is disabled by default
  8272. AC_ARG_ENABLE(maintainer-mode,
  8273. @@ -962,7 +7844,7 @@
  8274. # Define a conditional.
  8275. -AC_DEFUN(AM_CONDITIONAL,
  8276. +AC_DEFUN([AM_CONDITIONAL],
  8277. [AC_SUBST($1_TRUE)
  8278. AC_SUBST($1_FALSE)
  8279. if $2; then
  8280. @@ -991,7 +7873,7 @@
  8281. # program @code{ansi2knr}, which comes with Ghostscript.
  8282. # @end defmac
  8283. -AC_DEFUN(AM_PROG_CC_STDC,
  8284. +AC_DEFUN([AM_PROG_CC_STDC],
  8285. [AC_REQUIRE([AC_PROG_CC])
  8286. AC_BEFORE([$0], [AC_C_INLINE])
  8287. AC_BEFORE([$0], [AC_C_CONST])
  8288. @@ -1258,3 +8140,160 @@
  8289. rm -f conf.glibtest
  8290. ])
  8291. +# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
  8292. +#
  8293. +# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
  8294. +#
  8295. +# This program is free software; you can redistribute it and/or modify
  8296. +# it under the terms of the GNU General Public License as published by
  8297. +# the Free Software Foundation; either version 2 of the License, or
  8298. +# (at your option) any later version.
  8299. +#
  8300. +# This program is distributed in the hope that it will be useful, but
  8301. +# WITHOUT ANY WARRANTY; without even the implied warranty of
  8302. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  8303. +# General Public License for more details.
  8304. +#
  8305. +# You should have received a copy of the GNU General Public License
  8306. +# along with this program; if not, write to the Free Software
  8307. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  8308. +#
  8309. +# As a special exception to the GNU General Public License, if you
  8310. +# distribute this file as part of a program that contains a
  8311. +# configuration script generated by Autoconf, you may include it under
  8312. +# the same distribution terms that you use for the rest of that program.
  8313. +
  8314. +# PKG_PROG_PKG_CONFIG([MIN-VERSION])
  8315. +# ----------------------------------
  8316. +AC_DEFUN([PKG_PROG_PKG_CONFIG],
  8317. +[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
  8318. +m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
  8319. +AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
  8320. +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  8321. + AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
  8322. +fi
  8323. +if test -n "$PKG_CONFIG"; then
  8324. + _pkg_min_version=m4_default([$1], [0.9.0])
  8325. + AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
  8326. + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  8327. + AC_MSG_RESULT([yes])
  8328. + else
  8329. + AC_MSG_RESULT([no])
  8330. + PKG_CONFIG=""
  8331. + fi
  8332. +
  8333. +fi[]dnl
  8334. +])# PKG_PROG_PKG_CONFIG
  8335. +
  8336. +# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  8337. +#
  8338. +# Check to see whether a particular set of modules exists. Similar
  8339. +# to PKG_CHECK_MODULES(), but does not set variables or print errors.
  8340. +#
  8341. +#
  8342. +# Similar to PKG_CHECK_MODULES, make sure that the first instance of
  8343. +# this or PKG_CHECK_MODULES is called, or make sure to call
  8344. +# PKG_CHECK_EXISTS manually
  8345. +# --------------------------------------------------------------
  8346. +AC_DEFUN([PKG_CHECK_EXISTS],
  8347. +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  8348. +if test -n "$PKG_CONFIG" && \
  8349. + AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
  8350. + m4_ifval([$2], [$2], [:])
  8351. +m4_ifvaln([$3], [else
  8352. + $3])dnl
  8353. +fi])
  8354. +
  8355. +
  8356. +# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
  8357. +# ---------------------------------------------
  8358. +m4_define([_PKG_CONFIG],
  8359. +[if test -n "$PKG_CONFIG"; then
  8360. + if test -n "$$1"; then
  8361. + pkg_cv_[]$1="$$1"
  8362. + else
  8363. + PKG_CHECK_EXISTS([$3],
  8364. + [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
  8365. + [pkg_failed=yes])
  8366. + fi
  8367. +else
  8368. + pkg_failed=untried
  8369. +fi[]dnl
  8370. +])# _PKG_CONFIG
  8371. +
  8372. +# _PKG_SHORT_ERRORS_SUPPORTED
  8373. +# -----------------------------
  8374. +AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
  8375. +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  8376. +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8377. + _pkg_short_errors_supported=yes
  8378. +else
  8379. + _pkg_short_errors_supported=no
  8380. +fi[]dnl
  8381. +])# _PKG_SHORT_ERRORS_SUPPORTED
  8382. +
  8383. +
  8384. +# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
  8385. +# [ACTION-IF-NOT-FOUND])
  8386. +#
  8387. +#
  8388. +# Note that if there is a possibility the first call to
  8389. +# PKG_CHECK_MODULES might not happen, you should be sure to include an
  8390. +# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
  8391. +#
  8392. +#
  8393. +# --------------------------------------------------------------
  8394. +AC_DEFUN([PKG_CHECK_MODULES],
  8395. +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  8396. +AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
  8397. +AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
  8398. +
  8399. +pkg_failed=no
  8400. +AC_MSG_CHECKING([for $1])
  8401. +
  8402. +_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
  8403. +_PKG_CONFIG([$1][_LIBS], [libs], [$2])
  8404. +
  8405. +m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
  8406. +and $1[]_LIBS to avoid the need to call pkg-config.
  8407. +See the pkg-config man page for more details.])
  8408. +
  8409. +if test $pkg_failed = yes; then
  8410. + _PKG_SHORT_ERRORS_SUPPORTED
  8411. + if test $_pkg_short_errors_supported = yes; then
  8412. + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
  8413. + else
  8414. + $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
  8415. + fi
  8416. + # Put the nasty error message in config.log where it belongs
  8417. + echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
  8418. +
  8419. + ifelse([$4], , [AC_MSG_ERROR(dnl
  8420. +[Package requirements ($2) were not met:
  8421. +
  8422. +$$1_PKG_ERRORS
  8423. +
  8424. +Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8425. +installed software in a non-standard prefix.
  8426. +
  8427. +_PKG_TEXT
  8428. +])],
  8429. + [$4])
  8430. +elif test $pkg_failed = untried; then
  8431. + ifelse([$4], , [AC_MSG_FAILURE(dnl
  8432. +[The pkg-config script could not be found or is too old. Make sure it
  8433. +is in your PATH or set the PKG_CONFIG environment variable to the full
  8434. +path to pkg-config.
  8435. +
  8436. +_PKG_TEXT
  8437. +
  8438. +To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
  8439. + [$4])
  8440. +else
  8441. + $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
  8442. + $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
  8443. + AC_MSG_RESULT([yes])
  8444. + ifelse([$3], , :, [$3])
  8445. +fi[]dnl
  8446. +])# PKG_CHECK_MODULES
  8447. +
  8448. diff -urN gtk+-1.2.10.orig/config.h.in gtk+-1.2.10/config.h.in
  8449. --- gtk+-1.2.10.orig/config.h.in 2001-02-27 00:49:58.000000000 -0700
  8450. +++ gtk+-1.2.10/config.h.in 2006-07-09 02:29:44.000000000 -0600
  8451. @@ -1,59 +1,19 @@
  8452. -/* config.h.in. Generated automatically from configure.in by autoheader. */
  8453. +/* config.h.in. Generated from configure.in by autoheader. */
  8454. +/* acconfig.h
  8455. + This file is in the public domain.
  8456. +
  8457. + Descriptive text for the C preprocessor macros that
  8458. + the distributed Autoconf macros can define.
  8459. + No software package will use all of them; autoheader copies the ones
  8460. + your configure.in uses into your configuration header file templates.
  8461. +
  8462. + The entries are in sort -df order: alphabetical, case insensitive,
  8463. + ignoring punctuation (such as underscores). Although this order
  8464. + can split up related entries, it makes it easier to check whether
  8465. + a given entry is in the file.
  8466. -/* Define if using alloca.c. */
  8467. -#undef C_ALLOCA
  8468. -
  8469. -/* Define to empty if the keyword does not work. */
  8470. -#undef const
  8471. -
  8472. -/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
  8473. - This function is required for alloca.c support on those systems. */
  8474. -#undef CRAY_STACKSEG_END
  8475. -
  8476. -/* Define to `int' if <sys/types.h> doesn't define. */
  8477. -#undef gid_t
  8478. -
  8479. -/* Define if you have alloca, as a function or macro. */
  8480. -#undef HAVE_ALLOCA
  8481. -
  8482. -/* Define if you have <alloca.h> and it should be used (not on Ultrix). */
  8483. -#undef HAVE_ALLOCA_H
  8484. -
  8485. -/* Define if you have a working `mmap' system call. */
  8486. -#undef HAVE_MMAP
  8487. -
  8488. -/* Define as __inline if that's what the C compiler calls it. */
  8489. -#undef inline
  8490. -
  8491. -/* Define to `long' if <sys/types.h> doesn't define. */
  8492. -#undef off_t
  8493. -
  8494. -/* Define if you need to in order for stat and other things to work. */
  8495. -#undef _POSIX_SOURCE
  8496. -
  8497. -/* Define as the return type of signal handlers (int or void). */
  8498. -#undef RETSIGTYPE
  8499. -
  8500. -/* Define to `unsigned' if <sys/types.h> doesn't define. */
  8501. -#undef size_t
  8502. -
  8503. -/* If using the C implementation of alloca, define if you know the
  8504. - direction of stack growth for your system; otherwise it will be
  8505. - automatically deduced at run-time.
  8506. - STACK_DIRECTION > 0 => grows toward higher addresses
  8507. - STACK_DIRECTION < 0 => grows toward lower addresses
  8508. - STACK_DIRECTION = 0 => direction of growth unknown
  8509. - */
  8510. -#undef STACK_DIRECTION
  8511. -
  8512. -/* Define if you have the ANSI C header files. */
  8513. -#undef STDC_HEADERS
  8514. -
  8515. -/* Define to `int' if <sys/types.h> doesn't define. */
  8516. -#undef uid_t
  8517. -
  8518. -/* Define if the X Window System is missing or not being used. */
  8519. -#undef X_DISPLAY_MISSING
  8520. + Leave the following blank line there!! Autoheader needs it. */
  8521. +
  8522. /* Other stuff */
  8523. #undef ENABLE_NLS
  8524. @@ -72,6 +32,8 @@
  8525. #undef NO_FD_SET
  8526. +#undef RESOURCE_BASE
  8527. +
  8528. /* Define to use X11R6 additions to XIM */
  8529. #undef USE_X11R6_XIM
  8530. @@ -86,77 +48,122 @@
  8531. /* Define as the return type of signal handlers (int or void). */
  8532. #undef RETSIGTYPE
  8533. -/* Define if you have the __argz_count function. */
  8534. -#undef HAVE___ARGZ_COUNT
  8535. +/* Most machines will be happy with int or void. IRIX requires '...' */
  8536. +#undef SIGNAL_ARG_TYPE
  8537. -/* Define if you have the __argz_next function. */
  8538. -#undef HAVE___ARGZ_NEXT
  8539. +/* #undef PACKAGE */
  8540. +/* #undef VERSION */
  8541. -/* Define if you have the __argz_stringify function. */
  8542. -#undef HAVE___ARGZ_STRINGIFY
  8543. +
  8544. +/* Leave that blank line there!! Autoheader needs it.
  8545. + If you're adding to this file, keep in mind:
  8546. + The entries are in sort -df order: alphabetical, case insensitive,
  8547. + ignoring punctuation (such as underscores). */
  8548. +
  8549. +/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
  8550. + systems. This function is required for `alloca.c' support on those systems.
  8551. + */
  8552. +#undef CRAY_STACKSEG_END
  8553. +
  8554. +/* Define to 1 if using `alloca.c'. */
  8555. +#undef C_ALLOCA
  8556. +
  8557. +/* Define to 1 if you have `alloca', as a function or macro. */
  8558. +#undef HAVE_ALLOCA
  8559. -/* Define if you have the dcgettext function. */
  8560. +/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
  8561. + */
  8562. +#undef HAVE_ALLOCA_H
  8563. +
  8564. +/* Define to 1 if you have the <argz.h> header file. */
  8565. +#undef HAVE_ARGZ_H
  8566. +
  8567. +/* Define if the wctype function is broken */
  8568. +#undef HAVE_BROKEN_WCTYPE
  8569. +
  8570. +/* Define to 1 if you have the `dcgettext' function. */
  8571. #undef HAVE_DCGETTEXT
  8572. -/* Define if you have the getcwd function. */
  8573. +/* Define to 1 if you have the `getcwd' function. */
  8574. #undef HAVE_GETCWD
  8575. -/* Define if you have the getpagesize function. */
  8576. +/* Define to 1 if you have the `getpagesize' function. */
  8577. #undef HAVE_GETPAGESIZE
  8578. -/* Define if you have the getresuid function. */
  8579. +/* Define to 1 if you have the `getresuid' function. */
  8580. #undef HAVE_GETRESUID
  8581. -/* Define if you have the munmap function. */
  8582. +/* Define to 1 if you have the <inttypes.h> header file. */
  8583. +#undef HAVE_INTTYPES_H
  8584. +
  8585. +/* Define to 1 if you have the `i' library (-li). */
  8586. +#undef HAVE_LIBI
  8587. +
  8588. +/* Define to 1 if you have the <limits.h> header file. */
  8589. +#undef HAVE_LIMITS_H
  8590. +
  8591. +/* Define to 1 if you have the <locale.h> header file. */
  8592. +#undef HAVE_LOCALE_H
  8593. +
  8594. +/* Define to 1 if you have the <malloc.h> header file. */
  8595. +#undef HAVE_MALLOC_H
  8596. +
  8597. +/* Define to 1 if you have the <memory.h> header file. */
  8598. +#undef HAVE_MEMORY_H
  8599. +
  8600. +/* Define to 1 if you have a working `mmap' system call. */
  8601. +#undef HAVE_MMAP
  8602. +
  8603. +/* Define to 1 if you have the `munmap' function. */
  8604. #undef HAVE_MUNMAP
  8605. -/* Define if you have the putenv function. */
  8606. +/* Define to 1 if you have the <nl_types.h> header file. */
  8607. +#undef HAVE_NL_TYPES_H
  8608. +
  8609. +/* Define to 1 if you have the `putenv' function. */
  8610. #undef HAVE_PUTENV
  8611. -/* Define if you have the setenv function. */
  8612. +/* Define to 1 if you have the `setenv' function. */
  8613. #undef HAVE_SETENV
  8614. -/* Define if you have the setlocale function. */
  8615. +/* Define to 1 if you have the `setlocale' function. */
  8616. #undef HAVE_SETLOCALE
  8617. -/* Define if you have the stpcpy function. */
  8618. +/* Define to 1 if you have the <stdint.h> header file. */
  8619. +#undef HAVE_STDINT_H
  8620. +
  8621. +/* Define to 1 if you have the <stdlib.h> header file. */
  8622. +#undef HAVE_STDLIB_H
  8623. +
  8624. +/* Define to 1 if you have the `stpcpy' function. */
  8625. #undef HAVE_STPCPY
  8626. -/* Define if you have the strcasecmp function. */
  8627. +/* Define to 1 if you have the `strcasecmp' function. */
  8628. #undef HAVE_STRCASECMP
  8629. -/* Define if you have the strchr function. */
  8630. +/* Define to 1 if you have the `strchr' function. */
  8631. #undef HAVE_STRCHR
  8632. -/* Define if you have the strdup function. */
  8633. +/* Define to 1 if you have the `strdup' function. */
  8634. #undef HAVE_STRDUP
  8635. -/* Define if you have the <argz.h> header file. */
  8636. -#undef HAVE_ARGZ_H
  8637. -
  8638. -/* Define if you have the <limits.h> header file. */
  8639. -#undef HAVE_LIMITS_H
  8640. +/* Define to 1 if you have the <strings.h> header file. */
  8641. +#undef HAVE_STRINGS_H
  8642. -/* Define if you have the <locale.h> header file. */
  8643. -#undef HAVE_LOCALE_H
  8644. -
  8645. -/* Define if you have the <malloc.h> header file. */
  8646. -#undef HAVE_MALLOC_H
  8647. -
  8648. -/* Define if you have the <nl_types.h> header file. */
  8649. -#undef HAVE_NL_TYPES_H
  8650. -
  8651. -/* Define if you have the <string.h> header file. */
  8652. +/* Define to 1 if you have the <string.h> header file. */
  8653. #undef HAVE_STRING_H
  8654. -/* Define if you have the <sys/param.h> header file. */
  8655. +/* Define to 1 if you have the <sys/param.h> header file. */
  8656. #undef HAVE_SYS_PARAM_H
  8657. -/* Define if you have the <unistd.h> header file. */
  8658. -#undef HAVE_UNISTD_H
  8659. +/* Define to 1 if you have the <sys/stat.h> header file. */
  8660. +#undef HAVE_SYS_STAT_H
  8661. -/* Define if you have the i library (-li). */
  8662. -#undef HAVE_LIBI
  8663. +/* Define to 1 if you have the <sys/types.h> header file. */
  8664. +#undef HAVE_SYS_TYPES_H
  8665. +
  8666. +/* Define to 1 if you have the <unistd.h> header file. */
  8667. +#undef HAVE_UNISTD_H
  8668. /* Define if wchar.h exists */
  8669. #undef HAVE_WCHAR_H
  8670. @@ -164,6 +171,70 @@
  8671. /* Define if wctype.h exists */
  8672. #undef HAVE_WCTYPE_H
  8673. -/* Define if the wctype function is broken */
  8674. -#undef HAVE_BROKEN_WCTYPE
  8675. +/* Define to 1 if you have the `__argz_count' function. */
  8676. +#undef HAVE___ARGZ_COUNT
  8677. +
  8678. +/* Define to 1 if you have the `__argz_next' function. */
  8679. +#undef HAVE___ARGZ_NEXT
  8680. +
  8681. +/* Define to 1 if you have the `__argz_stringify' function. */
  8682. +#undef HAVE___ARGZ_STRINGIFY
  8683. +/* Name of package */
  8684. +#undef PACKAGE
  8685. +
  8686. +/* Define to the address where bug reports for this package should be sent. */
  8687. +#undef PACKAGE_BUGREPORT
  8688. +
  8689. +/* Define to the full name of this package. */
  8690. +#undef PACKAGE_NAME
  8691. +
  8692. +/* Define to the full name and version of this package. */
  8693. +#undef PACKAGE_STRING
  8694. +
  8695. +/* Define to the one symbol short name of this package. */
  8696. +#undef PACKAGE_TARNAME
  8697. +
  8698. +/* Define to the version of this package. */
  8699. +#undef PACKAGE_VERSION
  8700. +
  8701. +/* Define as the return type of signal handlers (`int' or `void'). */
  8702. +#undef RETSIGTYPE
  8703. +
  8704. +/* If using the C implementation of alloca, define if you know the
  8705. + direction of stack growth for your system; otherwise it will be
  8706. + automatically deduced at run-time.
  8707. + STACK_DIRECTION > 0 => grows toward higher addresses
  8708. + STACK_DIRECTION < 0 => grows toward lower addresses
  8709. + STACK_DIRECTION = 0 => direction of growth unknown */
  8710. +#undef STACK_DIRECTION
  8711. +
  8712. +/* Define to 1 if you have the ANSI C header files. */
  8713. +#undef STDC_HEADERS
  8714. +
  8715. +/* Version number of package */
  8716. +#undef VERSION
  8717. +
  8718. +/* Define to 1 if the X Window System is missing or not being used. */
  8719. +#undef X_DISPLAY_MISSING
  8720. +
  8721. +/* Define to empty if `const' does not conform to ANSI C. */
  8722. +#undef const
  8723. +
  8724. +/* Define to `int' if <sys/types.h> doesn't define. */
  8725. +#undef gid_t
  8726. +
  8727. +/* Define to `__inline__' or `__inline' if that's what the C compiler
  8728. + calls it, or to nothing if 'inline' is not supported under any name. */
  8729. +#ifndef __cplusplus
  8730. +#undef inline
  8731. +#endif
  8732. +
  8733. +/* Define to `long' if <sys/types.h> does not define. */
  8734. +#undef off_t
  8735. +
  8736. +/* Define to `unsigned' if <sys/types.h> does not define. */
  8737. +#undef size_t
  8738. +
  8739. +/* Define to `int' if <sys/types.h> doesn't define. */
  8740. +#undef uid_t
  8741. diff -urN gtk+-1.2.10.orig/configure gtk+-1.2.10/configure
  8742. --- gtk+-1.2.10.orig/configure 2001-03-28 14:11:45.000000000 -0700
  8743. +++ gtk+-1.2.10/configure 2006-07-09 02:29:47.000000000 -0600
  8744. @@ -1,16 +1,245 @@
  8745. #! /bin/sh
  8746. -
  8747. # Guess values for system-dependent variables and create Makefiles.
  8748. -# Generated automatically using autoconf version 2.13
  8749. -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  8750. +# Generated by GNU Autoconf 2.59.
  8751. #
  8752. +# Copyright (C) 2003 Free Software Foundation, Inc.
  8753. # This configure script is free software; the Free Software Foundation
  8754. # gives unlimited permission to copy, distribute and modify it.
  8755. +## --------------------- ##
  8756. +## M4sh Initialization. ##
  8757. +## --------------------- ##
  8758. +
  8759. +# Be Bourne compatible
  8760. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  8761. + emulate sh
  8762. + NULLCMD=:
  8763. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  8764. + # is contrary to our usage. Disable this feature.
  8765. + alias -g '${1+"$@"}'='"$@"'
  8766. +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  8767. + set -o posix
  8768. +fi
  8769. +DUALCASE=1; export DUALCASE # for MKS sh
  8770. +
  8771. +# Support unset when possible.
  8772. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  8773. + as_unset=unset
  8774. +else
  8775. + as_unset=false
  8776. +fi
  8777. +
  8778. +
  8779. +# Work around bugs in pre-3.0 UWIN ksh.
  8780. +$as_unset ENV MAIL MAILPATH
  8781. +PS1='$ '
  8782. +PS2='> '
  8783. +PS4='+ '
  8784. +
  8785. +# NLS nuisances.
  8786. +for as_var in \
  8787. + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  8788. + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  8789. + LC_TELEPHONE LC_TIME
  8790. +do
  8791. + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  8792. + eval $as_var=C; export $as_var
  8793. + else
  8794. + $as_unset $as_var
  8795. + fi
  8796. +done
  8797. +
  8798. +# Required to use basename.
  8799. +if expr a : '\(a\)' >/dev/null 2>&1; then
  8800. + as_expr=expr
  8801. +else
  8802. + as_expr=false
  8803. +fi
  8804. +
  8805. +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  8806. + as_basename=basename
  8807. +else
  8808. + as_basename=false
  8809. +fi
  8810. +
  8811. +
  8812. +# Name of the executable.
  8813. +as_me=`$as_basename "$0" ||
  8814. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8815. + X"$0" : 'X\(//\)$' \| \
  8816. + X"$0" : 'X\(/\)$' \| \
  8817. + . : '\(.\)' 2>/dev/null ||
  8818. +echo X/"$0" |
  8819. + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  8820. + /^X\/\(\/\/\)$/{ s//\1/; q; }
  8821. + /^X\/\(\/\).*/{ s//\1/; q; }
  8822. + s/.*/./; q'`
  8823. +
  8824. +
  8825. +# PATH needs CR, and LINENO needs CR and PATH.
  8826. +# Avoid depending upon Character Ranges.
  8827. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8828. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8829. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8830. +as_cr_digits='0123456789'
  8831. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  8832. +
  8833. +# The user is always right.
  8834. +if test "${PATH_SEPARATOR+set}" != set; then
  8835. + echo "#! /bin/sh" >conf$$.sh
  8836. + echo "exit 0" >>conf$$.sh
  8837. + chmod +x conf$$.sh
  8838. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8839. + PATH_SEPARATOR=';'
  8840. + else
  8841. + PATH_SEPARATOR=:
  8842. + fi
  8843. + rm -f conf$$.sh
  8844. +fi
  8845. +
  8846. +
  8847. + as_lineno_1=$LINENO
  8848. + as_lineno_2=$LINENO
  8849. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  8850. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  8851. + test "x$as_lineno_3" = "x$as_lineno_2" || {
  8852. + # Find who we are. Look in the path if we contain no path at all
  8853. + # relative or not.
  8854. + case $0 in
  8855. + *[\\/]* ) as_myself=$0 ;;
  8856. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8857. +for as_dir in $PATH
  8858. +do
  8859. + IFS=$as_save_IFS
  8860. + test -z "$as_dir" && as_dir=.
  8861. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8862. +done
  8863. +
  8864. + ;;
  8865. + esac
  8866. + # We did not find ourselves, most probably we were run as `sh COMMAND'
  8867. + # in which case we are not to be found in the path.
  8868. + if test "x$as_myself" = x; then
  8869. + as_myself=$0
  8870. + fi
  8871. + if test ! -f "$as_myself"; then
  8872. + { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  8873. + { (exit 1); exit 1; }; }
  8874. + fi
  8875. + case $CONFIG_SHELL in
  8876. + '')
  8877. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8878. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  8879. +do
  8880. + IFS=$as_save_IFS
  8881. + test -z "$as_dir" && as_dir=.
  8882. + for as_base in sh bash ksh sh5; do
  8883. + case $as_dir in
  8884. + /*)
  8885. + if ("$as_dir/$as_base" -c '
  8886. + as_lineno_1=$LINENO
  8887. + as_lineno_2=$LINENO
  8888. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  8889. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  8890. + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  8891. + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  8892. + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  8893. + CONFIG_SHELL=$as_dir/$as_base
  8894. + export CONFIG_SHELL
  8895. + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  8896. + fi;;
  8897. + esac
  8898. + done
  8899. +done
  8900. +;;
  8901. + esac
  8902. +
  8903. + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  8904. + # uniformly replaced by the line number. The first 'sed' inserts a
  8905. + # line-number line before each line; the second 'sed' does the real
  8906. + # work. The second script uses 'N' to pair each line-number line
  8907. + # with the numbered line, and appends trailing '-' during
  8908. + # substitution so that $LINENO is not a special case at line end.
  8909. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  8910. + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  8911. + sed '=' <$as_myself |
  8912. + sed '
  8913. + N
  8914. + s,$,-,
  8915. + : loop
  8916. + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  8917. + t loop
  8918. + s,-$,,
  8919. + s,^['$as_cr_digits']*\n,,
  8920. + ' >$as_me.lineno &&
  8921. + chmod +x $as_me.lineno ||
  8922. + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  8923. + { (exit 1); exit 1; }; }
  8924. +
  8925. + # Don't try to exec as it changes $[0], causing all sort of problems
  8926. + # (the dirname of $[0] is not the place where we might find the
  8927. + # original and so on. Autoconf is especially sensible to this).
  8928. + . ./$as_me.lineno
  8929. + # Exit status is that of the last command.
  8930. + exit
  8931. +}
  8932. +
  8933. +
  8934. +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  8935. + *c*,-n*) ECHO_N= ECHO_C='
  8936. +' ECHO_T=' ' ;;
  8937. + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  8938. + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  8939. +esac
  8940. +
  8941. +if expr a : '\(a\)' >/dev/null 2>&1; then
  8942. + as_expr=expr
  8943. +else
  8944. + as_expr=false
  8945. +fi
  8946. +
  8947. +rm -f conf$$ conf$$.exe conf$$.file
  8948. +echo >conf$$.file
  8949. +if ln -s conf$$.file conf$$ 2>/dev/null; then
  8950. + # We could just check for DJGPP; but this test a) works b) is more generic
  8951. + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  8952. + if test -f conf$$.exe; then
  8953. + # Don't use ln at all; we don't have any links
  8954. + as_ln_s='cp -p'
  8955. + else
  8956. + as_ln_s='ln -s'
  8957. + fi
  8958. +elif ln conf$$.file conf$$ 2>/dev/null; then
  8959. + as_ln_s=ln
  8960. +else
  8961. + as_ln_s='cp -p'
  8962. +fi
  8963. +rm -f conf$$ conf$$.exe conf$$.file
  8964. +
  8965. +if mkdir -p . 2>/dev/null; then
  8966. + as_mkdir_p=:
  8967. +else
  8968. + test -d ./-p && rmdir ./-p
  8969. + as_mkdir_p=false
  8970. +fi
  8971. +
  8972. +as_executable_p="test -f"
  8973. +
  8974. +# Sed expression to map a string onto a valid CPP name.
  8975. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8976. +
  8977. +# Sed expression to map a string onto a valid variable name.
  8978. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8979. +
  8980. +
  8981. +# IFS
  8982. +# We need space, tab and new line, in precisely that order.
  8983. +as_nl='
  8984. +'
  8985. +IFS=" $as_nl"
  8986. +
  8987. +# CDPATH.
  8988. +$as_unset CDPATH
  8989. -# Defaults:
  8990. -ac_help=
  8991. -ac_default_prefix=/usr/local
  8992. -# Any additions from configure.in:
  8993. #
  8994. # Making releases:
  8995. # GTK_MICRO_VERSION += 1;
  8996. @@ -26,66 +255,246 @@
  8997. GTK_INTERFACE_AGE=1
  8998. GTK_BINARY_AGE=10
  8999. GTK_VERSION=$GTK_MAJOR_VERSION.$GTK_MINOR_VERSION.$GTK_MICRO_VERSION
  9000. -ac_help="$ac_help
  9001. - --enable-shared[=PKGS] build shared libraries [default=yes]"
  9002. -ac_help="$ac_help
  9003. - --enable-static[=PKGS] build static libraries [default=yes]"
  9004. -ac_help="$ac_help
  9005. - --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
  9006. -ac_help="$ac_help
  9007. - --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
  9008. -ac_help="$ac_help
  9009. - --disable-libtool-lock avoid locking (might break parallel builds)"
  9010. -ac_help="$ac_help
  9011. - --enable-maintainer-mode enable make rules and dependencies not useful
  9012. - (and sometimes confusing) to the casual installer"
  9013. +
  9014. +
  9015. +# Check that we are running under the correct shell.
  9016. +SHELL=${CONFIG_SHELL-/bin/sh}
  9017. +
  9018. +case X$ECHO in
  9019. +X*--fallback-echo)
  9020. + # Remove one level of quotation (which was required for Make).
  9021. + ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  9022. + ;;
  9023. +esac
  9024. +
  9025. +echo=${ECHO-echo}
  9026. +if test "X$1" = X--no-reexec; then
  9027. + # Discard the --no-reexec flag, and continue.
  9028. + shift
  9029. +elif test "X$1" = X--fallback-echo; then
  9030. + # Avoid inline document here, it may be left over
  9031. + :
  9032. +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  9033. + # Yippee, $echo works!
  9034. + :
  9035. +else
  9036. + # Restart under the correct shell.
  9037. + exec $SHELL "$0" --no-reexec ${1+"$@"}
  9038. +fi
  9039. +
  9040. +if test "X$1" = X--fallback-echo; then
  9041. + # used as fallback echo
  9042. + shift
  9043. + cat <<EOF
  9044. +$*
  9045. +EOF
  9046. + exit 0
  9047. +fi
  9048. +
  9049. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  9050. +# if CDPATH is set.
  9051. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9052. +
  9053. +if test -z "$ECHO"; then
  9054. +if test "X${echo_test_string+set}" != Xset; then
  9055. +# find a string as large as possible, as long as the shell can cope with it
  9056. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  9057. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  9058. + if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  9059. + echo_test_string=`eval $cmd` &&
  9060. + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  9061. + then
  9062. + break
  9063. + fi
  9064. + done
  9065. +fi
  9066. +
  9067. +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  9068. + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  9069. + test "X$echo_testing_string" = "X$echo_test_string"; then
  9070. + :
  9071. +else
  9072. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  9073. + # backslashes. This makes it impossible to quote backslashes using
  9074. + # echo "$something" | sed 's/\\/\\\\/g'
  9075. + #
  9076. + # So, first we look for a working echo in the user's PATH.
  9077. +
  9078. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9079. + for dir in $PATH /usr/ucb; do
  9080. + IFS="$lt_save_ifs"
  9081. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  9082. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  9083. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  9084. + test "X$echo_testing_string" = "X$echo_test_string"; then
  9085. + echo="$dir/echo"
  9086. + break
  9087. + fi
  9088. + done
  9089. + IFS="$lt_save_ifs"
  9090. +
  9091. + if test "X$echo" = Xecho; then
  9092. + # We didn't find a better echo, so look for alternatives.
  9093. + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  9094. + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  9095. + test "X$echo_testing_string" = "X$echo_test_string"; then
  9096. + # This shell has a builtin print -r that does the trick.
  9097. + echo='print -r'
  9098. + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  9099. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  9100. + # If we have ksh, try running configure again with it.
  9101. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  9102. + export ORIGINAL_CONFIG_SHELL
  9103. + CONFIG_SHELL=/bin/ksh
  9104. + export CONFIG_SHELL
  9105. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  9106. + else
  9107. + # Try using printf.
  9108. + echo='printf %s\n'
  9109. + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  9110. + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  9111. + test "X$echo_testing_string" = "X$echo_test_string"; then
  9112. + # Cool, printf works
  9113. + :
  9114. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  9115. + test "X$echo_testing_string" = 'X\t' &&
  9116. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  9117. + test "X$echo_testing_string" = "X$echo_test_string"; then
  9118. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  9119. + export CONFIG_SHELL
  9120. + SHELL="$CONFIG_SHELL"
  9121. + export SHELL
  9122. + echo="$CONFIG_SHELL $0 --fallback-echo"
  9123. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  9124. + test "X$echo_testing_string" = 'X\t' &&
  9125. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  9126. + test "X$echo_testing_string" = "X$echo_test_string"; then
  9127. + echo="$CONFIG_SHELL $0 --fallback-echo"
  9128. + else
  9129. + # maybe with a smaller string...
  9130. + prev=:
  9131. +
  9132. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  9133. + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  9134. + then
  9135. + break
  9136. + fi
  9137. + prev="$cmd"
  9138. + done
  9139. +
  9140. + if test "$prev" != 'sed 50q "$0"'; then
  9141. + echo_test_string=`eval $prev`
  9142. + export echo_test_string
  9143. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  9144. + else
  9145. + # Oops. We lost completely, so just stick with echo.
  9146. + echo=echo
  9147. + fi
  9148. + fi
  9149. + fi
  9150. + fi
  9151. +fi
  9152. +fi
  9153. +
  9154. +# Copy echo and quote the copy suitably for passing to libtool from
  9155. +# the Makefile, instead of quoting the original, which is used later.
  9156. +ECHO=$echo
  9157. +if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  9158. + ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  9159. +fi
  9160. +
  9161. +
  9162. +
  9163. +
  9164. +tagnames=${tagnames+${tagnames},}CXX
  9165. +
  9166. +tagnames=${tagnames+${tagnames},}F77
  9167. +
  9168. if test `expr $GTK_MINOR_VERSION \% 2` = 1 ; then
  9169. debug_default=yes
  9170. else
  9171. debug_default=minimum
  9172. fi
  9173. -ac_help="$ac_help
  9174. - --enable-debug=[no/minimum/yes] turn on debugging [default=$debug_default]"
  9175. -ac_help="$ac_help
  9176. - --enable-shm support shared memory if available [default=yes]"
  9177. -ac_help="$ac_help
  9178. - --enable-ansi turn on strict ansi [default=no]"
  9179. -ac_help="$ac_help
  9180. - --with-glib=DIR Use uninstalled copy of glib"
  9181. -ac_help="$ac_help
  9182. - --enable-xim support XIM [default=yes]"
  9183. -ac_help="$ac_help
  9184. - --disable-xim-inst does not use xim instantiate callback"
  9185. -ac_help="$ac_help
  9186. - --disable-rebuilds disable all source autogeneration rules"
  9187. -ac_help="$ac_help
  9188. - --with-locale=LOCALE locale name you want to use "
  9189. -ac_help="$ac_help
  9190. - --with-xinput=[no/gxi/xfree] support XInput "
  9191. -ac_help="$ac_help
  9192. - --with-native-locale=[yes/no] Use native locale support [default=no]"
  9193. -ac_help="$ac_help
  9194. - --disable-nls do not use Native Language Support"
  9195. -ac_help="$ac_help
  9196. - --with-catgets use catgets functions if available"
  9197. -ac_help="$ac_help
  9198. - --with-glib-prefix=PFX Prefix where GLIB is installed (optional)"
  9199. -ac_help="$ac_help
  9200. - --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)"
  9201. -ac_help="$ac_help
  9202. - --disable-glibtest Do not try to compile and run a test GLIB program"
  9203. -ac_help="$ac_help
  9204. - --with-x use the X Window System"
  9205. +
  9206. +# Name of the host.
  9207. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  9208. +# so uname gets run too.
  9209. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  9210. +
  9211. +exec 6>&1
  9212. +
  9213. +#
  9214. +# Initializations.
  9215. +#
  9216. +ac_default_prefix=/usr/local
  9217. +ac_config_libobj_dir=.
  9218. +cross_compiling=no
  9219. +subdirs=
  9220. +MFLAGS=
  9221. +MAKEFLAGS=
  9222. +SHELL=${CONFIG_SHELL-/bin/sh}
  9223. +
  9224. +# Maximum number of lines to put in a shell here document.
  9225. +# This variable seems obsolete. It should probably be removed, and
  9226. +# only ac_max_sed_lines should be used.
  9227. +: ${ac_max_here_lines=38}
  9228. +
  9229. +# Identity of this package.
  9230. +PACKAGE_NAME=
  9231. +PACKAGE_TARNAME=
  9232. +PACKAGE_VERSION=
  9233. +PACKAGE_STRING=
  9234. +PACKAGE_BUGREPORT=
  9235. +
  9236. +ac_unique_file="gdk/gdktypes.h"
  9237. +# Factoring default headers for most tests.
  9238. +ac_includes_default="\
  9239. +#include <stdio.h>
  9240. +#if HAVE_SYS_TYPES_H
  9241. +# include <sys/types.h>
  9242. +#endif
  9243. +#if HAVE_SYS_STAT_H
  9244. +# include <sys/stat.h>
  9245. +#endif
  9246. +#if STDC_HEADERS
  9247. +# include <stdlib.h>
  9248. +# include <stddef.h>
  9249. +#else
  9250. +# if HAVE_STDLIB_H
  9251. +# include <stdlib.h>
  9252. +# endif
  9253. +#endif
  9254. +#if HAVE_STRING_H
  9255. +# if !STDC_HEADERS && HAVE_MEMORY_H
  9256. +# include <memory.h>
  9257. +# endif
  9258. +# include <string.h>
  9259. +#endif
  9260. +#if HAVE_STRINGS_H
  9261. +# include <strings.h>
  9262. +#endif
  9263. +#if HAVE_INTTYPES_H
  9264. +# include <inttypes.h>
  9265. +#else
  9266. +# if HAVE_STDINT_H
  9267. +# include <stdint.h>
  9268. +# endif
  9269. +#endif
  9270. +#if HAVE_UNISTD_H
  9271. +# include <unistd.h>
  9272. +#endif"
  9273. +
  9274. +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 GTK_MAJOR_VERSION GTK_MINOR_VERSION GTK_MICRO_VERSION GTK_INTERFACE_AGE GTK_BINARY_AGE GTK_VERSION LT_RELEASE LT_CURRENT LT_REVISION LT_AGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT AWK PERL INDENT REBUILD STRIP_DUMMY STRIP_BEGIN STRIP_END ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT GENCAT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l gtklocaledir GLIB_CONFIG GLIB_CFLAGS GLIB_LIBS glib_cflags glib_libs glib_thread_cflags glib_thread_libs GLIB_DEPLIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PKG_CONFIG ac_pt_PKG_CONFIG x_cflags x_includes x_ldflags x_libs xinput_progs GDK_WLIBS GTK_DEBUG_FLAGS GTK_XIM_FLAGS GTK_LOCALE_FLAGS LIBOBJS LTLIBOBJS'
  9275. +ac_subst_files=''
  9276. # Initialize some variables set by options.
  9277. +ac_init_help=
  9278. +ac_init_version=false
  9279. # The variables have the same names as the options, with
  9280. # dashes changed to underlines.
  9281. -build=NONE
  9282. -cache_file=./config.cache
  9283. +cache_file=/dev/null
  9284. exec_prefix=NONE
  9285. -host=NONE
  9286. no_create=
  9287. -nonopt=NONE
  9288. no_recursion=
  9289. prefix=NONE
  9290. program_prefix=NONE
  9291. @@ -94,10 +503,15 @@
  9292. silent=
  9293. site=
  9294. srcdir=
  9295. -target=NONE
  9296. verbose=
  9297. x_includes=NONE
  9298. x_libraries=NONE
  9299. +
  9300. +# Installation directory options.
  9301. +# These are left unexpanded so users can "make install exec_prefix=/foo"
  9302. +# and all the variables that are supposed to be based on exec_prefix
  9303. +# by default will actually change.
  9304. +# Use braces instead of parens because sh, perl, etc. also accept them.
  9305. bindir='${exec_prefix}/bin'
  9306. sbindir='${exec_prefix}/sbin'
  9307. libexecdir='${exec_prefix}/libexec'
  9308. @@ -111,17 +525,9 @@
  9309. infodir='${prefix}/info'
  9310. mandir='${prefix}/man'
  9311. -# Initialize some other variables.
  9312. -subdirs=
  9313. -MFLAGS= MAKEFLAGS=
  9314. -SHELL=${CONFIG_SHELL-/bin/sh}
  9315. -# Maximum number of lines to put in a shell here document.
  9316. -ac_max_here_lines=12
  9317. -
  9318. ac_prev=
  9319. for ac_option
  9320. do
  9321. -
  9322. # If the previous option needs an argument, assign it.
  9323. if test -n "$ac_prev"; then
  9324. eval "$ac_prev=\$ac_option"
  9325. @@ -129,59 +535,59 @@
  9326. continue
  9327. fi
  9328. - case "$ac_option" in
  9329. - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  9330. - *) ac_optarg= ;;
  9331. - esac
  9332. + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  9333. # Accept the important Cygnus configure options, so we can diagnose typos.
  9334. - case "$ac_option" in
  9335. + case $ac_option in
  9336. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  9337. ac_prev=bindir ;;
  9338. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  9339. - bindir="$ac_optarg" ;;
  9340. + bindir=$ac_optarg ;;
  9341. -build | --build | --buil | --bui | --bu)
  9342. - ac_prev=build ;;
  9343. + ac_prev=build_alias ;;
  9344. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  9345. - build="$ac_optarg" ;;
  9346. + build_alias=$ac_optarg ;;
  9347. -cache-file | --cache-file | --cache-fil | --cache-fi \
  9348. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  9349. ac_prev=cache_file ;;
  9350. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  9351. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  9352. - cache_file="$ac_optarg" ;;
  9353. + cache_file=$ac_optarg ;;
  9354. +
  9355. + --config-cache | -C)
  9356. + cache_file=config.cache ;;
  9357. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  9358. ac_prev=datadir ;;
  9359. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  9360. | --da=*)
  9361. - datadir="$ac_optarg" ;;
  9362. + datadir=$ac_optarg ;;
  9363. -disable-* | --disable-*)
  9364. - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  9365. + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  9366. # Reject names that are not valid shell variable names.
  9367. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  9368. - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  9369. - fi
  9370. - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  9371. - eval "enable_${ac_feature}=no" ;;
  9372. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  9373. + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  9374. + { (exit 1); exit 1; }; }
  9375. + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  9376. + eval "enable_$ac_feature=no" ;;
  9377. -enable-* | --enable-*)
  9378. - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  9379. + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  9380. # Reject names that are not valid shell variable names.
  9381. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  9382. - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  9383. - fi
  9384. - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  9385. - case "$ac_option" in
  9386. - *=*) ;;
  9387. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  9388. + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  9389. + { (exit 1); exit 1; }; }
  9390. + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  9391. + case $ac_option in
  9392. + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  9393. *) ac_optarg=yes ;;
  9394. esac
  9395. - eval "enable_${ac_feature}='$ac_optarg'" ;;
  9396. + eval "enable_$ac_feature='$ac_optarg'" ;;
  9397. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  9398. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  9399. @@ -190,95 +596,47 @@
  9400. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  9401. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  9402. | --exec=* | --exe=* | --ex=*)
  9403. - exec_prefix="$ac_optarg" ;;
  9404. + exec_prefix=$ac_optarg ;;
  9405. -gas | --gas | --ga | --g)
  9406. # Obsolete; use --with-gas.
  9407. with_gas=yes ;;
  9408. - -help | --help | --hel | --he)
  9409. - # Omit some internal or obsolete options to make the list less imposing.
  9410. - # This message is too long to be a string in the A/UX 3.1 sh.
  9411. - cat << EOF
  9412. -Usage: configure [options] [host]
  9413. -Options: [defaults in brackets after descriptions]
  9414. -Configuration:
  9415. - --cache-file=FILE cache test results in FILE
  9416. - --help print this message
  9417. - --no-create do not create output files
  9418. - --quiet, --silent do not print \`checking...' messages
  9419. - --version print the version of autoconf that created configure
  9420. -Directory and file names:
  9421. - --prefix=PREFIX install architecture-independent files in PREFIX
  9422. - [$ac_default_prefix]
  9423. - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  9424. - [same as prefix]
  9425. - --bindir=DIR user executables in DIR [EPREFIX/bin]
  9426. - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  9427. - --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  9428. - --datadir=DIR read-only architecture-independent data in DIR
  9429. - [PREFIX/share]
  9430. - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  9431. - --sharedstatedir=DIR modifiable architecture-independent data in DIR
  9432. - [PREFIX/com]
  9433. - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  9434. - --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  9435. - --includedir=DIR C header files in DIR [PREFIX/include]
  9436. - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  9437. - --infodir=DIR info documentation in DIR [PREFIX/info]
  9438. - --mandir=DIR man documentation in DIR [PREFIX/man]
  9439. - --srcdir=DIR find the sources in DIR [configure dir or ..]
  9440. - --program-prefix=PREFIX prepend PREFIX to installed program names
  9441. - --program-suffix=SUFFIX append SUFFIX to installed program names
  9442. - --program-transform-name=PROGRAM
  9443. - run sed PROGRAM on installed program names
  9444. -EOF
  9445. - cat << EOF
  9446. -Host type:
  9447. - --build=BUILD configure for building on BUILD [BUILD=HOST]
  9448. - --host=HOST configure for HOST [guessed]
  9449. - --target=TARGET configure for TARGET [TARGET=HOST]
  9450. -Features and packages:
  9451. - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  9452. - --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  9453. - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  9454. - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  9455. - --x-includes=DIR X include files are in DIR
  9456. - --x-libraries=DIR X library files are in DIR
  9457. -EOF
  9458. - if test -n "$ac_help"; then
  9459. - echo "--enable and --with options recognized:$ac_help"
  9460. - fi
  9461. - exit 0 ;;
  9462. + -help | --help | --hel | --he | -h)
  9463. + ac_init_help=long ;;
  9464. + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  9465. + ac_init_help=recursive ;;
  9466. + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  9467. + ac_init_help=short ;;
  9468. -host | --host | --hos | --ho)
  9469. - ac_prev=host ;;
  9470. + ac_prev=host_alias ;;
  9471. -host=* | --host=* | --hos=* | --ho=*)
  9472. - host="$ac_optarg" ;;
  9473. + host_alias=$ac_optarg ;;
  9474. -includedir | --includedir | --includedi | --included | --include \
  9475. | --includ | --inclu | --incl | --inc)
  9476. ac_prev=includedir ;;
  9477. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  9478. | --includ=* | --inclu=* | --incl=* | --inc=*)
  9479. - includedir="$ac_optarg" ;;
  9480. + includedir=$ac_optarg ;;
  9481. -infodir | --infodir | --infodi | --infod | --info | --inf)
  9482. ac_prev=infodir ;;
  9483. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  9484. - infodir="$ac_optarg" ;;
  9485. + infodir=$ac_optarg ;;
  9486. -libdir | --libdir | --libdi | --libd)
  9487. ac_prev=libdir ;;
  9488. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  9489. - libdir="$ac_optarg" ;;
  9490. + libdir=$ac_optarg ;;
  9491. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  9492. | --libexe | --libex | --libe)
  9493. ac_prev=libexecdir ;;
  9494. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  9495. | --libexe=* | --libex=* | --libe=*)
  9496. - libexecdir="$ac_optarg" ;;
  9497. + libexecdir=$ac_optarg ;;
  9498. -localstatedir | --localstatedir | --localstatedi | --localstated \
  9499. | --localstate | --localstat | --localsta | --localst \
  9500. @@ -287,19 +645,19 @@
  9501. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  9502. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  9503. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  9504. - localstatedir="$ac_optarg" ;;
  9505. + localstatedir=$ac_optarg ;;
  9506. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  9507. ac_prev=mandir ;;
  9508. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  9509. - mandir="$ac_optarg" ;;
  9510. + mandir=$ac_optarg ;;
  9511. -nfp | --nfp | --nf)
  9512. # Obsolete; use --without-fp.
  9513. with_fp=no ;;
  9514. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  9515. - | --no-cr | --no-c)
  9516. + | --no-cr | --no-c | -n)
  9517. no_create=yes ;;
  9518. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  9519. @@ -313,26 +671,26 @@
  9520. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  9521. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  9522. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  9523. - oldincludedir="$ac_optarg" ;;
  9524. + oldincludedir=$ac_optarg ;;
  9525. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  9526. ac_prev=prefix ;;
  9527. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  9528. - prefix="$ac_optarg" ;;
  9529. + prefix=$ac_optarg ;;
  9530. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  9531. | --program-pre | --program-pr | --program-p)
  9532. ac_prev=program_prefix ;;
  9533. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  9534. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  9535. - program_prefix="$ac_optarg" ;;
  9536. + program_prefix=$ac_optarg ;;
  9537. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  9538. | --program-suf | --program-su | --program-s)
  9539. ac_prev=program_suffix ;;
  9540. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  9541. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  9542. - program_suffix="$ac_optarg" ;;
  9543. + program_suffix=$ac_optarg ;;
  9544. -program-transform-name | --program-transform-name \
  9545. | --program-transform-nam | --program-transform-na \
  9546. @@ -349,7 +707,7 @@
  9547. | --program-transfo=* | --program-transf=* \
  9548. | --program-trans=* | --program-tran=* \
  9549. | --progr-tra=* | --program-tr=* | --program-t=*)
  9550. - program_transform_name="$ac_optarg" ;;
  9551. + program_transform_name=$ac_optarg ;;
  9552. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9553. | -silent | --silent | --silen | --sile | --sil)
  9554. @@ -359,7 +717,7 @@
  9555. ac_prev=sbindir ;;
  9556. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  9557. | --sbi=* | --sb=*)
  9558. - sbindir="$ac_optarg" ;;
  9559. + sbindir=$ac_optarg ;;
  9560. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  9561. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  9562. @@ -370,58 +728,57 @@
  9563. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  9564. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  9565. | --sha=* | --sh=*)
  9566. - sharedstatedir="$ac_optarg" ;;
  9567. + sharedstatedir=$ac_optarg ;;
  9568. -site | --site | --sit)
  9569. ac_prev=site ;;
  9570. -site=* | --site=* | --sit=*)
  9571. - site="$ac_optarg" ;;
  9572. + site=$ac_optarg ;;
  9573. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  9574. ac_prev=srcdir ;;
  9575. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  9576. - srcdir="$ac_optarg" ;;
  9577. + srcdir=$ac_optarg ;;
  9578. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  9579. | --syscon | --sysco | --sysc | --sys | --sy)
  9580. ac_prev=sysconfdir ;;
  9581. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  9582. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  9583. - sysconfdir="$ac_optarg" ;;
  9584. + sysconfdir=$ac_optarg ;;
  9585. -target | --target | --targe | --targ | --tar | --ta | --t)
  9586. - ac_prev=target ;;
  9587. + ac_prev=target_alias ;;
  9588. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  9589. - target="$ac_optarg" ;;
  9590. + target_alias=$ac_optarg ;;
  9591. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  9592. verbose=yes ;;
  9593. - -version | --version | --versio | --versi | --vers)
  9594. - echo "configure generated by autoconf version 2.13"
  9595. - exit 0 ;;
  9596. + -version | --version | --versio | --versi | --vers | -V)
  9597. + ac_init_version=: ;;
  9598. -with-* | --with-*)
  9599. - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  9600. + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  9601. # Reject names that are not valid shell variable names.
  9602. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  9603. - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  9604. - fi
  9605. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  9606. + { echo "$as_me: error: invalid package name: $ac_package" >&2
  9607. + { (exit 1); exit 1; }; }
  9608. ac_package=`echo $ac_package| sed 's/-/_/g'`
  9609. - case "$ac_option" in
  9610. - *=*) ;;
  9611. + case $ac_option in
  9612. + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  9613. *) ac_optarg=yes ;;
  9614. esac
  9615. - eval "with_${ac_package}='$ac_optarg'" ;;
  9616. + eval "with_$ac_package='$ac_optarg'" ;;
  9617. -without-* | --without-*)
  9618. - ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  9619. + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  9620. # Reject names that are not valid shell variable names.
  9621. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  9622. - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  9623. - fi
  9624. - ac_package=`echo $ac_package| sed 's/-/_/g'`
  9625. - eval "with_${ac_package}=no" ;;
  9626. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  9627. + { echo "$as_me: error: invalid package name: $ac_package" >&2
  9628. + { (exit 1); exit 1; }; }
  9629. + ac_package=`echo $ac_package | sed 's/-/_/g'`
  9630. + eval "with_$ac_package=no" ;;
  9631. --x)
  9632. # Obsolete; use --with-x.
  9633. @@ -432,99 +789,110 @@
  9634. ac_prev=x_includes ;;
  9635. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  9636. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  9637. - x_includes="$ac_optarg" ;;
  9638. + x_includes=$ac_optarg ;;
  9639. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  9640. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  9641. ac_prev=x_libraries ;;
  9642. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  9643. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  9644. - x_libraries="$ac_optarg" ;;
  9645. + x_libraries=$ac_optarg ;;
  9646. - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  9647. + -*) { echo "$as_me: error: unrecognized option: $ac_option
  9648. +Try \`$0 --help' for more information." >&2
  9649. + { (exit 1); exit 1; }; }
  9650. ;;
  9651. + *=*)
  9652. + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  9653. + # Reject names that are not valid shell variable names.
  9654. + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  9655. + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  9656. + { (exit 1); exit 1; }; }
  9657. + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  9658. + eval "$ac_envvar='$ac_optarg'"
  9659. + export $ac_envvar ;;
  9660. +
  9661. *)
  9662. - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  9663. - echo "configure: warning: $ac_option: invalid host type" 1>&2
  9664. - fi
  9665. - if test "x$nonopt" != xNONE; then
  9666. - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  9667. - fi
  9668. - nonopt="$ac_option"
  9669. + # FIXME: should be removed in autoconf 3.0.
  9670. + echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  9671. + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  9672. + echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  9673. + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  9674. ;;
  9675. esac
  9676. done
  9677. if test -n "$ac_prev"; then
  9678. - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  9679. + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  9680. + { echo "$as_me: error: missing argument to $ac_option" >&2
  9681. + { (exit 1); exit 1; }; }
  9682. fi
  9683. -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  9684. -
  9685. -# File descriptor usage:
  9686. -# 0 standard input
  9687. -# 1 file creation
  9688. -# 2 errors and warnings
  9689. -# 3 some systems may open it to /dev/tty
  9690. -# 4 used on the Kubota Titan
  9691. -# 6 checking for... messages and results
  9692. -# 5 compiler messages saved in config.log
  9693. -if test "$silent" = yes; then
  9694. - exec 6>/dev/null
  9695. -else
  9696. - exec 6>&1
  9697. -fi
  9698. -exec 5>./config.log
  9699. -
  9700. -echo "\
  9701. -This file contains any messages produced by compilers while
  9702. -running configure, to aid debugging if configure makes a mistake.
  9703. -" 1>&5
  9704. +# Be sure to have absolute paths.
  9705. +for ac_var in exec_prefix prefix
  9706. +do
  9707. + eval ac_val=$`echo $ac_var`
  9708. + case $ac_val in
  9709. + [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  9710. + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  9711. + { (exit 1); exit 1; }; };;
  9712. + esac
  9713. +done
  9714. -# Strip out --no-create and --no-recursion so they do not pile up.
  9715. -# Also quote any args containing shell metacharacters.
  9716. -ac_configure_args=
  9717. -for ac_arg
  9718. +# Be sure to have absolute paths.
  9719. +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  9720. + localstatedir libdir includedir oldincludedir infodir mandir
  9721. do
  9722. - case "$ac_arg" in
  9723. - -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  9724. - | --no-cr | --no-c) ;;
  9725. - -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  9726. - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  9727. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  9728. - ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  9729. - *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  9730. + eval ac_val=$`echo $ac_var`
  9731. + case $ac_val in
  9732. + [\\/$]* | ?:[\\/]* ) ;;
  9733. + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  9734. + { (exit 1); exit 1; }; };;
  9735. esac
  9736. done
  9737. -# NLS nuisances.
  9738. -# Only set these to C if already set. These must not be set unconditionally
  9739. -# because not all systems understand e.g. LANG=C (notably SCO).
  9740. -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  9741. -# Non-C LC_CTYPE values break the ctype check.
  9742. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  9743. -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  9744. -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  9745. -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  9746. +# There might be people who depend on the old broken behavior: `$host'
  9747. +# used to hold the argument of --host etc.
  9748. +# FIXME: To remove some day.
  9749. +build=$build_alias
  9750. +host=$host_alias
  9751. +target=$target_alias
  9752. +
  9753. +# FIXME: To remove some day.
  9754. +if test "x$host_alias" != x; then
  9755. + if test "x$build_alias" = x; then
  9756. + cross_compiling=maybe
  9757. + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  9758. + If a cross compiler is detected then cross compile mode will be used." >&2
  9759. + elif test "x$build_alias" != "x$host_alias"; then
  9760. + cross_compiling=yes
  9761. + fi
  9762. +fi
  9763. -# confdefs.h avoids OS command line length limits that DEFS can exceed.
  9764. -rm -rf conftest* confdefs.h
  9765. -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  9766. -echo > confdefs.h
  9767. +ac_tool_prefix=
  9768. +test -n "$host_alias" && ac_tool_prefix=$host_alias-
  9769. +
  9770. +test "$silent" = yes && exec 6>/dev/null
  9771. -# A filename unique to this package, relative to the directory that
  9772. -# configure is in, which we can look for to find out if srcdir is correct.
  9773. -ac_unique_file=gdk/gdktypes.h
  9774. # Find the source files, if location was not specified.
  9775. if test -z "$srcdir"; then
  9776. ac_srcdir_defaulted=yes
  9777. # Try the directory containing this script, then its parent.
  9778. - ac_prog=$0
  9779. - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  9780. - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  9781. + ac_confdir=`(dirname "$0") 2>/dev/null ||
  9782. +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9783. + X"$0" : 'X\(//\)[^/]' \| \
  9784. + X"$0" : 'X\(//\)$' \| \
  9785. + X"$0" : 'X\(/\)' \| \
  9786. + . : '\(.\)' 2>/dev/null ||
  9787. +echo X"$0" |
  9788. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9789. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9790. + /^X\(\/\/\)$/{ s//\1/; q; }
  9791. + /^X\(\/\).*/{ s//\1/; q; }
  9792. + s/.*/./; q'`
  9793. srcdir=$ac_confdir
  9794. if test ! -r $srcdir/$ac_unique_file; then
  9795. srcdir=..
  9796. @@ -534,116 +902,719 @@
  9797. fi
  9798. if test ! -r $srcdir/$ac_unique_file; then
  9799. if test "$ac_srcdir_defaulted" = yes; then
  9800. - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  9801. + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  9802. + { (exit 1); exit 1; }; }
  9803. else
  9804. - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  9805. + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  9806. + { (exit 1); exit 1; }; }
  9807. fi
  9808. fi
  9809. -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  9810. +(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  9811. + { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  9812. + { (exit 1); exit 1; }; }
  9813. +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  9814. +ac_env_build_alias_set=${build_alias+set}
  9815. +ac_env_build_alias_value=$build_alias
  9816. +ac_cv_env_build_alias_set=${build_alias+set}
  9817. +ac_cv_env_build_alias_value=$build_alias
  9818. +ac_env_host_alias_set=${host_alias+set}
  9819. +ac_env_host_alias_value=$host_alias
  9820. +ac_cv_env_host_alias_set=${host_alias+set}
  9821. +ac_cv_env_host_alias_value=$host_alias
  9822. +ac_env_target_alias_set=${target_alias+set}
  9823. +ac_env_target_alias_value=$target_alias
  9824. +ac_cv_env_target_alias_set=${target_alias+set}
  9825. +ac_cv_env_target_alias_value=$target_alias
  9826. +ac_env_CC_set=${CC+set}
  9827. +ac_env_CC_value=$CC
  9828. +ac_cv_env_CC_set=${CC+set}
  9829. +ac_cv_env_CC_value=$CC
  9830. +ac_env_CFLAGS_set=${CFLAGS+set}
  9831. +ac_env_CFLAGS_value=$CFLAGS
  9832. +ac_cv_env_CFLAGS_set=${CFLAGS+set}
  9833. +ac_cv_env_CFLAGS_value=$CFLAGS
  9834. +ac_env_LDFLAGS_set=${LDFLAGS+set}
  9835. +ac_env_LDFLAGS_value=$LDFLAGS
  9836. +ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  9837. +ac_cv_env_LDFLAGS_value=$LDFLAGS
  9838. +ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  9839. +ac_env_CPPFLAGS_value=$CPPFLAGS
  9840. +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  9841. +ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  9842. +ac_env_CPP_set=${CPP+set}
  9843. +ac_env_CPP_value=$CPP
  9844. +ac_cv_env_CPP_set=${CPP+set}
  9845. +ac_cv_env_CPP_value=$CPP
  9846. +ac_env_CXX_set=${CXX+set}
  9847. +ac_env_CXX_value=$CXX
  9848. +ac_cv_env_CXX_set=${CXX+set}
  9849. +ac_cv_env_CXX_value=$CXX
  9850. +ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  9851. +ac_env_CXXFLAGS_value=$CXXFLAGS
  9852. +ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  9853. +ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  9854. +ac_env_CXXCPP_set=${CXXCPP+set}
  9855. +ac_env_CXXCPP_value=$CXXCPP
  9856. +ac_cv_env_CXXCPP_set=${CXXCPP+set}
  9857. +ac_cv_env_CXXCPP_value=$CXXCPP
  9858. +ac_env_F77_set=${F77+set}
  9859. +ac_env_F77_value=$F77
  9860. +ac_cv_env_F77_set=${F77+set}
  9861. +ac_cv_env_F77_value=$F77
  9862. +ac_env_FFLAGS_set=${FFLAGS+set}
  9863. +ac_env_FFLAGS_value=$FFLAGS
  9864. +ac_cv_env_FFLAGS_set=${FFLAGS+set}
  9865. +ac_cv_env_FFLAGS_value=$FFLAGS
  9866. +ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
  9867. +ac_env_PKG_CONFIG_value=$PKG_CONFIG
  9868. +ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
  9869. +ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
  9870. +ac_env_X_CFLAGS_set=${X_CFLAGS+set}
  9871. +ac_env_X_CFLAGS_value=$X_CFLAGS
  9872. +ac_cv_env_X_CFLAGS_set=${X_CFLAGS+set}
  9873. +ac_cv_env_X_CFLAGS_value=$X_CFLAGS
  9874. +ac_env_X_LIBS_set=${X_LIBS+set}
  9875. +ac_env_X_LIBS_value=$X_LIBS
  9876. +ac_cv_env_X_LIBS_set=${X_LIBS+set}
  9877. +ac_cv_env_X_LIBS_value=$X_LIBS
  9878. -# Prefer explicitly selected file to automatically selected ones.
  9879. -if test -z "$CONFIG_SITE"; then
  9880. - if test "x$prefix" != xNONE; then
  9881. - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  9882. - else
  9883. - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  9884. - fi
  9885. -fi
  9886. -for ac_site_file in $CONFIG_SITE; do
  9887. - if test -r "$ac_site_file"; then
  9888. - echo "loading site script $ac_site_file"
  9889. - . "$ac_site_file"
  9890. - fi
  9891. -done
  9892. +#
  9893. +# Report the --help message.
  9894. +#
  9895. +if test "$ac_init_help" = "long"; then
  9896. + # Omit some internal or obsolete options to make the list less imposing.
  9897. + # This message is too long to be a string in the A/UX 3.1 sh.
  9898. + cat <<_ACEOF
  9899. +\`configure' configures this package to adapt to many kinds of systems.
  9900. -if test -r "$cache_file"; then
  9901. - echo "loading cache $cache_file"
  9902. - . $cache_file
  9903. -else
  9904. - echo "creating cache $cache_file"
  9905. - > $cache_file
  9906. -fi
  9907. +Usage: $0 [OPTION]... [VAR=VALUE]...
  9908. -ac_ext=c
  9909. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9910. -ac_cpp='$CPP $CPPFLAGS'
  9911. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9912. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9913. -cross_compiling=$ac_cv_prog_cc_cross
  9914. -
  9915. -ac_exeext=
  9916. -ac_objext=o
  9917. -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  9918. - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  9919. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  9920. - ac_n= ac_c='
  9921. -' ac_t=' '
  9922. - else
  9923. - ac_n=-n ac_c= ac_t=
  9924. - fi
  9925. -else
  9926. - ac_n= ac_c='\c' ac_t=
  9927. -fi
  9928. +To assign environment variables (e.g., CC, CFLAGS...), specify them as
  9929. +VAR=VALUE. See below for descriptions of some of the useful variables.
  9930. +Defaults for the options are specified in brackets.
  9931. +Configuration:
  9932. + -h, --help display this help and exit
  9933. + --help=short display options specific to this package
  9934. + --help=recursive display the short help of all the included packages
  9935. + -V, --version display version information and exit
  9936. + -q, --quiet, --silent do not print \`checking...' messages
  9937. + --cache-file=FILE cache test results in FILE [disabled]
  9938. + -C, --config-cache alias for \`--cache-file=config.cache'
  9939. + -n, --no-create do not create output files
  9940. + --srcdir=DIR find the sources in DIR [configure dir or \`..']
  9941. -# In the following, there are a the following variants
  9942. -# of GLib cflags and libs variables
  9943. -#
  9944. -# GLIB_CFLAGS: cflags for compiling libraries and example progs
  9945. -# GLIB_LIBS: libraries for linking example programs
  9946. -# GLIB_DEPLIBS: libraries for linking libraries against
  9947. -# glib_cflags: cflags to store in gtk-config
  9948. -# glib_libs: libs to store in gtk-config
  9949. -# glib_thread_cflags: cflags to store in gtk-config for gtk-config gthread
  9950. -# glib_thread_libs: libs to store in gtk-config for gtk-config gthread
  9951. +_ACEOF
  9952. -# Save this value here, since automake will set cflags later
  9953. -cflags_set=${CFLAGS+set}
  9954. + cat <<_ACEOF
  9955. +Installation directories:
  9956. + --prefix=PREFIX install architecture-independent files in PREFIX
  9957. + [$ac_default_prefix]
  9958. + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  9959. + [PREFIX]
  9960. +By default, \`make install' will install all the files in
  9961. +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  9962. +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  9963. +for instance \`--prefix=\$HOME'.
  9964. +
  9965. +For better control, use the options below.
  9966. +
  9967. +Fine tuning of the installation directories:
  9968. + --bindir=DIR user executables [EPREFIX/bin]
  9969. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  9970. + --libexecdir=DIR program executables [EPREFIX/libexec]
  9971. + --datadir=DIR read-only architecture-independent data [PREFIX/share]
  9972. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  9973. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  9974. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  9975. + --libdir=DIR object code libraries [EPREFIX/lib]
  9976. + --includedir=DIR C header files [PREFIX/include]
  9977. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  9978. + --infodir=DIR info documentation [PREFIX/info]
  9979. + --mandir=DIR man documentation [PREFIX/man]
  9980. +_ACEOF
  9981. +
  9982. + cat <<\_ACEOF
  9983. +
  9984. +Program names:
  9985. + --program-prefix=PREFIX prepend PREFIX to installed program names
  9986. + --program-suffix=SUFFIX append SUFFIX to installed program names
  9987. + --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  9988. +
  9989. +X features:
  9990. + --x-includes=DIR X include files are in DIR
  9991. + --x-libraries=DIR X library files are in DIR
  9992. +
  9993. +System types:
  9994. + --build=BUILD configure for building on BUILD [guessed]
  9995. + --host=HOST cross-compile to build programs to run on HOST [BUILD]
  9996. +_ACEOF
  9997. +fi
  9998. +if test -n "$ac_init_help"; then
  9999. + cat <<\_ACEOF
  10000. +Optional Features:
  10001. + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  10002. + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  10003. + --enable-shared[=PKGS]
  10004. + build shared libraries [default=yes]
  10005. + --enable-static[=PKGS]
  10006. + build static libraries [default=yes]
  10007. + --enable-fast-install[=PKGS]
  10008. + optimize for fast installation [default=yes]
  10009. + --disable-libtool-lock avoid locking (might break parallel builds)
  10010. + --enable-maintainer-mode enable make rules and dependencies not useful
  10011. + (and sometimes confusing) to the casual installer
  10012. + --enable-debug=no/minimum/yes turn on debugging default=$debug_default
  10013. + --enable-shm support shared memory if available default=yes
  10014. + --enable-ansi turn on strict ansi default=no
  10015. + --enable-xim support XIM default=yes
  10016. + --disable-xim-inst does not use xim instantiate callback
  10017. + --disable-rebuilds disable all source autogeneration rules
  10018. + --disable-nls do not use Native Language Support
  10019. + --disable-glibtest Do not try to compile and run a test GLIB program
  10020. +Optional Packages:
  10021. + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  10022. + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  10023. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  10024. + --with-pic try to use only PIC/non-PIC objects [default=use
  10025. + both]
  10026. + --with-tags[=TAGS]
  10027. + include additional configurations [automatic]
  10028. + --with-glib=DIR Use uninstalled copy of glib
  10029. + --with-locale=LOCALE locale name you want to use
  10030. + --with-xinput=no/gxi/xfree support XInput
  10031. + --with-native-locale=yes/no Use native locale support default=no
  10032. + --with-catgets use catgets functions if available
  10033. + --with-glib-prefix=PFX Prefix where GLIB is installed (optional)
  10034. + --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)
  10035. + --with-x use the X Window System
  10036. +
  10037. +Some influential environment variables:
  10038. + CC C compiler command
  10039. + CFLAGS C compiler flags
  10040. + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  10041. + nonstandard directory <lib dir>
  10042. + CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  10043. + headers in a nonstandard directory <include dir>
  10044. + CPP C preprocessor
  10045. + CXX C++ compiler command
  10046. + CXXFLAGS C++ compiler flags
  10047. + CXXCPP C++ preprocessor
  10048. + F77 Fortran 77 compiler command
  10049. + FFLAGS Fortran 77 compiler flags
  10050. + PKG_CONFIG path to pkg-config utility
  10051. + X_CFLAGS C compiler flags for X, overriding pkg-config
  10052. + X_LIBS linker flags for X, overriding pkg-config
  10053. +
  10054. +Use these variables to override the choices made by `configure' or to help
  10055. +it to find libraries and programs with nonstandard names/locations.
  10056. +
  10057. +_ACEOF
  10058. +fi
  10059. +
  10060. +if test "$ac_init_help" = "recursive"; then
  10061. + # If there are subdirs, report their specific --help.
  10062. + ac_popdir=`pwd`
  10063. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  10064. + test -d $ac_dir || continue
  10065. + ac_builddir=.
  10066. +
  10067. +if test "$ac_dir" != .; then
  10068. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  10069. + # A "../" for each directory in $ac_dir_suffix.
  10070. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  10071. +else
  10072. + ac_dir_suffix= ac_top_builddir=
  10073. +fi
  10074. +
  10075. +case $srcdir in
  10076. + .) # No --srcdir option. We are building in place.
  10077. + ac_srcdir=.
  10078. + if test -z "$ac_top_builddir"; then
  10079. + ac_top_srcdir=.
  10080. + else
  10081. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  10082. + fi ;;
  10083. + [\\/]* | ?:[\\/]* ) # Absolute path.
  10084. + ac_srcdir=$srcdir$ac_dir_suffix;
  10085. + ac_top_srcdir=$srcdir ;;
  10086. + *) # Relative path.
  10087. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  10088. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  10089. +esac
  10090. +# Do not use `cd foo && pwd` to compute absolute paths, because
  10091. +# the directories may not exist.
  10092. +case `pwd` in
  10093. +.) ac_abs_builddir="$ac_dir";;
  10094. +*)
  10095. + case "$ac_dir" in
  10096. + .) ac_abs_builddir=`pwd`;;
  10097. + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  10098. + *) ac_abs_builddir=`pwd`/"$ac_dir";;
  10099. + esac;;
  10100. +esac
  10101. +case $ac_abs_builddir in
  10102. +.) ac_abs_top_builddir=${ac_top_builddir}.;;
  10103. +*)
  10104. + case ${ac_top_builddir}. in
  10105. + .) ac_abs_top_builddir=$ac_abs_builddir;;
  10106. + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  10107. + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  10108. + esac;;
  10109. +esac
  10110. +case $ac_abs_builddir in
  10111. +.) ac_abs_srcdir=$ac_srcdir;;
  10112. +*)
  10113. + case $ac_srcdir in
  10114. + .) ac_abs_srcdir=$ac_abs_builddir;;
  10115. + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  10116. + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  10117. + esac;;
  10118. +esac
  10119. +case $ac_abs_builddir in
  10120. +.) ac_abs_top_srcdir=$ac_top_srcdir;;
  10121. +*)
  10122. + case $ac_top_srcdir in
  10123. + .) ac_abs_top_srcdir=$ac_abs_builddir;;
  10124. + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  10125. + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  10126. + esac;;
  10127. +esac
  10128. + cd $ac_dir
  10129. + # Check for guested configure; otherwise get Cygnus style configure.
  10130. + if test -f $ac_srcdir/configure.gnu; then
  10131. + echo
  10132. + $SHELL $ac_srcdir/configure.gnu --help=recursive
  10133. + elif test -f $ac_srcdir/configure; then
  10134. + echo
  10135. + $SHELL $ac_srcdir/configure --help=recursive
  10136. + elif test -f $ac_srcdir/configure.ac ||
  10137. + test -f $ac_srcdir/configure.in; then
  10138. + echo
  10139. + $ac_configure --help
  10140. + else
  10141. + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  10142. + fi
  10143. + cd "$ac_popdir"
  10144. + done
  10145. +fi
  10146. +test -n "$ac_init_help" && exit 0
  10147. +if $ac_init_version; then
  10148. + cat <<\_ACEOF
  10149. +
  10150. +Copyright (C) 2003 Free Software Foundation, Inc.
  10151. +This configure script is free software; the Free Software Foundation
  10152. +gives unlimited permission to copy, distribute and modify it.
  10153. +_ACEOF
  10154. + exit 0
  10155. +fi
  10156. +exec 5>config.log
  10157. +cat >&5 <<_ACEOF
  10158. +This file contains any messages produced by compilers while
  10159. +running configure, to aid debugging if configure makes a mistake.
  10160. -# libtool versioning
  10161. -LT_RELEASE=$GTK_MAJOR_VERSION.$GTK_MINOR_VERSION
  10162. -LT_CURRENT=`expr $GTK_MICRO_VERSION - $GTK_INTERFACE_AGE`
  10163. -LT_REVISION=$GTK_INTERFACE_AGE
  10164. -LT_AGE=`expr $GTK_BINARY_AGE - $GTK_INTERFACE_AGE`
  10165. +It was created by $as_me, which was
  10166. +generated by GNU Autoconf 2.59. Invocation command line was
  10167. + $ $0 $@
  10168. +_ACEOF
  10169. +{
  10170. +cat <<_ASUNAME
  10171. +## --------- ##
  10172. +## Platform. ##
  10173. +## --------- ##
  10174. +
  10175. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  10176. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  10177. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  10178. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  10179. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  10180. +
  10181. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  10182. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  10183. +
  10184. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  10185. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  10186. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  10187. +hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  10188. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  10189. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  10190. +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  10191. +_ASUNAME
  10192. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10193. +for as_dir in $PATH
  10194. +do
  10195. + IFS=$as_save_IFS
  10196. + test -z "$as_dir" && as_dir=.
  10197. + echo "PATH: $as_dir"
  10198. +done
  10199. -# For automake.
  10200. -VERSION=$GTK_VERSION
  10201. -PACKAGE=gtk+
  10202. +} >&5
  10203. -# Save this value here, since automake will set cflags later
  10204. -cflags_set=${CFLAGS+set}
  10205. +cat >&5 <<_ACEOF
  10206. -ac_aux_dir=
  10207. -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  10208. - if test -f $ac_dir/install-sh; then
  10209. - ac_aux_dir=$ac_dir
  10210. - ac_install_sh="$ac_aux_dir/install-sh -c"
  10211. - break
  10212. +
  10213. +## ----------- ##
  10214. +## Core tests. ##
  10215. +## ----------- ##
  10216. +
  10217. +_ACEOF
  10218. +
  10219. +
  10220. +# Keep a trace of the command line.
  10221. +# Strip out --no-create and --no-recursion so they do not pile up.
  10222. +# Strip out --silent because we don't want to record it for future runs.
  10223. +# Also quote any args containing shell meta-characters.
  10224. +# Make two passes to allow for proper duplicate-argument suppression.
  10225. +ac_configure_args=
  10226. +ac_configure_args0=
  10227. +ac_configure_args1=
  10228. +ac_sep=
  10229. +ac_must_keep_next=false
  10230. +for ac_pass in 1 2
  10231. +do
  10232. + for ac_arg
  10233. + do
  10234. + case $ac_arg in
  10235. + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  10236. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10237. + | -silent | --silent | --silen | --sile | --sil)
  10238. + continue ;;
  10239. + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  10240. + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10241. + esac
  10242. + case $ac_pass in
  10243. + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  10244. + 2)
  10245. + ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  10246. + if test $ac_must_keep_next = true; then
  10247. + ac_must_keep_next=false # Got value, back to normal.
  10248. + else
  10249. + case $ac_arg in
  10250. + *=* | --config-cache | -C | -disable-* | --disable-* \
  10251. + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  10252. + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  10253. + | -with-* | --with-* | -without-* | --without-* | --x)
  10254. + case "$ac_configure_args0 " in
  10255. + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  10256. + esac
  10257. + ;;
  10258. + -* ) ac_must_keep_next=true ;;
  10259. + esac
  10260. + fi
  10261. + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  10262. + # Get rid of the leading space.
  10263. + ac_sep=" "
  10264. + ;;
  10265. + esac
  10266. + done
  10267. +done
  10268. +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  10269. +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  10270. +
  10271. +# When interrupted or exit'd, cleanup temporary files, and complete
  10272. +# config.log. We remove comments because anyway the quotes in there
  10273. +# would cause problems or look ugly.
  10274. +# WARNING: Be sure not to use single quotes in there, as some shells,
  10275. +# such as our DU 5.0 friend, will then `close' the trap.
  10276. +trap 'exit_status=$?
  10277. + # Save into config.log some information that might help in debugging.
  10278. + {
  10279. + echo
  10280. +
  10281. + cat <<\_ASBOX
  10282. +## ---------------- ##
  10283. +## Cache variables. ##
  10284. +## ---------------- ##
  10285. +_ASBOX
  10286. + echo
  10287. + # The following way of writing the cache mishandles newlines in values,
  10288. +{
  10289. + (set) 2>&1 |
  10290. + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  10291. + *ac_space=\ *)
  10292. + sed -n \
  10293. + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  10294. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  10295. + ;;
  10296. + *)
  10297. + sed -n \
  10298. + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10299. + ;;
  10300. + esac;
  10301. +}
  10302. + echo
  10303. +
  10304. + cat <<\_ASBOX
  10305. +## ----------------- ##
  10306. +## Output variables. ##
  10307. +## ----------------- ##
  10308. +_ASBOX
  10309. + echo
  10310. + for ac_var in $ac_subst_vars
  10311. + do
  10312. + eval ac_val=$`echo $ac_var`
  10313. + echo "$ac_var='"'"'$ac_val'"'"'"
  10314. + done | sort
  10315. + echo
  10316. +
  10317. + if test -n "$ac_subst_files"; then
  10318. + cat <<\_ASBOX
  10319. +## ------------- ##
  10320. +## Output files. ##
  10321. +## ------------- ##
  10322. +_ASBOX
  10323. + echo
  10324. + for ac_var in $ac_subst_files
  10325. + do
  10326. + eval ac_val=$`echo $ac_var`
  10327. + echo "$ac_var='"'"'$ac_val'"'"'"
  10328. + done | sort
  10329. + echo
  10330. + fi
  10331. +
  10332. + if test -s confdefs.h; then
  10333. + cat <<\_ASBOX
  10334. +## ----------- ##
  10335. +## confdefs.h. ##
  10336. +## ----------- ##
  10337. +_ASBOX
  10338. + echo
  10339. + sed "/^$/d" confdefs.h | sort
  10340. + echo
  10341. + fi
  10342. + test "$ac_signal" != 0 &&
  10343. + echo "$as_me: caught signal $ac_signal"
  10344. + echo "$as_me: exit $exit_status"
  10345. + } >&5
  10346. + rm -f core *.core &&
  10347. + rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  10348. + exit $exit_status
  10349. + ' 0
  10350. +for ac_signal in 1 2 13 15; do
  10351. + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  10352. +done
  10353. +ac_signal=0
  10354. +
  10355. +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  10356. +rm -rf conftest* confdefs.h
  10357. +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  10358. +echo >confdefs.h
  10359. +
  10360. +# Predefined preprocessor variables.
  10361. +
  10362. +cat >>confdefs.h <<_ACEOF
  10363. +#define PACKAGE_NAME "$PACKAGE_NAME"
  10364. +_ACEOF
  10365. +
  10366. +
  10367. +cat >>confdefs.h <<_ACEOF
  10368. +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  10369. +_ACEOF
  10370. +
  10371. +
  10372. +cat >>confdefs.h <<_ACEOF
  10373. +#define PACKAGE_VERSION "$PACKAGE_VERSION"
  10374. +_ACEOF
  10375. +
  10376. +
  10377. +cat >>confdefs.h <<_ACEOF
  10378. +#define PACKAGE_STRING "$PACKAGE_STRING"
  10379. +_ACEOF
  10380. +
  10381. +
  10382. +cat >>confdefs.h <<_ACEOF
  10383. +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  10384. +_ACEOF
  10385. +
  10386. +
  10387. +# Let the site file select an alternate cache file if it wants to.
  10388. +# Prefer explicitly selected file to automatically selected ones.
  10389. +if test -z "$CONFIG_SITE"; then
  10390. + if test "x$prefix" != xNONE; then
  10391. + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  10392. + else
  10393. + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  10394. + fi
  10395. +fi
  10396. +for ac_site_file in $CONFIG_SITE; do
  10397. + if test -r "$ac_site_file"; then
  10398. + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  10399. +echo "$as_me: loading site script $ac_site_file" >&6;}
  10400. + sed 's/^/| /' "$ac_site_file" >&5
  10401. + . "$ac_site_file"
  10402. + fi
  10403. +done
  10404. +
  10405. +if test -r "$cache_file"; then
  10406. + # Some versions of bash will fail to source /dev/null (special
  10407. + # files actually), so we avoid doing that.
  10408. + if test -f "$cache_file"; then
  10409. + { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  10410. +echo "$as_me: loading cache $cache_file" >&6;}
  10411. + case $cache_file in
  10412. + [\\/]* | ?:[\\/]* ) . $cache_file;;
  10413. + *) . ./$cache_file;;
  10414. + esac
  10415. + fi
  10416. +else
  10417. + { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  10418. +echo "$as_me: creating cache $cache_file" >&6;}
  10419. + >$cache_file
  10420. +fi
  10421. +
  10422. +# Check that the precious variables saved in the cache have kept the same
  10423. +# value.
  10424. +ac_cache_corrupted=false
  10425. +for ac_var in `(set) 2>&1 |
  10426. + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  10427. + eval ac_old_set=\$ac_cv_env_${ac_var}_set
  10428. + eval ac_new_set=\$ac_env_${ac_var}_set
  10429. + eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  10430. + eval ac_new_val="\$ac_env_${ac_var}_value"
  10431. + case $ac_old_set,$ac_new_set in
  10432. + set,)
  10433. + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  10434. +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  10435. + ac_cache_corrupted=: ;;
  10436. + ,set)
  10437. + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  10438. +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  10439. + ac_cache_corrupted=: ;;
  10440. + ,);;
  10441. + *)
  10442. + if test "x$ac_old_val" != "x$ac_new_val"; then
  10443. + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  10444. +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  10445. + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  10446. +echo "$as_me: former value: $ac_old_val" >&2;}
  10447. + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  10448. +echo "$as_me: current value: $ac_new_val" >&2;}
  10449. + ac_cache_corrupted=:
  10450. + fi;;
  10451. + esac
  10452. + # Pass precious variables to config.status.
  10453. + if test "$ac_new_set" = set; then
  10454. + case $ac_new_val in
  10455. + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  10456. + ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  10457. + *) ac_arg=$ac_var=$ac_new_val ;;
  10458. + esac
  10459. + case " $ac_configure_args " in
  10460. + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  10461. + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  10462. + esac
  10463. + fi
  10464. +done
  10465. +if $ac_cache_corrupted; then
  10466. + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  10467. +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  10468. + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  10469. +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  10470. + { (exit 1); exit 1; }; }
  10471. +fi
  10472. +
  10473. +ac_ext=c
  10474. +ac_cpp='$CPP $CPPFLAGS'
  10475. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10476. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10477. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10478. +
  10479. +
  10480. +
  10481. +
  10482. +
  10483. +
  10484. +
  10485. +
  10486. +
  10487. +
  10488. +
  10489. +
  10490. +
  10491. +
  10492. +
  10493. +
  10494. +
  10495. +
  10496. +
  10497. +
  10498. +# In the following, there are a the following variants
  10499. +# of GLib cflags and libs variables
  10500. +#
  10501. +# GLIB_CFLAGS: cflags for compiling libraries and example progs
  10502. +# GLIB_LIBS: libraries for linking example programs
  10503. +# GLIB_DEPLIBS: libraries for linking libraries against
  10504. +# glib_cflags: cflags to store in gtk-config
  10505. +# glib_libs: libs to store in gtk-config
  10506. +# glib_thread_cflags: cflags to store in gtk-config for gtk-config gthread
  10507. +# glib_thread_libs: libs to store in gtk-config for gtk-config gthread
  10508. +
  10509. +# Save this value here, since automake will set cflags later
  10510. +cflags_set=${CFLAGS+set}
  10511. +
  10512. +
  10513. +
  10514. +
  10515. +
  10516. +
  10517. +
  10518. +
  10519. +
  10520. +# libtool versioning
  10521. +LT_RELEASE=$GTK_MAJOR_VERSION.$GTK_MINOR_VERSION
  10522. +LT_CURRENT=`expr $GTK_MICRO_VERSION - $GTK_INTERFACE_AGE`
  10523. +LT_REVISION=$GTK_INTERFACE_AGE
  10524. +LT_AGE=`expr $GTK_BINARY_AGE - $GTK_INTERFACE_AGE`
  10525. +
  10526. +
  10527. +
  10528. +
  10529. +
  10530. +# For automake.
  10531. +VERSION=$GTK_VERSION
  10532. +PACKAGE=gtk+
  10533. +
  10534. +# Save this value here, since automake will set cflags later
  10535. +cflags_set=${CFLAGS+set}
  10536. +
  10537. +am__api_version="1.4"
  10538. +ac_aux_dir=
  10539. +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  10540. + if test -f $ac_dir/install-sh; then
  10541. + ac_aux_dir=$ac_dir
  10542. + ac_install_sh="$ac_aux_dir/install-sh -c"
  10543. + break
  10544. elif test -f $ac_dir/install.sh; then
  10545. ac_aux_dir=$ac_dir
  10546. ac_install_sh="$ac_aux_dir/install.sh -c"
  10547. break
  10548. + elif test -f $ac_dir/shtool; then
  10549. + ac_aux_dir=$ac_dir
  10550. + ac_install_sh="$ac_aux_dir/shtool install -c"
  10551. + break
  10552. fi
  10553. done
  10554. if test -z "$ac_aux_dir"; then
  10555. - { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  10556. -fi
  10557. -ac_config_guess=$ac_aux_dir/config.guess
  10558. -ac_config_sub=$ac_aux_dir/config.sub
  10559. -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  10560. + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  10561. +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  10562. + { (exit 1); exit 1; }; }
  10563. +fi
  10564. +ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  10565. +ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  10566. +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  10567. # Find a good install program. We prefer a C program (faster),
  10568. # so one script is as good as another. But avoid the broken or
  10569. @@ -652,65 +1623,80 @@
  10570. # SunOS /usr/etc/install
  10571. # IRIX /sbin/install
  10572. # AIX /bin/install
  10573. +# AmigaOS /C/install, which installs bootblocks on floppy discs
  10574. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  10575. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  10576. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  10577. +# OS/2's system install, which has a completely different semantic
  10578. # ./install, which can be erroneously created by make from ./install.sh.
  10579. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  10580. -echo "configure:661: checking for a BSD compatible install" >&5
  10581. +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  10582. +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  10583. if test -z "$INSTALL"; then
  10584. -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  10585. - echo $ac_n "(cached) $ac_c" 1>&6
  10586. +if test "${ac_cv_path_install+set}" = set; then
  10587. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10588. else
  10589. - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  10590. - for ac_dir in $PATH; do
  10591. - # Account for people who put trailing slashes in PATH elements.
  10592. - case "$ac_dir/" in
  10593. - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  10594. - *)
  10595. - # OSF1 and SCO ODT 3.0 have their own names for install.
  10596. - # Don't use installbsd from OSF since it installs stuff as root
  10597. - # by default.
  10598. - for ac_prog in ginstall scoinst install; do
  10599. - if test -f $ac_dir/$ac_prog; then
  10600. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10601. +for as_dir in $PATH
  10602. +do
  10603. + IFS=$as_save_IFS
  10604. + test -z "$as_dir" && as_dir=.
  10605. + # Account for people who put trailing slashes in PATH elements.
  10606. +case $as_dir/ in
  10607. + ./ | .// | /cC/* | \
  10608. + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  10609. + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  10610. + /usr/ucb/* ) ;;
  10611. + *)
  10612. + # OSF1 and SCO ODT 3.0 have their own names for install.
  10613. + # Don't use installbsd from OSF since it installs stuff as root
  10614. + # by default.
  10615. + for ac_prog in ginstall scoinst install; do
  10616. + for ac_exec_ext in '' $ac_executable_extensions; do
  10617. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  10618. if test $ac_prog = install &&
  10619. - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  10620. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  10621. # AIX install. It has an incompatible calling convention.
  10622. :
  10623. + elif test $ac_prog = install &&
  10624. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  10625. + # program-specific install script used by HP pwplus--don't use.
  10626. + :
  10627. else
  10628. - ac_cv_path_install="$ac_dir/$ac_prog -c"
  10629. - break 2
  10630. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  10631. + break 3
  10632. fi
  10633. fi
  10634. done
  10635. - ;;
  10636. - esac
  10637. - done
  10638. - IFS="$ac_save_IFS"
  10639. + done
  10640. + ;;
  10641. +esac
  10642. +done
  10643. +
  10644. fi
  10645. if test "${ac_cv_path_install+set}" = set; then
  10646. - INSTALL="$ac_cv_path_install"
  10647. + INSTALL=$ac_cv_path_install
  10648. else
  10649. # As a last resort, use the slow shell script. We don't cache a
  10650. # path for INSTALL within a source directory, because that will
  10651. # break other packages using the cache if that directory is
  10652. # removed, or if the path is relative.
  10653. - INSTALL="$ac_install_sh"
  10654. + INSTALL=$ac_install_sh
  10655. fi
  10656. fi
  10657. -echo "$ac_t""$INSTALL" 1>&6
  10658. +echo "$as_me:$LINENO: result: $INSTALL" >&5
  10659. +echo "${ECHO_T}$INSTALL" >&6
  10660. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  10661. # It thinks the first close brace ends the variable substitution.
  10662. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  10663. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  10664. +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  10665. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  10666. -echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  10667. -echo "configure:714: checking whether build environment is sane" >&5
  10668. +echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  10669. +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  10670. # Just in case
  10671. sleep 1
  10672. echo timestamp > conftestfile
  10673. @@ -732,8 +1718,11 @@
  10674. # if, for instance, CONFIG_SHELL is bash and it inherits a
  10675. # broken ls alias from the environment. This has actually
  10676. # happened. Such a system could not be considered "sane".
  10677. - { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
  10678. -alias in your environment" 1>&2; exit 1; }
  10679. + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  10680. +alias in your environment" >&5
  10681. +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  10682. +alias in your environment" >&2;}
  10683. + { (exit 1); exit 1; }; }
  10684. fi
  10685. test "$2" = conftestfile
  10686. @@ -742,54 +1731,54 @@
  10687. # Ok.
  10688. :
  10689. else
  10690. - { echo "configure: error: newly created file is older than distributed files!
  10691. -Check your system clock" 1>&2; exit 1; }
  10692. + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  10693. +Check your system clock" >&5
  10694. +echo "$as_me: error: newly created file is older than distributed files!
  10695. +Check your system clock" >&2;}
  10696. + { (exit 1); exit 1; }; }
  10697. fi
  10698. rm -f conftest*
  10699. -echo "$ac_t""yes" 1>&6
  10700. -if test "$program_transform_name" = s,x,x,; then
  10701. - program_transform_name=
  10702. -else
  10703. - # Double any \ or $. echo might interpret backslashes.
  10704. - cat <<\EOF_SED > conftestsed
  10705. -s,\\,\\\\,g; s,\$,$$,g
  10706. -EOF_SED
  10707. - program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  10708. - rm -f conftestsed
  10709. -fi
  10710. +echo "$as_me:$LINENO: result: yes" >&5
  10711. +echo "${ECHO_T}yes" >&6
  10712. test "$program_prefix" != NONE &&
  10713. - program_transform_name="s,^,${program_prefix},; $program_transform_name"
  10714. + program_transform_name="s,^,$program_prefix,;$program_transform_name"
  10715. # Use a double $ so make ignores it.
  10716. test "$program_suffix" != NONE &&
  10717. - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  10718. -
  10719. -# sed with no file args requires a program.
  10720. -test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  10721. -
  10722. -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  10723. -echo "configure:771: checking whether ${MAKE-make} sets \${MAKE}" >&5
  10724. -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  10725. -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  10726. - echo $ac_n "(cached) $ac_c" 1>&6
  10727. + program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  10728. +# Double any \ or $. echo might interpret backslashes.
  10729. +# By default was `s,x,x', remove it if useless.
  10730. +cat <<\_ACEOF >conftest.sed
  10731. +s/[\\$]/&&/g;s/;s,x,x,$//
  10732. +_ACEOF
  10733. +program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  10734. +rm conftest.sed
  10735. +
  10736. +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  10737. +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  10738. +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  10739. +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  10740. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10741. else
  10742. - cat > conftestmake <<\EOF
  10743. + cat >conftest.make <<\_ACEOF
  10744. all:
  10745. - @echo 'ac_maketemp="${MAKE}"'
  10746. -EOF
  10747. + @echo 'ac_maketemp="$(MAKE)"'
  10748. +_ACEOF
  10749. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  10750. -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  10751. +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  10752. if test -n "$ac_maketemp"; then
  10753. eval ac_cv_prog_make_${ac_make}_set=yes
  10754. else
  10755. eval ac_cv_prog_make_${ac_make}_set=no
  10756. fi
  10757. -rm -f conftestmake
  10758. +rm -f conftest.make
  10759. fi
  10760. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  10761. - echo "$ac_t""yes" 1>&6
  10762. + echo "$as_me:$LINENO: result: yes" >&5
  10763. +echo "${ECHO_T}yes" >&6
  10764. SET_MAKE=
  10765. else
  10766. - echo "$ac_t""no" 1>&6
  10767. + echo "$as_me:$LINENO: result: no" >&5
  10768. +echo "${ECHO_T}no" >&6
  10769. SET_MAKE="MAKE=${MAKE-make}"
  10770. fi
  10771. @@ -799,436 +1788,875 @@
  10772. VERSION=$VERSION
  10773. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  10774. - { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  10775. + { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  10776. +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  10777. + { (exit 1); exit 1; }; }
  10778. fi
  10779. missing_dir=`cd $ac_aux_dir && pwd`
  10780. -echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  10781. -echo "configure:810: checking for working aclocal" >&5
  10782. +echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
  10783. +echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
  10784. # Run test in a subshell; some versions of sh will print an error if
  10785. # an executable is not found, even if stderr is redirected.
  10786. # Redirect stdin to placate older versions of autoconf. Sigh.
  10787. -if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  10788. - ACLOCAL=aclocal
  10789. - echo "$ac_t""found" 1>&6
  10790. -else
  10791. - ACLOCAL="$missing_dir/missing aclocal"
  10792. - echo "$ac_t""missing" 1>&6
  10793. +if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
  10794. + ACLOCAL=aclocal-${am__api_version}
  10795. + echo "$as_me:$LINENO: result: found" >&5
  10796. +echo "${ECHO_T}found" >&6
  10797. +else
  10798. + ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
  10799. + echo "$as_me:$LINENO: result: missing" >&5
  10800. +echo "${ECHO_T}missing" >&6
  10801. fi
  10802. -echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  10803. -echo "configure:823: checking for working autoconf" >&5
  10804. +echo "$as_me:$LINENO: checking for working autoconf" >&5
  10805. +echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
  10806. # Run test in a subshell; some versions of sh will print an error if
  10807. # an executable is not found, even if stderr is redirected.
  10808. # Redirect stdin to placate older versions of autoconf. Sigh.
  10809. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  10810. AUTOCONF=autoconf
  10811. - echo "$ac_t""found" 1>&6
  10812. + echo "$as_me:$LINENO: result: found" >&5
  10813. +echo "${ECHO_T}found" >&6
  10814. else
  10815. AUTOCONF="$missing_dir/missing autoconf"
  10816. - echo "$ac_t""missing" 1>&6
  10817. + echo "$as_me:$LINENO: result: missing" >&5
  10818. +echo "${ECHO_T}missing" >&6
  10819. fi
  10820. -echo $ac_n "checking for working automake""... $ac_c" 1>&6
  10821. -echo "configure:836: checking for working automake" >&5
  10822. +echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
  10823. +echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
  10824. # Run test in a subshell; some versions of sh will print an error if
  10825. # an executable is not found, even if stderr is redirected.
  10826. # Redirect stdin to placate older versions of autoconf. Sigh.
  10827. -if (automake --version) < /dev/null > /dev/null 2>&1; then
  10828. - AUTOMAKE=automake
  10829. - echo "$ac_t""found" 1>&6
  10830. -else
  10831. - AUTOMAKE="$missing_dir/missing automake"
  10832. - echo "$ac_t""missing" 1>&6
  10833. +if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
  10834. + AUTOMAKE=automake-${am__api_version}
  10835. + echo "$as_me:$LINENO: result: found" >&5
  10836. +echo "${ECHO_T}found" >&6
  10837. +else
  10838. + AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
  10839. + echo "$as_me:$LINENO: result: missing" >&5
  10840. +echo "${ECHO_T}missing" >&6
  10841. fi
  10842. -echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  10843. -echo "configure:849: checking for working autoheader" >&5
  10844. +echo "$as_me:$LINENO: checking for working autoheader" >&5
  10845. +echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
  10846. # Run test in a subshell; some versions of sh will print an error if
  10847. # an executable is not found, even if stderr is redirected.
  10848. # Redirect stdin to placate older versions of autoconf. Sigh.
  10849. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  10850. AUTOHEADER=autoheader
  10851. - echo "$ac_t""found" 1>&6
  10852. + echo "$as_me:$LINENO: result: found" >&5
  10853. +echo "${ECHO_T}found" >&6
  10854. else
  10855. AUTOHEADER="$missing_dir/missing autoheader"
  10856. - echo "$ac_t""missing" 1>&6
  10857. + echo "$as_me:$LINENO: result: missing" >&5
  10858. +echo "${ECHO_T}missing" >&6
  10859. fi
  10860. -echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  10861. -echo "configure:862: checking for working makeinfo" >&5
  10862. +echo "$as_me:$LINENO: checking for working makeinfo" >&5
  10863. +echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
  10864. # Run test in a subshell; some versions of sh will print an error if
  10865. # an executable is not found, even if stderr is redirected.
  10866. # Redirect stdin to placate older versions of autoconf. Sigh.
  10867. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  10868. MAKEINFO=makeinfo
  10869. - echo "$ac_t""found" 1>&6
  10870. + echo "$as_me:$LINENO: result: found" >&5
  10871. +echo "${ECHO_T}found" >&6
  10872. else
  10873. MAKEINFO="$missing_dir/missing makeinfo"
  10874. - echo "$ac_t""missing" 1>&6
  10875. + echo "$as_me:$LINENO: result: missing" >&5
  10876. +echo "${ECHO_T}missing" >&6
  10877. fi
  10878. # Specify a configuration file
  10879. + ac_config_headers="$ac_config_headers config.h"
  10880. + ac_config_commands="$ac_config_commands default-1"
  10881. # Check whether --enable-shared or --disable-shared was given.
  10882. if test "${enable_shared+set}" = set; then
  10883. enableval="$enable_shared"
  10884. p=${PACKAGE-default}
  10885. -case "$enableval" in
  10886. -yes) enable_shared=yes ;;
  10887. -no) enable_shared=no ;;
  10888. -*)
  10889. - enable_shared=no
  10890. - # Look at the argument we got. We use all the common list separators.
  10891. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  10892. - for pkg in $enableval; do
  10893. - if test "X$pkg" = "X$p"; then
  10894. - enable_shared=yes
  10895. - fi
  10896. - done
  10897. - IFS="$ac_save_ifs"
  10898. - ;;
  10899. -esac
  10900. + case $enableval in
  10901. + yes) enable_shared=yes ;;
  10902. + no) enable_shared=no ;;
  10903. + *)
  10904. + enable_shared=no
  10905. + # Look at the argument we got. We use all the common list separators.
  10906. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10907. + for pkg in $enableval; do
  10908. + IFS="$lt_save_ifs"
  10909. + if test "X$pkg" = "X$p"; then
  10910. + enable_shared=yes
  10911. + fi
  10912. + done
  10913. + IFS="$lt_save_ifs"
  10914. + ;;
  10915. + esac
  10916. else
  10917. enable_shared=yes
  10918. -fi
  10919. +fi;
  10920. # Check whether --enable-static or --disable-static was given.
  10921. if test "${enable_static+set}" = set; then
  10922. enableval="$enable_static"
  10923. p=${PACKAGE-default}
  10924. -case "$enableval" in
  10925. -yes) enable_static=yes ;;
  10926. -no) enable_static=no ;;
  10927. -*)
  10928. - enable_static=no
  10929. - # Look at the argument we got. We use all the common list separators.
  10930. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  10931. - for pkg in $enableval; do
  10932. - if test "X$pkg" = "X$p"; then
  10933. - enable_static=yes
  10934. - fi
  10935. - done
  10936. - IFS="$ac_save_ifs"
  10937. - ;;
  10938. -esac
  10939. + case $enableval in
  10940. + yes) enable_static=yes ;;
  10941. + no) enable_static=no ;;
  10942. + *)
  10943. + enable_static=no
  10944. + # Look at the argument we got. We use all the common list separators.
  10945. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10946. + for pkg in $enableval; do
  10947. + IFS="$lt_save_ifs"
  10948. + if test "X$pkg" = "X$p"; then
  10949. + enable_static=yes
  10950. + fi
  10951. + done
  10952. + IFS="$lt_save_ifs"
  10953. + ;;
  10954. + esac
  10955. else
  10956. enable_static=yes
  10957. -fi
  10958. +fi;
  10959. # Check whether --enable-fast-install or --disable-fast-install was given.
  10960. if test "${enable_fast_install+set}" = set; then
  10961. enableval="$enable_fast_install"
  10962. p=${PACKAGE-default}
  10963. -case "$enableval" in
  10964. -yes) enable_fast_install=yes ;;
  10965. -no) enable_fast_install=no ;;
  10966. -*)
  10967. - enable_fast_install=no
  10968. - # Look at the argument we got. We use all the common list separators.
  10969. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  10970. - for pkg in $enableval; do
  10971. - if test "X$pkg" = "X$p"; then
  10972. - enable_fast_install=yes
  10973. - fi
  10974. - done
  10975. - IFS="$ac_save_ifs"
  10976. - ;;
  10977. -esac
  10978. + case $enableval in
  10979. + yes) enable_fast_install=yes ;;
  10980. + no) enable_fast_install=no ;;
  10981. + *)
  10982. + enable_fast_install=no
  10983. + # Look at the argument we got. We use all the common list separators.
  10984. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10985. + for pkg in $enableval; do
  10986. + IFS="$lt_save_ifs"
  10987. + if test "X$pkg" = "X$p"; then
  10988. + enable_fast_install=yes
  10989. + fi
  10990. + done
  10991. + IFS="$lt_save_ifs"
  10992. + ;;
  10993. + esac
  10994. else
  10995. enable_fast_install=yes
  10996. -fi
  10997. -
  10998. +fi;
  10999. # Make sure we can run config.sub.
  11000. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  11001. -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  11002. -fi
  11003. +$ac_config_sub sun4 >/dev/null 2>&1 ||
  11004. + { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  11005. +echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  11006. + { (exit 1); exit 1; }; }
  11007. +
  11008. +echo "$as_me:$LINENO: checking build system type" >&5
  11009. +echo $ECHO_N "checking build system type... $ECHO_C" >&6
  11010. +if test "${ac_cv_build+set}" = set; then
  11011. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11012. +else
  11013. + ac_cv_build_alias=$build_alias
  11014. +test -z "$ac_cv_build_alias" &&
  11015. + ac_cv_build_alias=`$ac_config_guess`
  11016. +test -z "$ac_cv_build_alias" &&
  11017. + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  11018. +echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  11019. + { (exit 1); exit 1; }; }
  11020. +ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  11021. + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  11022. +echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  11023. + { (exit 1); exit 1; }; }
  11024. +
  11025. +fi
  11026. +echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  11027. +echo "${ECHO_T}$ac_cv_build" >&6
  11028. +build=$ac_cv_build
  11029. +build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  11030. +build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  11031. +build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  11032. +
  11033. +
  11034. +echo "$as_me:$LINENO: checking host system type" >&5
  11035. +echo $ECHO_N "checking host system type... $ECHO_C" >&6
  11036. +if test "${ac_cv_host+set}" = set; then
  11037. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11038. +else
  11039. + ac_cv_host_alias=$host_alias
  11040. +test -z "$ac_cv_host_alias" &&
  11041. + ac_cv_host_alias=$ac_cv_build_alias
  11042. +ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  11043. + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  11044. +echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  11045. + { (exit 1); exit 1; }; }
  11046. +
  11047. +fi
  11048. +echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  11049. +echo "${ECHO_T}$ac_cv_host" >&6
  11050. +host=$ac_cv_host
  11051. +host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  11052. +host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  11053. +host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  11054. -echo $ac_n "checking host system type""... $ac_c" 1>&6
  11055. -echo "configure:957: checking host system type" >&5
  11056. -host_alias=$host
  11057. -case "$host_alias" in
  11058. -NONE)
  11059. - case $nonopt in
  11060. - NONE)
  11061. - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  11062. - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  11063. - fi ;;
  11064. - *) host_alias=$nonopt ;;
  11065. - esac ;;
  11066. -esac
  11067. +ac_ext=c
  11068. +ac_cpp='$CPP $CPPFLAGS'
  11069. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11070. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11071. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11072. +if test -n "$ac_tool_prefix"; then
  11073. + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11074. +set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11075. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  11076. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11077. +if test "${ac_cv_prog_CC+set}" = set; then
  11078. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11079. +else
  11080. + if test -n "$CC"; then
  11081. + ac_cv_prog_CC="$CC" # Let the user override the test.
  11082. +else
  11083. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11084. +for as_dir in $PATH
  11085. +do
  11086. + IFS=$as_save_IFS
  11087. + test -z "$as_dir" && as_dir=.
  11088. + for ac_exec_ext in '' $ac_executable_extensions; do
  11089. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11090. + ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11091. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11092. + break 2
  11093. + fi
  11094. +done
  11095. +done
  11096. -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  11097. -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  11098. -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  11099. -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  11100. -echo "$ac_t""$host" 1>&6
  11101. -
  11102. -echo $ac_n "checking build system type""... $ac_c" 1>&6
  11103. -echo "configure:978: checking build system type" >&5
  11104. -
  11105. -build_alias=$build
  11106. -case "$build_alias" in
  11107. -NONE)
  11108. - case $nonopt in
  11109. - NONE) build_alias=$host_alias ;;
  11110. - *) build_alias=$nonopt ;;
  11111. - esac ;;
  11112. -esac
  11113. -
  11114. -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
  11115. -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  11116. -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  11117. -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  11118. -echo "$ac_t""$build" 1>&6
  11119. +fi
  11120. +fi
  11121. +CC=$ac_cv_prog_CC
  11122. +if test -n "$CC"; then
  11123. + echo "$as_me:$LINENO: result: $CC" >&5
  11124. +echo "${ECHO_T}$CC" >&6
  11125. +else
  11126. + echo "$as_me:$LINENO: result: no" >&5
  11127. +echo "${ECHO_T}no" >&6
  11128. +fi
  11129. -# Extract the first word of "ranlib", so it can be a program name with args.
  11130. -set dummy ranlib; ac_word=$2
  11131. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  11132. -echo "configure:998: checking for $ac_word" >&5
  11133. -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  11134. - echo $ac_n "(cached) $ac_c" 1>&6
  11135. +fi
  11136. +if test -z "$ac_cv_prog_CC"; then
  11137. + ac_ct_CC=$CC
  11138. + # Extract the first word of "gcc", so it can be a program name with args.
  11139. +set dummy gcc; ac_word=$2
  11140. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  11141. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11142. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  11143. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11144. else
  11145. - if test -n "$RANLIB"; then
  11146. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  11147. + if test -n "$ac_ct_CC"; then
  11148. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11149. else
  11150. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  11151. - ac_dummy="$PATH"
  11152. - for ac_dir in $ac_dummy; do
  11153. - test -z "$ac_dir" && ac_dir=.
  11154. - if test -f $ac_dir/$ac_word; then
  11155. - ac_cv_prog_RANLIB="ranlib"
  11156. - break
  11157. - fi
  11158. - done
  11159. - IFS="$ac_save_ifs"
  11160. - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  11161. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11162. +for as_dir in $PATH
  11163. +do
  11164. + IFS=$as_save_IFS
  11165. + test -z "$as_dir" && as_dir=.
  11166. + for ac_exec_ext in '' $ac_executable_extensions; do
  11167. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11168. + ac_cv_prog_ac_ct_CC="gcc"
  11169. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11170. + break 2
  11171. + fi
  11172. +done
  11173. +done
  11174. +
  11175. fi
  11176. fi
  11177. -RANLIB="$ac_cv_prog_RANLIB"
  11178. -if test -n "$RANLIB"; then
  11179. - echo "$ac_t""$RANLIB" 1>&6
  11180. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11181. +if test -n "$ac_ct_CC"; then
  11182. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  11183. +echo "${ECHO_T}$ac_ct_CC" >&6
  11184. else
  11185. - echo "$ac_t""no" 1>&6
  11186. + echo "$as_me:$LINENO: result: no" >&5
  11187. +echo "${ECHO_T}no" >&6
  11188. fi
  11189. -# Extract the first word of "gcc", so it can be a program name with args.
  11190. -set dummy gcc; ac_word=$2
  11191. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  11192. -echo "configure:1028: checking for $ac_word" >&5
  11193. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  11194. - echo $ac_n "(cached) $ac_c" 1>&6
  11195. + CC=$ac_ct_CC
  11196. +else
  11197. + CC="$ac_cv_prog_CC"
  11198. +fi
  11199. +
  11200. +if test -z "$CC"; then
  11201. + if test -n "$ac_tool_prefix"; then
  11202. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11203. +set dummy ${ac_tool_prefix}cc; ac_word=$2
  11204. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  11205. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11206. +if test "${ac_cv_prog_CC+set}" = set; then
  11207. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11208. else
  11209. if test -n "$CC"; then
  11210. ac_cv_prog_CC="$CC" # Let the user override the test.
  11211. else
  11212. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  11213. - ac_dummy="$PATH"
  11214. - for ac_dir in $ac_dummy; do
  11215. - test -z "$ac_dir" && ac_dir=.
  11216. - if test -f $ac_dir/$ac_word; then
  11217. - ac_cv_prog_CC="gcc"
  11218. - break
  11219. - fi
  11220. - done
  11221. - IFS="$ac_save_ifs"
  11222. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11223. +for as_dir in $PATH
  11224. +do
  11225. + IFS=$as_save_IFS
  11226. + test -z "$as_dir" && as_dir=.
  11227. + for ac_exec_ext in '' $ac_executable_extensions; do
  11228. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11229. + ac_cv_prog_CC="${ac_tool_prefix}cc"
  11230. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11231. + break 2
  11232. + fi
  11233. +done
  11234. +done
  11235. +
  11236. fi
  11237. fi
  11238. -CC="$ac_cv_prog_CC"
  11239. +CC=$ac_cv_prog_CC
  11240. if test -n "$CC"; then
  11241. - echo "$ac_t""$CC" 1>&6
  11242. + echo "$as_me:$LINENO: result: $CC" >&5
  11243. +echo "${ECHO_T}$CC" >&6
  11244. else
  11245. - echo "$ac_t""no" 1>&6
  11246. + echo "$as_me:$LINENO: result: no" >&5
  11247. +echo "${ECHO_T}no" >&6
  11248. fi
  11249. -if test -z "$CC"; then
  11250. +fi
  11251. +if test -z "$ac_cv_prog_CC"; then
  11252. + ac_ct_CC=$CC
  11253. # Extract the first word of "cc", so it can be a program name with args.
  11254. set dummy cc; ac_word=$2
  11255. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  11256. -echo "configure:1058: checking for $ac_word" >&5
  11257. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  11258. - echo $ac_n "(cached) $ac_c" 1>&6
  11259. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  11260. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11261. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  11262. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11263. else
  11264. - if test -n "$CC"; then
  11265. - ac_cv_prog_CC="$CC" # Let the user override the test.
  11266. + if test -n "$ac_ct_CC"; then
  11267. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11268. else
  11269. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  11270. - ac_prog_rejected=no
  11271. - ac_dummy="$PATH"
  11272. - for ac_dir in $ac_dummy; do
  11273. - test -z "$ac_dir" && ac_dir=.
  11274. - if test -f $ac_dir/$ac_word; then
  11275. - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  11276. - ac_prog_rejected=yes
  11277. - continue
  11278. - fi
  11279. - ac_cv_prog_CC="cc"
  11280. - break
  11281. - fi
  11282. - done
  11283. - IFS="$ac_save_ifs"
  11284. -if test $ac_prog_rejected = yes; then
  11285. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11286. +for as_dir in $PATH
  11287. +do
  11288. + IFS=$as_save_IFS
  11289. + test -z "$as_dir" && as_dir=.
  11290. + for ac_exec_ext in '' $ac_executable_extensions; do
  11291. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11292. + ac_cv_prog_ac_ct_CC="cc"
  11293. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11294. + break 2
  11295. + fi
  11296. +done
  11297. +done
  11298. +
  11299. +fi
  11300. +fi
  11301. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11302. +if test -n "$ac_ct_CC"; then
  11303. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  11304. +echo "${ECHO_T}$ac_ct_CC" >&6
  11305. +else
  11306. + echo "$as_me:$LINENO: result: no" >&5
  11307. +echo "${ECHO_T}no" >&6
  11308. +fi
  11309. +
  11310. + CC=$ac_ct_CC
  11311. +else
  11312. + CC="$ac_cv_prog_CC"
  11313. +fi
  11314. +
  11315. +fi
  11316. +if test -z "$CC"; then
  11317. + # Extract the first word of "cc", so it can be a program name with args.
  11318. +set dummy cc; ac_word=$2
  11319. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  11320. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11321. +if test "${ac_cv_prog_CC+set}" = set; then
  11322. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11323. +else
  11324. + if test -n "$CC"; then
  11325. + ac_cv_prog_CC="$CC" # Let the user override the test.
  11326. +else
  11327. + ac_prog_rejected=no
  11328. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11329. +for as_dir in $PATH
  11330. +do
  11331. + IFS=$as_save_IFS
  11332. + test -z "$as_dir" && as_dir=.
  11333. + for ac_exec_ext in '' $ac_executable_extensions; do
  11334. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11335. + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11336. + ac_prog_rejected=yes
  11337. + continue
  11338. + fi
  11339. + ac_cv_prog_CC="cc"
  11340. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11341. + break 2
  11342. + fi
  11343. +done
  11344. +done
  11345. +
  11346. +if test $ac_prog_rejected = yes; then
  11347. # We found a bogon in the path, so make sure we never use it.
  11348. set dummy $ac_cv_prog_CC
  11349. shift
  11350. - if test $# -gt 0; then
  11351. + if test $# != 0; then
  11352. # We chose a different compiler from the bogus one.
  11353. # However, it has the same basename, so the bogon will be chosen
  11354. # first if we set CC to just the basename; use the full file name.
  11355. shift
  11356. - set dummy "$ac_dir/$ac_word" "$@"
  11357. - shift
  11358. - ac_cv_prog_CC="$@"
  11359. + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  11360. fi
  11361. fi
  11362. fi
  11363. fi
  11364. -CC="$ac_cv_prog_CC"
  11365. +CC=$ac_cv_prog_CC
  11366. if test -n "$CC"; then
  11367. - echo "$ac_t""$CC" 1>&6
  11368. + echo "$as_me:$LINENO: result: $CC" >&5
  11369. +echo "${ECHO_T}$CC" >&6
  11370. else
  11371. - echo "$ac_t""no" 1>&6
  11372. + echo "$as_me:$LINENO: result: no" >&5
  11373. +echo "${ECHO_T}no" >&6
  11374. fi
  11375. - if test -z "$CC"; then
  11376. - case "`uname -s`" in
  11377. - *win32* | *WIN32*)
  11378. - # Extract the first word of "cl", so it can be a program name with args.
  11379. -set dummy cl; ac_word=$2
  11380. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  11381. -echo "configure:1109: checking for $ac_word" >&5
  11382. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  11383. - echo $ac_n "(cached) $ac_c" 1>&6
  11384. +fi
  11385. +if test -z "$CC"; then
  11386. + if test -n "$ac_tool_prefix"; then
  11387. + for ac_prog in cl
  11388. + do
  11389. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11390. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11391. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  11392. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11393. +if test "${ac_cv_prog_CC+set}" = set; then
  11394. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11395. else
  11396. if test -n "$CC"; then
  11397. ac_cv_prog_CC="$CC" # Let the user override the test.
  11398. else
  11399. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  11400. - ac_dummy="$PATH"
  11401. - for ac_dir in $ac_dummy; do
  11402. - test -z "$ac_dir" && ac_dir=.
  11403. - if test -f $ac_dir/$ac_word; then
  11404. - ac_cv_prog_CC="cl"
  11405. - break
  11406. - fi
  11407. - done
  11408. - IFS="$ac_save_ifs"
  11409. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11410. +for as_dir in $PATH
  11411. +do
  11412. + IFS=$as_save_IFS
  11413. + test -z "$as_dir" && as_dir=.
  11414. + for ac_exec_ext in '' $ac_executable_extensions; do
  11415. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11416. + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11417. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11418. + break 2
  11419. + fi
  11420. +done
  11421. +done
  11422. +
  11423. fi
  11424. fi
  11425. -CC="$ac_cv_prog_CC"
  11426. +CC=$ac_cv_prog_CC
  11427. if test -n "$CC"; then
  11428. - echo "$ac_t""$CC" 1>&6
  11429. + echo "$as_me:$LINENO: result: $CC" >&5
  11430. +echo "${ECHO_T}$CC" >&6
  11431. else
  11432. - echo "$ac_t""no" 1>&6
  11433. + echo "$as_me:$LINENO: result: no" >&5
  11434. +echo "${ECHO_T}no" >&6
  11435. fi
  11436. - ;;
  11437. - esac
  11438. +
  11439. + test -n "$CC" && break
  11440. + done
  11441. +fi
  11442. +if test -z "$CC"; then
  11443. + ac_ct_CC=$CC
  11444. + for ac_prog in cl
  11445. +do
  11446. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  11447. +set dummy $ac_prog; ac_word=$2
  11448. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  11449. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11450. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  11451. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11452. +else
  11453. + if test -n "$ac_ct_CC"; then
  11454. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11455. +else
  11456. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11457. +for as_dir in $PATH
  11458. +do
  11459. + IFS=$as_save_IFS
  11460. + test -z "$as_dir" && as_dir=.
  11461. + for ac_exec_ext in '' $ac_executable_extensions; do
  11462. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11463. + ac_cv_prog_ac_ct_CC="$ac_prog"
  11464. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11465. + break 2
  11466. fi
  11467. - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  11468. +done
  11469. +done
  11470. +
  11471. fi
  11472. +fi
  11473. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11474. +if test -n "$ac_ct_CC"; then
  11475. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  11476. +echo "${ECHO_T}$ac_ct_CC" >&6
  11477. +else
  11478. + echo "$as_me:$LINENO: result: no" >&5
  11479. +echo "${ECHO_T}no" >&6
  11480. +fi
  11481. +
  11482. + test -n "$ac_ct_CC" && break
  11483. +done
  11484. -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  11485. -echo "configure:1141: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  11486. + CC=$ac_ct_CC
  11487. +fi
  11488. -ac_ext=c
  11489. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  11490. -ac_cpp='$CPP $CPPFLAGS'
  11491. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  11492. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  11493. -cross_compiling=$ac_cv_prog_cc_cross
  11494. +fi
  11495. -cat > conftest.$ac_ext << EOF
  11496. -#line 1152 "configure"
  11497. -#include "confdefs.h"
  11498. +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  11499. +See \`config.log' for more details." >&5
  11500. +echo "$as_me: error: no acceptable C compiler found in \$PATH
  11501. +See \`config.log' for more details." >&2;}
  11502. + { (exit 1); exit 1; }; }
  11503. +
  11504. +# Provide some information about the compiler.
  11505. +echo "$as_me:$LINENO:" \
  11506. + "checking for C compiler version" >&5
  11507. +ac_compiler=`set X $ac_compile; echo $2`
  11508. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  11509. + (eval $ac_compiler --version </dev/null >&5) 2>&5
  11510. + ac_status=$?
  11511. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11512. + (exit $ac_status); }
  11513. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  11514. + (eval $ac_compiler -v </dev/null >&5) 2>&5
  11515. + ac_status=$?
  11516. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11517. + (exit $ac_status); }
  11518. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  11519. + (eval $ac_compiler -V </dev/null >&5) 2>&5
  11520. + ac_status=$?
  11521. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11522. + (exit $ac_status); }
  11523. +
  11524. +cat >conftest.$ac_ext <<_ACEOF
  11525. +/* confdefs.h. */
  11526. +_ACEOF
  11527. +cat confdefs.h >>conftest.$ac_ext
  11528. +cat >>conftest.$ac_ext <<_ACEOF
  11529. +/* end confdefs.h. */
  11530. -main(){return(0);}
  11531. -EOF
  11532. -if { (eval echo configure:1157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11533. - ac_cv_prog_cc_works=yes
  11534. - # If we can't run a trivial program, we are probably using a cross compiler.
  11535. - if (./conftest; exit) 2>/dev/null; then
  11536. - ac_cv_prog_cc_cross=no
  11537. - else
  11538. - ac_cv_prog_cc_cross=yes
  11539. - fi
  11540. +int
  11541. +main ()
  11542. +{
  11543. +
  11544. + ;
  11545. + return 0;
  11546. +}
  11547. +_ACEOF
  11548. +ac_clean_files_save=$ac_clean_files
  11549. +ac_clean_files="$ac_clean_files a.out a.exe b.out"
  11550. +# Try to create an executable without -o first, disregard a.out.
  11551. +# It will help us diagnose broken compilers, and finding out an intuition
  11552. +# of exeext.
  11553. +echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  11554. +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  11555. +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  11556. +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  11557. + (eval $ac_link_default) 2>&5
  11558. + ac_status=$?
  11559. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11560. + (exit $ac_status); }; then
  11561. + # Find the output, starting from the most likely. This scheme is
  11562. +# not robust to junk in `.', hence go to wildcards (a.*) only as a last
  11563. +# resort.
  11564. +
  11565. +# Be careful to initialize this variable, since it used to be cached.
  11566. +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  11567. +ac_cv_exeext=
  11568. +# b.out is created by i960 compilers.
  11569. +for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  11570. +do
  11571. + test -f "$ac_file" || continue
  11572. + case $ac_file in
  11573. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  11574. + ;;
  11575. + conftest.$ac_ext )
  11576. + # This is the source file.
  11577. + ;;
  11578. + [ab].out )
  11579. + # We found the default executable, but exeext='' is most
  11580. + # certainly right.
  11581. + break;;
  11582. + *.* )
  11583. + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  11584. + # FIXME: I believe we export ac_cv_exeext for Libtool,
  11585. + # but it would be cool to find out if it's true. Does anybody
  11586. + # maintain Libtool? --akim.
  11587. + export ac_cv_exeext
  11588. + break;;
  11589. + * )
  11590. + break;;
  11591. + esac
  11592. +done
  11593. else
  11594. - echo "configure: failed program was:" >&5
  11595. - cat conftest.$ac_ext >&5
  11596. - ac_cv_prog_cc_works=no
  11597. + echo "$as_me: failed program was:" >&5
  11598. +sed 's/^/| /' conftest.$ac_ext >&5
  11599. +
  11600. +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  11601. +See \`config.log' for more details." >&5
  11602. +echo "$as_me: error: C compiler cannot create executables
  11603. +See \`config.log' for more details." >&2;}
  11604. + { (exit 77); exit 77; }; }
  11605. +fi
  11606. +
  11607. +ac_exeext=$ac_cv_exeext
  11608. +echo "$as_me:$LINENO: result: $ac_file" >&5
  11609. +echo "${ECHO_T}$ac_file" >&6
  11610. +
  11611. +# Check the compiler produces executables we can run. If not, either
  11612. +# the compiler is broken, or we cross compile.
  11613. +echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  11614. +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  11615. +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  11616. +# If not cross compiling, check that we can run a simple program.
  11617. +if test "$cross_compiling" != yes; then
  11618. + if { ac_try='./$ac_file'
  11619. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11620. + (eval $ac_try) 2>&5
  11621. + ac_status=$?
  11622. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11623. + (exit $ac_status); }; }; then
  11624. + cross_compiling=no
  11625. + else
  11626. + if test "$cross_compiling" = maybe; then
  11627. + cross_compiling=yes
  11628. + else
  11629. + { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  11630. +If you meant to cross compile, use \`--host'.
  11631. +See \`config.log' for more details." >&5
  11632. +echo "$as_me: error: cannot run C compiled programs.
  11633. +If you meant to cross compile, use \`--host'.
  11634. +See \`config.log' for more details." >&2;}
  11635. + { (exit 1); exit 1; }; }
  11636. + fi
  11637. + fi
  11638. fi
  11639. -rm -fr conftest*
  11640. -ac_ext=c
  11641. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  11642. -ac_cpp='$CPP $CPPFLAGS'
  11643. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  11644. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  11645. -cross_compiling=$ac_cv_prog_cc_cross
  11646. -
  11647. -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  11648. -if test $ac_cv_prog_cc_works = no; then
  11649. - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  11650. -fi
  11651. -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  11652. -echo "configure:1183: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  11653. -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  11654. -cross_compiling=$ac_cv_prog_cc_cross
  11655. -
  11656. -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  11657. -echo "configure:1188: checking whether we are using GNU C" >&5
  11658. -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  11659. - echo $ac_n "(cached) $ac_c" 1>&6
  11660. -else
  11661. - cat > conftest.c <<EOF
  11662. -#ifdef __GNUC__
  11663. - yes;
  11664. -#endif
  11665. -EOF
  11666. -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  11667. - ac_cv_prog_gcc=yes
  11668. +echo "$as_me:$LINENO: result: yes" >&5
  11669. +echo "${ECHO_T}yes" >&6
  11670. +
  11671. +rm -f a.out a.exe conftest$ac_cv_exeext b.out
  11672. +ac_clean_files=$ac_clean_files_save
  11673. +# Check the compiler produces executables we can run. If not, either
  11674. +# the compiler is broken, or we cross compile.
  11675. +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  11676. +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  11677. +echo "$as_me:$LINENO: result: $cross_compiling" >&5
  11678. +echo "${ECHO_T}$cross_compiling" >&6
  11679. +
  11680. +echo "$as_me:$LINENO: checking for suffix of executables" >&5
  11681. +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  11682. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11683. + (eval $ac_link) 2>&5
  11684. + ac_status=$?
  11685. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11686. + (exit $ac_status); }; then
  11687. + # If both `conftest.exe' and `conftest' are `present' (well, observable)
  11688. +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  11689. +# work properly (i.e., refer to `conftest.exe'), while it won't with
  11690. +# `rm'.
  11691. +for ac_file in conftest.exe conftest conftest.*; do
  11692. + test -f "$ac_file" || continue
  11693. + case $ac_file in
  11694. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  11695. + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  11696. + export ac_cv_exeext
  11697. + break;;
  11698. + * ) break;;
  11699. + esac
  11700. +done
  11701. else
  11702. - ac_cv_prog_gcc=no
  11703. -fi
  11704. -fi
  11705. + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  11706. +See \`config.log' for more details." >&5
  11707. +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  11708. +See \`config.log' for more details." >&2;}
  11709. + { (exit 1); exit 1; }; }
  11710. +fi
  11711. +
  11712. +rm -f conftest$ac_cv_exeext
  11713. +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  11714. +echo "${ECHO_T}$ac_cv_exeext" >&6
  11715. +
  11716. +rm -f conftest.$ac_ext
  11717. +EXEEXT=$ac_cv_exeext
  11718. +ac_exeext=$EXEEXT
  11719. +echo "$as_me:$LINENO: checking for suffix of object files" >&5
  11720. +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  11721. +if test "${ac_cv_objext+set}" = set; then
  11722. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11723. +else
  11724. + cat >conftest.$ac_ext <<_ACEOF
  11725. +/* confdefs.h. */
  11726. +_ACEOF
  11727. +cat confdefs.h >>conftest.$ac_ext
  11728. +cat >>conftest.$ac_ext <<_ACEOF
  11729. +/* end confdefs.h. */
  11730. -echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  11731. +int
  11732. +main ()
  11733. +{
  11734. -if test $ac_cv_prog_gcc = yes; then
  11735. - GCC=yes
  11736. + ;
  11737. + return 0;
  11738. +}
  11739. +_ACEOF
  11740. +rm -f conftest.o conftest.obj
  11741. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11742. + (eval $ac_compile) 2>&5
  11743. + ac_status=$?
  11744. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11745. + (exit $ac_status); }; then
  11746. + for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  11747. + case $ac_file in
  11748. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  11749. + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  11750. + break;;
  11751. + esac
  11752. +done
  11753. else
  11754. - GCC=
  11755. -fi
  11756. + echo "$as_me: failed program was:" >&5
  11757. +sed 's/^/| /' conftest.$ac_ext >&5
  11758. -ac_test_CFLAGS="${CFLAGS+set}"
  11759. -ac_save_CFLAGS="$CFLAGS"
  11760. -CFLAGS=
  11761. -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  11762. -echo "configure:1216: checking whether ${CC-cc} accepts -g" >&5
  11763. -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  11764. - echo $ac_n "(cached) $ac_c" 1>&6
  11765. -else
  11766. - echo 'void f(){}' > conftest.c
  11767. -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  11768. +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  11769. +See \`config.log' for more details." >&5
  11770. +echo "$as_me: error: cannot compute suffix of object files: cannot compile
  11771. +See \`config.log' for more details." >&2;}
  11772. + { (exit 1); exit 1; }; }
  11773. +fi
  11774. +
  11775. +rm -f conftest.$ac_cv_objext conftest.$ac_ext
  11776. +fi
  11777. +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  11778. +echo "${ECHO_T}$ac_cv_objext" >&6
  11779. +OBJEXT=$ac_cv_objext
  11780. +ac_objext=$OBJEXT
  11781. +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  11782. +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  11783. +if test "${ac_cv_c_compiler_gnu+set}" = set; then
  11784. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11785. +else
  11786. + cat >conftest.$ac_ext <<_ACEOF
  11787. +/* confdefs.h. */
  11788. +_ACEOF
  11789. +cat confdefs.h >>conftest.$ac_ext
  11790. +cat >>conftest.$ac_ext <<_ACEOF
  11791. +/* end confdefs.h. */
  11792. +
  11793. +int
  11794. +main ()
  11795. +{
  11796. +#ifndef __GNUC__
  11797. + choke me
  11798. +#endif
  11799. +
  11800. + ;
  11801. + return 0;
  11802. +}
  11803. +_ACEOF
  11804. +rm -f conftest.$ac_objext
  11805. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11806. + (eval $ac_compile) 2>conftest.er1
  11807. + ac_status=$?
  11808. + grep -v '^ *+' conftest.er1 >conftest.err
  11809. + rm -f conftest.er1
  11810. + cat conftest.err >&5
  11811. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11812. + (exit $ac_status); } &&
  11813. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11814. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11815. + (eval $ac_try) 2>&5
  11816. + ac_status=$?
  11817. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11818. + (exit $ac_status); }; } &&
  11819. + { ac_try='test -s conftest.$ac_objext'
  11820. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11821. + (eval $ac_try) 2>&5
  11822. + ac_status=$?
  11823. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11824. + (exit $ac_status); }; }; then
  11825. + ac_compiler_gnu=yes
  11826. +else
  11827. + echo "$as_me: failed program was:" >&5
  11828. +sed 's/^/| /' conftest.$ac_ext >&5
  11829. +
  11830. +ac_compiler_gnu=no
  11831. +fi
  11832. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11833. +ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11834. +
  11835. +fi
  11836. +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  11837. +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  11838. +GCC=`test $ac_compiler_gnu = yes && echo yes`
  11839. +ac_test_CFLAGS=${CFLAGS+set}
  11840. +ac_save_CFLAGS=$CFLAGS
  11841. +CFLAGS="-g"
  11842. +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  11843. +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  11844. +if test "${ac_cv_prog_cc_g+set}" = set; then
  11845. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11846. +else
  11847. + cat >conftest.$ac_ext <<_ACEOF
  11848. +/* confdefs.h. */
  11849. +_ACEOF
  11850. +cat confdefs.h >>conftest.$ac_ext
  11851. +cat >>conftest.$ac_ext <<_ACEOF
  11852. +/* end confdefs.h. */
  11853. +
  11854. +int
  11855. +main ()
  11856. +{
  11857. +
  11858. + ;
  11859. + return 0;
  11860. +}
  11861. +_ACEOF
  11862. +rm -f conftest.$ac_objext
  11863. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11864. + (eval $ac_compile) 2>conftest.er1
  11865. + ac_status=$?
  11866. + grep -v '^ *+' conftest.er1 >conftest.err
  11867. + rm -f conftest.er1
  11868. + cat conftest.err >&5
  11869. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11870. + (exit $ac_status); } &&
  11871. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11872. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11873. + (eval $ac_try) 2>&5
  11874. + ac_status=$?
  11875. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11876. + (exit $ac_status); }; } &&
  11877. + { ac_try='test -s conftest.$ac_objext'
  11878. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11879. + (eval $ac_try) 2>&5
  11880. + ac_status=$?
  11881. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11882. + (exit $ac_status); }; }; then
  11883. ac_cv_prog_cc_g=yes
  11884. else
  11885. - ac_cv_prog_cc_g=no
  11886. -fi
  11887. -rm -f conftest*
  11888. + echo "$as_me: failed program was:" >&5
  11889. +sed 's/^/| /' conftest.$ac_ext >&5
  11890. +ac_cv_prog_cc_g=no
  11891. fi
  11892. -
  11893. -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  11894. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11895. +fi
  11896. +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  11897. +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  11898. if test "$ac_test_CFLAGS" = set; then
  11899. - CFLAGS="$ac_save_CFLAGS"
  11900. + CFLAGS=$ac_save_CFLAGS
  11901. elif test $ac_cv_prog_cc_g = yes; then
  11902. if test "$GCC" = yes; then
  11903. CFLAGS="-g -O2"
  11904. @@ -1242,6 +2670,338 @@
  11905. CFLAGS=
  11906. fi
  11907. fi
  11908. +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  11909. +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  11910. +if test "${ac_cv_prog_cc_stdc+set}" = set; then
  11911. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11912. +else
  11913. + ac_cv_prog_cc_stdc=no
  11914. +ac_save_CC=$CC
  11915. +cat >conftest.$ac_ext <<_ACEOF
  11916. +/* confdefs.h. */
  11917. +_ACEOF
  11918. +cat confdefs.h >>conftest.$ac_ext
  11919. +cat >>conftest.$ac_ext <<_ACEOF
  11920. +/* end confdefs.h. */
  11921. +#include <stdarg.h>
  11922. +#include <stdio.h>
  11923. +#include <sys/types.h>
  11924. +#include <sys/stat.h>
  11925. +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  11926. +struct buf { int x; };
  11927. +FILE * (*rcsopen) (struct buf *, struct stat *, int);
  11928. +static char *e (p, i)
  11929. + char **p;
  11930. + int i;
  11931. +{
  11932. + return p[i];
  11933. +}
  11934. +static char *f (char * (*g) (char **, int), char **p, ...)
  11935. +{
  11936. + char *s;
  11937. + va_list v;
  11938. + va_start (v,p);
  11939. + s = g (p, va_arg (v,int));
  11940. + va_end (v);
  11941. + return s;
  11942. +}
  11943. +
  11944. +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  11945. + function prototypes and stuff, but not '\xHH' hex character constants.
  11946. + These don't provoke an error unfortunately, instead are silently treated
  11947. + as 'x'. The following induces an error, until -std1 is added to get
  11948. + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  11949. + array size at least. It's necessary to write '\x00'==0 to get something
  11950. + that's true only with -std1. */
  11951. +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  11952. +
  11953. +int test (int i, double x);
  11954. +struct s1 {int (*f) (int a);};
  11955. +struct s2 {int (*f) (double a);};
  11956. +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  11957. +int argc;
  11958. +char **argv;
  11959. +int
  11960. +main ()
  11961. +{
  11962. +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  11963. + ;
  11964. + return 0;
  11965. +}
  11966. +_ACEOF
  11967. +# Don't try gcc -ansi; that turns off useful extensions and
  11968. +# breaks some systems' header files.
  11969. +# AIX -qlanglvl=ansi
  11970. +# Ultrix and OSF/1 -std1
  11971. +# HP-UX 10.20 and later -Ae
  11972. +# HP-UX older versions -Aa -D_HPUX_SOURCE
  11973. +# SVR4 -Xc -D__EXTENSIONS__
  11974. +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11975. +do
  11976. + CC="$ac_save_CC $ac_arg"
  11977. + rm -f conftest.$ac_objext
  11978. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11979. + (eval $ac_compile) 2>conftest.er1
  11980. + ac_status=$?
  11981. + grep -v '^ *+' conftest.er1 >conftest.err
  11982. + rm -f conftest.er1
  11983. + cat conftest.err >&5
  11984. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11985. + (exit $ac_status); } &&
  11986. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11987. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11988. + (eval $ac_try) 2>&5
  11989. + ac_status=$?
  11990. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11991. + (exit $ac_status); }; } &&
  11992. + { ac_try='test -s conftest.$ac_objext'
  11993. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11994. + (eval $ac_try) 2>&5
  11995. + ac_status=$?
  11996. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11997. + (exit $ac_status); }; }; then
  11998. + ac_cv_prog_cc_stdc=$ac_arg
  11999. +break
  12000. +else
  12001. + echo "$as_me: failed program was:" >&5
  12002. +sed 's/^/| /' conftest.$ac_ext >&5
  12003. +
  12004. +fi
  12005. +rm -f conftest.err conftest.$ac_objext
  12006. +done
  12007. +rm -f conftest.$ac_ext conftest.$ac_objext
  12008. +CC=$ac_save_CC
  12009. +
  12010. +fi
  12011. +
  12012. +case "x$ac_cv_prog_cc_stdc" in
  12013. + x|xno)
  12014. + echo "$as_me:$LINENO: result: none needed" >&5
  12015. +echo "${ECHO_T}none needed" >&6 ;;
  12016. + *)
  12017. + echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  12018. +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  12019. + CC="$CC $ac_cv_prog_cc_stdc" ;;
  12020. +esac
  12021. +
  12022. +# Some people use a C++ compiler to compile C. Since we use `exit',
  12023. +# in C++ we need to declare it. In case someone uses the same compiler
  12024. +# for both compiling C and C++ we need to have the C++ compiler decide
  12025. +# the declaration of exit, since it's the most demanding environment.
  12026. +cat >conftest.$ac_ext <<_ACEOF
  12027. +#ifndef __cplusplus
  12028. + choke me
  12029. +#endif
  12030. +_ACEOF
  12031. +rm -f conftest.$ac_objext
  12032. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12033. + (eval $ac_compile) 2>conftest.er1
  12034. + ac_status=$?
  12035. + grep -v '^ *+' conftest.er1 >conftest.err
  12036. + rm -f conftest.er1
  12037. + cat conftest.err >&5
  12038. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12039. + (exit $ac_status); } &&
  12040. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12041. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12042. + (eval $ac_try) 2>&5
  12043. + ac_status=$?
  12044. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12045. + (exit $ac_status); }; } &&
  12046. + { ac_try='test -s conftest.$ac_objext'
  12047. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12048. + (eval $ac_try) 2>&5
  12049. + ac_status=$?
  12050. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12051. + (exit $ac_status); }; }; then
  12052. + for ac_declaration in \
  12053. + '' \
  12054. + 'extern "C" void std::exit (int) throw (); using std::exit;' \
  12055. + 'extern "C" void std::exit (int); using std::exit;' \
  12056. + 'extern "C" void exit (int) throw ();' \
  12057. + 'extern "C" void exit (int);' \
  12058. + 'void exit (int);'
  12059. +do
  12060. + cat >conftest.$ac_ext <<_ACEOF
  12061. +/* confdefs.h. */
  12062. +_ACEOF
  12063. +cat confdefs.h >>conftest.$ac_ext
  12064. +cat >>conftest.$ac_ext <<_ACEOF
  12065. +/* end confdefs.h. */
  12066. +$ac_declaration
  12067. +#include <stdlib.h>
  12068. +int
  12069. +main ()
  12070. +{
  12071. +exit (42);
  12072. + ;
  12073. + return 0;
  12074. +}
  12075. +_ACEOF
  12076. +rm -f conftest.$ac_objext
  12077. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12078. + (eval $ac_compile) 2>conftest.er1
  12079. + ac_status=$?
  12080. + grep -v '^ *+' conftest.er1 >conftest.err
  12081. + rm -f conftest.er1
  12082. + cat conftest.err >&5
  12083. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12084. + (exit $ac_status); } &&
  12085. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12086. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12087. + (eval $ac_try) 2>&5
  12088. + ac_status=$?
  12089. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12090. + (exit $ac_status); }; } &&
  12091. + { ac_try='test -s conftest.$ac_objext'
  12092. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12093. + (eval $ac_try) 2>&5
  12094. + ac_status=$?
  12095. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12096. + (exit $ac_status); }; }; then
  12097. + :
  12098. +else
  12099. + echo "$as_me: failed program was:" >&5
  12100. +sed 's/^/| /' conftest.$ac_ext >&5
  12101. +
  12102. +continue
  12103. +fi
  12104. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12105. + cat >conftest.$ac_ext <<_ACEOF
  12106. +/* confdefs.h. */
  12107. +_ACEOF
  12108. +cat confdefs.h >>conftest.$ac_ext
  12109. +cat >>conftest.$ac_ext <<_ACEOF
  12110. +/* end confdefs.h. */
  12111. +$ac_declaration
  12112. +int
  12113. +main ()
  12114. +{
  12115. +exit (42);
  12116. + ;
  12117. + return 0;
  12118. +}
  12119. +_ACEOF
  12120. +rm -f conftest.$ac_objext
  12121. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12122. + (eval $ac_compile) 2>conftest.er1
  12123. + ac_status=$?
  12124. + grep -v '^ *+' conftest.er1 >conftest.err
  12125. + rm -f conftest.er1
  12126. + cat conftest.err >&5
  12127. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12128. + (exit $ac_status); } &&
  12129. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12130. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12131. + (eval $ac_try) 2>&5
  12132. + ac_status=$?
  12133. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12134. + (exit $ac_status); }; } &&
  12135. + { ac_try='test -s conftest.$ac_objext'
  12136. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12137. + (eval $ac_try) 2>&5
  12138. + ac_status=$?
  12139. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12140. + (exit $ac_status); }; }; then
  12141. + break
  12142. +else
  12143. + echo "$as_me: failed program was:" >&5
  12144. +sed 's/^/| /' conftest.$ac_ext >&5
  12145. +
  12146. +fi
  12147. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12148. +done
  12149. +rm -f conftest*
  12150. +if test -n "$ac_declaration"; then
  12151. + echo '#ifdef __cplusplus' >>confdefs.h
  12152. + echo $ac_declaration >>confdefs.h
  12153. + echo '#endif' >>confdefs.h
  12154. +fi
  12155. +
  12156. +else
  12157. + echo "$as_me: failed program was:" >&5
  12158. +sed 's/^/| /' conftest.$ac_ext >&5
  12159. +
  12160. +fi
  12161. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12162. +ac_ext=c
  12163. +ac_cpp='$CPP $CPPFLAGS'
  12164. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12165. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12166. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12167. +
  12168. +echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  12169. +echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  12170. +if test "${lt_cv_path_SED+set}" = set; then
  12171. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12172. +else
  12173. + # Loop through the user's path and test for sed and gsed.
  12174. +# Then use that list of sed's as ones to test for truncation.
  12175. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12176. +for as_dir in $PATH
  12177. +do
  12178. + IFS=$as_save_IFS
  12179. + test -z "$as_dir" && as_dir=.
  12180. + for lt_ac_prog in sed gsed; do
  12181. + for ac_exec_ext in '' $ac_executable_extensions; do
  12182. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  12183. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  12184. + fi
  12185. + done
  12186. + done
  12187. +done
  12188. +lt_ac_max=0
  12189. +lt_ac_count=0
  12190. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  12191. +# along with /bin/sed that truncates output.
  12192. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  12193. + test ! -f $lt_ac_sed && continue
  12194. + cat /dev/null > conftest.in
  12195. + lt_ac_count=0
  12196. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  12197. + # Check for GNU sed and select it if it is found.
  12198. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  12199. + lt_cv_path_SED=$lt_ac_sed
  12200. + break
  12201. + fi
  12202. + while true; do
  12203. + cat conftest.in conftest.in >conftest.tmp
  12204. + mv conftest.tmp conftest.in
  12205. + cp conftest.in conftest.nl
  12206. + echo >>conftest.nl
  12207. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  12208. + cmp -s conftest.out conftest.nl || break
  12209. + # 10000 chars as input seems more than enough
  12210. + test $lt_ac_count -gt 10 && break
  12211. + lt_ac_count=`expr $lt_ac_count + 1`
  12212. + if test $lt_ac_count -gt $lt_ac_max; then
  12213. + lt_ac_max=$lt_ac_count
  12214. + lt_cv_path_SED=$lt_ac_sed
  12215. + fi
  12216. + done
  12217. +done
  12218. +
  12219. +fi
  12220. +
  12221. +SED=$lt_cv_path_SED
  12222. +echo "$as_me:$LINENO: result: $SED" >&5
  12223. +echo "${ECHO_T}$SED" >&6
  12224. +
  12225. +echo "$as_me:$LINENO: checking for egrep" >&5
  12226. +echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  12227. +if test "${ac_cv_prog_egrep+set}" = set; then
  12228. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12229. +else
  12230. + if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  12231. + then ac_cv_prog_egrep='grep -E'
  12232. + else ac_cv_prog_egrep='egrep'
  12233. + fi
  12234. +fi
  12235. +echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  12236. +echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  12237. + EGREP=$ac_cv_prog_egrep
  12238. +
  12239. +
  12240. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  12241. if test "${with_gnu_ld+set}" = set; then
  12242. @@ -1249,22 +3009,27 @@
  12243. test "$withval" = no || with_gnu_ld=yes
  12244. else
  12245. with_gnu_ld=no
  12246. -fi
  12247. -
  12248. +fi;
  12249. ac_prog=ld
  12250. -if test "$ac_cv_prog_gcc" = yes; then
  12251. +if test "$GCC" = yes; then
  12252. # Check if gcc -print-prog-name=ld gives a path.
  12253. - echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
  12254. -echo "configure:1259: checking for ld used by GCC" >&5
  12255. - ac_prog=`($CC -print-prog-name=ld) 2>&5`
  12256. - case "$ac_prog" in
  12257. + echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  12258. +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  12259. + case $host in
  12260. + *-*-mingw*)
  12261. + # gcc leaves a trailing carriage return which upsets mingw
  12262. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12263. + *)
  12264. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12265. + esac
  12266. + case $ac_prog in
  12267. # Accept absolute paths.
  12268. - [\\/]* | [A-Za-z]:[\\/]*)
  12269. + [\\/]* | ?:[\\/]*)
  12270. re_direlt='/[^/][^/]*/\.\./'
  12271. - # Canonicalize the path of ld
  12272. - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  12273. + # Canonicalize the pathname of ld
  12274. + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  12275. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  12276. - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  12277. + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  12278. done
  12279. test -z "$LD" && LD="$ac_prog"
  12280. ;;
  12281. @@ -1278,294 +3043,15189 @@
  12282. ;;
  12283. esac
  12284. elif test "$with_gnu_ld" = yes; then
  12285. - echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
  12286. -echo "configure:1283: checking for GNU ld" >&5
  12287. + echo "$as_me:$LINENO: checking for GNU ld" >&5
  12288. +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  12289. else
  12290. - echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  12291. -echo "configure:1286: checking for non-GNU ld" >&5
  12292. + echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  12293. +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  12294. fi
  12295. -if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
  12296. - echo $ac_n "(cached) $ac_c" 1>&6
  12297. +if test "${lt_cv_path_LD+set}" = set; then
  12298. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12299. else
  12300. if test -z "$LD"; then
  12301. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  12302. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  12303. for ac_dir in $PATH; do
  12304. + IFS="$lt_save_ifs"
  12305. test -z "$ac_dir" && ac_dir=.
  12306. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12307. - ac_cv_path_LD="$ac_dir/$ac_prog"
  12308. + lt_cv_path_LD="$ac_dir/$ac_prog"
  12309. # Check to see if the program is GNU ld. I'd rather use --version,
  12310. - # but apparently some GNU ld's only accept -v.
  12311. + # but apparently some variants of GNU ld only accept -v.
  12312. # Break only if it was the GNU/non-GNU ld that we prefer.
  12313. - if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  12314. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12315. + *GNU* | *'with BFD'*)
  12316. test "$with_gnu_ld" != no && break
  12317. - else
  12318. + ;;
  12319. + *)
  12320. test "$with_gnu_ld" != yes && break
  12321. - fi
  12322. + ;;
  12323. + esac
  12324. fi
  12325. done
  12326. - IFS="$ac_save_ifs"
  12327. + IFS="$lt_save_ifs"
  12328. else
  12329. - ac_cv_path_LD="$LD" # Let the user override the test with a path.
  12330. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  12331. fi
  12332. fi
  12333. -LD="$ac_cv_path_LD"
  12334. +LD="$lt_cv_path_LD"
  12335. if test -n "$LD"; then
  12336. - echo "$ac_t""$LD" 1>&6
  12337. -else
  12338. - echo "$ac_t""no" 1>&6
  12339. -fi
  12340. -test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
  12341. -echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
  12342. -echo "configure:1321: checking if the linker ($LD) is GNU ld" >&5
  12343. -if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
  12344. - echo $ac_n "(cached) $ac_c" 1>&6
  12345. + echo "$as_me:$LINENO: result: $LD" >&5
  12346. +echo "${ECHO_T}$LD" >&6
  12347. else
  12348. - # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  12349. -if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  12350. - ac_cv_prog_gnu_ld=yes
  12351. -else
  12352. - ac_cv_prog_gnu_ld=no
  12353. + echo "$as_me:$LINENO: result: no" >&5
  12354. +echo "${ECHO_T}no" >&6
  12355. fi
  12356. +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  12357. +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  12358. + { (exit 1); exit 1; }; }
  12359. +echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  12360. +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  12361. +if test "${lt_cv_prog_gnu_ld+set}" = set; then
  12362. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12363. +else
  12364. + # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12365. +case `$LD -v 2>&1 </dev/null` in
  12366. +*GNU* | *'with BFD'*)
  12367. + lt_cv_prog_gnu_ld=yes
  12368. + ;;
  12369. +*)
  12370. + lt_cv_prog_gnu_ld=no
  12371. + ;;
  12372. +esac
  12373. fi
  12374. +echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  12375. +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  12376. +with_gnu_ld=$lt_cv_prog_gnu_ld
  12377. +
  12378. +
  12379. +echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  12380. +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  12381. +if test "${lt_cv_ld_reload_flag+set}" = set; then
  12382. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12383. +else
  12384. + lt_cv_ld_reload_flag='-r'
  12385. +fi
  12386. +echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  12387. +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  12388. +reload_flag=$lt_cv_ld_reload_flag
  12389. +case $reload_flag in
  12390. +"" | " "*) ;;
  12391. +*) reload_flag=" $reload_flag" ;;
  12392. +esac
  12393. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  12394. +case $host_os in
  12395. + darwin*)
  12396. + if test "$GCC" = yes; then
  12397. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  12398. + else
  12399. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  12400. + fi
  12401. + ;;
  12402. +esac
  12403. -echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
  12404. -
  12405. -
  12406. -echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
  12407. -echo "configure:1337: checking for BSD-compatible nm" >&5
  12408. -if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
  12409. - echo $ac_n "(cached) $ac_c" 1>&6
  12410. +echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  12411. +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  12412. +if test "${lt_cv_path_NM+set}" = set; then
  12413. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12414. else
  12415. if test -n "$NM"; then
  12416. # Let the user override the test.
  12417. - ac_cv_path_NM="$NM"
  12418. + lt_cv_path_NM="$NM"
  12419. else
  12420. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  12421. - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  12422. - test -z "$ac_dir" && ac_dir=.
  12423. - if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
  12424. - # Check to see if the nm accepts a BSD-compat flag.
  12425. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  12426. - # nm: unknown option "B" ignored
  12427. - if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  12428. - ac_cv_path_NM="$ac_dir/nm -B"
  12429. - break
  12430. - elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  12431. - ac_cv_path_NM="$ac_dir/nm -p"
  12432. - break
  12433. - else
  12434. - ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
  12435. - continue # so that we can try to find one that supports BSD flags
  12436. + lt_nm_to_check="${ac_tool_prefix}nm"
  12437. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  12438. + lt_nm_to_check="$lt_nm_to_check nm"
  12439. + fi
  12440. + for lt_tmp_nm in $lt_nm_to_check; do
  12441. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  12442. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  12443. + IFS="$lt_save_ifs"
  12444. + test -z "$ac_dir" && ac_dir=.
  12445. + tmp_nm="$ac_dir/$lt_tmp_nm"
  12446. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  12447. + # Check to see if the nm accepts a BSD-compat flag.
  12448. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  12449. + # nm: unknown option "B" ignored
  12450. + # Tru64's nm complains that /dev/null is an invalid object file
  12451. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  12452. + */dev/null* | *'Invalid file or object type'*)
  12453. + lt_cv_path_NM="$tmp_nm -B"
  12454. + break
  12455. + ;;
  12456. + *)
  12457. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  12458. + */dev/null*)
  12459. + lt_cv_path_NM="$tmp_nm -p"
  12460. + break
  12461. + ;;
  12462. + *)
  12463. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  12464. + continue # so that we can try to find one that supports BSD flags
  12465. + ;;
  12466. + esac
  12467. + ;;
  12468. + esac
  12469. fi
  12470. - fi
  12471. + done
  12472. + IFS="$lt_save_ifs"
  12473. done
  12474. - IFS="$ac_save_ifs"
  12475. - test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
  12476. + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  12477. fi
  12478. fi
  12479. +echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  12480. +echo "${ECHO_T}$lt_cv_path_NM" >&6
  12481. +NM="$lt_cv_path_NM"
  12482. +
  12483. +echo "$as_me:$LINENO: checking whether ln -s works" >&5
  12484. +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  12485. +LN_S=$as_ln_s
  12486. +if test "$LN_S" = "ln -s"; then
  12487. + echo "$as_me:$LINENO: result: yes" >&5
  12488. +echo "${ECHO_T}yes" >&6
  12489. +else
  12490. + echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  12491. +echo "${ECHO_T}no, using $LN_S" >&6
  12492. +fi
  12493. +
  12494. +echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  12495. +echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  12496. +if test "${lt_cv_deplibs_check_method+set}" = set; then
  12497. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12498. +else
  12499. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  12500. +lt_cv_file_magic_test_file=
  12501. +lt_cv_deplibs_check_method='unknown'
  12502. +# Need to set the preceding variable on all platforms that support
  12503. +# interlibrary dependencies.
  12504. +# 'none' -- dependencies not supported.
  12505. +# `unknown' -- same as none, but documents that we really don't know.
  12506. +# 'pass_all' -- all dependencies passed with no checks.
  12507. +# 'test_compile' -- check by making test program.
  12508. +# 'file_magic [[regex]]' -- check by looking for files in library path
  12509. +# which responds to the $file_magic_cmd with a given extended regex.
  12510. +# If you have `file' or equivalent on your system and you're not sure
  12511. +# whether `pass_all' will *always* work, you probably want this one.
  12512. +
  12513. +case $host_os in
  12514. +aix4* | aix5*)
  12515. + lt_cv_deplibs_check_method=pass_all
  12516. + ;;
  12517. -NM="$ac_cv_path_NM"
  12518. -echo "$ac_t""$NM" 1>&6
  12519. +beos*)
  12520. + lt_cv_deplibs_check_method=pass_all
  12521. + ;;
  12522. -echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  12523. -echo "configure:1373: checking whether ln -s works" >&5
  12524. -if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  12525. - echo $ac_n "(cached) $ac_c" 1>&6
  12526. -else
  12527. - rm -f conftestdata
  12528. -if ln -s X conftestdata 2>/dev/null
  12529. -then
  12530. - rm -f conftestdata
  12531. - ac_cv_prog_LN_S="ln -s"
  12532. -else
  12533. - ac_cv_prog_LN_S=ln
  12534. -fi
  12535. -fi
  12536. -LN_S="$ac_cv_prog_LN_S"
  12537. -if test "$ac_cv_prog_LN_S" = "ln -s"; then
  12538. - echo "$ac_t""yes" 1>&6
  12539. -else
  12540. - echo "$ac_t""no" 1>&6
  12541. -fi
  12542. +bsdi[45]*)
  12543. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  12544. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  12545. + lt_cv_file_magic_test_file=/shlib/libc.so
  12546. + ;;
  12547. +cygwin*)
  12548. + # func_win32_libid is a shell function defined in ltmain.sh
  12549. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  12550. + lt_cv_file_magic_cmd='func_win32_libid'
  12551. + ;;
  12552. -case "$target" in
  12553. -NONE) lt_target="$host" ;;
  12554. -*) lt_target="$target" ;;
  12555. -esac
  12556. +mingw* | pw32*)
  12557. + # Base MSYS/MinGW do not provide the 'file' command needed by
  12558. + # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  12559. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  12560. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  12561. + ;;
  12562. +
  12563. +darwin* | rhapsody*)
  12564. + lt_cv_deplibs_check_method=pass_all
  12565. + ;;
  12566. +
  12567. +freebsd* | kfreebsd*-gnu | dragonfly*)
  12568. + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  12569. + case $host_cpu in
  12570. + i*86 )
  12571. + # Not sure whether the presence of OpenBSD here was a mistake.
  12572. + # Let's accept both of them until this is cleared up.
  12573. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  12574. + lt_cv_file_magic_cmd=/usr/bin/file
  12575. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  12576. + ;;
  12577. + esac
  12578. + else
  12579. + lt_cv_deplibs_check_method=pass_all
  12580. + fi
  12581. + ;;
  12582. +
  12583. +gnu*)
  12584. + lt_cv_deplibs_check_method=pass_all
  12585. + ;;
  12586. +
  12587. +hpux10.20* | hpux11*)
  12588. + lt_cv_file_magic_cmd=/usr/bin/file
  12589. + case $host_cpu in
  12590. + ia64*)
  12591. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  12592. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  12593. + ;;
  12594. + hppa*64*)
  12595. + 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]'
  12596. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  12597. + ;;
  12598. + *)
  12599. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  12600. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  12601. + ;;
  12602. + esac
  12603. + ;;
  12604. +
  12605. +interix3*)
  12606. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  12607. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  12608. + ;;
  12609. +
  12610. +irix5* | irix6* | nonstopux*)
  12611. + case $LD in
  12612. + *-32|*"-32 ") libmagic=32-bit;;
  12613. + *-n32|*"-n32 ") libmagic=N32;;
  12614. + *-64|*"-64 ") libmagic=64-bit;;
  12615. + *) libmagic=never-match;;
  12616. + esac
  12617. + lt_cv_deplibs_check_method=pass_all
  12618. + ;;
  12619. +
  12620. +# This must be Linux ELF.
  12621. +linux*)
  12622. + lt_cv_deplibs_check_method=pass_all
  12623. + ;;
  12624. +
  12625. +netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  12626. + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  12627. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  12628. + else
  12629. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  12630. + fi
  12631. + ;;
  12632. +
  12633. +newos6*)
  12634. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  12635. + lt_cv_file_magic_cmd=/usr/bin/file
  12636. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  12637. + ;;
  12638. +
  12639. +nto-qnx*)
  12640. + lt_cv_deplibs_check_method=unknown
  12641. + ;;
  12642. +
  12643. +openbsd*)
  12644. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12645. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  12646. + else
  12647. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  12648. + fi
  12649. + ;;
  12650. +
  12651. +osf3* | osf4* | osf5*)
  12652. + lt_cv_deplibs_check_method=pass_all
  12653. + ;;
  12654. +
  12655. +solaris*)
  12656. + lt_cv_deplibs_check_method=pass_all
  12657. + ;;
  12658. +
  12659. +sysv4 | sysv4.3*)
  12660. + case $host_vendor in
  12661. + motorola)
  12662. + 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]'
  12663. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  12664. + ;;
  12665. + ncr)
  12666. + lt_cv_deplibs_check_method=pass_all
  12667. + ;;
  12668. + sequent)
  12669. + lt_cv_file_magic_cmd='/bin/file'
  12670. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  12671. + ;;
  12672. + sni)
  12673. + lt_cv_file_magic_cmd='/bin/file'
  12674. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  12675. + lt_cv_file_magic_test_file=/lib/libc.so
  12676. + ;;
  12677. + siemens)
  12678. + lt_cv_deplibs_check_method=pass_all
  12679. + ;;
  12680. + pc)
  12681. + lt_cv_deplibs_check_method=pass_all
  12682. + ;;
  12683. + esac
  12684. + ;;
  12685. +
  12686. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12687. + lt_cv_deplibs_check_method=pass_all
  12688. + ;;
  12689. +esac
  12690. +
  12691. +fi
  12692. +echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  12693. +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  12694. +file_magic_cmd=$lt_cv_file_magic_cmd
  12695. +deplibs_check_method=$lt_cv_deplibs_check_method
  12696. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  12697. +
  12698. +
  12699. +
  12700. +
  12701. +# If no C compiler was specified, use CC.
  12702. +LTCC=${LTCC-"$CC"}
  12703. +
  12704. +# If no C compiler flags were specified, use CFLAGS.
  12705. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12706. +
  12707. +# Allow CC to be a program name with arguments.
  12708. +compiler=$CC
  12709. +
  12710. +
  12711. +# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  12712. +if test "${enable_libtool_lock+set}" = set; then
  12713. + enableval="$enable_libtool_lock"
  12714. +
  12715. +fi;
  12716. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  12717. +
  12718. +# Some flags need to be propagated to the compiler or linker for good
  12719. +# libtool support.
  12720. +case $host in
  12721. +ia64-*-hpux*)
  12722. + # Find out which ABI we are using.
  12723. + echo 'int i;' > conftest.$ac_ext
  12724. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12725. + (eval $ac_compile) 2>&5
  12726. + ac_status=$?
  12727. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12728. + (exit $ac_status); }; then
  12729. + case `/usr/bin/file conftest.$ac_objext` in
  12730. + *ELF-32*)
  12731. + HPUX_IA64_MODE="32"
  12732. + ;;
  12733. + *ELF-64*)
  12734. + HPUX_IA64_MODE="64"
  12735. + ;;
  12736. + esac
  12737. + fi
  12738. + rm -rf conftest*
  12739. + ;;
  12740. +*-*-irix6*)
  12741. + # Find out which ABI we are using.
  12742. + echo '#line 3427 "configure"' > conftest.$ac_ext
  12743. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12744. + (eval $ac_compile) 2>&5
  12745. + ac_status=$?
  12746. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12747. + (exit $ac_status); }; then
  12748. + if test "$lt_cv_prog_gnu_ld" = yes; then
  12749. + case `/usr/bin/file conftest.$ac_objext` in
  12750. + *32-bit*)
  12751. + LD="${LD-ld} -melf32bsmip"
  12752. + ;;
  12753. + *N32*)
  12754. + LD="${LD-ld} -melf32bmipn32"
  12755. + ;;
  12756. + *64-bit*)
  12757. + LD="${LD-ld} -melf64bmip"
  12758. + ;;
  12759. + esac
  12760. + else
  12761. + case `/usr/bin/file conftest.$ac_objext` in
  12762. + *32-bit*)
  12763. + LD="${LD-ld} -32"
  12764. + ;;
  12765. + *N32*)
  12766. + LD="${LD-ld} -n32"
  12767. + ;;
  12768. + *64-bit*)
  12769. + LD="${LD-ld} -64"
  12770. + ;;
  12771. + esac
  12772. + fi
  12773. + fi
  12774. + rm -rf conftest*
  12775. + ;;
  12776. +
  12777. +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  12778. + # Find out which ABI we are using.
  12779. + echo 'int i;' > conftest.$ac_ext
  12780. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12781. + (eval $ac_compile) 2>&5
  12782. + ac_status=$?
  12783. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12784. + (exit $ac_status); }; then
  12785. + case `/usr/bin/file conftest.o` in
  12786. + *32-bit*)
  12787. + case $host in
  12788. + x86_64-*linux*)
  12789. + LD="${LD-ld} -m elf_i386"
  12790. + ;;
  12791. + ppc64-*linux*|powerpc64-*linux*)
  12792. + LD="${LD-ld} -m elf32ppclinux"
  12793. + ;;
  12794. + s390x-*linux*)
  12795. + LD="${LD-ld} -m elf_s390"
  12796. + ;;
  12797. + sparc64-*linux*)
  12798. + LD="${LD-ld} -m elf32_sparc"
  12799. + ;;
  12800. + esac
  12801. + ;;
  12802. + *64-bit*)
  12803. + case $host in
  12804. + x86_64-*linux*)
  12805. + LD="${LD-ld} -m elf_x86_64"
  12806. + ;;
  12807. + ppc*-*linux*|powerpc*-*linux*)
  12808. + LD="${LD-ld} -m elf64ppc"
  12809. + ;;
  12810. + s390*-*linux*)
  12811. + LD="${LD-ld} -m elf64_s390"
  12812. + ;;
  12813. + sparc*-*linux*)
  12814. + LD="${LD-ld} -m elf64_sparc"
  12815. + ;;
  12816. + esac
  12817. + ;;
  12818. + esac
  12819. + fi
  12820. + rm -rf conftest*
  12821. + ;;
  12822. +
  12823. +*-*-sco3.2v5*)
  12824. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  12825. + SAVE_CFLAGS="$CFLAGS"
  12826. + CFLAGS="$CFLAGS -belf"
  12827. + echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  12828. +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  12829. +if test "${lt_cv_cc_needs_belf+set}" = set; then
  12830. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12831. +else
  12832. + ac_ext=c
  12833. +ac_cpp='$CPP $CPPFLAGS'
  12834. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12835. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12836. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12837. +
  12838. + cat >conftest.$ac_ext <<_ACEOF
  12839. +/* confdefs.h. */
  12840. +_ACEOF
  12841. +cat confdefs.h >>conftest.$ac_ext
  12842. +cat >>conftest.$ac_ext <<_ACEOF
  12843. +/* end confdefs.h. */
  12844. +
  12845. +int
  12846. +main ()
  12847. +{
  12848. +
  12849. + ;
  12850. + return 0;
  12851. +}
  12852. +_ACEOF
  12853. +rm -f conftest.$ac_objext conftest$ac_exeext
  12854. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12855. + (eval $ac_link) 2>conftest.er1
  12856. + ac_status=$?
  12857. + grep -v '^ *+' conftest.er1 >conftest.err
  12858. + rm -f conftest.er1
  12859. + cat conftest.err >&5
  12860. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12861. + (exit $ac_status); } &&
  12862. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12863. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12864. + (eval $ac_try) 2>&5
  12865. + ac_status=$?
  12866. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12867. + (exit $ac_status); }; } &&
  12868. + { ac_try='test -s conftest$ac_exeext'
  12869. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12870. + (eval $ac_try) 2>&5
  12871. + ac_status=$?
  12872. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12873. + (exit $ac_status); }; }; then
  12874. + lt_cv_cc_needs_belf=yes
  12875. +else
  12876. + echo "$as_me: failed program was:" >&5
  12877. +sed 's/^/| /' conftest.$ac_ext >&5
  12878. +
  12879. +lt_cv_cc_needs_belf=no
  12880. +fi
  12881. +rm -f conftest.err conftest.$ac_objext \
  12882. + conftest$ac_exeext conftest.$ac_ext
  12883. + ac_ext=c
  12884. +ac_cpp='$CPP $CPPFLAGS'
  12885. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12886. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12887. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12888. +
  12889. +fi
  12890. +echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  12891. +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  12892. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  12893. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  12894. + CFLAGS="$SAVE_CFLAGS"
  12895. + fi
  12896. + ;;
  12897. +sparc*-*solaris*)
  12898. + # Find out which ABI we are using.
  12899. + echo 'int i;' > conftest.$ac_ext
  12900. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12901. + (eval $ac_compile) 2>&5
  12902. + ac_status=$?
  12903. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12904. + (exit $ac_status); }; then
  12905. + case `/usr/bin/file conftest.o` in
  12906. + *64-bit*)
  12907. + case $lt_cv_prog_gnu_ld in
  12908. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  12909. + *) LD="${LD-ld} -64" ;;
  12910. + esac
  12911. + ;;
  12912. + esac
  12913. + fi
  12914. + rm -rf conftest*
  12915. + ;;
  12916. +
  12917. +
  12918. +esac
  12919. +
  12920. +need_locks="$enable_libtool_lock"
  12921. +
  12922. +
  12923. +ac_ext=c
  12924. +ac_cpp='$CPP $CPPFLAGS'
  12925. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12926. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12927. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12928. +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  12929. +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  12930. +# On Suns, sometimes $CPP names a directory.
  12931. +if test -n "$CPP" && test -d "$CPP"; then
  12932. + CPP=
  12933. +fi
  12934. +if test -z "$CPP"; then
  12935. + if test "${ac_cv_prog_CPP+set}" = set; then
  12936. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12937. +else
  12938. + # Double quotes because CPP needs to be expanded
  12939. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  12940. + do
  12941. + ac_preproc_ok=false
  12942. +for ac_c_preproc_warn_flag in '' yes
  12943. +do
  12944. + # Use a header file that comes with gcc, so configuring glibc
  12945. + # with a fresh cross-compiler works.
  12946. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12947. + # <limits.h> exists even on freestanding compilers.
  12948. + # On the NeXT, cc -E runs the code through the compiler's parser,
  12949. + # not just through cpp. "Syntax error" is here to catch this case.
  12950. + cat >conftest.$ac_ext <<_ACEOF
  12951. +/* confdefs.h. */
  12952. +_ACEOF
  12953. +cat confdefs.h >>conftest.$ac_ext
  12954. +cat >>conftest.$ac_ext <<_ACEOF
  12955. +/* end confdefs.h. */
  12956. +#ifdef __STDC__
  12957. +# include <limits.h>
  12958. +#else
  12959. +# include <assert.h>
  12960. +#endif
  12961. + Syntax error
  12962. +_ACEOF
  12963. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  12964. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  12965. + ac_status=$?
  12966. + grep -v '^ *+' conftest.er1 >conftest.err
  12967. + rm -f conftest.er1
  12968. + cat conftest.err >&5
  12969. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12970. + (exit $ac_status); } >/dev/null; then
  12971. + if test -s conftest.err; then
  12972. + ac_cpp_err=$ac_c_preproc_warn_flag
  12973. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  12974. + else
  12975. + ac_cpp_err=
  12976. + fi
  12977. +else
  12978. + ac_cpp_err=yes
  12979. +fi
  12980. +if test -z "$ac_cpp_err"; then
  12981. + :
  12982. +else
  12983. + echo "$as_me: failed program was:" >&5
  12984. +sed 's/^/| /' conftest.$ac_ext >&5
  12985. +
  12986. + # Broken: fails on valid input.
  12987. +continue
  12988. +fi
  12989. +rm -f conftest.err conftest.$ac_ext
  12990. +
  12991. + # OK, works on sane cases. Now check whether non-existent headers
  12992. + # can be detected and how.
  12993. + cat >conftest.$ac_ext <<_ACEOF
  12994. +/* confdefs.h. */
  12995. +_ACEOF
  12996. +cat confdefs.h >>conftest.$ac_ext
  12997. +cat >>conftest.$ac_ext <<_ACEOF
  12998. +/* end confdefs.h. */
  12999. +#include <ac_nonexistent.h>
  13000. +_ACEOF
  13001. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  13002. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  13003. + ac_status=$?
  13004. + grep -v '^ *+' conftest.er1 >conftest.err
  13005. + rm -f conftest.er1
  13006. + cat conftest.err >&5
  13007. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13008. + (exit $ac_status); } >/dev/null; then
  13009. + if test -s conftest.err; then
  13010. + ac_cpp_err=$ac_c_preproc_warn_flag
  13011. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  13012. + else
  13013. + ac_cpp_err=
  13014. + fi
  13015. +else
  13016. + ac_cpp_err=yes
  13017. +fi
  13018. +if test -z "$ac_cpp_err"; then
  13019. + # Broken: success on invalid input.
  13020. +continue
  13021. +else
  13022. + echo "$as_me: failed program was:" >&5
  13023. +sed 's/^/| /' conftest.$ac_ext >&5
  13024. +
  13025. + # Passes both tests.
  13026. +ac_preproc_ok=:
  13027. +break
  13028. +fi
  13029. +rm -f conftest.err conftest.$ac_ext
  13030. +
  13031. +done
  13032. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13033. +rm -f conftest.err conftest.$ac_ext
  13034. +if $ac_preproc_ok; then
  13035. + break
  13036. +fi
  13037. +
  13038. + done
  13039. + ac_cv_prog_CPP=$CPP
  13040. +
  13041. +fi
  13042. + CPP=$ac_cv_prog_CPP
  13043. +else
  13044. + ac_cv_prog_CPP=$CPP
  13045. +fi
  13046. +echo "$as_me:$LINENO: result: $CPP" >&5
  13047. +echo "${ECHO_T}$CPP" >&6
  13048. +ac_preproc_ok=false
  13049. +for ac_c_preproc_warn_flag in '' yes
  13050. +do
  13051. + # Use a header file that comes with gcc, so configuring glibc
  13052. + # with a fresh cross-compiler works.
  13053. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13054. + # <limits.h> exists even on freestanding compilers.
  13055. + # On the NeXT, cc -E runs the code through the compiler's parser,
  13056. + # not just through cpp. "Syntax error" is here to catch this case.
  13057. + cat >conftest.$ac_ext <<_ACEOF
  13058. +/* confdefs.h. */
  13059. +_ACEOF
  13060. +cat confdefs.h >>conftest.$ac_ext
  13061. +cat >>conftest.$ac_ext <<_ACEOF
  13062. +/* end confdefs.h. */
  13063. +#ifdef __STDC__
  13064. +# include <limits.h>
  13065. +#else
  13066. +# include <assert.h>
  13067. +#endif
  13068. + Syntax error
  13069. +_ACEOF
  13070. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  13071. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  13072. + ac_status=$?
  13073. + grep -v '^ *+' conftest.er1 >conftest.err
  13074. + rm -f conftest.er1
  13075. + cat conftest.err >&5
  13076. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13077. + (exit $ac_status); } >/dev/null; then
  13078. + if test -s conftest.err; then
  13079. + ac_cpp_err=$ac_c_preproc_warn_flag
  13080. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  13081. + else
  13082. + ac_cpp_err=
  13083. + fi
  13084. +else
  13085. + ac_cpp_err=yes
  13086. +fi
  13087. +if test -z "$ac_cpp_err"; then
  13088. + :
  13089. +else
  13090. + echo "$as_me: failed program was:" >&5
  13091. +sed 's/^/| /' conftest.$ac_ext >&5
  13092. +
  13093. + # Broken: fails on valid input.
  13094. +continue
  13095. +fi
  13096. +rm -f conftest.err conftest.$ac_ext
  13097. +
  13098. + # OK, works on sane cases. Now check whether non-existent headers
  13099. + # can be detected and how.
  13100. + cat >conftest.$ac_ext <<_ACEOF
  13101. +/* confdefs.h. */
  13102. +_ACEOF
  13103. +cat confdefs.h >>conftest.$ac_ext
  13104. +cat >>conftest.$ac_ext <<_ACEOF
  13105. +/* end confdefs.h. */
  13106. +#include <ac_nonexistent.h>
  13107. +_ACEOF
  13108. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  13109. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  13110. + ac_status=$?
  13111. + grep -v '^ *+' conftest.er1 >conftest.err
  13112. + rm -f conftest.er1
  13113. + cat conftest.err >&5
  13114. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13115. + (exit $ac_status); } >/dev/null; then
  13116. + if test -s conftest.err; then
  13117. + ac_cpp_err=$ac_c_preproc_warn_flag
  13118. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  13119. + else
  13120. + ac_cpp_err=
  13121. + fi
  13122. +else
  13123. + ac_cpp_err=yes
  13124. +fi
  13125. +if test -z "$ac_cpp_err"; then
  13126. + # Broken: success on invalid input.
  13127. +continue
  13128. +else
  13129. + echo "$as_me: failed program was:" >&5
  13130. +sed 's/^/| /' conftest.$ac_ext >&5
  13131. +
  13132. + # Passes both tests.
  13133. +ac_preproc_ok=:
  13134. +break
  13135. +fi
  13136. +rm -f conftest.err conftest.$ac_ext
  13137. +
  13138. +done
  13139. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13140. +rm -f conftest.err conftest.$ac_ext
  13141. +if $ac_preproc_ok; then
  13142. + :
  13143. +else
  13144. + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  13145. +See \`config.log' for more details." >&5
  13146. +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  13147. +See \`config.log' for more details." >&2;}
  13148. + { (exit 1); exit 1; }; }
  13149. +fi
  13150. +
  13151. +ac_ext=c
  13152. +ac_cpp='$CPP $CPPFLAGS'
  13153. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13154. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13155. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13156. +
  13157. +
  13158. +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  13159. +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  13160. +if test "${ac_cv_header_stdc+set}" = set; then
  13161. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13162. +else
  13163. + cat >conftest.$ac_ext <<_ACEOF
  13164. +/* confdefs.h. */
  13165. +_ACEOF
  13166. +cat confdefs.h >>conftest.$ac_ext
  13167. +cat >>conftest.$ac_ext <<_ACEOF
  13168. +/* end confdefs.h. */
  13169. +#include <stdlib.h>
  13170. +#include <stdarg.h>
  13171. +#include <string.h>
  13172. +#include <float.h>
  13173. +
  13174. +int
  13175. +main ()
  13176. +{
  13177. +
  13178. + ;
  13179. + return 0;
  13180. +}
  13181. +_ACEOF
  13182. +rm -f conftest.$ac_objext
  13183. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13184. + (eval $ac_compile) 2>conftest.er1
  13185. + ac_status=$?
  13186. + grep -v '^ *+' conftest.er1 >conftest.err
  13187. + rm -f conftest.er1
  13188. + cat conftest.err >&5
  13189. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13190. + (exit $ac_status); } &&
  13191. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13192. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13193. + (eval $ac_try) 2>&5
  13194. + ac_status=$?
  13195. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13196. + (exit $ac_status); }; } &&
  13197. + { ac_try='test -s conftest.$ac_objext'
  13198. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13199. + (eval $ac_try) 2>&5
  13200. + ac_status=$?
  13201. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13202. + (exit $ac_status); }; }; then
  13203. + ac_cv_header_stdc=yes
  13204. +else
  13205. + echo "$as_me: failed program was:" >&5
  13206. +sed 's/^/| /' conftest.$ac_ext >&5
  13207. +
  13208. +ac_cv_header_stdc=no
  13209. +fi
  13210. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13211. +
  13212. +if test $ac_cv_header_stdc = yes; then
  13213. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13214. + cat >conftest.$ac_ext <<_ACEOF
  13215. +/* confdefs.h. */
  13216. +_ACEOF
  13217. +cat confdefs.h >>conftest.$ac_ext
  13218. +cat >>conftest.$ac_ext <<_ACEOF
  13219. +/* end confdefs.h. */
  13220. +#include <string.h>
  13221. +
  13222. +_ACEOF
  13223. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13224. + $EGREP "memchr" >/dev/null 2>&1; then
  13225. + :
  13226. +else
  13227. + ac_cv_header_stdc=no
  13228. +fi
  13229. +rm -f conftest*
  13230. +
  13231. +fi
  13232. +
  13233. +if test $ac_cv_header_stdc = yes; then
  13234. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13235. + cat >conftest.$ac_ext <<_ACEOF
  13236. +/* confdefs.h. */
  13237. +_ACEOF
  13238. +cat confdefs.h >>conftest.$ac_ext
  13239. +cat >>conftest.$ac_ext <<_ACEOF
  13240. +/* end confdefs.h. */
  13241. +#include <stdlib.h>
  13242. +
  13243. +_ACEOF
  13244. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13245. + $EGREP "free" >/dev/null 2>&1; then
  13246. + :
  13247. +else
  13248. + ac_cv_header_stdc=no
  13249. +fi
  13250. +rm -f conftest*
  13251. +
  13252. +fi
  13253. +
  13254. +if test $ac_cv_header_stdc = yes; then
  13255. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13256. + if test "$cross_compiling" = yes; then
  13257. + :
  13258. +else
  13259. + cat >conftest.$ac_ext <<_ACEOF
  13260. +/* confdefs.h. */
  13261. +_ACEOF
  13262. +cat confdefs.h >>conftest.$ac_ext
  13263. +cat >>conftest.$ac_ext <<_ACEOF
  13264. +/* end confdefs.h. */
  13265. +#include <ctype.h>
  13266. +#if ((' ' & 0x0FF) == 0x020)
  13267. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13268. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13269. +#else
  13270. +# define ISLOWER(c) \
  13271. + (('a' <= (c) && (c) <= 'i') \
  13272. + || ('j' <= (c) && (c) <= 'r') \
  13273. + || ('s' <= (c) && (c) <= 'z'))
  13274. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13275. +#endif
  13276. +
  13277. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13278. +int
  13279. +main ()
  13280. +{
  13281. + int i;
  13282. + for (i = 0; i < 256; i++)
  13283. + if (XOR (islower (i), ISLOWER (i))
  13284. + || toupper (i) != TOUPPER (i))
  13285. + exit(2);
  13286. + exit (0);
  13287. +}
  13288. +_ACEOF
  13289. +rm -f conftest$ac_exeext
  13290. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13291. + (eval $ac_link) 2>&5
  13292. + ac_status=$?
  13293. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13294. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13295. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13296. + (eval $ac_try) 2>&5
  13297. + ac_status=$?
  13298. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13299. + (exit $ac_status); }; }; then
  13300. + :
  13301. +else
  13302. + echo "$as_me: program exited with status $ac_status" >&5
  13303. +echo "$as_me: failed program was:" >&5
  13304. +sed 's/^/| /' conftest.$ac_ext >&5
  13305. +
  13306. +( exit $ac_status )
  13307. +ac_cv_header_stdc=no
  13308. +fi
  13309. +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13310. +fi
  13311. +fi
  13312. +fi
  13313. +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  13314. +echo "${ECHO_T}$ac_cv_header_stdc" >&6
  13315. +if test $ac_cv_header_stdc = yes; then
  13316. +
  13317. +cat >>confdefs.h <<\_ACEOF
  13318. +#define STDC_HEADERS 1
  13319. +_ACEOF
  13320. +
  13321. +fi
  13322. +
  13323. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  13324. +
  13325. +
  13326. +
  13327. +
  13328. +
  13329. +
  13330. +
  13331. +
  13332. +
  13333. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  13334. + inttypes.h stdint.h unistd.h
  13335. +do
  13336. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13337. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  13338. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  13339. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  13340. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13341. +else
  13342. + cat >conftest.$ac_ext <<_ACEOF
  13343. +/* confdefs.h. */
  13344. +_ACEOF
  13345. +cat confdefs.h >>conftest.$ac_ext
  13346. +cat >>conftest.$ac_ext <<_ACEOF
  13347. +/* end confdefs.h. */
  13348. +$ac_includes_default
  13349. +
  13350. +#include <$ac_header>
  13351. +_ACEOF
  13352. +rm -f conftest.$ac_objext
  13353. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13354. + (eval $ac_compile) 2>conftest.er1
  13355. + ac_status=$?
  13356. + grep -v '^ *+' conftest.er1 >conftest.err
  13357. + rm -f conftest.er1
  13358. + cat conftest.err >&5
  13359. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13360. + (exit $ac_status); } &&
  13361. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13362. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13363. + (eval $ac_try) 2>&5
  13364. + ac_status=$?
  13365. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13366. + (exit $ac_status); }; } &&
  13367. + { ac_try='test -s conftest.$ac_objext'
  13368. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13369. + (eval $ac_try) 2>&5
  13370. + ac_status=$?
  13371. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13372. + (exit $ac_status); }; }; then
  13373. + eval "$as_ac_Header=yes"
  13374. +else
  13375. + echo "$as_me: failed program was:" >&5
  13376. +sed 's/^/| /' conftest.$ac_ext >&5
  13377. +
  13378. +eval "$as_ac_Header=no"
  13379. +fi
  13380. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13381. +fi
  13382. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  13383. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  13384. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13385. + cat >>confdefs.h <<_ACEOF
  13386. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13387. +_ACEOF
  13388. +
  13389. +fi
  13390. +
  13391. +done
  13392. +
  13393. +
  13394. +
  13395. +for ac_header in dlfcn.h
  13396. +do
  13397. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13398. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  13399. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  13400. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  13401. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  13402. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13403. +fi
  13404. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  13405. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  13406. +else
  13407. + # Is the header compilable?
  13408. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13409. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  13410. +cat >conftest.$ac_ext <<_ACEOF
  13411. +/* confdefs.h. */
  13412. +_ACEOF
  13413. +cat confdefs.h >>conftest.$ac_ext
  13414. +cat >>conftest.$ac_ext <<_ACEOF
  13415. +/* end confdefs.h. */
  13416. +$ac_includes_default
  13417. +#include <$ac_header>
  13418. +_ACEOF
  13419. +rm -f conftest.$ac_objext
  13420. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13421. + (eval $ac_compile) 2>conftest.er1
  13422. + ac_status=$?
  13423. + grep -v '^ *+' conftest.er1 >conftest.err
  13424. + rm -f conftest.er1
  13425. + cat conftest.err >&5
  13426. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13427. + (exit $ac_status); } &&
  13428. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13429. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13430. + (eval $ac_try) 2>&5
  13431. + ac_status=$?
  13432. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13433. + (exit $ac_status); }; } &&
  13434. + { ac_try='test -s conftest.$ac_objext'
  13435. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13436. + (eval $ac_try) 2>&5
  13437. + ac_status=$?
  13438. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13439. + (exit $ac_status); }; }; then
  13440. + ac_header_compiler=yes
  13441. +else
  13442. + echo "$as_me: failed program was:" >&5
  13443. +sed 's/^/| /' conftest.$ac_ext >&5
  13444. +
  13445. +ac_header_compiler=no
  13446. +fi
  13447. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13448. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13449. +echo "${ECHO_T}$ac_header_compiler" >&6
  13450. +
  13451. +# Is the header present?
  13452. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13453. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  13454. +cat >conftest.$ac_ext <<_ACEOF
  13455. +/* confdefs.h. */
  13456. +_ACEOF
  13457. +cat confdefs.h >>conftest.$ac_ext
  13458. +cat >>conftest.$ac_ext <<_ACEOF
  13459. +/* end confdefs.h. */
  13460. +#include <$ac_header>
  13461. +_ACEOF
  13462. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  13463. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  13464. + ac_status=$?
  13465. + grep -v '^ *+' conftest.er1 >conftest.err
  13466. + rm -f conftest.er1
  13467. + cat conftest.err >&5
  13468. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13469. + (exit $ac_status); } >/dev/null; then
  13470. + if test -s conftest.err; then
  13471. + ac_cpp_err=$ac_c_preproc_warn_flag
  13472. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  13473. + else
  13474. + ac_cpp_err=
  13475. + fi
  13476. +else
  13477. + ac_cpp_err=yes
  13478. +fi
  13479. +if test -z "$ac_cpp_err"; then
  13480. + ac_header_preproc=yes
  13481. +else
  13482. + echo "$as_me: failed program was:" >&5
  13483. +sed 's/^/| /' conftest.$ac_ext >&5
  13484. +
  13485. + ac_header_preproc=no
  13486. +fi
  13487. +rm -f conftest.err conftest.$ac_ext
  13488. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13489. +echo "${ECHO_T}$ac_header_preproc" >&6
  13490. +
  13491. +# So? What about this header?
  13492. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  13493. + yes:no: )
  13494. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13495. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13496. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13497. +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13498. + ac_header_preproc=yes
  13499. + ;;
  13500. + no:yes:* )
  13501. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13502. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13503. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13504. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13505. + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13506. +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13507. + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13508. +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13509. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13510. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13511. + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13512. +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13513. + (
  13514. + cat <<\_ASBOX
  13515. +## ------------------------------------------ ##
  13516. +## Report this to the AC_PACKAGE_NAME lists. ##
  13517. +## ------------------------------------------ ##
  13518. +_ASBOX
  13519. + ) |
  13520. + sed "s/^/$as_me: WARNING: /" >&2
  13521. + ;;
  13522. +esac
  13523. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  13524. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  13525. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  13526. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13527. +else
  13528. + eval "$as_ac_Header=\$ac_header_preproc"
  13529. +fi
  13530. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  13531. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  13532. +
  13533. +fi
  13534. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13535. + cat >>confdefs.h <<_ACEOF
  13536. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13537. +_ACEOF
  13538. +
  13539. +fi
  13540. +
  13541. +done
  13542. +
  13543. +ac_ext=cc
  13544. +ac_cpp='$CXXCPP $CPPFLAGS'
  13545. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13546. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13547. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13548. +if test -n "$ac_tool_prefix"; then
  13549. + for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  13550. + do
  13551. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  13552. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  13553. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  13554. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  13555. +if test "${ac_cv_prog_CXX+set}" = set; then
  13556. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13557. +else
  13558. + if test -n "$CXX"; then
  13559. + ac_cv_prog_CXX="$CXX" # Let the user override the test.
  13560. +else
  13561. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13562. +for as_dir in $PATH
  13563. +do
  13564. + IFS=$as_save_IFS
  13565. + test -z "$as_dir" && as_dir=.
  13566. + for ac_exec_ext in '' $ac_executable_extensions; do
  13567. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13568. + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  13569. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13570. + break 2
  13571. + fi
  13572. +done
  13573. +done
  13574. +
  13575. +fi
  13576. +fi
  13577. +CXX=$ac_cv_prog_CXX
  13578. +if test -n "$CXX"; then
  13579. + echo "$as_me:$LINENO: result: $CXX" >&5
  13580. +echo "${ECHO_T}$CXX" >&6
  13581. +else
  13582. + echo "$as_me:$LINENO: result: no" >&5
  13583. +echo "${ECHO_T}no" >&6
  13584. +fi
  13585. +
  13586. + test -n "$CXX" && break
  13587. + done
  13588. +fi
  13589. +if test -z "$CXX"; then
  13590. + ac_ct_CXX=$CXX
  13591. + for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  13592. +do
  13593. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  13594. +set dummy $ac_prog; ac_word=$2
  13595. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  13596. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  13597. +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  13598. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13599. +else
  13600. + if test -n "$ac_ct_CXX"; then
  13601. + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  13602. +else
  13603. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13604. +for as_dir in $PATH
  13605. +do
  13606. + IFS=$as_save_IFS
  13607. + test -z "$as_dir" && as_dir=.
  13608. + for ac_exec_ext in '' $ac_executable_extensions; do
  13609. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13610. + ac_cv_prog_ac_ct_CXX="$ac_prog"
  13611. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13612. + break 2
  13613. + fi
  13614. +done
  13615. +done
  13616. +
  13617. +fi
  13618. +fi
  13619. +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  13620. +if test -n "$ac_ct_CXX"; then
  13621. + echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  13622. +echo "${ECHO_T}$ac_ct_CXX" >&6
  13623. +else
  13624. + echo "$as_me:$LINENO: result: no" >&5
  13625. +echo "${ECHO_T}no" >&6
  13626. +fi
  13627. +
  13628. + test -n "$ac_ct_CXX" && break
  13629. +done
  13630. +test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  13631. +
  13632. + CXX=$ac_ct_CXX
  13633. +fi
  13634. +
  13635. +
  13636. +# Provide some information about the compiler.
  13637. +echo "$as_me:$LINENO:" \
  13638. + "checking for C++ compiler version" >&5
  13639. +ac_compiler=`set X $ac_compile; echo $2`
  13640. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  13641. + (eval $ac_compiler --version </dev/null >&5) 2>&5
  13642. + ac_status=$?
  13643. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13644. + (exit $ac_status); }
  13645. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  13646. + (eval $ac_compiler -v </dev/null >&5) 2>&5
  13647. + ac_status=$?
  13648. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13649. + (exit $ac_status); }
  13650. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  13651. + (eval $ac_compiler -V </dev/null >&5) 2>&5
  13652. + ac_status=$?
  13653. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13654. + (exit $ac_status); }
  13655. +
  13656. +echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  13657. +echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  13658. +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  13659. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13660. +else
  13661. + cat >conftest.$ac_ext <<_ACEOF
  13662. +/* confdefs.h. */
  13663. +_ACEOF
  13664. +cat confdefs.h >>conftest.$ac_ext
  13665. +cat >>conftest.$ac_ext <<_ACEOF
  13666. +/* end confdefs.h. */
  13667. +
  13668. +int
  13669. +main ()
  13670. +{
  13671. +#ifndef __GNUC__
  13672. + choke me
  13673. +#endif
  13674. +
  13675. + ;
  13676. + return 0;
  13677. +}
  13678. +_ACEOF
  13679. +rm -f conftest.$ac_objext
  13680. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13681. + (eval $ac_compile) 2>conftest.er1
  13682. + ac_status=$?
  13683. + grep -v '^ *+' conftest.er1 >conftest.err
  13684. + rm -f conftest.er1
  13685. + cat conftest.err >&5
  13686. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13687. + (exit $ac_status); } &&
  13688. + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  13689. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13690. + (eval $ac_try) 2>&5
  13691. + ac_status=$?
  13692. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13693. + (exit $ac_status); }; } &&
  13694. + { ac_try='test -s conftest.$ac_objext'
  13695. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13696. + (eval $ac_try) 2>&5
  13697. + ac_status=$?
  13698. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13699. + (exit $ac_status); }; }; then
  13700. + ac_compiler_gnu=yes
  13701. +else
  13702. + echo "$as_me: failed program was:" >&5
  13703. +sed 's/^/| /' conftest.$ac_ext >&5
  13704. +
  13705. +ac_compiler_gnu=no
  13706. +fi
  13707. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13708. +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  13709. +
  13710. +fi
  13711. +echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  13712. +echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  13713. +GXX=`test $ac_compiler_gnu = yes && echo yes`
  13714. +ac_test_CXXFLAGS=${CXXFLAGS+set}
  13715. +ac_save_CXXFLAGS=$CXXFLAGS
  13716. +CXXFLAGS="-g"
  13717. +echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  13718. +echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  13719. +if test "${ac_cv_prog_cxx_g+set}" = set; then
  13720. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13721. +else
  13722. + cat >conftest.$ac_ext <<_ACEOF
  13723. +/* confdefs.h. */
  13724. +_ACEOF
  13725. +cat confdefs.h >>conftest.$ac_ext
  13726. +cat >>conftest.$ac_ext <<_ACEOF
  13727. +/* end confdefs.h. */
  13728. +
  13729. +int
  13730. +main ()
  13731. +{
  13732. +
  13733. + ;
  13734. + return 0;
  13735. +}
  13736. +_ACEOF
  13737. +rm -f conftest.$ac_objext
  13738. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13739. + (eval $ac_compile) 2>conftest.er1
  13740. + ac_status=$?
  13741. + grep -v '^ *+' conftest.er1 >conftest.err
  13742. + rm -f conftest.er1
  13743. + cat conftest.err >&5
  13744. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13745. + (exit $ac_status); } &&
  13746. + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  13747. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13748. + (eval $ac_try) 2>&5
  13749. + ac_status=$?
  13750. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13751. + (exit $ac_status); }; } &&
  13752. + { ac_try='test -s conftest.$ac_objext'
  13753. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13754. + (eval $ac_try) 2>&5
  13755. + ac_status=$?
  13756. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13757. + (exit $ac_status); }; }; then
  13758. + ac_cv_prog_cxx_g=yes
  13759. +else
  13760. + echo "$as_me: failed program was:" >&5
  13761. +sed 's/^/| /' conftest.$ac_ext >&5
  13762. +
  13763. +ac_cv_prog_cxx_g=no
  13764. +fi
  13765. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13766. +fi
  13767. +echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  13768. +echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  13769. +if test "$ac_test_CXXFLAGS" = set; then
  13770. + CXXFLAGS=$ac_save_CXXFLAGS
  13771. +elif test $ac_cv_prog_cxx_g = yes; then
  13772. + if test "$GXX" = yes; then
  13773. + CXXFLAGS="-g -O2"
  13774. + else
  13775. + CXXFLAGS="-g"
  13776. + fi
  13777. +else
  13778. + if test "$GXX" = yes; then
  13779. + CXXFLAGS="-O2"
  13780. + else
  13781. + CXXFLAGS=
  13782. + fi
  13783. +fi
  13784. +for ac_declaration in \
  13785. + '' \
  13786. + 'extern "C" void std::exit (int) throw (); using std::exit;' \
  13787. + 'extern "C" void std::exit (int); using std::exit;' \
  13788. + 'extern "C" void exit (int) throw ();' \
  13789. + 'extern "C" void exit (int);' \
  13790. + 'void exit (int);'
  13791. +do
  13792. + cat >conftest.$ac_ext <<_ACEOF
  13793. +/* confdefs.h. */
  13794. +_ACEOF
  13795. +cat confdefs.h >>conftest.$ac_ext
  13796. +cat >>conftest.$ac_ext <<_ACEOF
  13797. +/* end confdefs.h. */
  13798. +$ac_declaration
  13799. +#include <stdlib.h>
  13800. +int
  13801. +main ()
  13802. +{
  13803. +exit (42);
  13804. + ;
  13805. + return 0;
  13806. +}
  13807. +_ACEOF
  13808. +rm -f conftest.$ac_objext
  13809. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13810. + (eval $ac_compile) 2>conftest.er1
  13811. + ac_status=$?
  13812. + grep -v '^ *+' conftest.er1 >conftest.err
  13813. + rm -f conftest.er1
  13814. + cat conftest.err >&5
  13815. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13816. + (exit $ac_status); } &&
  13817. + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  13818. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13819. + (eval $ac_try) 2>&5
  13820. + ac_status=$?
  13821. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13822. + (exit $ac_status); }; } &&
  13823. + { ac_try='test -s conftest.$ac_objext'
  13824. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13825. + (eval $ac_try) 2>&5
  13826. + ac_status=$?
  13827. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13828. + (exit $ac_status); }; }; then
  13829. + :
  13830. +else
  13831. + echo "$as_me: failed program was:" >&5
  13832. +sed 's/^/| /' conftest.$ac_ext >&5
  13833. +
  13834. +continue
  13835. +fi
  13836. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13837. + cat >conftest.$ac_ext <<_ACEOF
  13838. +/* confdefs.h. */
  13839. +_ACEOF
  13840. +cat confdefs.h >>conftest.$ac_ext
  13841. +cat >>conftest.$ac_ext <<_ACEOF
  13842. +/* end confdefs.h. */
  13843. +$ac_declaration
  13844. +int
  13845. +main ()
  13846. +{
  13847. +exit (42);
  13848. + ;
  13849. + return 0;
  13850. +}
  13851. +_ACEOF
  13852. +rm -f conftest.$ac_objext
  13853. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13854. + (eval $ac_compile) 2>conftest.er1
  13855. + ac_status=$?
  13856. + grep -v '^ *+' conftest.er1 >conftest.err
  13857. + rm -f conftest.er1
  13858. + cat conftest.err >&5
  13859. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13860. + (exit $ac_status); } &&
  13861. + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  13862. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13863. + (eval $ac_try) 2>&5
  13864. + ac_status=$?
  13865. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13866. + (exit $ac_status); }; } &&
  13867. + { ac_try='test -s conftest.$ac_objext'
  13868. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13869. + (eval $ac_try) 2>&5
  13870. + ac_status=$?
  13871. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13872. + (exit $ac_status); }; }; then
  13873. + break
  13874. +else
  13875. + echo "$as_me: failed program was:" >&5
  13876. +sed 's/^/| /' conftest.$ac_ext >&5
  13877. +
  13878. +fi
  13879. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13880. +done
  13881. +rm -f conftest*
  13882. +if test -n "$ac_declaration"; then
  13883. + echo '#ifdef __cplusplus' >>confdefs.h
  13884. + echo $ac_declaration >>confdefs.h
  13885. + echo '#endif' >>confdefs.h
  13886. +fi
  13887. +
  13888. +ac_ext=cc
  13889. +ac_cpp='$CXXCPP $CPPFLAGS'
  13890. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13891. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13892. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13893. +
  13894. +
  13895. +
  13896. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  13897. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  13898. + (test "X$CXX" != "Xg++"))) ; then
  13899. + ac_ext=cc
  13900. +ac_cpp='$CXXCPP $CPPFLAGS'
  13901. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13902. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13903. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13904. +echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  13905. +echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  13906. +if test -z "$CXXCPP"; then
  13907. + if test "${ac_cv_prog_CXXCPP+set}" = set; then
  13908. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13909. +else
  13910. + # Double quotes because CXXCPP needs to be expanded
  13911. + for CXXCPP in "$CXX -E" "/lib/cpp"
  13912. + do
  13913. + ac_preproc_ok=false
  13914. +for ac_cxx_preproc_warn_flag in '' yes
  13915. +do
  13916. + # Use a header file that comes with gcc, so configuring glibc
  13917. + # with a fresh cross-compiler works.
  13918. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13919. + # <limits.h> exists even on freestanding compilers.
  13920. + # On the NeXT, cc -E runs the code through the compiler's parser,
  13921. + # not just through cpp. "Syntax error" is here to catch this case.
  13922. + cat >conftest.$ac_ext <<_ACEOF
  13923. +/* confdefs.h. */
  13924. +_ACEOF
  13925. +cat confdefs.h >>conftest.$ac_ext
  13926. +cat >>conftest.$ac_ext <<_ACEOF
  13927. +/* end confdefs.h. */
  13928. +#ifdef __STDC__
  13929. +# include <limits.h>
  13930. +#else
  13931. +# include <assert.h>
  13932. +#endif
  13933. + Syntax error
  13934. +_ACEOF
  13935. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  13936. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  13937. + ac_status=$?
  13938. + grep -v '^ *+' conftest.er1 >conftest.err
  13939. + rm -f conftest.er1
  13940. + cat conftest.err >&5
  13941. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13942. + (exit $ac_status); } >/dev/null; then
  13943. + if test -s conftest.err; then
  13944. + ac_cpp_err=$ac_cxx_preproc_warn_flag
  13945. + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  13946. + else
  13947. + ac_cpp_err=
  13948. + fi
  13949. +else
  13950. + ac_cpp_err=yes
  13951. +fi
  13952. +if test -z "$ac_cpp_err"; then
  13953. + :
  13954. +else
  13955. + echo "$as_me: failed program was:" >&5
  13956. +sed 's/^/| /' conftest.$ac_ext >&5
  13957. +
  13958. + # Broken: fails on valid input.
  13959. +continue
  13960. +fi
  13961. +rm -f conftest.err conftest.$ac_ext
  13962. +
  13963. + # OK, works on sane cases. Now check whether non-existent headers
  13964. + # can be detected and how.
  13965. + cat >conftest.$ac_ext <<_ACEOF
  13966. +/* confdefs.h. */
  13967. +_ACEOF
  13968. +cat confdefs.h >>conftest.$ac_ext
  13969. +cat >>conftest.$ac_ext <<_ACEOF
  13970. +/* end confdefs.h. */
  13971. +#include <ac_nonexistent.h>
  13972. +_ACEOF
  13973. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  13974. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  13975. + ac_status=$?
  13976. + grep -v '^ *+' conftest.er1 >conftest.err
  13977. + rm -f conftest.er1
  13978. + cat conftest.err >&5
  13979. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13980. + (exit $ac_status); } >/dev/null; then
  13981. + if test -s conftest.err; then
  13982. + ac_cpp_err=$ac_cxx_preproc_warn_flag
  13983. + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  13984. + else
  13985. + ac_cpp_err=
  13986. + fi
  13987. +else
  13988. + ac_cpp_err=yes
  13989. +fi
  13990. +if test -z "$ac_cpp_err"; then
  13991. + # Broken: success on invalid input.
  13992. +continue
  13993. +else
  13994. + echo "$as_me: failed program was:" >&5
  13995. +sed 's/^/| /' conftest.$ac_ext >&5
  13996. +
  13997. + # Passes both tests.
  13998. +ac_preproc_ok=:
  13999. +break
  14000. +fi
  14001. +rm -f conftest.err conftest.$ac_ext
  14002. +
  14003. +done
  14004. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  14005. +rm -f conftest.err conftest.$ac_ext
  14006. +if $ac_preproc_ok; then
  14007. + break
  14008. +fi
  14009. +
  14010. + done
  14011. + ac_cv_prog_CXXCPP=$CXXCPP
  14012. +
  14013. +fi
  14014. + CXXCPP=$ac_cv_prog_CXXCPP
  14015. +else
  14016. + ac_cv_prog_CXXCPP=$CXXCPP
  14017. +fi
  14018. +echo "$as_me:$LINENO: result: $CXXCPP" >&5
  14019. +echo "${ECHO_T}$CXXCPP" >&6
  14020. +ac_preproc_ok=false
  14021. +for ac_cxx_preproc_warn_flag in '' yes
  14022. +do
  14023. + # Use a header file that comes with gcc, so configuring glibc
  14024. + # with a fresh cross-compiler works.
  14025. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14026. + # <limits.h> exists even on freestanding compilers.
  14027. + # On the NeXT, cc -E runs the code through the compiler's parser,
  14028. + # not just through cpp. "Syntax error" is here to catch this case.
  14029. + cat >conftest.$ac_ext <<_ACEOF
  14030. +/* confdefs.h. */
  14031. +_ACEOF
  14032. +cat confdefs.h >>conftest.$ac_ext
  14033. +cat >>conftest.$ac_ext <<_ACEOF
  14034. +/* end confdefs.h. */
  14035. +#ifdef __STDC__
  14036. +# include <limits.h>
  14037. +#else
  14038. +# include <assert.h>
  14039. +#endif
  14040. + Syntax error
  14041. +_ACEOF
  14042. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  14043. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  14044. + ac_status=$?
  14045. + grep -v '^ *+' conftest.er1 >conftest.err
  14046. + rm -f conftest.er1
  14047. + cat conftest.err >&5
  14048. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14049. + (exit $ac_status); } >/dev/null; then
  14050. + if test -s conftest.err; then
  14051. + ac_cpp_err=$ac_cxx_preproc_warn_flag
  14052. + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  14053. + else
  14054. + ac_cpp_err=
  14055. + fi
  14056. +else
  14057. + ac_cpp_err=yes
  14058. +fi
  14059. +if test -z "$ac_cpp_err"; then
  14060. + :
  14061. +else
  14062. + echo "$as_me: failed program was:" >&5
  14063. +sed 's/^/| /' conftest.$ac_ext >&5
  14064. +
  14065. + # Broken: fails on valid input.
  14066. +continue
  14067. +fi
  14068. +rm -f conftest.err conftest.$ac_ext
  14069. +
  14070. + # OK, works on sane cases. Now check whether non-existent headers
  14071. + # can be detected and how.
  14072. + cat >conftest.$ac_ext <<_ACEOF
  14073. +/* confdefs.h. */
  14074. +_ACEOF
  14075. +cat confdefs.h >>conftest.$ac_ext
  14076. +cat >>conftest.$ac_ext <<_ACEOF
  14077. +/* end confdefs.h. */
  14078. +#include <ac_nonexistent.h>
  14079. +_ACEOF
  14080. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  14081. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  14082. + ac_status=$?
  14083. + grep -v '^ *+' conftest.er1 >conftest.err
  14084. + rm -f conftest.er1
  14085. + cat conftest.err >&5
  14086. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14087. + (exit $ac_status); } >/dev/null; then
  14088. + if test -s conftest.err; then
  14089. + ac_cpp_err=$ac_cxx_preproc_warn_flag
  14090. + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  14091. + else
  14092. + ac_cpp_err=
  14093. + fi
  14094. +else
  14095. + ac_cpp_err=yes
  14096. +fi
  14097. +if test -z "$ac_cpp_err"; then
  14098. + # Broken: success on invalid input.
  14099. +continue
  14100. +else
  14101. + echo "$as_me: failed program was:" >&5
  14102. +sed 's/^/| /' conftest.$ac_ext >&5
  14103. +
  14104. + # Passes both tests.
  14105. +ac_preproc_ok=:
  14106. +break
  14107. +fi
  14108. +rm -f conftest.err conftest.$ac_ext
  14109. +
  14110. +done
  14111. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  14112. +rm -f conftest.err conftest.$ac_ext
  14113. +if $ac_preproc_ok; then
  14114. + :
  14115. +else
  14116. + { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  14117. +See \`config.log' for more details." >&5
  14118. +echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  14119. +See \`config.log' for more details." >&2;}
  14120. + { (exit 1); exit 1; }; }
  14121. +fi
  14122. +
  14123. +ac_ext=cc
  14124. +ac_cpp='$CXXCPP $CPPFLAGS'
  14125. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14126. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14127. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14128. +
  14129. +fi
  14130. +
  14131. +
  14132. +ac_ext=f
  14133. +ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  14134. +ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14135. +ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  14136. +if test -n "$ac_tool_prefix"; then
  14137. + for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  14138. + do
  14139. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  14140. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  14141. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  14142. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  14143. +if test "${ac_cv_prog_F77+set}" = set; then
  14144. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14145. +else
  14146. + if test -n "$F77"; then
  14147. + ac_cv_prog_F77="$F77" # Let the user override the test.
  14148. +else
  14149. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14150. +for as_dir in $PATH
  14151. +do
  14152. + IFS=$as_save_IFS
  14153. + test -z "$as_dir" && as_dir=.
  14154. + for ac_exec_ext in '' $ac_executable_extensions; do
  14155. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14156. + ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  14157. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14158. + break 2
  14159. + fi
  14160. +done
  14161. +done
  14162. +
  14163. +fi
  14164. +fi
  14165. +F77=$ac_cv_prog_F77
  14166. +if test -n "$F77"; then
  14167. + echo "$as_me:$LINENO: result: $F77" >&5
  14168. +echo "${ECHO_T}$F77" >&6
  14169. +else
  14170. + echo "$as_me:$LINENO: result: no" >&5
  14171. +echo "${ECHO_T}no" >&6
  14172. +fi
  14173. +
  14174. + test -n "$F77" && break
  14175. + done
  14176. +fi
  14177. +if test -z "$F77"; then
  14178. + ac_ct_F77=$F77
  14179. + for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  14180. +do
  14181. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  14182. +set dummy $ac_prog; ac_word=$2
  14183. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  14184. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  14185. +if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  14186. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14187. +else
  14188. + if test -n "$ac_ct_F77"; then
  14189. + ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  14190. +else
  14191. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14192. +for as_dir in $PATH
  14193. +do
  14194. + IFS=$as_save_IFS
  14195. + test -z "$as_dir" && as_dir=.
  14196. + for ac_exec_ext in '' $ac_executable_extensions; do
  14197. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14198. + ac_cv_prog_ac_ct_F77="$ac_prog"
  14199. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14200. + break 2
  14201. + fi
  14202. +done
  14203. +done
  14204. +
  14205. +fi
  14206. +fi
  14207. +ac_ct_F77=$ac_cv_prog_ac_ct_F77
  14208. +if test -n "$ac_ct_F77"; then
  14209. + echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  14210. +echo "${ECHO_T}$ac_ct_F77" >&6
  14211. +else
  14212. + echo "$as_me:$LINENO: result: no" >&5
  14213. +echo "${ECHO_T}no" >&6
  14214. +fi
  14215. +
  14216. + test -n "$ac_ct_F77" && break
  14217. +done
  14218. +
  14219. + F77=$ac_ct_F77
  14220. +fi
  14221. +
  14222. +
  14223. +# Provide some information about the compiler.
  14224. +echo "$as_me:4909:" \
  14225. + "checking for Fortran 77 compiler version" >&5
  14226. +ac_compiler=`set X $ac_compile; echo $2`
  14227. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  14228. + (eval $ac_compiler --version </dev/null >&5) 2>&5
  14229. + ac_status=$?
  14230. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14231. + (exit $ac_status); }
  14232. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  14233. + (eval $ac_compiler -v </dev/null >&5) 2>&5
  14234. + ac_status=$?
  14235. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14236. + (exit $ac_status); }
  14237. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  14238. + (eval $ac_compiler -V </dev/null >&5) 2>&5
  14239. + ac_status=$?
  14240. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14241. + (exit $ac_status); }
  14242. +rm -f a.out
  14243. +
  14244. +# If we don't use `.F' as extension, the preprocessor is not run on the
  14245. +# input file. (Note that this only needs to work for GNU compilers.)
  14246. +ac_save_ext=$ac_ext
  14247. +ac_ext=F
  14248. +echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  14249. +echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  14250. +if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  14251. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14252. +else
  14253. + cat >conftest.$ac_ext <<_ACEOF
  14254. + program main
  14255. +#ifndef __GNUC__
  14256. + choke me
  14257. +#endif
  14258. +
  14259. + end
  14260. +_ACEOF
  14261. +rm -f conftest.$ac_objext
  14262. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14263. + (eval $ac_compile) 2>conftest.er1
  14264. + ac_status=$?
  14265. + grep -v '^ *+' conftest.er1 >conftest.err
  14266. + rm -f conftest.er1
  14267. + cat conftest.err >&5
  14268. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14269. + (exit $ac_status); } &&
  14270. + { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  14271. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14272. + (eval $ac_try) 2>&5
  14273. + ac_status=$?
  14274. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14275. + (exit $ac_status); }; } &&
  14276. + { ac_try='test -s conftest.$ac_objext'
  14277. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14278. + (eval $ac_try) 2>&5
  14279. + ac_status=$?
  14280. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14281. + (exit $ac_status); }; }; then
  14282. + ac_compiler_gnu=yes
  14283. +else
  14284. + echo "$as_me: failed program was:" >&5
  14285. +sed 's/^/| /' conftest.$ac_ext >&5
  14286. +
  14287. +ac_compiler_gnu=no
  14288. +fi
  14289. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14290. +ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  14291. +
  14292. +fi
  14293. +echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  14294. +echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  14295. +ac_ext=$ac_save_ext
  14296. +ac_test_FFLAGS=${FFLAGS+set}
  14297. +ac_save_FFLAGS=$FFLAGS
  14298. +FFLAGS=
  14299. +echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  14300. +echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  14301. +if test "${ac_cv_prog_f77_g+set}" = set; then
  14302. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14303. +else
  14304. + FFLAGS=-g
  14305. +cat >conftest.$ac_ext <<_ACEOF
  14306. + program main
  14307. +
  14308. + end
  14309. +_ACEOF
  14310. +rm -f conftest.$ac_objext
  14311. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14312. + (eval $ac_compile) 2>conftest.er1
  14313. + ac_status=$?
  14314. + grep -v '^ *+' conftest.er1 >conftest.err
  14315. + rm -f conftest.er1
  14316. + cat conftest.err >&5
  14317. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14318. + (exit $ac_status); } &&
  14319. + { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  14320. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14321. + (eval $ac_try) 2>&5
  14322. + ac_status=$?
  14323. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14324. + (exit $ac_status); }; } &&
  14325. + { ac_try='test -s conftest.$ac_objext'
  14326. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14327. + (eval $ac_try) 2>&5
  14328. + ac_status=$?
  14329. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14330. + (exit $ac_status); }; }; then
  14331. + ac_cv_prog_f77_g=yes
  14332. +else
  14333. + echo "$as_me: failed program was:" >&5
  14334. +sed 's/^/| /' conftest.$ac_ext >&5
  14335. +
  14336. +ac_cv_prog_f77_g=no
  14337. +fi
  14338. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14339. +
  14340. +fi
  14341. +echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  14342. +echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  14343. +if test "$ac_test_FFLAGS" = set; then
  14344. + FFLAGS=$ac_save_FFLAGS
  14345. +elif test $ac_cv_prog_f77_g = yes; then
  14346. + if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  14347. + FFLAGS="-g -O2"
  14348. + else
  14349. + FFLAGS="-g"
  14350. + fi
  14351. +else
  14352. + if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  14353. + FFLAGS="-O2"
  14354. + else
  14355. + FFLAGS=
  14356. + fi
  14357. +fi
  14358. +
  14359. +G77=`test $ac_compiler_gnu = yes && echo yes`
  14360. +ac_ext=c
  14361. +ac_cpp='$CPP $CPPFLAGS'
  14362. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14363. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14364. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14365. +
  14366. +
  14367. +
  14368. +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  14369. +
  14370. +# find the maximum length of command line arguments
  14371. +echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  14372. +echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  14373. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  14374. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14375. +else
  14376. + i=0
  14377. + teststring="ABCD"
  14378. +
  14379. + case $build_os in
  14380. + msdosdjgpp*)
  14381. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  14382. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  14383. + # during glob expansion). Even if it were fixed, the result of this
  14384. + # check would be larger than it should be.
  14385. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  14386. + ;;
  14387. +
  14388. + gnu*)
  14389. + # Under GNU Hurd, this test is not required because there is
  14390. + # no limit to the length of command line arguments.
  14391. + # Libtool will interpret -1 as no limit whatsoever
  14392. + lt_cv_sys_max_cmd_len=-1;
  14393. + ;;
  14394. +
  14395. + cygwin* | mingw*)
  14396. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  14397. + # about 5 minutes as the teststring grows exponentially.
  14398. + # Worse, since 9x/ME are not pre-emptively multitasking,
  14399. + # you end up with a "frozen" computer, even though with patience
  14400. + # the test eventually succeeds (with a max line length of 256k).
  14401. + # Instead, let's just punt: use the minimum linelength reported by
  14402. + # all of the supported platforms: 8192 (on NT/2K/XP).
  14403. + lt_cv_sys_max_cmd_len=8192;
  14404. + ;;
  14405. +
  14406. + amigaos*)
  14407. + # On AmigaOS with pdksh, this test takes hours, literally.
  14408. + # So we just punt and use a minimum line length of 8192.
  14409. + lt_cv_sys_max_cmd_len=8192;
  14410. + ;;
  14411. +
  14412. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  14413. + # This has been around since 386BSD, at least. Likely further.
  14414. + if test -x /sbin/sysctl; then
  14415. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  14416. + elif test -x /usr/sbin/sysctl; then
  14417. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  14418. + else
  14419. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  14420. + fi
  14421. + # And add a safety zone
  14422. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  14423. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  14424. + ;;
  14425. +
  14426. + interix*)
  14427. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  14428. + lt_cv_sys_max_cmd_len=196608
  14429. + ;;
  14430. +
  14431. + osf*)
  14432. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  14433. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  14434. + # nice to cause kernel panics so lets avoid the loop below.
  14435. + # First set a reasonable default.
  14436. + lt_cv_sys_max_cmd_len=16384
  14437. + #
  14438. + if test -x /sbin/sysconfig; then
  14439. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  14440. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  14441. + esac
  14442. + fi
  14443. + ;;
  14444. + sco3.2v5*)
  14445. + lt_cv_sys_max_cmd_len=102400
  14446. + ;;
  14447. + sysv5* | sco5v6* | sysv4.2uw2*)
  14448. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  14449. + if test -n "$kargmax"; then
  14450. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  14451. + else
  14452. + lt_cv_sys_max_cmd_len=32768
  14453. + fi
  14454. + ;;
  14455. + *)
  14456. + # If test is not a shell built-in, we'll probably end up computing a
  14457. + # maximum length that is only half of the actual maximum length, but
  14458. + # we can't tell.
  14459. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  14460. + while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  14461. + = "XX$teststring") >/dev/null 2>&1 &&
  14462. + new_result=`expr "X$teststring" : ".*" 2>&1` &&
  14463. + lt_cv_sys_max_cmd_len=$new_result &&
  14464. + test $i != 17 # 1/2 MB should be enough
  14465. + do
  14466. + i=`expr $i + 1`
  14467. + teststring=$teststring$teststring
  14468. + done
  14469. + teststring=
  14470. + # Add a significant safety factor because C++ compilers can tack on massive
  14471. + # amounts of additional arguments before passing them to the linker.
  14472. + # It appears as though 1/2 is a usable value.
  14473. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  14474. + ;;
  14475. + esac
  14476. +
  14477. +fi
  14478. +
  14479. +if test -n $lt_cv_sys_max_cmd_len ; then
  14480. + echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  14481. +echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  14482. +else
  14483. + echo "$as_me:$LINENO: result: none" >&5
  14484. +echo "${ECHO_T}none" >&6
  14485. +fi
  14486. +
  14487. +
  14488. +
  14489. +
  14490. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  14491. +echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  14492. +echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  14493. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  14494. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14495. +else
  14496. +
  14497. +# These are sane defaults that work on at least a few old systems.
  14498. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  14499. +
  14500. +# Character class describing NM global symbol codes.
  14501. +symcode='[BCDEGRST]'
  14502. +
  14503. +# Regexp to match symbols that can be accessed directly from C.
  14504. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  14505. +
  14506. +# Transform an extracted symbol line into a proper C declaration
  14507. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  14508. +
  14509. +# Transform an extracted symbol line into symbol name and symbol address
  14510. +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'"
  14511. +
  14512. +# Define system-specific variables.
  14513. +case $host_os in
  14514. +aix*)
  14515. + symcode='[BCDT]'
  14516. + ;;
  14517. +cygwin* | mingw* | pw32*)
  14518. + symcode='[ABCDGISTW]'
  14519. + ;;
  14520. +hpux*) # Its linker distinguishes data from code symbols
  14521. + if test "$host_cpu" = ia64; then
  14522. + symcode='[ABCDEGRST]'
  14523. + fi
  14524. + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  14525. + 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'"
  14526. + ;;
  14527. +linux*)
  14528. + if test "$host_cpu" = ia64; then
  14529. + symcode='[ABCDGIRSTW]'
  14530. + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  14531. + 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'"
  14532. + fi
  14533. + ;;
  14534. +irix* | nonstopux*)
  14535. + symcode='[BCDEGRST]'
  14536. + ;;
  14537. +osf*)
  14538. + symcode='[BCDEGQRST]'
  14539. + ;;
  14540. +solaris*)
  14541. + symcode='[BDRT]'
  14542. + ;;
  14543. +sco3.2v5*)
  14544. + symcode='[DT]'
  14545. + ;;
  14546. +sysv4.2uw2*)
  14547. + symcode='[DT]'
  14548. + ;;
  14549. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  14550. + symcode='[ABDT]'
  14551. + ;;
  14552. +sysv4)
  14553. + symcode='[DFNSTU]'
  14554. + ;;
  14555. +esac
  14556. +
  14557. +# Handle CRLF in mingw tool chain
  14558. +opt_cr=
  14559. +case $build_os in
  14560. +mingw*)
  14561. + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  14562. + ;;
  14563. +esac
  14564. +
  14565. +# If we're using GNU nm, then use its standard symbol codes.
  14566. +case `$NM -V 2>&1` in
  14567. +*GNU* | *'with BFD'*)
  14568. + symcode='[ABCDGIRSTW]' ;;
  14569. +esac
  14570. +
  14571. +# Try without a prefix undercore, then with it.
  14572. +for ac_symprfx in "" "_"; do
  14573. +
  14574. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  14575. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  14576. +
  14577. + # Write the raw and C identifiers.
  14578. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  14579. +
  14580. + # Check to see that the pipe works correctly.
  14581. + pipe_works=no
  14582. +
  14583. + rm -f conftest*
  14584. + cat > conftest.$ac_ext <<EOF
  14585. +#ifdef __cplusplus
  14586. +extern "C" {
  14587. +#endif
  14588. +char nm_test_var;
  14589. +void nm_test_func(){}
  14590. +#ifdef __cplusplus
  14591. +}
  14592. +#endif
  14593. +int main(){nm_test_var='a';nm_test_func();return(0);}
  14594. +EOF
  14595. +
  14596. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14597. + (eval $ac_compile) 2>&5
  14598. + ac_status=$?
  14599. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14600. + (exit $ac_status); }; then
  14601. + # Now try to grab the symbols.
  14602. + nlist=conftest.nm
  14603. + if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  14604. + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  14605. + ac_status=$?
  14606. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14607. + (exit $ac_status); } && test -s "$nlist"; then
  14608. + # Try sorting and uniquifying the output.
  14609. + if sort "$nlist" | uniq > "$nlist"T; then
  14610. + mv -f "$nlist"T "$nlist"
  14611. + else
  14612. + rm -f "$nlist"T
  14613. + fi
  14614. +
  14615. + # Make sure that we snagged all the symbols we need.
  14616. + if grep ' nm_test_var$' "$nlist" >/dev/null; then
  14617. + if grep ' nm_test_func$' "$nlist" >/dev/null; then
  14618. + cat <<EOF > conftest.$ac_ext
  14619. +#ifdef __cplusplus
  14620. +extern "C" {
  14621. +#endif
  14622. +
  14623. +EOF
  14624. + # Now generate the symbol file.
  14625. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  14626. +
  14627. + cat <<EOF >> conftest.$ac_ext
  14628. +#if defined (__STDC__) && __STDC__
  14629. +# define lt_ptr_t void *
  14630. +#else
  14631. +# define lt_ptr_t char *
  14632. +# define const
  14633. +#endif
  14634. +
  14635. +/* The mapping between symbol names and symbols. */
  14636. +const struct {
  14637. + const char *name;
  14638. + lt_ptr_t address;
  14639. +}
  14640. +lt_preloaded_symbols[] =
  14641. +{
  14642. +EOF
  14643. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  14644. + cat <<\EOF >> conftest.$ac_ext
  14645. + {0, (lt_ptr_t) 0}
  14646. +};
  14647. +
  14648. +#ifdef __cplusplus
  14649. +}
  14650. +#endif
  14651. +EOF
  14652. + # Now try linking the two files.
  14653. + mv conftest.$ac_objext conftstm.$ac_objext
  14654. + lt_save_LIBS="$LIBS"
  14655. + lt_save_CFLAGS="$CFLAGS"
  14656. + LIBS="conftstm.$ac_objext"
  14657. + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  14658. + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14659. + (eval $ac_link) 2>&5
  14660. + ac_status=$?
  14661. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14662. + (exit $ac_status); } && test -s conftest${ac_exeext}; then
  14663. + pipe_works=yes
  14664. + fi
  14665. + LIBS="$lt_save_LIBS"
  14666. + CFLAGS="$lt_save_CFLAGS"
  14667. + else
  14668. + echo "cannot find nm_test_func in $nlist" >&5
  14669. + fi
  14670. + else
  14671. + echo "cannot find nm_test_var in $nlist" >&5
  14672. + fi
  14673. + else
  14674. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  14675. + fi
  14676. + else
  14677. + echo "$progname: failed program was:" >&5
  14678. + cat conftest.$ac_ext >&5
  14679. + fi
  14680. + rm -f conftest* conftst*
  14681. +
  14682. + # Do not use the global_symbol_pipe unless it works.
  14683. + if test "$pipe_works" = yes; then
  14684. + break
  14685. + else
  14686. + lt_cv_sys_global_symbol_pipe=
  14687. + fi
  14688. +done
  14689. +
  14690. +fi
  14691. +
  14692. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  14693. + lt_cv_sys_global_symbol_to_cdecl=
  14694. +fi
  14695. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  14696. + echo "$as_me:$LINENO: result: failed" >&5
  14697. +echo "${ECHO_T}failed" >&6
  14698. +else
  14699. + echo "$as_me:$LINENO: result: ok" >&5
  14700. +echo "${ECHO_T}ok" >&6
  14701. +fi
  14702. +
  14703. +echo "$as_me:$LINENO: checking for objdir" >&5
  14704. +echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  14705. +if test "${lt_cv_objdir+set}" = set; then
  14706. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14707. +else
  14708. + rm -f .libs 2>/dev/null
  14709. +mkdir .libs 2>/dev/null
  14710. +if test -d .libs; then
  14711. + lt_cv_objdir=.libs
  14712. +else
  14713. + # MS-DOS does not allow filenames that begin with a dot.
  14714. + lt_cv_objdir=_libs
  14715. +fi
  14716. +rmdir .libs 2>/dev/null
  14717. +fi
  14718. +echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  14719. +echo "${ECHO_T}$lt_cv_objdir" >&6
  14720. +objdir=$lt_cv_objdir
  14721. +
  14722. +
  14723. +
  14724. +
  14725. +
  14726. +case $host_os in
  14727. +aix3*)
  14728. + # AIX sometimes has problems with the GCC collect2 program. For some
  14729. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  14730. + # vanish in a puff of smoke.
  14731. + if test "X${COLLECT_NAMES+set}" != Xset; then
  14732. + COLLECT_NAMES=
  14733. + export COLLECT_NAMES
  14734. + fi
  14735. + ;;
  14736. +esac
  14737. +
  14738. +# Sed substitution that helps us do robust quoting. It backslashifies
  14739. +# metacharacters that are still active within double-quoted strings.
  14740. +Xsed='sed -e 1s/^X//'
  14741. +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  14742. +
  14743. +# Same as above, but do not quote variable references.
  14744. +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  14745. +
  14746. +# Sed substitution to delay expansion of an escaped shell variable in a
  14747. +# double_quote_subst'ed string.
  14748. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  14749. +
  14750. +# Sed substitution to avoid accidental globbing in evaled expressions
  14751. +no_glob_subst='s/\*/\\\*/g'
  14752. +
  14753. +# Constants:
  14754. +rm="rm -f"
  14755. +
  14756. +# Global variables:
  14757. +default_ofile=libtool
  14758. +can_build_shared=yes
  14759. +
  14760. +# All known linkers require a `.a' archive for static linking (except MSVC,
  14761. +# which needs '.lib').
  14762. +libext=a
  14763. +ltmain="$ac_aux_dir/ltmain.sh"
  14764. +ofile="$default_ofile"
  14765. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  14766. +
  14767. +if test -n "$ac_tool_prefix"; then
  14768. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  14769. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  14770. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  14771. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  14772. +if test "${ac_cv_prog_AR+set}" = set; then
  14773. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14774. +else
  14775. + if test -n "$AR"; then
  14776. + ac_cv_prog_AR="$AR" # Let the user override the test.
  14777. +else
  14778. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14779. +for as_dir in $PATH
  14780. +do
  14781. + IFS=$as_save_IFS
  14782. + test -z "$as_dir" && as_dir=.
  14783. + for ac_exec_ext in '' $ac_executable_extensions; do
  14784. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14785. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  14786. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14787. + break 2
  14788. + fi
  14789. +done
  14790. +done
  14791. +
  14792. +fi
  14793. +fi
  14794. +AR=$ac_cv_prog_AR
  14795. +if test -n "$AR"; then
  14796. + echo "$as_me:$LINENO: result: $AR" >&5
  14797. +echo "${ECHO_T}$AR" >&6
  14798. +else
  14799. + echo "$as_me:$LINENO: result: no" >&5
  14800. +echo "${ECHO_T}no" >&6
  14801. +fi
  14802. +
  14803. +fi
  14804. +if test -z "$ac_cv_prog_AR"; then
  14805. + ac_ct_AR=$AR
  14806. + # Extract the first word of "ar", so it can be a program name with args.
  14807. +set dummy ar; ac_word=$2
  14808. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  14809. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  14810. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  14811. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14812. +else
  14813. + if test -n "$ac_ct_AR"; then
  14814. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  14815. +else
  14816. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14817. +for as_dir in $PATH
  14818. +do
  14819. + IFS=$as_save_IFS
  14820. + test -z "$as_dir" && as_dir=.
  14821. + for ac_exec_ext in '' $ac_executable_extensions; do
  14822. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14823. + ac_cv_prog_ac_ct_AR="ar"
  14824. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14825. + break 2
  14826. + fi
  14827. +done
  14828. +done
  14829. +
  14830. + test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  14831. +fi
  14832. +fi
  14833. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  14834. +if test -n "$ac_ct_AR"; then
  14835. + echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  14836. +echo "${ECHO_T}$ac_ct_AR" >&6
  14837. +else
  14838. + echo "$as_me:$LINENO: result: no" >&5
  14839. +echo "${ECHO_T}no" >&6
  14840. +fi
  14841. +
  14842. + AR=$ac_ct_AR
  14843. +else
  14844. + AR="$ac_cv_prog_AR"
  14845. +fi
  14846. +
  14847. +if test -n "$ac_tool_prefix"; then
  14848. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  14849. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  14850. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  14851. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  14852. +if test "${ac_cv_prog_RANLIB+set}" = set; then
  14853. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14854. +else
  14855. + if test -n "$RANLIB"; then
  14856. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  14857. +else
  14858. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14859. +for as_dir in $PATH
  14860. +do
  14861. + IFS=$as_save_IFS
  14862. + test -z "$as_dir" && as_dir=.
  14863. + for ac_exec_ext in '' $ac_executable_extensions; do
  14864. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14865. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  14866. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14867. + break 2
  14868. + fi
  14869. +done
  14870. +done
  14871. +
  14872. +fi
  14873. +fi
  14874. +RANLIB=$ac_cv_prog_RANLIB
  14875. +if test -n "$RANLIB"; then
  14876. + echo "$as_me:$LINENO: result: $RANLIB" >&5
  14877. +echo "${ECHO_T}$RANLIB" >&6
  14878. +else
  14879. + echo "$as_me:$LINENO: result: no" >&5
  14880. +echo "${ECHO_T}no" >&6
  14881. +fi
  14882. +
  14883. +fi
  14884. +if test -z "$ac_cv_prog_RANLIB"; then
  14885. + ac_ct_RANLIB=$RANLIB
  14886. + # Extract the first word of "ranlib", so it can be a program name with args.
  14887. +set dummy ranlib; ac_word=$2
  14888. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  14889. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  14890. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  14891. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14892. +else
  14893. + if test -n "$ac_ct_RANLIB"; then
  14894. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  14895. +else
  14896. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14897. +for as_dir in $PATH
  14898. +do
  14899. + IFS=$as_save_IFS
  14900. + test -z "$as_dir" && as_dir=.
  14901. + for ac_exec_ext in '' $ac_executable_extensions; do
  14902. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14903. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  14904. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14905. + break 2
  14906. + fi
  14907. +done
  14908. +done
  14909. +
  14910. + test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  14911. +fi
  14912. +fi
  14913. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  14914. +if test -n "$ac_ct_RANLIB"; then
  14915. + echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  14916. +echo "${ECHO_T}$ac_ct_RANLIB" >&6
  14917. +else
  14918. + echo "$as_me:$LINENO: result: no" >&5
  14919. +echo "${ECHO_T}no" >&6
  14920. +fi
  14921. +
  14922. + RANLIB=$ac_ct_RANLIB
  14923. +else
  14924. + RANLIB="$ac_cv_prog_RANLIB"
  14925. +fi
  14926. +
  14927. +if test -n "$ac_tool_prefix"; then
  14928. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  14929. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  14930. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  14931. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  14932. +if test "${ac_cv_prog_STRIP+set}" = set; then
  14933. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14934. +else
  14935. + if test -n "$STRIP"; then
  14936. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  14937. +else
  14938. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14939. +for as_dir in $PATH
  14940. +do
  14941. + IFS=$as_save_IFS
  14942. + test -z "$as_dir" && as_dir=.
  14943. + for ac_exec_ext in '' $ac_executable_extensions; do
  14944. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14945. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  14946. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14947. + break 2
  14948. + fi
  14949. +done
  14950. +done
  14951. +
  14952. +fi
  14953. +fi
  14954. +STRIP=$ac_cv_prog_STRIP
  14955. +if test -n "$STRIP"; then
  14956. + echo "$as_me:$LINENO: result: $STRIP" >&5
  14957. +echo "${ECHO_T}$STRIP" >&6
  14958. +else
  14959. + echo "$as_me:$LINENO: result: no" >&5
  14960. +echo "${ECHO_T}no" >&6
  14961. +fi
  14962. +
  14963. +fi
  14964. +if test -z "$ac_cv_prog_STRIP"; then
  14965. + ac_ct_STRIP=$STRIP
  14966. + # Extract the first word of "strip", so it can be a program name with args.
  14967. +set dummy strip; ac_word=$2
  14968. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  14969. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  14970. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  14971. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14972. +else
  14973. + if test -n "$ac_ct_STRIP"; then
  14974. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  14975. +else
  14976. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14977. +for as_dir in $PATH
  14978. +do
  14979. + IFS=$as_save_IFS
  14980. + test -z "$as_dir" && as_dir=.
  14981. + for ac_exec_ext in '' $ac_executable_extensions; do
  14982. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14983. + ac_cv_prog_ac_ct_STRIP="strip"
  14984. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14985. + break 2
  14986. + fi
  14987. +done
  14988. +done
  14989. +
  14990. + test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  14991. +fi
  14992. +fi
  14993. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  14994. +if test -n "$ac_ct_STRIP"; then
  14995. + echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  14996. +echo "${ECHO_T}$ac_ct_STRIP" >&6
  14997. +else
  14998. + echo "$as_me:$LINENO: result: no" >&5
  14999. +echo "${ECHO_T}no" >&6
  15000. +fi
  15001. +
  15002. + STRIP=$ac_ct_STRIP
  15003. +else
  15004. + STRIP="$ac_cv_prog_STRIP"
  15005. +fi
  15006. +
  15007. +
  15008. +old_CC="$CC"
  15009. +old_CFLAGS="$CFLAGS"
  15010. +
  15011. +# Set sane defaults for various variables
  15012. +test -z "$AR" && AR=ar
  15013. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  15014. +test -z "$AS" && AS=as
  15015. +test -z "$CC" && CC=cc
  15016. +test -z "$LTCC" && LTCC=$CC
  15017. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  15018. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  15019. +test -z "$LD" && LD=ld
  15020. +test -z "$LN_S" && LN_S="ln -s"
  15021. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  15022. +test -z "$NM" && NM=nm
  15023. +test -z "$SED" && SED=sed
  15024. +test -z "$OBJDUMP" && OBJDUMP=objdump
  15025. +test -z "$RANLIB" && RANLIB=:
  15026. +test -z "$STRIP" && STRIP=:
  15027. +test -z "$ac_objext" && ac_objext=o
  15028. +
  15029. +# Determine commands to create old-style static archives.
  15030. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  15031. +old_postinstall_cmds='chmod 644 $oldlib'
  15032. +old_postuninstall_cmds=
  15033. +
  15034. +if test -n "$RANLIB"; then
  15035. + case $host_os in
  15036. + openbsd*)
  15037. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  15038. + ;;
  15039. + *)
  15040. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  15041. + ;;
  15042. + esac
  15043. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  15044. +fi
  15045. +
  15046. +for cc_temp in $compiler""; do
  15047. + case $cc_temp in
  15048. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15049. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15050. + \-*) ;;
  15051. + *) break;;
  15052. + esac
  15053. +done
  15054. +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  15055. +
  15056. +
  15057. +# Only perform the check for file, if the check method requires it
  15058. +case $deplibs_check_method in
  15059. +file_magic*)
  15060. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  15061. + echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  15062. +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  15063. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  15064. + echo $ECHO_N "(cached) $ECHO_C" >&6
  15065. +else
  15066. + case $MAGIC_CMD in
  15067. +[\\/*] | ?:[\\/]*)
  15068. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  15069. + ;;
  15070. +*)
  15071. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  15072. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  15073. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  15074. + for ac_dir in $ac_dummy; do
  15075. + IFS="$lt_save_ifs"
  15076. + test -z "$ac_dir" && ac_dir=.
  15077. + if test -f $ac_dir/${ac_tool_prefix}file; then
  15078. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  15079. + if test -n "$file_magic_test_file"; then
  15080. + case $deplibs_check_method in
  15081. + "file_magic "*)
  15082. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  15083. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  15084. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  15085. + $EGREP "$file_magic_regex" > /dev/null; then
  15086. + :
  15087. + else
  15088. + cat <<EOF 1>&2
  15089. +
  15090. +*** Warning: the command libtool uses to detect shared libraries,
  15091. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  15092. +*** The result is that libtool may fail to recognize shared libraries
  15093. +*** as such. This will affect the creation of libtool libraries that
  15094. +*** depend on shared libraries, but programs linked with such libtool
  15095. +*** libraries will work regardless of this problem. Nevertheless, you
  15096. +*** may want to report the problem to your system manager and/or to
  15097. +*** bug-libtool@gnu.org
  15098. +
  15099. +EOF
  15100. + fi ;;
  15101. + esac
  15102. + fi
  15103. + break
  15104. + fi
  15105. + done
  15106. + IFS="$lt_save_ifs"
  15107. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  15108. + ;;
  15109. +esac
  15110. +fi
  15111. +
  15112. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  15113. +if test -n "$MAGIC_CMD"; then
  15114. + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  15115. +echo "${ECHO_T}$MAGIC_CMD" >&6
  15116. +else
  15117. + echo "$as_me:$LINENO: result: no" >&5
  15118. +echo "${ECHO_T}no" >&6
  15119. +fi
  15120. +
  15121. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  15122. + if test -n "$ac_tool_prefix"; then
  15123. + echo "$as_me:$LINENO: checking for file" >&5
  15124. +echo $ECHO_N "checking for file... $ECHO_C" >&6
  15125. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  15126. + echo $ECHO_N "(cached) $ECHO_C" >&6
  15127. +else
  15128. + case $MAGIC_CMD in
  15129. +[\\/*] | ?:[\\/]*)
  15130. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  15131. + ;;
  15132. +*)
  15133. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  15134. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  15135. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  15136. + for ac_dir in $ac_dummy; do
  15137. + IFS="$lt_save_ifs"
  15138. + test -z "$ac_dir" && ac_dir=.
  15139. + if test -f $ac_dir/file; then
  15140. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  15141. + if test -n "$file_magic_test_file"; then
  15142. + case $deplibs_check_method in
  15143. + "file_magic "*)
  15144. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  15145. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  15146. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  15147. + $EGREP "$file_magic_regex" > /dev/null; then
  15148. + :
  15149. + else
  15150. + cat <<EOF 1>&2
  15151. +
  15152. +*** Warning: the command libtool uses to detect shared libraries,
  15153. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  15154. +*** The result is that libtool may fail to recognize shared libraries
  15155. +*** as such. This will affect the creation of libtool libraries that
  15156. +*** depend on shared libraries, but programs linked with such libtool
  15157. +*** libraries will work regardless of this problem. Nevertheless, you
  15158. +*** may want to report the problem to your system manager and/or to
  15159. +*** bug-libtool@gnu.org
  15160. +
  15161. +EOF
  15162. + fi ;;
  15163. + esac
  15164. + fi
  15165. + break
  15166. + fi
  15167. + done
  15168. + IFS="$lt_save_ifs"
  15169. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  15170. + ;;
  15171. +esac
  15172. +fi
  15173. +
  15174. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  15175. +if test -n "$MAGIC_CMD"; then
  15176. + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  15177. +echo "${ECHO_T}$MAGIC_CMD" >&6
  15178. +else
  15179. + echo "$as_me:$LINENO: result: no" >&5
  15180. +echo "${ECHO_T}no" >&6
  15181. +fi
  15182. +
  15183. + else
  15184. + MAGIC_CMD=:
  15185. + fi
  15186. +fi
  15187. +
  15188. + fi
  15189. + ;;
  15190. +esac
  15191. +
  15192. +enable_dlopen=no
  15193. +enable_win32_dll=no
  15194. +
  15195. +# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  15196. +if test "${enable_libtool_lock+set}" = set; then
  15197. + enableval="$enable_libtool_lock"
  15198. +
  15199. +fi;
  15200. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  15201. +
  15202. +
  15203. +# Check whether --with-pic or --without-pic was given.
  15204. +if test "${with_pic+set}" = set; then
  15205. + withval="$with_pic"
  15206. + pic_mode="$withval"
  15207. +else
  15208. + pic_mode=default
  15209. +fi;
  15210. +test -z "$pic_mode" && pic_mode=default
  15211. +
  15212. +# Use C for the default configuration in the libtool script
  15213. +tagname=
  15214. +lt_save_CC="$CC"
  15215. +ac_ext=c
  15216. +ac_cpp='$CPP $CPPFLAGS'
  15217. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15218. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15219. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15220. +
  15221. +
  15222. +# Source file extension for C test sources.
  15223. +ac_ext=c
  15224. +
  15225. +# Object file extension for compiled C test sources.
  15226. +objext=o
  15227. +objext=$objext
  15228. +
  15229. +# Code to be used in simple compile tests
  15230. +lt_simple_compile_test_code="int some_variable = 0;\n"
  15231. +
  15232. +# Code to be used in simple link tests
  15233. +lt_simple_link_test_code='int main(){return(0);}\n'
  15234. +
  15235. +
  15236. +# If no C compiler was specified, use CC.
  15237. +LTCC=${LTCC-"$CC"}
  15238. +
  15239. +# If no C compiler flags were specified, use CFLAGS.
  15240. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  15241. +
  15242. +# Allow CC to be a program name with arguments.
  15243. +compiler=$CC
  15244. +
  15245. +
  15246. +# save warnings/boilerplate of simple test code
  15247. +ac_outfile=conftest.$ac_objext
  15248. +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  15249. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  15250. +_lt_compiler_boilerplate=`cat conftest.err`
  15251. +$rm conftest*
  15252. +
  15253. +ac_outfile=conftest.$ac_objext
  15254. +printf "$lt_simple_link_test_code" >conftest.$ac_ext
  15255. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  15256. +_lt_linker_boilerplate=`cat conftest.err`
  15257. +$rm conftest*
  15258. +
  15259. +
  15260. +
  15261. +lt_prog_compiler_no_builtin_flag=
  15262. +
  15263. +if test "$GCC" = yes; then
  15264. + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  15265. +
  15266. +
  15267. +echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  15268. +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  15269. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  15270. + echo $ECHO_N "(cached) $ECHO_C" >&6
  15271. +else
  15272. + lt_cv_prog_compiler_rtti_exceptions=no
  15273. + ac_outfile=conftest.$ac_objext
  15274. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15275. + lt_compiler_flag="-fno-rtti -fno-exceptions"
  15276. + # Insert the option either (1) after the last *FLAGS variable, or
  15277. + # (2) before a word containing "conftest.", or (3) at the end.
  15278. + # Note that $ac_compile itself does not contain backslashes and begins
  15279. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  15280. + # The option is referenced via a variable to avoid confusing sed.
  15281. + lt_compile=`echo "$ac_compile" | $SED \
  15282. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15283. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15284. + -e 's:$: $lt_compiler_flag:'`
  15285. + (eval echo "\"\$as_me:5970: $lt_compile\"" >&5)
  15286. + (eval "$lt_compile" 2>conftest.err)
  15287. + ac_status=$?
  15288. + cat conftest.err >&5
  15289. + echo "$as_me:5974: \$? = $ac_status" >&5
  15290. + if (exit $ac_status) && test -s "$ac_outfile"; then
  15291. + # The compiler can only warn and ignore the option if not recognized
  15292. + # So say no if there are warnings other than the usual output.
  15293. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  15294. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15295. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  15296. + lt_cv_prog_compiler_rtti_exceptions=yes
  15297. + fi
  15298. + fi
  15299. + $rm conftest*
  15300. +
  15301. +fi
  15302. +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  15303. +echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  15304. +
  15305. +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  15306. + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  15307. +else
  15308. + :
  15309. +fi
  15310. +
  15311. +fi
  15312. +
  15313. +lt_prog_compiler_wl=
  15314. +lt_prog_compiler_pic=
  15315. +lt_prog_compiler_static=
  15316. +
  15317. +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  15318. +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  15319. +
  15320. + if test "$GCC" = yes; then
  15321. + lt_prog_compiler_wl='-Wl,'
  15322. + lt_prog_compiler_static='-static'
  15323. +
  15324. + case $host_os in
  15325. + aix*)
  15326. + # All AIX code is PIC.
  15327. + if test "$host_cpu" = ia64; then
  15328. + # AIX 5 now supports IA64 processor
  15329. + lt_prog_compiler_static='-Bstatic'
  15330. + fi
  15331. + ;;
  15332. +
  15333. + amigaos*)
  15334. + # FIXME: we need at least 68020 code to build shared libraries, but
  15335. + # adding the `-m68020' flag to GCC prevents building anything better,
  15336. + # like `-m68040'.
  15337. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  15338. + ;;
  15339. +
  15340. + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  15341. + # PIC is the default for these OSes.
  15342. + ;;
  15343. +
  15344. + mingw* | pw32* | os2*)
  15345. + # This hack is so that the source file can tell whether it is being
  15346. + # built for inclusion in a dll (and should export symbols for example).
  15347. + lt_prog_compiler_pic='-DDLL_EXPORT'
  15348. + ;;
  15349. +
  15350. + darwin* | rhapsody*)
  15351. + # PIC is the default on this platform
  15352. + # Common symbols not allowed in MH_DYLIB files
  15353. + lt_prog_compiler_pic='-fno-common'
  15354. + ;;
  15355. +
  15356. + interix3*)
  15357. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  15358. + # Instead, we relocate shared libraries at runtime.
  15359. + ;;
  15360. +
  15361. + msdosdjgpp*)
  15362. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  15363. + # on systems that don't support them.
  15364. + lt_prog_compiler_can_build_shared=no
  15365. + enable_shared=no
  15366. + ;;
  15367. +
  15368. + sysv4*MP*)
  15369. + if test -d /usr/nec; then
  15370. + lt_prog_compiler_pic=-Kconform_pic
  15371. + fi
  15372. + ;;
  15373. +
  15374. + hpux*)
  15375. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15376. + # not for PA HP-UX.
  15377. + case $host_cpu in
  15378. + hppa*64*|ia64*)
  15379. + # +Z the default
  15380. + ;;
  15381. + *)
  15382. + lt_prog_compiler_pic='-fPIC'
  15383. + ;;
  15384. + esac
  15385. + ;;
  15386. +
  15387. + *)
  15388. + lt_prog_compiler_pic='-fPIC'
  15389. + ;;
  15390. + esac
  15391. + else
  15392. + # PORTME Check for flag to pass linker flags through the system compiler.
  15393. + case $host_os in
  15394. + aix*)
  15395. + lt_prog_compiler_wl='-Wl,'
  15396. + if test "$host_cpu" = ia64; then
  15397. + # AIX 5 now supports IA64 processor
  15398. + lt_prog_compiler_static='-Bstatic'
  15399. + else
  15400. + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  15401. + fi
  15402. + ;;
  15403. + darwin*)
  15404. + # PIC is the default on this platform
  15405. + # Common symbols not allowed in MH_DYLIB files
  15406. + case $cc_basename in
  15407. + xlc*)
  15408. + lt_prog_compiler_pic='-qnocommon'
  15409. + lt_prog_compiler_wl='-Wl,'
  15410. + ;;
  15411. + esac
  15412. + ;;
  15413. +
  15414. + mingw* | pw32* | os2*)
  15415. + # This hack is so that the source file can tell whether it is being
  15416. + # built for inclusion in a dll (and should export symbols for example).
  15417. + lt_prog_compiler_pic='-DDLL_EXPORT'
  15418. + ;;
  15419. +
  15420. + hpux9* | hpux10* | hpux11*)
  15421. + lt_prog_compiler_wl='-Wl,'
  15422. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15423. + # not for PA HP-UX.
  15424. + case $host_cpu in
  15425. + hppa*64*|ia64*)
  15426. + # +Z the default
  15427. + ;;
  15428. + *)
  15429. + lt_prog_compiler_pic='+Z'
  15430. + ;;
  15431. + esac
  15432. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  15433. + lt_prog_compiler_static='${wl}-a ${wl}archive'
  15434. + ;;
  15435. +
  15436. + irix5* | irix6* | nonstopux*)
  15437. + lt_prog_compiler_wl='-Wl,'
  15438. + # PIC (with -KPIC) is the default.
  15439. + lt_prog_compiler_static='-non_shared'
  15440. + ;;
  15441. +
  15442. + newsos6)
  15443. + lt_prog_compiler_pic='-KPIC'
  15444. + lt_prog_compiler_static='-Bstatic'
  15445. + ;;
  15446. +
  15447. + linux*)
  15448. + case $cc_basename in
  15449. + icc* | ecc*)
  15450. + lt_prog_compiler_wl='-Wl,'
  15451. + lt_prog_compiler_pic='-KPIC'
  15452. + lt_prog_compiler_static='-static'
  15453. + ;;
  15454. + pgcc* | pgf77* | pgf90* | pgf95*)
  15455. + # Portland Group compilers (*not* the Pentium gcc compiler,
  15456. + # which looks to be a dead project)
  15457. + lt_prog_compiler_wl='-Wl,'
  15458. + lt_prog_compiler_pic='-fpic'
  15459. + lt_prog_compiler_static='-Bstatic'
  15460. + ;;
  15461. + ccc*)
  15462. + lt_prog_compiler_wl='-Wl,'
  15463. + # All Alpha code is PIC.
  15464. + lt_prog_compiler_static='-non_shared'
  15465. + ;;
  15466. + esac
  15467. + ;;
  15468. +
  15469. + osf3* | osf4* | osf5*)
  15470. + lt_prog_compiler_wl='-Wl,'
  15471. + # All OSF/1 code is PIC.
  15472. + lt_prog_compiler_static='-non_shared'
  15473. + ;;
  15474. +
  15475. + solaris*)
  15476. + lt_prog_compiler_pic='-KPIC'
  15477. + lt_prog_compiler_static='-Bstatic'
  15478. + case $cc_basename in
  15479. + f77* | f90* | f95*)
  15480. + lt_prog_compiler_wl='-Qoption ld ';;
  15481. + *)
  15482. + lt_prog_compiler_wl='-Wl,';;
  15483. + esac
  15484. + ;;
  15485. +
  15486. + sunos4*)
  15487. + lt_prog_compiler_wl='-Qoption ld '
  15488. + lt_prog_compiler_pic='-PIC'
  15489. + lt_prog_compiler_static='-Bstatic'
  15490. + ;;
  15491. +
  15492. + sysv4 | sysv4.2uw2* | sysv4.3*)
  15493. + lt_prog_compiler_wl='-Wl,'
  15494. + lt_prog_compiler_pic='-KPIC'
  15495. + lt_prog_compiler_static='-Bstatic'
  15496. + ;;
  15497. +
  15498. + sysv4*MP*)
  15499. + if test -d /usr/nec ;then
  15500. + lt_prog_compiler_pic='-Kconform_pic'
  15501. + lt_prog_compiler_static='-Bstatic'
  15502. + fi
  15503. + ;;
  15504. +
  15505. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  15506. + lt_prog_compiler_wl='-Wl,'
  15507. + lt_prog_compiler_pic='-KPIC'
  15508. + lt_prog_compiler_static='-Bstatic'
  15509. + ;;
  15510. +
  15511. + unicos*)
  15512. + lt_prog_compiler_wl='-Wl,'
  15513. + lt_prog_compiler_can_build_shared=no
  15514. + ;;
  15515. +
  15516. + uts4*)
  15517. + lt_prog_compiler_pic='-pic'
  15518. + lt_prog_compiler_static='-Bstatic'
  15519. + ;;
  15520. +
  15521. + *)
  15522. + lt_prog_compiler_can_build_shared=no
  15523. + ;;
  15524. + esac
  15525. + fi
  15526. +
  15527. +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  15528. +echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  15529. +
  15530. +#
  15531. +# Check to make sure the PIC flag actually works.
  15532. +#
  15533. +if test -n "$lt_prog_compiler_pic"; then
  15534. +
  15535. +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  15536. +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  15537. +if test "${lt_prog_compiler_pic_works+set}" = set; then
  15538. + echo $ECHO_N "(cached) $ECHO_C" >&6
  15539. +else
  15540. + lt_prog_compiler_pic_works=no
  15541. + ac_outfile=conftest.$ac_objext
  15542. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15543. + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  15544. + # Insert the option either (1) after the last *FLAGS variable, or
  15545. + # (2) before a word containing "conftest.", or (3) at the end.
  15546. + # Note that $ac_compile itself does not contain backslashes and begins
  15547. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  15548. + # The option is referenced via a variable to avoid confusing sed.
  15549. + lt_compile=`echo "$ac_compile" | $SED \
  15550. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15551. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15552. + -e 's:$: $lt_compiler_flag:'`
  15553. + (eval echo "\"\$as_me:6238: $lt_compile\"" >&5)
  15554. + (eval "$lt_compile" 2>conftest.err)
  15555. + ac_status=$?
  15556. + cat conftest.err >&5
  15557. + echo "$as_me:6242: \$? = $ac_status" >&5
  15558. + if (exit $ac_status) && test -s "$ac_outfile"; then
  15559. + # The compiler can only warn and ignore the option if not recognized
  15560. + # So say no if there are warnings other than the usual output.
  15561. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  15562. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15563. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  15564. + lt_prog_compiler_pic_works=yes
  15565. + fi
  15566. + fi
  15567. + $rm conftest*
  15568. +
  15569. +fi
  15570. +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  15571. +echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  15572. +
  15573. +if test x"$lt_prog_compiler_pic_works" = xyes; then
  15574. + case $lt_prog_compiler_pic in
  15575. + "" | " "*) ;;
  15576. + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  15577. + esac
  15578. +else
  15579. + lt_prog_compiler_pic=
  15580. + lt_prog_compiler_can_build_shared=no
  15581. +fi
  15582. +
  15583. +fi
  15584. +case $host_os in
  15585. + # For platforms which do not support PIC, -DPIC is meaningless:
  15586. + *djgpp*)
  15587. + lt_prog_compiler_pic=
  15588. + ;;
  15589. + *)
  15590. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  15591. + ;;
  15592. +esac
  15593. +
  15594. +#
  15595. +# Check to make sure the static flag actually works.
  15596. +#
  15597. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  15598. +echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  15599. +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  15600. +if test "${lt_prog_compiler_static_works+set}" = set; then
  15601. + echo $ECHO_N "(cached) $ECHO_C" >&6
  15602. +else
  15603. + lt_prog_compiler_static_works=no
  15604. + save_LDFLAGS="$LDFLAGS"
  15605. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  15606. + printf "$lt_simple_link_test_code" > conftest.$ac_ext
  15607. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  15608. + # The linker can only warn and ignore the option if not recognized
  15609. + # So say no if there are warnings
  15610. + if test -s conftest.err; then
  15611. + # Append any errors to the config.log.
  15612. + cat conftest.err 1>&5
  15613. + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  15614. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15615. + if diff conftest.exp conftest.er2 >/dev/null; then
  15616. + lt_prog_compiler_static_works=yes
  15617. + fi
  15618. + else
  15619. + lt_prog_compiler_static_works=yes
  15620. + fi
  15621. + fi
  15622. + $rm conftest*
  15623. + LDFLAGS="$save_LDFLAGS"
  15624. +
  15625. +fi
  15626. +echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  15627. +echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  15628. +
  15629. +if test x"$lt_prog_compiler_static_works" = xyes; then
  15630. + :
  15631. +else
  15632. + lt_prog_compiler_static=
  15633. +fi
  15634. +
  15635. +
  15636. +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  15637. +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  15638. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  15639. + echo $ECHO_N "(cached) $ECHO_C" >&6
  15640. +else
  15641. + lt_cv_prog_compiler_c_o=no
  15642. + $rm -r conftest 2>/dev/null
  15643. + mkdir conftest
  15644. + cd conftest
  15645. + mkdir out
  15646. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15647. +
  15648. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  15649. + # Insert the option either (1) after the last *FLAGS variable, or
  15650. + # (2) before a word containing "conftest.", or (3) at the end.
  15651. + # Note that $ac_compile itself does not contain backslashes and begins
  15652. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  15653. + lt_compile=`echo "$ac_compile" | $SED \
  15654. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15655. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15656. + -e 's:$: $lt_compiler_flag:'`
  15657. + (eval echo "\"\$as_me:6342: $lt_compile\"" >&5)
  15658. + (eval "$lt_compile" 2>out/conftest.err)
  15659. + ac_status=$?
  15660. + cat out/conftest.err >&5
  15661. + echo "$as_me:6346: \$? = $ac_status" >&5
  15662. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15663. + then
  15664. + # The compiler can only warn and ignore the option if not recognized
  15665. + # So say no if there are warnings
  15666. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  15667. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15668. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15669. + lt_cv_prog_compiler_c_o=yes
  15670. + fi
  15671. + fi
  15672. + chmod u+w . 2>&5
  15673. + $rm conftest*
  15674. + # SGI C++ compiler will create directory out/ii_files/ for
  15675. + # template instantiation
  15676. + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  15677. + $rm out/* && rmdir out
  15678. + cd ..
  15679. + rmdir conftest
  15680. + $rm conftest*
  15681. +
  15682. +fi
  15683. +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  15684. +echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  15685. +
  15686. +
  15687. +hard_links="nottested"
  15688. +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  15689. + # do not overwrite the value of need_locks provided by the user
  15690. + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  15691. +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  15692. + hard_links=yes
  15693. + $rm conftest*
  15694. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15695. + touch conftest.a
  15696. + ln conftest.a conftest.b 2>&5 || hard_links=no
  15697. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15698. + echo "$as_me:$LINENO: result: $hard_links" >&5
  15699. +echo "${ECHO_T}$hard_links" >&6
  15700. + if test "$hard_links" = no; then
  15701. + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  15702. +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  15703. + need_locks=warn
  15704. + fi
  15705. +else
  15706. + need_locks=no
  15707. +fi
  15708. +
  15709. +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15710. +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  15711. +
  15712. + runpath_var=
  15713. + allow_undefined_flag=
  15714. + enable_shared_with_static_runtimes=no
  15715. + archive_cmds=
  15716. + archive_expsym_cmds=
  15717. + old_archive_From_new_cmds=
  15718. + old_archive_from_expsyms_cmds=
  15719. + export_dynamic_flag_spec=
  15720. + whole_archive_flag_spec=
  15721. + thread_safe_flag_spec=
  15722. + hardcode_libdir_flag_spec=
  15723. + hardcode_libdir_flag_spec_ld=
  15724. + hardcode_libdir_separator=
  15725. + hardcode_direct=no
  15726. + hardcode_minus_L=no
  15727. + hardcode_shlibpath_var=unsupported
  15728. + link_all_deplibs=unknown
  15729. + hardcode_automatic=no
  15730. + module_cmds=
  15731. + module_expsym_cmds=
  15732. + always_export_symbols=no
  15733. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15734. + # include_expsyms should be a list of space-separated symbols to be *always*
  15735. + # included in the symbol list
  15736. + include_expsyms=
  15737. + # exclude_expsyms can be an extended regexp of symbols to exclude
  15738. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  15739. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  15740. + # as well as any symbol that contains `d'.
  15741. + exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  15742. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  15743. + # platforms (ab)use it in PIC code, but their linkers get confused if
  15744. + # the symbol is explicitly referenced. Since portable code cannot
  15745. + # rely on this symbol name, it's probably fine to never include it in
  15746. + # preloaded symbol tables.
  15747. + extract_expsyms_cmds=
  15748. + # Just being paranoid about ensuring that cc_basename is set.
  15749. + for cc_temp in $compiler""; do
  15750. + case $cc_temp in
  15751. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15752. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15753. + \-*) ;;
  15754. + *) break;;
  15755. + esac
  15756. +done
  15757. +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  15758. +
  15759. + case $host_os in
  15760. + cygwin* | mingw* | pw32*)
  15761. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  15762. + # When not using gcc, we currently assume that we are using
  15763. + # Microsoft Visual C++.
  15764. + if test "$GCC" != yes; then
  15765. + with_gnu_ld=no
  15766. + fi
  15767. + ;;
  15768. + interix*)
  15769. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  15770. + with_gnu_ld=yes
  15771. + ;;
  15772. + openbsd*)
  15773. + with_gnu_ld=no
  15774. + ;;
  15775. + esac
  15776. +
  15777. + ld_shlibs=yes
  15778. + if test "$with_gnu_ld" = yes; then
  15779. + # If archive_cmds runs LD, not CC, wlarc should be empty
  15780. + wlarc='${wl}'
  15781. +
  15782. + # Set some defaults for GNU ld with shared library support. These
  15783. + # are reset later if shared libraries are not supported. Putting them
  15784. + # here allows them to be overridden if necessary.
  15785. + runpath_var=LD_RUN_PATH
  15786. + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  15787. + export_dynamic_flag_spec='${wl}--export-dynamic'
  15788. + # ancient GNU ld didn't support --whole-archive et. al.
  15789. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  15790. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  15791. + else
  15792. + whole_archive_flag_spec=
  15793. + fi
  15794. + supports_anon_versioning=no
  15795. + case `$LD -v 2>/dev/null` in
  15796. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  15797. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  15798. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  15799. + *\ 2.11.*) ;; # other 2.11 versions
  15800. + *) supports_anon_versioning=yes ;;
  15801. + esac
  15802. +
  15803. + # See if GNU ld supports shared libraries.
  15804. + case $host_os in
  15805. + aix3* | aix4* | aix5*)
  15806. + # On AIX/PPC, the GNU linker is very broken
  15807. + if test "$host_cpu" != ia64; then
  15808. + ld_shlibs=no
  15809. + cat <<EOF 1>&2
  15810. +
  15811. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  15812. +*** to be unable to reliably create shared libraries on AIX.
  15813. +*** Therefore, libtool is disabling shared libraries support. If you
  15814. +*** really care for shared libraries, you may want to modify your PATH
  15815. +*** so that a non-GNU linker is found, and then restart.
  15816. +
  15817. +EOF
  15818. + fi
  15819. + ;;
  15820. +
  15821. + amigaos*)
  15822. + 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)'
  15823. + hardcode_libdir_flag_spec='-L$libdir'
  15824. + hardcode_minus_L=yes
  15825. +
  15826. + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  15827. + # that the semantics of dynamic libraries on AmigaOS, at least up
  15828. + # to version 4, is to share data among multiple programs linked
  15829. + # with the same dynamic library. Since this doesn't match the
  15830. + # behavior of shared libraries on other platforms, we can't use
  15831. + # them.
  15832. + ld_shlibs=no
  15833. + ;;
  15834. +
  15835. + beos*)
  15836. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15837. + allow_undefined_flag=unsupported
  15838. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  15839. + # support --undefined. This deserves some investigation. FIXME
  15840. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15841. + else
  15842. + ld_shlibs=no
  15843. + fi
  15844. + ;;
  15845. +
  15846. + cygwin* | mingw* | pw32*)
  15847. + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  15848. + # as there is no search path for DLLs.
  15849. + hardcode_libdir_flag_spec='-L$libdir'
  15850. + allow_undefined_flag=unsupported
  15851. + always_export_symbols=no
  15852. + enable_shared_with_static_runtimes=yes
  15853. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  15854. +
  15855. + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  15856. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15857. + # If the export-symbols file already is a .def file (1st line
  15858. + # is EXPORTS), use it as is; otherwise, prepend...
  15859. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  15860. + cp $export_symbols $output_objdir/$soname.def;
  15861. + else
  15862. + echo EXPORTS > $output_objdir/$soname.def;
  15863. + cat $export_symbols >> $output_objdir/$soname.def;
  15864. + fi~
  15865. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15866. + else
  15867. + ld_shlibs=no
  15868. + fi
  15869. + ;;
  15870. +
  15871. + interix3*)
  15872. + hardcode_direct=no
  15873. + hardcode_shlibpath_var=no
  15874. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  15875. + export_dynamic_flag_spec='${wl}-E'
  15876. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  15877. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  15878. + # default) and relocated if they conflict, which is a slow very memory
  15879. + # consuming and fragmenting process. To avoid this, we pick a random,
  15880. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  15881. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  15882. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  15883. + 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'
  15884. + ;;
  15885. +
  15886. + linux*)
  15887. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15888. + tmp_addflag=
  15889. + case $cc_basename,$host_cpu in
  15890. + pgcc*) # Portland Group C compiler
  15891. + 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'
  15892. + tmp_addflag=' $pic_flag'
  15893. + ;;
  15894. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  15895. + 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'
  15896. + tmp_addflag=' $pic_flag -Mnomain' ;;
  15897. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  15898. + tmp_addflag=' -i_dynamic' ;;
  15899. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  15900. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  15901. + ifc* | ifort*) # Intel Fortran compiler
  15902. + tmp_addflag=' -nofor_main' ;;
  15903. + esac
  15904. + archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15905. +
  15906. + if test $supports_anon_versioning = yes; then
  15907. + archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  15908. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15909. + $echo "local: *; };" >> $output_objdir/$libname.ver~
  15910. + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  15911. + fi
  15912. + link_all_deplibs=no
  15913. + else
  15914. + ld_shlibs=no
  15915. + fi
  15916. + ;;
  15917. +
  15918. + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  15919. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15920. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  15921. + wlarc=
  15922. + else
  15923. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15924. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15925. + fi
  15926. + ;;
  15927. +
  15928. + solaris*)
  15929. + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  15930. + ld_shlibs=no
  15931. + cat <<EOF 1>&2
  15932. +
  15933. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  15934. +*** create shared libraries on Solaris systems. Therefore, libtool
  15935. +*** is disabling shared libraries support. We urge you to upgrade GNU
  15936. +*** binutils to release 2.9.1 or newer. Another option is to modify
  15937. +*** your PATH or compiler configuration so that the native linker is
  15938. +*** used, and then restart.
  15939. +
  15940. +EOF
  15941. + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15942. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15943. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15944. + else
  15945. + ld_shlibs=no
  15946. + fi
  15947. + ;;
  15948. +
  15949. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  15950. + case `$LD -v 2>&1` in
  15951. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  15952. + ld_shlibs=no
  15953. + cat <<_LT_EOF 1>&2
  15954. +
  15955. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  15956. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  15957. +*** is disabling shared libraries support. We urge you to upgrade GNU
  15958. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  15959. +*** your PATH or compiler configuration so that the native linker is
  15960. +*** used, and then restart.
  15961. +
  15962. +_LT_EOF
  15963. + ;;
  15964. + *)
  15965. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15966. + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  15967. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  15968. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  15969. + else
  15970. + ld_shlibs=no
  15971. + fi
  15972. + ;;
  15973. + esac
  15974. + ;;
  15975. +
  15976. + sunos4*)
  15977. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15978. + wlarc=
  15979. + hardcode_direct=yes
  15980. + hardcode_shlibpath_var=no
  15981. + ;;
  15982. +
  15983. + *)
  15984. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15985. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15986. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15987. + else
  15988. + ld_shlibs=no
  15989. + fi
  15990. + ;;
  15991. + esac
  15992. +
  15993. + if test "$ld_shlibs" = no; then
  15994. + runpath_var=
  15995. + hardcode_libdir_flag_spec=
  15996. + export_dynamic_flag_spec=
  15997. + whole_archive_flag_spec=
  15998. + fi
  15999. + else
  16000. + # PORTME fill in a description of your system's linker (not GNU ld)
  16001. + case $host_os in
  16002. + aix3*)
  16003. + allow_undefined_flag=unsupported
  16004. + always_export_symbols=yes
  16005. + 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'
  16006. + # Note: this linker hardcodes the directories in LIBPATH if there
  16007. + # are no directories specified by -L.
  16008. + hardcode_minus_L=yes
  16009. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  16010. + # Neither direct hardcoding nor static linking is supported with a
  16011. + # broken collect2.
  16012. + hardcode_direct=unsupported
  16013. + fi
  16014. + ;;
  16015. +
  16016. + aix4* | aix5*)
  16017. + if test "$host_cpu" = ia64; then
  16018. + # On IA64, the linker does run time linking by default, so we don't
  16019. + # have to do anything special.
  16020. + aix_use_runtimelinking=no
  16021. + exp_sym_flag='-Bexport'
  16022. + no_entry_flag=""
  16023. + else
  16024. + # If we're using GNU nm, then we don't want the "-C" option.
  16025. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  16026. + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  16027. + 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'
  16028. + else
  16029. + 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'
  16030. + fi
  16031. + aix_use_runtimelinking=no
  16032. +
  16033. + # Test if we are trying to use run time linking or normal
  16034. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  16035. + # need to do runtime linking.
  16036. + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  16037. + for ld_flag in $LDFLAGS; do
  16038. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  16039. + aix_use_runtimelinking=yes
  16040. + break
  16041. + fi
  16042. + done
  16043. + ;;
  16044. + esac
  16045. +
  16046. + exp_sym_flag='-bexport'
  16047. + no_entry_flag='-bnoentry'
  16048. + fi
  16049. +
  16050. + # When large executables or shared objects are built, AIX ld can
  16051. + # have problems creating the table of contents. If linking a library
  16052. + # or program results in "error TOC overflow" add -mminimal-toc to
  16053. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  16054. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  16055. +
  16056. + archive_cmds=''
  16057. + hardcode_direct=yes
  16058. + hardcode_libdir_separator=':'
  16059. + link_all_deplibs=yes
  16060. +
  16061. + if test "$GCC" = yes; then
  16062. + case $host_os in aix4.[012]|aix4.[012].*)
  16063. + # We only want to do this on AIX 4.2 and lower, the check
  16064. + # below for broken collect2 doesn't work under 4.3+
  16065. + collect2name=`${CC} -print-prog-name=collect2`
  16066. + if test -f "$collect2name" && \
  16067. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  16068. + then
  16069. + # We have reworked collect2
  16070. + hardcode_direct=yes
  16071. + else
  16072. + # We have old collect2
  16073. + hardcode_direct=unsupported
  16074. + # It fails to find uninstalled libraries when the uninstalled
  16075. + # path is not listed in the libpath. Setting hardcode_minus_L
  16076. + # to unsupported forces relinking
  16077. + hardcode_minus_L=yes
  16078. + hardcode_libdir_flag_spec='-L$libdir'
  16079. + hardcode_libdir_separator=
  16080. + fi
  16081. + ;;
  16082. + esac
  16083. + shared_flag='-shared'
  16084. + if test "$aix_use_runtimelinking" = yes; then
  16085. + shared_flag="$shared_flag "'${wl}-G'
  16086. + fi
  16087. + else
  16088. + # not using gcc
  16089. + if test "$host_cpu" = ia64; then
  16090. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  16091. + # chokes on -Wl,-G. The following line is correct:
  16092. + shared_flag='-G'
  16093. + else
  16094. + if test "$aix_use_runtimelinking" = yes; then
  16095. + shared_flag='${wl}-G'
  16096. + else
  16097. + shared_flag='${wl}-bM:SRE'
  16098. + fi
  16099. + fi
  16100. + fi
  16101. +
  16102. + # It seems that -bexpall does not export symbols beginning with
  16103. + # underscore (_), so it is better to generate a list of symbols to export.
  16104. + always_export_symbols=yes
  16105. + if test "$aix_use_runtimelinking" = yes; then
  16106. + # Warning - without using the other runtime loading flags (-brtl),
  16107. + # -berok will link without error, but may produce a broken library.
  16108. + allow_undefined_flag='-berok'
  16109. + # Determine the default libpath from the value encoded in an empty executable.
  16110. + cat >conftest.$ac_ext <<_ACEOF
  16111. +/* confdefs.h. */
  16112. +_ACEOF
  16113. +cat confdefs.h >>conftest.$ac_ext
  16114. +cat >>conftest.$ac_ext <<_ACEOF
  16115. +/* end confdefs.h. */
  16116. +
  16117. +int
  16118. +main ()
  16119. +{
  16120. +
  16121. + ;
  16122. + return 0;
  16123. +}
  16124. +_ACEOF
  16125. +rm -f conftest.$ac_objext conftest$ac_exeext
  16126. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16127. + (eval $ac_link) 2>conftest.er1
  16128. + ac_status=$?
  16129. + grep -v '^ *+' conftest.er1 >conftest.err
  16130. + rm -f conftest.er1
  16131. + cat conftest.err >&5
  16132. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16133. + (exit $ac_status); } &&
  16134. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  16135. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16136. + (eval $ac_try) 2>&5
  16137. + ac_status=$?
  16138. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16139. + (exit $ac_status); }; } &&
  16140. + { ac_try='test -s conftest$ac_exeext'
  16141. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16142. + (eval $ac_try) 2>&5
  16143. + ac_status=$?
  16144. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16145. + (exit $ac_status); }; }; then
  16146. +
  16147. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  16148. +}'`
  16149. +# Check for a 64-bit object if we didn't find anything.
  16150. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  16151. +}'`; fi
  16152. +else
  16153. + echo "$as_me: failed program was:" >&5
  16154. +sed 's/^/| /' conftest.$ac_ext >&5
  16155. +
  16156. +fi
  16157. +rm -f conftest.err conftest.$ac_objext \
  16158. + conftest$ac_exeext conftest.$ac_ext
  16159. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  16160. +
  16161. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  16162. + 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  16163. + else
  16164. + if test "$host_cpu" = ia64; then
  16165. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  16166. + allow_undefined_flag="-z nodefs"
  16167. + 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"
  16168. + else
  16169. + # Determine the default libpath from the value encoded in an empty executable.
  16170. + cat >conftest.$ac_ext <<_ACEOF
  16171. +/* confdefs.h. */
  16172. +_ACEOF
  16173. +cat confdefs.h >>conftest.$ac_ext
  16174. +cat >>conftest.$ac_ext <<_ACEOF
  16175. +/* end confdefs.h. */
  16176. +
  16177. +int
  16178. +main ()
  16179. +{
  16180. +
  16181. + ;
  16182. + return 0;
  16183. +}
  16184. +_ACEOF
  16185. +rm -f conftest.$ac_objext conftest$ac_exeext
  16186. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16187. + (eval $ac_link) 2>conftest.er1
  16188. + ac_status=$?
  16189. + grep -v '^ *+' conftest.er1 >conftest.err
  16190. + rm -f conftest.er1
  16191. + cat conftest.err >&5
  16192. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16193. + (exit $ac_status); } &&
  16194. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  16195. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16196. + (eval $ac_try) 2>&5
  16197. + ac_status=$?
  16198. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16199. + (exit $ac_status); }; } &&
  16200. + { ac_try='test -s conftest$ac_exeext'
  16201. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16202. + (eval $ac_try) 2>&5
  16203. + ac_status=$?
  16204. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16205. + (exit $ac_status); }; }; then
  16206. +
  16207. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  16208. +}'`
  16209. +# Check for a 64-bit object if we didn't find anything.
  16210. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  16211. +}'`; fi
  16212. +else
  16213. + echo "$as_me: failed program was:" >&5
  16214. +sed 's/^/| /' conftest.$ac_ext >&5
  16215. +
  16216. +fi
  16217. +rm -f conftest.err conftest.$ac_objext \
  16218. + conftest$ac_exeext conftest.$ac_ext
  16219. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  16220. +
  16221. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  16222. + # Warning - without using the other run time loading flags,
  16223. + # -berok will link without error, but may produce a broken library.
  16224. + no_undefined_flag=' ${wl}-bernotok'
  16225. + allow_undefined_flag=' ${wl}-berok'
  16226. + # Exported symbols can be pulled into shared objects from archives
  16227. + whole_archive_flag_spec='$convenience'
  16228. + archive_cmds_need_lc=yes
  16229. + # This is similar to how AIX traditionally builds its shared libraries.
  16230. + 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'
  16231. + fi
  16232. + fi
  16233. + ;;
  16234. +
  16235. + amigaos*)
  16236. + 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)'
  16237. + hardcode_libdir_flag_spec='-L$libdir'
  16238. + hardcode_minus_L=yes
  16239. + # see comment about different semantics on the GNU ld section
  16240. + ld_shlibs=no
  16241. + ;;
  16242. +
  16243. + bsdi[45]*)
  16244. + export_dynamic_flag_spec=-rdynamic
  16245. + ;;
  16246. +
  16247. + cygwin* | mingw* | pw32*)
  16248. + # When not using gcc, we currently assume that we are using
  16249. + # Microsoft Visual C++.
  16250. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  16251. + # no search path for DLLs.
  16252. + hardcode_libdir_flag_spec=' '
  16253. + allow_undefined_flag=unsupported
  16254. + # Tell ltmain to make .lib files, not .a files.
  16255. + libext=lib
  16256. + # Tell ltmain to make .dll files, not .so files.
  16257. + shrext_cmds=".dll"
  16258. + # FIXME: Setting linknames here is a bad hack.
  16259. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  16260. + # The linker will automatically build a .lib file if we build a DLL.
  16261. + old_archive_From_new_cmds='true'
  16262. + # FIXME: Should let the user specify the lib program.
  16263. + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  16264. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  16265. + enable_shared_with_static_runtimes=yes
  16266. + ;;
  16267. +
  16268. + darwin* | rhapsody*)
  16269. + case $host_os in
  16270. + rhapsody* | darwin1.[012])
  16271. + allow_undefined_flag='${wl}-undefined ${wl}suppress'
  16272. + ;;
  16273. + *) # Darwin 1.3 on
  16274. + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  16275. + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  16276. + else
  16277. + case ${MACOSX_DEPLOYMENT_TARGET} in
  16278. + 10.[012])
  16279. + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  16280. + ;;
  16281. + 10.*)
  16282. + allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  16283. + ;;
  16284. + esac
  16285. + fi
  16286. + ;;
  16287. + esac
  16288. + archive_cmds_need_lc=no
  16289. + hardcode_direct=no
  16290. + hardcode_automatic=yes
  16291. + hardcode_shlibpath_var=unsupported
  16292. + whole_archive_flag_spec=''
  16293. + link_all_deplibs=yes
  16294. + if test "$GCC" = yes ; then
  16295. + output_verbose_link_cmd='echo'
  16296. + archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  16297. + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  16298. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  16299. + archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  16300. + module_expsym_cmds='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}'
  16301. + else
  16302. + case $cc_basename in
  16303. + xlc*)
  16304. + output_verbose_link_cmd='echo'
  16305. + archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  16306. + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  16307. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  16308. + archive_expsym_cmds='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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  16309. + module_expsym_cmds='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}'
  16310. + ;;
  16311. + *)
  16312. + ld_shlibs=no
  16313. + ;;
  16314. + esac
  16315. + fi
  16316. + ;;
  16317. +
  16318. + dgux*)
  16319. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16320. + hardcode_libdir_flag_spec='-L$libdir'
  16321. + hardcode_shlibpath_var=no
  16322. + ;;
  16323. +
  16324. + freebsd1*)
  16325. + ld_shlibs=no
  16326. + ;;
  16327. +
  16328. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  16329. + # support. Future versions do this automatically, but an explicit c++rt0.o
  16330. + # does not break anything, and helps significantly (at the cost of a little
  16331. + # extra space).
  16332. + freebsd2.2*)
  16333. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  16334. + hardcode_libdir_flag_spec='-R$libdir'
  16335. + hardcode_direct=yes
  16336. + hardcode_shlibpath_var=no
  16337. + ;;
  16338. +
  16339. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  16340. + freebsd2*)
  16341. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  16342. + hardcode_direct=yes
  16343. + hardcode_minus_L=yes
  16344. + hardcode_shlibpath_var=no
  16345. + ;;
  16346. +
  16347. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  16348. + freebsd* | dragonfly*)
  16349. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  16350. + hardcode_libdir_flag_spec='-R$libdir'
  16351. + hardcode_direct=yes
  16352. + hardcode_shlibpath_var=no
  16353. + ;;
  16354. +
  16355. + # GNU/kFreeBSD uses gcc -shared to do shared libraries.
  16356. + kfreebsd*-gnu)
  16357. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  16358. + hardcode_libdir_flag_spec='-R$libdir'
  16359. + hardcode_direct=yes
  16360. + hardcode_shlibpath_var=no
  16361. + link_all_deplibs=no
  16362. + ;;
  16363. +
  16364. + hpux9*)
  16365. + if test "$GCC" = yes; then
  16366. + 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'
  16367. + else
  16368. + 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'
  16369. + fi
  16370. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  16371. + hardcode_libdir_separator=:
  16372. + hardcode_direct=yes
  16373. +
  16374. + # hardcode_minus_L: Not really in the search PATH,
  16375. + # but as the default location of the library.
  16376. + hardcode_minus_L=yes
  16377. + export_dynamic_flag_spec='${wl}-E'
  16378. + ;;
  16379. +
  16380. + hpux10*)
  16381. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  16382. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16383. + else
  16384. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  16385. + fi
  16386. + if test "$with_gnu_ld" = no; then
  16387. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  16388. + hardcode_libdir_separator=:
  16389. +
  16390. + hardcode_direct=yes
  16391. + export_dynamic_flag_spec='${wl}-E'
  16392. +
  16393. + # hardcode_minus_L: Not really in the search PATH,
  16394. + # but as the default location of the library.
  16395. + hardcode_minus_L=yes
  16396. + fi
  16397. + ;;
  16398. +
  16399. + hpux11*)
  16400. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  16401. + case $host_cpu in
  16402. + hppa*64*)
  16403. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16404. + ;;
  16405. + ia64*)
  16406. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  16407. + ;;
  16408. + *)
  16409. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16410. + ;;
  16411. + esac
  16412. + else
  16413. + case $host_cpu in
  16414. + hppa*64*)
  16415. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16416. + ;;
  16417. + ia64*)
  16418. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  16419. + ;;
  16420. + *)
  16421. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16422. + ;;
  16423. + esac
  16424. + fi
  16425. + if test "$with_gnu_ld" = no; then
  16426. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  16427. + hardcode_libdir_separator=:
  16428. +
  16429. + case $host_cpu in
  16430. + hppa*64*|ia64*)
  16431. + hardcode_libdir_flag_spec_ld='+b $libdir'
  16432. + hardcode_direct=no
  16433. + hardcode_shlibpath_var=no
  16434. + ;;
  16435. + *)
  16436. + hardcode_direct=yes
  16437. + export_dynamic_flag_spec='${wl}-E'
  16438. +
  16439. + # hardcode_minus_L: Not really in the search PATH,
  16440. + # but as the default location of the library.
  16441. + hardcode_minus_L=yes
  16442. + ;;
  16443. + esac
  16444. + fi
  16445. + ;;
  16446. +
  16447. + irix5* | irix6* | nonstopux*)
  16448. + if test "$GCC" = yes; then
  16449. + archive_cmds='$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'
  16450. + else
  16451. + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  16452. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  16453. + fi
  16454. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  16455. + hardcode_libdir_separator=:
  16456. + link_all_deplibs=yes
  16457. + ;;
  16458. +
  16459. + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  16460. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16461. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  16462. + else
  16463. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  16464. + fi
  16465. + hardcode_libdir_flag_spec='-R$libdir'
  16466. + hardcode_direct=yes
  16467. + hardcode_shlibpath_var=no
  16468. + ;;
  16469. +
  16470. + newsos6)
  16471. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16472. + hardcode_direct=yes
  16473. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  16474. + hardcode_libdir_separator=:
  16475. + hardcode_shlibpath_var=no
  16476. + ;;
  16477. +
  16478. + openbsd*)
  16479. + hardcode_direct=yes
  16480. + hardcode_shlibpath_var=no
  16481. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16482. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  16483. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  16484. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  16485. + export_dynamic_flag_spec='${wl}-E'
  16486. + else
  16487. + case $host_os in
  16488. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  16489. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  16490. + hardcode_libdir_flag_spec='-R$libdir'
  16491. + ;;
  16492. + *)
  16493. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  16494. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  16495. + ;;
  16496. + esac
  16497. + fi
  16498. + ;;
  16499. +
  16500. + os2*)
  16501. + hardcode_libdir_flag_spec='-L$libdir'
  16502. + hardcode_minus_L=yes
  16503. + allow_undefined_flag=unsupported
  16504. + 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'
  16505. + old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  16506. + ;;
  16507. +
  16508. + osf3*)
  16509. + if test "$GCC" = yes; then
  16510. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  16511. + archive_cmds='$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'
  16512. + else
  16513. + allow_undefined_flag=' -expect_unresolved \*'
  16514. + archive_cmds='$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'
  16515. + fi
  16516. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  16517. + hardcode_libdir_separator=:
  16518. + ;;
  16519. +
  16520. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  16521. + if test "$GCC" = yes; then
  16522. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  16523. + archive_cmds='$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'
  16524. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  16525. + else
  16526. + allow_undefined_flag=' -expect_unresolved \*'
  16527. + archive_cmds='$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'
  16528. + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  16529. + $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'
  16530. +
  16531. + # Both c and cxx compiler support -rpath directly
  16532. + hardcode_libdir_flag_spec='-rpath $libdir'
  16533. + fi
  16534. + hardcode_libdir_separator=:
  16535. + ;;
  16536. +
  16537. + solaris*)
  16538. + no_undefined_flag=' -z text'
  16539. + if test "$GCC" = yes; then
  16540. + wlarc='${wl}'
  16541. + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16542. + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16543. + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  16544. + else
  16545. + wlarc=''
  16546. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16547. + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16548. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  16549. + fi
  16550. + hardcode_libdir_flag_spec='-R$libdir'
  16551. + hardcode_shlibpath_var=no
  16552. + case $host_os in
  16553. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  16554. + *)
  16555. + # The compiler driver will combine linker options so we
  16556. + # cannot just pass the convience library names through
  16557. + # without $wl, iff we do not link with $LD.
  16558. + # Luckily, gcc supports the same syntax we need for Sun Studio.
  16559. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  16560. + case $wlarc in
  16561. + '')
  16562. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  16563. + *)
  16564. + whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  16565. + esac ;;
  16566. + esac
  16567. + link_all_deplibs=yes
  16568. + ;;
  16569. +
  16570. + sunos4*)
  16571. + if test "x$host_vendor" = xsequent; then
  16572. + # Use $CC to link under sequent, because it throws in some extra .o
  16573. + # files that make .init and .fini sections work.
  16574. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  16575. + else
  16576. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  16577. + fi
  16578. + hardcode_libdir_flag_spec='-L$libdir'
  16579. + hardcode_direct=yes
  16580. + hardcode_minus_L=yes
  16581. + hardcode_shlibpath_var=no
  16582. + ;;
  16583. +
  16584. + sysv4)
  16585. + case $host_vendor in
  16586. + sni)
  16587. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16588. + hardcode_direct=yes # is this really true???
  16589. + ;;
  16590. + siemens)
  16591. + ## LD is ld it makes a PLAMLIB
  16592. + ## CC just makes a GrossModule.
  16593. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  16594. + reload_cmds='$CC -r -o $output$reload_objs'
  16595. + hardcode_direct=no
  16596. + ;;
  16597. + motorola)
  16598. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16599. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  16600. + ;;
  16601. + esac
  16602. + runpath_var='LD_RUN_PATH'
  16603. + hardcode_shlibpath_var=no
  16604. + ;;
  16605. +
  16606. + sysv4.3*)
  16607. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16608. + hardcode_shlibpath_var=no
  16609. + export_dynamic_flag_spec='-Bexport'
  16610. + ;;
  16611. +
  16612. + sysv4*MP*)
  16613. + if test -d /usr/nec; then
  16614. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16615. + hardcode_shlibpath_var=no
  16616. + runpath_var=LD_RUN_PATH
  16617. + hardcode_runpath_var=yes
  16618. + ld_shlibs=yes
  16619. + fi
  16620. + ;;
  16621. +
  16622. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  16623. + no_undefined_flag='${wl}-z,text'
  16624. + archive_cmds_need_lc=no
  16625. + hardcode_shlibpath_var=no
  16626. + runpath_var='LD_RUN_PATH'
  16627. +
  16628. + if test "$GCC" = yes; then
  16629. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16630. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16631. + else
  16632. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16633. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16634. + fi
  16635. + ;;
  16636. +
  16637. + sysv5* | sco3.2v5* | sco5v6*)
  16638. + # Note: We can NOT use -z defs as we might desire, because we do not
  16639. + # link with -lc, and that would cause any symbols used from libc to
  16640. + # always be unresolved, which means just about no library would
  16641. + # ever link correctly. If we're not using GNU ld we use -z text
  16642. + # though, which does catch some bad symbols but isn't as heavy-handed
  16643. + # as -z defs.
  16644. + no_undefined_flag='${wl}-z,text'
  16645. + allow_undefined_flag='${wl}-z,nodefs'
  16646. + archive_cmds_need_lc=no
  16647. + hardcode_shlibpath_var=no
  16648. + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  16649. + hardcode_libdir_separator=':'
  16650. + link_all_deplibs=yes
  16651. + export_dynamic_flag_spec='${wl}-Bexport'
  16652. + runpath_var='LD_RUN_PATH'
  16653. +
  16654. + if test "$GCC" = yes; then
  16655. + archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16656. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16657. + else
  16658. + archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16659. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16660. + fi
  16661. + ;;
  16662. +
  16663. + uts4*)
  16664. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16665. + hardcode_libdir_flag_spec='-L$libdir'
  16666. + hardcode_shlibpath_var=no
  16667. + ;;
  16668. +
  16669. + *)
  16670. + ld_shlibs=no
  16671. + ;;
  16672. + esac
  16673. + fi
  16674. +
  16675. +echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  16676. +echo "${ECHO_T}$ld_shlibs" >&6
  16677. +test "$ld_shlibs" = no && can_build_shared=no
  16678. +
  16679. +#
  16680. +# Do we need to explicitly link libc?
  16681. +#
  16682. +case "x$archive_cmds_need_lc" in
  16683. +x|xyes)
  16684. + # Assume -lc should be added
  16685. + archive_cmds_need_lc=yes
  16686. +
  16687. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  16688. + case $archive_cmds in
  16689. + *'~'*)
  16690. + # FIXME: we may have to deal with multi-command sequences.
  16691. + ;;
  16692. + '$CC '*)
  16693. + # Test whether the compiler implicitly links with -lc since on some
  16694. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  16695. + # to ld, don't add -lc before -lgcc.
  16696. + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  16697. +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  16698. + $rm conftest*
  16699. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  16700. +
  16701. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16702. + (eval $ac_compile) 2>&5
  16703. + ac_status=$?
  16704. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16705. + (exit $ac_status); } 2>conftest.err; then
  16706. + soname=conftest
  16707. + lib=conftest
  16708. + libobjs=conftest.$ac_objext
  16709. + deplibs=
  16710. + wl=$lt_prog_compiler_wl
  16711. + pic_flag=$lt_prog_compiler_pic
  16712. + compiler_flags=-v
  16713. + linker_flags=-v
  16714. + verstring=
  16715. + output_objdir=.
  16716. + libname=conftest
  16717. + lt_save_allow_undefined_flag=$allow_undefined_flag
  16718. + allow_undefined_flag=
  16719. + if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  16720. + (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  16721. + ac_status=$?
  16722. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16723. + (exit $ac_status); }
  16724. + then
  16725. + archive_cmds_need_lc=no
  16726. + else
  16727. + archive_cmds_need_lc=yes
  16728. + fi
  16729. + allow_undefined_flag=$lt_save_allow_undefined_flag
  16730. + else
  16731. + cat conftest.err 1>&5
  16732. + fi
  16733. + $rm conftest*
  16734. + echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  16735. +echo "${ECHO_T}$archive_cmds_need_lc" >&6
  16736. + ;;
  16737. + esac
  16738. + fi
  16739. + ;;
  16740. +esac
  16741. +
  16742. +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  16743. +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  16744. +library_names_spec=
  16745. +libname_spec='lib$name'
  16746. +soname_spec=
  16747. +shrext_cmds=".so"
  16748. +postinstall_cmds=
  16749. +postuninstall_cmds=
  16750. +finish_cmds=
  16751. +finish_eval=
  16752. +shlibpath_var=
  16753. +shlibpath_overrides_runpath=unknown
  16754. +version_type=none
  16755. +dynamic_linker="$host_os ld.so"
  16756. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  16757. +if test "$GCC" = yes; then
  16758. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16759. + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  16760. + # if the path contains ";" then we assume it to be the separator
  16761. + # otherwise default to the standard path separator (i.e. ":") - it is
  16762. + # assumed that no part of a normal pathname contains ";" but that should
  16763. + # okay in the real world where ";" in dirpaths is itself problematic.
  16764. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16765. + else
  16766. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16767. + fi
  16768. +else
  16769. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  16770. +fi
  16771. +need_lib_prefix=unknown
  16772. +hardcode_into_libs=no
  16773. +
  16774. +# when you set need_version to no, make sure it does not cause -set_version
  16775. +# flags to be left without arguments
  16776. +need_version=unknown
  16777. +
  16778. +case $host_os in
  16779. +aix3*)
  16780. + version_type=linux
  16781. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  16782. + shlibpath_var=LIBPATH
  16783. +
  16784. + # AIX 3 has no versioning support, so we append a major version to the name.
  16785. + soname_spec='${libname}${release}${shared_ext}$major'
  16786. + ;;
  16787. +
  16788. +aix4* | aix5*)
  16789. + version_type=linux
  16790. + need_lib_prefix=no
  16791. + need_version=no
  16792. + hardcode_into_libs=yes
  16793. + if test "$host_cpu" = ia64; then
  16794. + # AIX 5 supports IA64
  16795. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  16796. + shlibpath_var=LD_LIBRARY_PATH
  16797. + else
  16798. + # With GCC up to 2.95.x, collect2 would create an import file
  16799. + # for dependence libraries. The import file would start with
  16800. + # the line `#! .'. This would cause the generated library to
  16801. + # depend on `.', always an invalid library. This was fixed in
  16802. + # development snapshots of GCC prior to 3.0.
  16803. + case $host_os in
  16804. + aix4 | aix4.[01] | aix4.[01].*)
  16805. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  16806. + echo ' yes '
  16807. + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  16808. + :
  16809. + else
  16810. + can_build_shared=no
  16811. + fi
  16812. + ;;
  16813. + esac
  16814. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  16815. + # soname into executable. Probably we can add versioning support to
  16816. + # collect2, so additional links can be useful in future.
  16817. + if test "$aix_use_runtimelinking" = yes; then
  16818. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  16819. + # instead of lib<name>.a to let people know that these are not
  16820. + # typical AIX shared libraries.
  16821. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16822. + else
  16823. + # We preserve .a as extension for shared libraries through AIX4.2
  16824. + # and later when we are not doing run time linking.
  16825. + library_names_spec='${libname}${release}.a $libname.a'
  16826. + soname_spec='${libname}${release}${shared_ext}$major'
  16827. + fi
  16828. + shlibpath_var=LIBPATH
  16829. + fi
  16830. + ;;
  16831. +
  16832. +amigaos*)
  16833. + library_names_spec='$libname.ixlibrary $libname.a'
  16834. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  16835. + 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'
  16836. + ;;
  16837. +
  16838. +beos*)
  16839. + library_names_spec='${libname}${shared_ext}'
  16840. + dynamic_linker="$host_os ld.so"
  16841. + shlibpath_var=LIBRARY_PATH
  16842. + ;;
  16843. +
  16844. +bsdi[45]*)
  16845. + version_type=linux
  16846. + need_version=no
  16847. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16848. + soname_spec='${libname}${release}${shared_ext}$major'
  16849. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  16850. + shlibpath_var=LD_LIBRARY_PATH
  16851. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  16852. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  16853. + # the default ld.so.conf also contains /usr/contrib/lib and
  16854. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  16855. + # libtool to hard-code these into programs
  16856. + ;;
  16857. +
  16858. +cygwin* | mingw* | pw32*)
  16859. + version_type=windows
  16860. + shrext_cmds=".dll"
  16861. + need_version=no
  16862. + need_lib_prefix=no
  16863. +
  16864. + case $GCC,$host_os in
  16865. + yes,cygwin* | yes,mingw* | yes,pw32*)
  16866. + library_names_spec='$libname.dll.a'
  16867. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16868. + postinstall_cmds='base_file=`basename \${file}`~
  16869. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  16870. + dldir=$destdir/`dirname \$dlpath`~
  16871. + test -d \$dldir || mkdir -p \$dldir~
  16872. + $install_prog $dir/$dlname \$dldir/$dlname~
  16873. + chmod a+x \$dldir/$dlname'
  16874. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16875. + dlpath=$dir/\$dldll~
  16876. + $rm \$dlpath'
  16877. + shlibpath_overrides_runpath=yes
  16878. +
  16879. + case $host_os in
  16880. + cygwin*)
  16881. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  16882. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16883. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  16884. + ;;
  16885. + mingw*)
  16886. + # MinGW DLLs use traditional 'lib' prefix
  16887. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16888. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16889. + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  16890. + # It is most probably a Windows format PATH printed by
  16891. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  16892. + # path with ; separators, and with drive letters. We can handle the
  16893. + # drive letters (cygwin fileutils understands them), so leave them,
  16894. + # especially as we might pass files found there to a mingw objdump,
  16895. + # which wouldn't understand a cygwinified path. Ahh.
  16896. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16897. + else
  16898. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16899. + fi
  16900. + ;;
  16901. + pw32*)
  16902. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  16903. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16904. + ;;
  16905. + esac
  16906. + ;;
  16907. +
  16908. + *)
  16909. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  16910. + ;;
  16911. + esac
  16912. + dynamic_linker='Win32 ld.exe'
  16913. + # FIXME: first we should search . and the directory the executable is in
  16914. + shlibpath_var=PATH
  16915. + ;;
  16916. +
  16917. +darwin* | rhapsody*)
  16918. + dynamic_linker="$host_os dyld"
  16919. + version_type=darwin
  16920. + need_lib_prefix=no
  16921. + need_version=no
  16922. + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  16923. + soname_spec='${libname}${release}${major}$shared_ext'
  16924. + shlibpath_overrides_runpath=yes
  16925. + shlibpath_var=DYLD_LIBRARY_PATH
  16926. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  16927. + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  16928. + if test "$GCC" = yes; then
  16929. + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  16930. + else
  16931. + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  16932. + fi
  16933. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16934. + ;;
  16935. +
  16936. +dgux*)
  16937. + version_type=linux
  16938. + need_lib_prefix=no
  16939. + need_version=no
  16940. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  16941. + soname_spec='${libname}${release}${shared_ext}$major'
  16942. + shlibpath_var=LD_LIBRARY_PATH
  16943. + ;;
  16944. +
  16945. +freebsd1*)
  16946. + dynamic_linker=no
  16947. + ;;
  16948. +
  16949. +kfreebsd*-gnu)
  16950. + version_type=linux
  16951. + need_lib_prefix=no
  16952. + need_version=no
  16953. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16954. + soname_spec='${libname}${release}${shared_ext}$major'
  16955. + shlibpath_var=LD_LIBRARY_PATH
  16956. + shlibpath_overrides_runpath=no
  16957. + hardcode_into_libs=yes
  16958. + dynamic_linker='GNU ld.so'
  16959. + ;;
  16960. +
  16961. +freebsd* | dragonfly*)
  16962. + # DragonFly does not have aout. When/if they implement a new
  16963. + # versioning mechanism, adjust this.
  16964. + if test -x /usr/bin/objformat; then
  16965. + objformat=`/usr/bin/objformat`
  16966. + else
  16967. + case $host_os in
  16968. + freebsd[123]*) objformat=aout ;;
  16969. + *) objformat=elf ;;
  16970. + esac
  16971. + fi
  16972. + version_type=freebsd-$objformat
  16973. + case $version_type in
  16974. + freebsd-elf*)
  16975. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16976. + need_version=no
  16977. + need_lib_prefix=no
  16978. + ;;
  16979. + freebsd-*)
  16980. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  16981. + need_version=yes
  16982. + ;;
  16983. + esac
  16984. + shlibpath_var=LD_LIBRARY_PATH
  16985. + case $host_os in
  16986. + freebsd2*)
  16987. + shlibpath_overrides_runpath=yes
  16988. + ;;
  16989. + freebsd3.[01]* | freebsdelf3.[01]*)
  16990. + shlibpath_overrides_runpath=yes
  16991. + hardcode_into_libs=yes
  16992. + ;;
  16993. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  16994. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  16995. + shlibpath_overrides_runpath=no
  16996. + hardcode_into_libs=yes
  16997. + ;;
  16998. + freebsd*) # from 4.6 on
  16999. + shlibpath_overrides_runpath=yes
  17000. + hardcode_into_libs=yes
  17001. + ;;
  17002. + esac
  17003. + ;;
  17004. +
  17005. +gnu*)
  17006. + version_type=linux
  17007. + need_lib_prefix=no
  17008. + need_version=no
  17009. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  17010. + soname_spec='${libname}${release}${shared_ext}$major'
  17011. + shlibpath_var=LD_LIBRARY_PATH
  17012. + hardcode_into_libs=yes
  17013. + ;;
  17014. +
  17015. +hpux9* | hpux10* | hpux11*)
  17016. + # Give a soname corresponding to the major version so that dld.sl refuses to
  17017. + # link against other versions.
  17018. + version_type=sunos
  17019. + need_lib_prefix=no
  17020. + need_version=no
  17021. + case $host_cpu in
  17022. + ia64*)
  17023. + shrext_cmds='.so'
  17024. + hardcode_into_libs=yes
  17025. + dynamic_linker="$host_os dld.so"
  17026. + shlibpath_var=LD_LIBRARY_PATH
  17027. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  17028. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17029. + soname_spec='${libname}${release}${shared_ext}$major'
  17030. + if test "X$HPUX_IA64_MODE" = X32; then
  17031. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  17032. + else
  17033. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  17034. + fi
  17035. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  17036. + ;;
  17037. + hppa*64*)
  17038. + shrext_cmds='.sl'
  17039. + hardcode_into_libs=yes
  17040. + dynamic_linker="$host_os dld.sl"
  17041. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  17042. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  17043. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17044. + soname_spec='${libname}${release}${shared_ext}$major'
  17045. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  17046. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  17047. + ;;
  17048. + *)
  17049. + shrext_cmds='.sl'
  17050. + dynamic_linker="$host_os dld.sl"
  17051. + shlibpath_var=SHLIB_PATH
  17052. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  17053. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17054. + soname_spec='${libname}${release}${shared_ext}$major'
  17055. + ;;
  17056. + esac
  17057. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  17058. + postinstall_cmds='chmod 555 $lib'
  17059. + ;;
  17060. +
  17061. +interix3*)
  17062. + version_type=linux
  17063. + need_lib_prefix=no
  17064. + need_version=no
  17065. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  17066. + soname_spec='${libname}${release}${shared_ext}$major'
  17067. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  17068. + shlibpath_var=LD_LIBRARY_PATH
  17069. + shlibpath_overrides_runpath=no
  17070. + hardcode_into_libs=yes
  17071. + ;;
  17072. +
  17073. +irix5* | irix6* | nonstopux*)
  17074. + case $host_os in
  17075. + nonstopux*) version_type=nonstopux ;;
  17076. + *)
  17077. + if test "$lt_cv_prog_gnu_ld" = yes; then
  17078. + version_type=linux
  17079. + else
  17080. + version_type=irix
  17081. + fi ;;
  17082. + esac
  17083. + need_lib_prefix=no
  17084. + need_version=no
  17085. + soname_spec='${libname}${release}${shared_ext}$major'
  17086. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  17087. + case $host_os in
  17088. + irix5* | nonstopux*)
  17089. + libsuff= shlibsuff=
  17090. + ;;
  17091. + *)
  17092. + case $LD in # libtool.m4 will add one of these switches to LD
  17093. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  17094. + libsuff= shlibsuff= libmagic=32-bit;;
  17095. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  17096. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  17097. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  17098. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  17099. + *) libsuff= shlibsuff= libmagic=never-match;;
  17100. + esac
  17101. + ;;
  17102. + esac
  17103. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  17104. + shlibpath_overrides_runpath=no
  17105. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  17106. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  17107. + hardcode_into_libs=yes
  17108. + ;;
  17109. +
  17110. +# No shared lib support for Linux oldld, aout, or coff.
  17111. +linux*oldld* | linux*aout* | linux*coff*)
  17112. + dynamic_linker=no
  17113. + ;;
  17114. +
  17115. +# This must be Linux ELF.
  17116. +linux*)
  17117. + version_type=linux
  17118. + need_lib_prefix=no
  17119. + need_version=no
  17120. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17121. + soname_spec='${libname}${release}${shared_ext}$major'
  17122. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  17123. + shlibpath_var=LD_LIBRARY_PATH
  17124. + shlibpath_overrides_runpath=no
  17125. + # This implies no fast_install, which is unacceptable.
  17126. + # Some rework will be needed to allow for fast_install
  17127. + # before this can be enabled.
  17128. + hardcode_into_libs=yes
  17129. +
  17130. + # Append ld.so.conf contents to the search path
  17131. + if test -f /etc/ld.so.conf; then
  17132. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  17133. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  17134. + fi
  17135. +
  17136. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  17137. + # powerpc, because MkLinux only supported shared libraries with the
  17138. + # GNU dynamic linker. Since this was broken with cross compilers,
  17139. + # most powerpc-linux boxes support dynamic linking these days and
  17140. + # people can always --disable-shared, the test was removed, and we
  17141. + # assume the GNU/Linux dynamic linker is in use.
  17142. + dynamic_linker='GNU/Linux ld.so'
  17143. + ;;
  17144. +
  17145. +netbsdelf*-gnu)
  17146. + version_type=linux
  17147. + need_lib_prefix=no
  17148. + need_version=no
  17149. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  17150. + soname_spec='${libname}${release}${shared_ext}$major'
  17151. + shlibpath_var=LD_LIBRARY_PATH
  17152. + shlibpath_overrides_runpath=no
  17153. + hardcode_into_libs=yes
  17154. + dynamic_linker='NetBSD ld.elf_so'
  17155. + ;;
  17156. +
  17157. +knetbsd*-gnu)
  17158. + version_type=linux
  17159. + need_lib_prefix=no
  17160. + need_version=no
  17161. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  17162. + soname_spec='${libname}${release}${shared_ext}$major'
  17163. + shlibpath_var=LD_LIBRARY_PATH
  17164. + shlibpath_overrides_runpath=no
  17165. + hardcode_into_libs=yes
  17166. + dynamic_linker='GNU ld.so'
  17167. + ;;
  17168. +
  17169. +netbsd*)
  17170. + version_type=sunos
  17171. + need_lib_prefix=no
  17172. + need_version=no
  17173. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  17174. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  17175. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  17176. + dynamic_linker='NetBSD (a.out) ld.so'
  17177. + else
  17178. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  17179. + soname_spec='${libname}${release}${shared_ext}$major'
  17180. + dynamic_linker='NetBSD ld.elf_so'
  17181. + fi
  17182. + shlibpath_var=LD_LIBRARY_PATH
  17183. + shlibpath_overrides_runpath=yes
  17184. + hardcode_into_libs=yes
  17185. + ;;
  17186. +
  17187. +newsos6)
  17188. + version_type=linux
  17189. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17190. + shlibpath_var=LD_LIBRARY_PATH
  17191. + shlibpath_overrides_runpath=yes
  17192. + ;;
  17193. +
  17194. +nto-qnx*)
  17195. + version_type=linux
  17196. + need_lib_prefix=no
  17197. + need_version=no
  17198. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17199. + soname_spec='${libname}${release}${shared_ext}$major'
  17200. + shlibpath_var=LD_LIBRARY_PATH
  17201. + shlibpath_overrides_runpath=yes
  17202. + ;;
  17203. +
  17204. +openbsd*)
  17205. + version_type=sunos
  17206. + sys_lib_dlsearch_path_spec="/usr/lib"
  17207. + need_lib_prefix=no
  17208. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  17209. + case $host_os in
  17210. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  17211. + *) need_version=no ;;
  17212. + esac
  17213. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  17214. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  17215. + shlibpath_var=LD_LIBRARY_PATH
  17216. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  17217. + case $host_os in
  17218. + openbsd2.[89] | openbsd2.[89].*)
  17219. + shlibpath_overrides_runpath=no
  17220. + ;;
  17221. + *)
  17222. + shlibpath_overrides_runpath=yes
  17223. + ;;
  17224. + esac
  17225. + else
  17226. + shlibpath_overrides_runpath=yes
  17227. + fi
  17228. + ;;
  17229. +
  17230. +os2*)
  17231. + libname_spec='$name'
  17232. + shrext_cmds=".dll"
  17233. + need_lib_prefix=no
  17234. + library_names_spec='$libname${shared_ext} $libname.a'
  17235. + dynamic_linker='OS/2 ld.exe'
  17236. + shlibpath_var=LIBPATH
  17237. + ;;
  17238. +
  17239. +osf3* | osf4* | osf5*)
  17240. + version_type=osf
  17241. + need_lib_prefix=no
  17242. + need_version=no
  17243. + soname_spec='${libname}${release}${shared_ext}$major'
  17244. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17245. + shlibpath_var=LD_LIBRARY_PATH
  17246. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  17247. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  17248. + ;;
  17249. +
  17250. +solaris*)
  17251. + version_type=linux
  17252. + need_lib_prefix=no
  17253. + need_version=no
  17254. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17255. + soname_spec='${libname}${release}${shared_ext}$major'
  17256. + shlibpath_var=LD_LIBRARY_PATH
  17257. + shlibpath_overrides_runpath=yes
  17258. + hardcode_into_libs=yes
  17259. + # ldd complains unless libraries are executable
  17260. + postinstall_cmds='chmod +x $lib'
  17261. + ;;
  17262. +
  17263. +sunos4*)
  17264. + version_type=sunos
  17265. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  17266. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  17267. + shlibpath_var=LD_LIBRARY_PATH
  17268. + shlibpath_overrides_runpath=yes
  17269. + if test "$with_gnu_ld" = yes; then
  17270. + need_lib_prefix=no
  17271. + fi
  17272. + need_version=yes
  17273. + ;;
  17274. +
  17275. +sysv4 | sysv4.3*)
  17276. + version_type=linux
  17277. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17278. + soname_spec='${libname}${release}${shared_ext}$major'
  17279. + shlibpath_var=LD_LIBRARY_PATH
  17280. + case $host_vendor in
  17281. + sni)
  17282. + shlibpath_overrides_runpath=no
  17283. + need_lib_prefix=no
  17284. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  17285. + runpath_var=LD_RUN_PATH
  17286. + ;;
  17287. + siemens)
  17288. + need_lib_prefix=no
  17289. + ;;
  17290. + motorola)
  17291. + need_lib_prefix=no
  17292. + need_version=no
  17293. + shlibpath_overrides_runpath=no
  17294. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  17295. + ;;
  17296. + esac
  17297. + ;;
  17298. +
  17299. +sysv4*MP*)
  17300. + if test -d /usr/nec ;then
  17301. + version_type=linux
  17302. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  17303. + soname_spec='$libname${shared_ext}.$major'
  17304. + shlibpath_var=LD_LIBRARY_PATH
  17305. + fi
  17306. + ;;
  17307. +
  17308. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  17309. + version_type=freebsd-elf
  17310. + need_lib_prefix=no
  17311. + need_version=no
  17312. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  17313. + soname_spec='${libname}${release}${shared_ext}$major'
  17314. + shlibpath_var=LD_LIBRARY_PATH
  17315. + hardcode_into_libs=yes
  17316. + if test "$with_gnu_ld" = yes; then
  17317. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  17318. + shlibpath_overrides_runpath=no
  17319. + else
  17320. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  17321. + shlibpath_overrides_runpath=yes
  17322. + case $host_os in
  17323. + sco3.2v5*)
  17324. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  17325. + ;;
  17326. + esac
  17327. + fi
  17328. + sys_lib_dlsearch_path_spec='/usr/lib'
  17329. + ;;
  17330. +
  17331. +uts4*)
  17332. + version_type=linux
  17333. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17334. + soname_spec='${libname}${release}${shared_ext}$major'
  17335. + shlibpath_var=LD_LIBRARY_PATH
  17336. + ;;
  17337. +
  17338. +*)
  17339. + dynamic_linker=no
  17340. + ;;
  17341. +esac
  17342. +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  17343. +echo "${ECHO_T}$dynamic_linker" >&6
  17344. +test "$dynamic_linker" = no && can_build_shared=no
  17345. +
  17346. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  17347. +if test "$GCC" = yes; then
  17348. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  17349. +fi
  17350. +
  17351. +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  17352. +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  17353. +hardcode_action=
  17354. +if test -n "$hardcode_libdir_flag_spec" || \
  17355. + test -n "$runpath_var" || \
  17356. + test "X$hardcode_automatic" = "Xyes" ; then
  17357. +
  17358. + # We can hardcode non-existant directories.
  17359. + if test "$hardcode_direct" != no &&
  17360. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  17361. + # have to relink, otherwise we might link with an installed library
  17362. + # when we should be linking with a yet-to-be-installed one
  17363. + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  17364. + test "$hardcode_minus_L" != no; then
  17365. + # Linking always hardcodes the temporary library directory.
  17366. + hardcode_action=relink
  17367. + else
  17368. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  17369. + hardcode_action=immediate
  17370. + fi
  17371. +else
  17372. + # We cannot hardcode anything, or else we can only hardcode existing
  17373. + # directories.
  17374. + hardcode_action=unsupported
  17375. +fi
  17376. +echo "$as_me:$LINENO: result: $hardcode_action" >&5
  17377. +echo "${ECHO_T}$hardcode_action" >&6
  17378. +
  17379. +if test "$hardcode_action" = relink; then
  17380. + # Fast installation is not supported
  17381. + enable_fast_install=no
  17382. +elif test "$shlibpath_overrides_runpath" = yes ||
  17383. + test "$enable_shared" = no; then
  17384. + # Fast installation is not necessary
  17385. + enable_fast_install=needless
  17386. +fi
  17387. +
  17388. +striplib=
  17389. +old_striplib=
  17390. +echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  17391. +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  17392. +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  17393. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  17394. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  17395. + echo "$as_me:$LINENO: result: yes" >&5
  17396. +echo "${ECHO_T}yes" >&6
  17397. +else
  17398. +# FIXME - insert some real tests, host_os isn't really good enough
  17399. + case $host_os in
  17400. + darwin*)
  17401. + if test -n "$STRIP" ; then
  17402. + striplib="$STRIP -x"
  17403. + echo "$as_me:$LINENO: result: yes" >&5
  17404. +echo "${ECHO_T}yes" >&6
  17405. + else
  17406. + echo "$as_me:$LINENO: result: no" >&5
  17407. +echo "${ECHO_T}no" >&6
  17408. +fi
  17409. + ;;
  17410. + *)
  17411. + echo "$as_me:$LINENO: result: no" >&5
  17412. +echo "${ECHO_T}no" >&6
  17413. + ;;
  17414. + esac
  17415. +fi
  17416. +
  17417. +if test "x$enable_dlopen" != xyes; then
  17418. + enable_dlopen=unknown
  17419. + enable_dlopen_self=unknown
  17420. + enable_dlopen_self_static=unknown
  17421. +else
  17422. + lt_cv_dlopen=no
  17423. + lt_cv_dlopen_libs=
  17424. +
  17425. + case $host_os in
  17426. + beos*)
  17427. + lt_cv_dlopen="load_add_on"
  17428. + lt_cv_dlopen_libs=
  17429. + lt_cv_dlopen_self=yes
  17430. + ;;
  17431. +
  17432. + mingw* | pw32*)
  17433. + lt_cv_dlopen="LoadLibrary"
  17434. + lt_cv_dlopen_libs=
  17435. + ;;
  17436. +
  17437. + cygwin*)
  17438. + lt_cv_dlopen="dlopen"
  17439. + lt_cv_dlopen_libs=
  17440. + ;;
  17441. +
  17442. + darwin*)
  17443. + # if libdl is installed we need to link against it
  17444. + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  17445. +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  17446. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  17447. + echo $ECHO_N "(cached) $ECHO_C" >&6
  17448. +else
  17449. + ac_check_lib_save_LIBS=$LIBS
  17450. +LIBS="-ldl $LIBS"
  17451. +cat >conftest.$ac_ext <<_ACEOF
  17452. +/* confdefs.h. */
  17453. +_ACEOF
  17454. +cat confdefs.h >>conftest.$ac_ext
  17455. +cat >>conftest.$ac_ext <<_ACEOF
  17456. +/* end confdefs.h. */
  17457. +
  17458. +/* Override any gcc2 internal prototype to avoid an error. */
  17459. +#ifdef __cplusplus
  17460. +extern "C"
  17461. +#endif
  17462. +/* We use char because int might match the return type of a gcc2
  17463. + builtin and then its argument prototype would still apply. */
  17464. +char dlopen ();
  17465. +int
  17466. +main ()
  17467. +{
  17468. +dlopen ();
  17469. + ;
  17470. + return 0;
  17471. +}
  17472. +_ACEOF
  17473. +rm -f conftest.$ac_objext conftest$ac_exeext
  17474. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17475. + (eval $ac_link) 2>conftest.er1
  17476. + ac_status=$?
  17477. + grep -v '^ *+' conftest.er1 >conftest.err
  17478. + rm -f conftest.er1
  17479. + cat conftest.err >&5
  17480. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17481. + (exit $ac_status); } &&
  17482. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17483. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17484. + (eval $ac_try) 2>&5
  17485. + ac_status=$?
  17486. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17487. + (exit $ac_status); }; } &&
  17488. + { ac_try='test -s conftest$ac_exeext'
  17489. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17490. + (eval $ac_try) 2>&5
  17491. + ac_status=$?
  17492. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17493. + (exit $ac_status); }; }; then
  17494. + ac_cv_lib_dl_dlopen=yes
  17495. +else
  17496. + echo "$as_me: failed program was:" >&5
  17497. +sed 's/^/| /' conftest.$ac_ext >&5
  17498. +
  17499. +ac_cv_lib_dl_dlopen=no
  17500. +fi
  17501. +rm -f conftest.err conftest.$ac_objext \
  17502. + conftest$ac_exeext conftest.$ac_ext
  17503. +LIBS=$ac_check_lib_save_LIBS
  17504. +fi
  17505. +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  17506. +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  17507. +if test $ac_cv_lib_dl_dlopen = yes; then
  17508. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  17509. +else
  17510. +
  17511. + lt_cv_dlopen="dyld"
  17512. + lt_cv_dlopen_libs=
  17513. + lt_cv_dlopen_self=yes
  17514. +
  17515. +fi
  17516. +
  17517. + ;;
  17518. +
  17519. + *)
  17520. + echo "$as_me:$LINENO: checking for shl_load" >&5
  17521. +echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  17522. +if test "${ac_cv_func_shl_load+set}" = set; then
  17523. + echo $ECHO_N "(cached) $ECHO_C" >&6
  17524. +else
  17525. + cat >conftest.$ac_ext <<_ACEOF
  17526. +/* confdefs.h. */
  17527. +_ACEOF
  17528. +cat confdefs.h >>conftest.$ac_ext
  17529. +cat >>conftest.$ac_ext <<_ACEOF
  17530. +/* end confdefs.h. */
  17531. +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  17532. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17533. +#define shl_load innocuous_shl_load
  17534. +
  17535. +/* System header to define __stub macros and hopefully few prototypes,
  17536. + which can conflict with char shl_load (); below.
  17537. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17538. + <limits.h> exists even on freestanding compilers. */
  17539. +
  17540. +#ifdef __STDC__
  17541. +# include <limits.h>
  17542. +#else
  17543. +# include <assert.h>
  17544. +#endif
  17545. +
  17546. +#undef shl_load
  17547. +
  17548. +/* Override any gcc2 internal prototype to avoid an error. */
  17549. +#ifdef __cplusplus
  17550. +extern "C"
  17551. +{
  17552. +#endif
  17553. +/* We use char because int might match the return type of a gcc2
  17554. + builtin and then its argument prototype would still apply. */
  17555. +char shl_load ();
  17556. +/* The GNU C library defines this for functions which it implements
  17557. + to always fail with ENOSYS. Some functions are actually named
  17558. + something starting with __ and the normal name is an alias. */
  17559. +#if defined (__stub_shl_load) || defined (__stub___shl_load)
  17560. +choke me
  17561. +#else
  17562. +char (*f) () = shl_load;
  17563. +#endif
  17564. +#ifdef __cplusplus
  17565. +}
  17566. +#endif
  17567. +
  17568. +int
  17569. +main ()
  17570. +{
  17571. +return f != shl_load;
  17572. + ;
  17573. + return 0;
  17574. +}
  17575. +_ACEOF
  17576. +rm -f conftest.$ac_objext conftest$ac_exeext
  17577. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17578. + (eval $ac_link) 2>conftest.er1
  17579. + ac_status=$?
  17580. + grep -v '^ *+' conftest.er1 >conftest.err
  17581. + rm -f conftest.er1
  17582. + cat conftest.err >&5
  17583. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17584. + (exit $ac_status); } &&
  17585. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17586. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17587. + (eval $ac_try) 2>&5
  17588. + ac_status=$?
  17589. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17590. + (exit $ac_status); }; } &&
  17591. + { ac_try='test -s conftest$ac_exeext'
  17592. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17593. + (eval $ac_try) 2>&5
  17594. + ac_status=$?
  17595. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17596. + (exit $ac_status); }; }; then
  17597. + ac_cv_func_shl_load=yes
  17598. +else
  17599. + echo "$as_me: failed program was:" >&5
  17600. +sed 's/^/| /' conftest.$ac_ext >&5
  17601. +
  17602. +ac_cv_func_shl_load=no
  17603. +fi
  17604. +rm -f conftest.err conftest.$ac_objext \
  17605. + conftest$ac_exeext conftest.$ac_ext
  17606. +fi
  17607. +echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  17608. +echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  17609. +if test $ac_cv_func_shl_load = yes; then
  17610. + lt_cv_dlopen="shl_load"
  17611. +else
  17612. + echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  17613. +echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  17614. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  17615. + echo $ECHO_N "(cached) $ECHO_C" >&6
  17616. +else
  17617. + ac_check_lib_save_LIBS=$LIBS
  17618. +LIBS="-ldld $LIBS"
  17619. +cat >conftest.$ac_ext <<_ACEOF
  17620. +/* confdefs.h. */
  17621. +_ACEOF
  17622. +cat confdefs.h >>conftest.$ac_ext
  17623. +cat >>conftest.$ac_ext <<_ACEOF
  17624. +/* end confdefs.h. */
  17625. +
  17626. +/* Override any gcc2 internal prototype to avoid an error. */
  17627. +#ifdef __cplusplus
  17628. +extern "C"
  17629. +#endif
  17630. +/* We use char because int might match the return type of a gcc2
  17631. + builtin and then its argument prototype would still apply. */
  17632. +char shl_load ();
  17633. +int
  17634. +main ()
  17635. +{
  17636. +shl_load ();
  17637. + ;
  17638. + return 0;
  17639. +}
  17640. +_ACEOF
  17641. +rm -f conftest.$ac_objext conftest$ac_exeext
  17642. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17643. + (eval $ac_link) 2>conftest.er1
  17644. + ac_status=$?
  17645. + grep -v '^ *+' conftest.er1 >conftest.err
  17646. + rm -f conftest.er1
  17647. + cat conftest.err >&5
  17648. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17649. + (exit $ac_status); } &&
  17650. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17651. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17652. + (eval $ac_try) 2>&5
  17653. + ac_status=$?
  17654. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17655. + (exit $ac_status); }; } &&
  17656. + { ac_try='test -s conftest$ac_exeext'
  17657. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17658. + (eval $ac_try) 2>&5
  17659. + ac_status=$?
  17660. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17661. + (exit $ac_status); }; }; then
  17662. + ac_cv_lib_dld_shl_load=yes
  17663. +else
  17664. + echo "$as_me: failed program was:" >&5
  17665. +sed 's/^/| /' conftest.$ac_ext >&5
  17666. +
  17667. +ac_cv_lib_dld_shl_load=no
  17668. +fi
  17669. +rm -f conftest.err conftest.$ac_objext \
  17670. + conftest$ac_exeext conftest.$ac_ext
  17671. +LIBS=$ac_check_lib_save_LIBS
  17672. +fi
  17673. +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  17674. +echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  17675. +if test $ac_cv_lib_dld_shl_load = yes; then
  17676. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  17677. +else
  17678. + echo "$as_me:$LINENO: checking for dlopen" >&5
  17679. +echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  17680. +if test "${ac_cv_func_dlopen+set}" = set; then
  17681. + echo $ECHO_N "(cached) $ECHO_C" >&6
  17682. +else
  17683. + cat >conftest.$ac_ext <<_ACEOF
  17684. +/* confdefs.h. */
  17685. +_ACEOF
  17686. +cat confdefs.h >>conftest.$ac_ext
  17687. +cat >>conftest.$ac_ext <<_ACEOF
  17688. +/* end confdefs.h. */
  17689. +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  17690. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17691. +#define dlopen innocuous_dlopen
  17692. +
  17693. +/* System header to define __stub macros and hopefully few prototypes,
  17694. + which can conflict with char dlopen (); below.
  17695. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17696. + <limits.h> exists even on freestanding compilers. */
  17697. +
  17698. +#ifdef __STDC__
  17699. +# include <limits.h>
  17700. +#else
  17701. +# include <assert.h>
  17702. +#endif
  17703. +
  17704. +#undef dlopen
  17705. +
  17706. +/* Override any gcc2 internal prototype to avoid an error. */
  17707. +#ifdef __cplusplus
  17708. +extern "C"
  17709. +{
  17710. +#endif
  17711. +/* We use char because int might match the return type of a gcc2
  17712. + builtin and then its argument prototype would still apply. */
  17713. +char dlopen ();
  17714. +/* The GNU C library defines this for functions which it implements
  17715. + to always fail with ENOSYS. Some functions are actually named
  17716. + something starting with __ and the normal name is an alias. */
  17717. +#if defined (__stub_dlopen) || defined (__stub___dlopen)
  17718. +choke me
  17719. +#else
  17720. +char (*f) () = dlopen;
  17721. +#endif
  17722. +#ifdef __cplusplus
  17723. +}
  17724. +#endif
  17725. +
  17726. +int
  17727. +main ()
  17728. +{
  17729. +return f != dlopen;
  17730. + ;
  17731. + return 0;
  17732. +}
  17733. +_ACEOF
  17734. +rm -f conftest.$ac_objext conftest$ac_exeext
  17735. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17736. + (eval $ac_link) 2>conftest.er1
  17737. + ac_status=$?
  17738. + grep -v '^ *+' conftest.er1 >conftest.err
  17739. + rm -f conftest.er1
  17740. + cat conftest.err >&5
  17741. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17742. + (exit $ac_status); } &&
  17743. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17744. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17745. + (eval $ac_try) 2>&5
  17746. + ac_status=$?
  17747. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17748. + (exit $ac_status); }; } &&
  17749. + { ac_try='test -s conftest$ac_exeext'
  17750. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17751. + (eval $ac_try) 2>&5
  17752. + ac_status=$?
  17753. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17754. + (exit $ac_status); }; }; then
  17755. + ac_cv_func_dlopen=yes
  17756. +else
  17757. + echo "$as_me: failed program was:" >&5
  17758. +sed 's/^/| /' conftest.$ac_ext >&5
  17759. +
  17760. +ac_cv_func_dlopen=no
  17761. +fi
  17762. +rm -f conftest.err conftest.$ac_objext \
  17763. + conftest$ac_exeext conftest.$ac_ext
  17764. +fi
  17765. +echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  17766. +echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  17767. +if test $ac_cv_func_dlopen = yes; then
  17768. + lt_cv_dlopen="dlopen"
  17769. +else
  17770. + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  17771. +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  17772. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  17773. + echo $ECHO_N "(cached) $ECHO_C" >&6
  17774. +else
  17775. + ac_check_lib_save_LIBS=$LIBS
  17776. +LIBS="-ldl $LIBS"
  17777. +cat >conftest.$ac_ext <<_ACEOF
  17778. +/* confdefs.h. */
  17779. +_ACEOF
  17780. +cat confdefs.h >>conftest.$ac_ext
  17781. +cat >>conftest.$ac_ext <<_ACEOF
  17782. +/* end confdefs.h. */
  17783. +
  17784. +/* Override any gcc2 internal prototype to avoid an error. */
  17785. +#ifdef __cplusplus
  17786. +extern "C"
  17787. +#endif
  17788. +/* We use char because int might match the return type of a gcc2
  17789. + builtin and then its argument prototype would still apply. */
  17790. +char dlopen ();
  17791. +int
  17792. +main ()
  17793. +{
  17794. +dlopen ();
  17795. + ;
  17796. + return 0;
  17797. +}
  17798. +_ACEOF
  17799. +rm -f conftest.$ac_objext conftest$ac_exeext
  17800. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17801. + (eval $ac_link) 2>conftest.er1
  17802. + ac_status=$?
  17803. + grep -v '^ *+' conftest.er1 >conftest.err
  17804. + rm -f conftest.er1
  17805. + cat conftest.err >&5
  17806. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17807. + (exit $ac_status); } &&
  17808. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17809. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17810. + (eval $ac_try) 2>&5
  17811. + ac_status=$?
  17812. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17813. + (exit $ac_status); }; } &&
  17814. + { ac_try='test -s conftest$ac_exeext'
  17815. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17816. + (eval $ac_try) 2>&5
  17817. + ac_status=$?
  17818. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17819. + (exit $ac_status); }; }; then
  17820. + ac_cv_lib_dl_dlopen=yes
  17821. +else
  17822. + echo "$as_me: failed program was:" >&5
  17823. +sed 's/^/| /' conftest.$ac_ext >&5
  17824. +
  17825. +ac_cv_lib_dl_dlopen=no
  17826. +fi
  17827. +rm -f conftest.err conftest.$ac_objext \
  17828. + conftest$ac_exeext conftest.$ac_ext
  17829. +LIBS=$ac_check_lib_save_LIBS
  17830. +fi
  17831. +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  17832. +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  17833. +if test $ac_cv_lib_dl_dlopen = yes; then
  17834. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  17835. +else
  17836. + echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  17837. +echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  17838. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  17839. + echo $ECHO_N "(cached) $ECHO_C" >&6
  17840. +else
  17841. + ac_check_lib_save_LIBS=$LIBS
  17842. +LIBS="-lsvld $LIBS"
  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. +
  17850. +/* Override any gcc2 internal prototype to avoid an error. */
  17851. +#ifdef __cplusplus
  17852. +extern "C"
  17853. +#endif
  17854. +/* We use char because int might match the return type of a gcc2
  17855. + builtin and then its argument prototype would still apply. */
  17856. +char dlopen ();
  17857. +int
  17858. +main ()
  17859. +{
  17860. +dlopen ();
  17861. + ;
  17862. + return 0;
  17863. +}
  17864. +_ACEOF
  17865. +rm -f conftest.$ac_objext conftest$ac_exeext
  17866. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17867. + (eval $ac_link) 2>conftest.er1
  17868. + ac_status=$?
  17869. + grep -v '^ *+' conftest.er1 >conftest.err
  17870. + rm -f conftest.er1
  17871. + cat conftest.err >&5
  17872. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17873. + (exit $ac_status); } &&
  17874. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17875. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17876. + (eval $ac_try) 2>&5
  17877. + ac_status=$?
  17878. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17879. + (exit $ac_status); }; } &&
  17880. + { ac_try='test -s conftest$ac_exeext'
  17881. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17882. + (eval $ac_try) 2>&5
  17883. + ac_status=$?
  17884. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17885. + (exit $ac_status); }; }; then
  17886. + ac_cv_lib_svld_dlopen=yes
  17887. +else
  17888. + echo "$as_me: failed program was:" >&5
  17889. +sed 's/^/| /' conftest.$ac_ext >&5
  17890. +
  17891. +ac_cv_lib_svld_dlopen=no
  17892. +fi
  17893. +rm -f conftest.err conftest.$ac_objext \
  17894. + conftest$ac_exeext conftest.$ac_ext
  17895. +LIBS=$ac_check_lib_save_LIBS
  17896. +fi
  17897. +echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  17898. +echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  17899. +if test $ac_cv_lib_svld_dlopen = yes; then
  17900. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  17901. +else
  17902. + echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  17903. +echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  17904. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  17905. + echo $ECHO_N "(cached) $ECHO_C" >&6
  17906. +else
  17907. + ac_check_lib_save_LIBS=$LIBS
  17908. +LIBS="-ldld $LIBS"
  17909. +cat >conftest.$ac_ext <<_ACEOF
  17910. +/* confdefs.h. */
  17911. +_ACEOF
  17912. +cat confdefs.h >>conftest.$ac_ext
  17913. +cat >>conftest.$ac_ext <<_ACEOF
  17914. +/* end confdefs.h. */
  17915. +
  17916. +/* Override any gcc2 internal prototype to avoid an error. */
  17917. +#ifdef __cplusplus
  17918. +extern "C"
  17919. +#endif
  17920. +/* We use char because int might match the return type of a gcc2
  17921. + builtin and then its argument prototype would still apply. */
  17922. +char dld_link ();
  17923. +int
  17924. +main ()
  17925. +{
  17926. +dld_link ();
  17927. + ;
  17928. + return 0;
  17929. +}
  17930. +_ACEOF
  17931. +rm -f conftest.$ac_objext conftest$ac_exeext
  17932. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17933. + (eval $ac_link) 2>conftest.er1
  17934. + ac_status=$?
  17935. + grep -v '^ *+' conftest.er1 >conftest.err
  17936. + rm -f conftest.er1
  17937. + cat conftest.err >&5
  17938. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17939. + (exit $ac_status); } &&
  17940. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17941. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17942. + (eval $ac_try) 2>&5
  17943. + ac_status=$?
  17944. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17945. + (exit $ac_status); }; } &&
  17946. + { ac_try='test -s conftest$ac_exeext'
  17947. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17948. + (eval $ac_try) 2>&5
  17949. + ac_status=$?
  17950. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17951. + (exit $ac_status); }; }; then
  17952. + ac_cv_lib_dld_dld_link=yes
  17953. +else
  17954. + echo "$as_me: failed program was:" >&5
  17955. +sed 's/^/| /' conftest.$ac_ext >&5
  17956. +
  17957. +ac_cv_lib_dld_dld_link=no
  17958. +fi
  17959. +rm -f conftest.err conftest.$ac_objext \
  17960. + conftest$ac_exeext conftest.$ac_ext
  17961. +LIBS=$ac_check_lib_save_LIBS
  17962. +fi
  17963. +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  17964. +echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  17965. +if test $ac_cv_lib_dld_dld_link = yes; then
  17966. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  17967. +fi
  17968. +
  17969. +
  17970. +fi
  17971. +
  17972. +
  17973. +fi
  17974. +
  17975. +
  17976. +fi
  17977. +
  17978. +
  17979. +fi
  17980. +
  17981. +
  17982. +fi
  17983. +
  17984. + ;;
  17985. + esac
  17986. +
  17987. + if test "x$lt_cv_dlopen" != xno; then
  17988. + enable_dlopen=yes
  17989. + else
  17990. + enable_dlopen=no
  17991. + fi
  17992. +
  17993. + case $lt_cv_dlopen in
  17994. + dlopen)
  17995. + save_CPPFLAGS="$CPPFLAGS"
  17996. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  17997. +
  17998. + save_LDFLAGS="$LDFLAGS"
  17999. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  18000. +
  18001. + save_LIBS="$LIBS"
  18002. + LIBS="$lt_cv_dlopen_libs $LIBS"
  18003. +
  18004. + echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  18005. +echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  18006. +if test "${lt_cv_dlopen_self+set}" = set; then
  18007. + echo $ECHO_N "(cached) $ECHO_C" >&6
  18008. +else
  18009. + if test "$cross_compiling" = yes; then :
  18010. + lt_cv_dlopen_self=cross
  18011. +else
  18012. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  18013. + lt_status=$lt_dlunknown
  18014. + cat > conftest.$ac_ext <<EOF
  18015. +#line 8700 "configure"
  18016. +#include "confdefs.h"
  18017. +
  18018. +#if HAVE_DLFCN_H
  18019. +#include <dlfcn.h>
  18020. +#endif
  18021. +
  18022. +#include <stdio.h>
  18023. +
  18024. +#ifdef RTLD_GLOBAL
  18025. +# define LT_DLGLOBAL RTLD_GLOBAL
  18026. +#else
  18027. +# ifdef DL_GLOBAL
  18028. +# define LT_DLGLOBAL DL_GLOBAL
  18029. +# else
  18030. +# define LT_DLGLOBAL 0
  18031. +# endif
  18032. +#endif
  18033. +
  18034. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  18035. + find out it does not work in some platform. */
  18036. +#ifndef LT_DLLAZY_OR_NOW
  18037. +# ifdef RTLD_LAZY
  18038. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  18039. +# else
  18040. +# ifdef DL_LAZY
  18041. +# define LT_DLLAZY_OR_NOW DL_LAZY
  18042. +# else
  18043. +# ifdef RTLD_NOW
  18044. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  18045. +# else
  18046. +# ifdef DL_NOW
  18047. +# define LT_DLLAZY_OR_NOW DL_NOW
  18048. +# else
  18049. +# define LT_DLLAZY_OR_NOW 0
  18050. +# endif
  18051. +# endif
  18052. +# endif
  18053. +# endif
  18054. +#endif
  18055. +
  18056. +#ifdef __cplusplus
  18057. +extern "C" void exit (int);
  18058. +#endif
  18059. +
  18060. +void fnord() { int i=42;}
  18061. +int main ()
  18062. +{
  18063. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  18064. + int status = $lt_dlunknown;
  18065. +
  18066. + if (self)
  18067. + {
  18068. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  18069. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  18070. + /* dlclose (self); */
  18071. + }
  18072. + else
  18073. + puts (dlerror ());
  18074. +
  18075. + exit (status);
  18076. +}
  18077. +EOF
  18078. + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18079. + (eval $ac_link) 2>&5
  18080. + ac_status=$?
  18081. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18082. + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  18083. + (./conftest; exit; ) >&5 2>/dev/null
  18084. + lt_status=$?
  18085. + case x$lt_status in
  18086. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  18087. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  18088. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  18089. + esac
  18090. + else :
  18091. + # compilation failed
  18092. + lt_cv_dlopen_self=no
  18093. + fi
  18094. +fi
  18095. +rm -fr conftest*
  18096. +
  18097. +
  18098. +fi
  18099. +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  18100. +echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  18101. +
  18102. + if test "x$lt_cv_dlopen_self" = xyes; then
  18103. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  18104. + echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  18105. +echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  18106. +if test "${lt_cv_dlopen_self_static+set}" = set; then
  18107. + echo $ECHO_N "(cached) $ECHO_C" >&6
  18108. +else
  18109. + if test "$cross_compiling" = yes; then :
  18110. + lt_cv_dlopen_self_static=cross
  18111. +else
  18112. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  18113. + lt_status=$lt_dlunknown
  18114. + cat > conftest.$ac_ext <<EOF
  18115. +#line 8800 "configure"
  18116. +#include "confdefs.h"
  18117. +
  18118. +#if HAVE_DLFCN_H
  18119. +#include <dlfcn.h>
  18120. +#endif
  18121. +
  18122. +#include <stdio.h>
  18123. +
  18124. +#ifdef RTLD_GLOBAL
  18125. +# define LT_DLGLOBAL RTLD_GLOBAL
  18126. +#else
  18127. +# ifdef DL_GLOBAL
  18128. +# define LT_DLGLOBAL DL_GLOBAL
  18129. +# else
  18130. +# define LT_DLGLOBAL 0
  18131. +# endif
  18132. +#endif
  18133. +
  18134. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  18135. + find out it does not work in some platform. */
  18136. +#ifndef LT_DLLAZY_OR_NOW
  18137. +# ifdef RTLD_LAZY
  18138. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  18139. +# else
  18140. +# ifdef DL_LAZY
  18141. +# define LT_DLLAZY_OR_NOW DL_LAZY
  18142. +# else
  18143. +# ifdef RTLD_NOW
  18144. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  18145. +# else
  18146. +# ifdef DL_NOW
  18147. +# define LT_DLLAZY_OR_NOW DL_NOW
  18148. +# else
  18149. +# define LT_DLLAZY_OR_NOW 0
  18150. +# endif
  18151. +# endif
  18152. +# endif
  18153. +# endif
  18154. +#endif
  18155. +
  18156. +#ifdef __cplusplus
  18157. +extern "C" void exit (int);
  18158. +#endif
  18159. +
  18160. +void fnord() { int i=42;}
  18161. +int main ()
  18162. +{
  18163. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  18164. + int status = $lt_dlunknown;
  18165. +
  18166. + if (self)
  18167. + {
  18168. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  18169. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  18170. + /* dlclose (self); */
  18171. + }
  18172. + else
  18173. + puts (dlerror ());
  18174. +
  18175. + exit (status);
  18176. +}
  18177. +EOF
  18178. + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18179. + (eval $ac_link) 2>&5
  18180. + ac_status=$?
  18181. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18182. + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  18183. + (./conftest; exit; ) >&5 2>/dev/null
  18184. + lt_status=$?
  18185. + case x$lt_status in
  18186. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  18187. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  18188. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  18189. + esac
  18190. + else :
  18191. + # compilation failed
  18192. + lt_cv_dlopen_self_static=no
  18193. + fi
  18194. +fi
  18195. +rm -fr conftest*
  18196. +
  18197. +
  18198. +fi
  18199. +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  18200. +echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  18201. + fi
  18202. +
  18203. + CPPFLAGS="$save_CPPFLAGS"
  18204. + LDFLAGS="$save_LDFLAGS"
  18205. + LIBS="$save_LIBS"
  18206. + ;;
  18207. + esac
  18208. +
  18209. + case $lt_cv_dlopen_self in
  18210. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  18211. + *) enable_dlopen_self=unknown ;;
  18212. + esac
  18213. +
  18214. + case $lt_cv_dlopen_self_static in
  18215. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  18216. + *) enable_dlopen_self_static=unknown ;;
  18217. + esac
  18218. +fi
  18219. +
  18220. +
  18221. +# Report which library types will actually be built
  18222. +echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  18223. +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  18224. +echo "$as_me:$LINENO: result: $can_build_shared" >&5
  18225. +echo "${ECHO_T}$can_build_shared" >&6
  18226. +
  18227. +echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  18228. +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  18229. +test "$can_build_shared" = "no" && enable_shared=no
  18230. +
  18231. +# On AIX, shared libraries and static libraries use the same namespace, and
  18232. +# are all built from PIC.
  18233. +case $host_os in
  18234. +aix3*)
  18235. + test "$enable_shared" = yes && enable_static=no
  18236. + if test -n "$RANLIB"; then
  18237. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  18238. + postinstall_cmds='$RANLIB $lib'
  18239. + fi
  18240. + ;;
  18241. +
  18242. +aix4* | aix5*)
  18243. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  18244. + test "$enable_shared" = yes && enable_static=no
  18245. + fi
  18246. + ;;
  18247. +esac
  18248. +echo "$as_me:$LINENO: result: $enable_shared" >&5
  18249. +echo "${ECHO_T}$enable_shared" >&6
  18250. +
  18251. +echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  18252. +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  18253. +# Make sure either enable_shared or enable_static is yes.
  18254. +test "$enable_shared" = yes || enable_static=yes
  18255. +echo "$as_me:$LINENO: result: $enable_static" >&5
  18256. +echo "${ECHO_T}$enable_static" >&6
  18257. +
  18258. +# The else clause should only fire when bootstrapping the
  18259. +# libtool distribution, otherwise you forgot to ship ltmain.sh
  18260. +# with your package, and you will get complaints that there are
  18261. +# no rules to generate ltmain.sh.
  18262. +if test -f "$ltmain"; then
  18263. + # See if we are running on zsh, and set the options which allow our commands through
  18264. + # without removal of \ escapes.
  18265. + if test -n "${ZSH_VERSION+set}" ; then
  18266. + setopt NO_GLOB_SUBST
  18267. + fi
  18268. + # Now quote all the things that may contain metacharacters while being
  18269. + # careful not to overquote the AC_SUBSTed values. We take copies of the
  18270. + # variables and quote the copies for generation of the libtool script.
  18271. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  18272. + SED SHELL STRIP \
  18273. + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  18274. + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  18275. + deplibs_check_method reload_flag reload_cmds need_locks \
  18276. + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  18277. + lt_cv_sys_global_symbol_to_c_name_address \
  18278. + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  18279. + old_postinstall_cmds old_postuninstall_cmds \
  18280. + compiler \
  18281. + CC \
  18282. + LD \
  18283. + lt_prog_compiler_wl \
  18284. + lt_prog_compiler_pic \
  18285. + lt_prog_compiler_static \
  18286. + lt_prog_compiler_no_builtin_flag \
  18287. + export_dynamic_flag_spec \
  18288. + thread_safe_flag_spec \
  18289. + whole_archive_flag_spec \
  18290. + enable_shared_with_static_runtimes \
  18291. + old_archive_cmds \
  18292. + old_archive_from_new_cmds \
  18293. + predep_objects \
  18294. + postdep_objects \
  18295. + predeps \
  18296. + postdeps \
  18297. + compiler_lib_search_path \
  18298. + archive_cmds \
  18299. + archive_expsym_cmds \
  18300. + postinstall_cmds \
  18301. + postuninstall_cmds \
  18302. + old_archive_from_expsyms_cmds \
  18303. + allow_undefined_flag \
  18304. + no_undefined_flag \
  18305. + export_symbols_cmds \
  18306. + hardcode_libdir_flag_spec \
  18307. + hardcode_libdir_flag_spec_ld \
  18308. + hardcode_libdir_separator \
  18309. + hardcode_automatic \
  18310. + module_cmds \
  18311. + module_expsym_cmds \
  18312. + lt_cv_prog_compiler_c_o \
  18313. + exclude_expsyms \
  18314. + include_expsyms; do
  18315. +
  18316. + case $var in
  18317. + old_archive_cmds | \
  18318. + old_archive_from_new_cmds | \
  18319. + archive_cmds | \
  18320. + archive_expsym_cmds | \
  18321. + module_cmds | \
  18322. + module_expsym_cmds | \
  18323. + old_archive_from_expsyms_cmds | \
  18324. + export_symbols_cmds | \
  18325. + extract_expsyms_cmds | reload_cmds | finish_cmds | \
  18326. + postinstall_cmds | postuninstall_cmds | \
  18327. + old_postinstall_cmds | old_postuninstall_cmds | \
  18328. + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  18329. + # Double-quote double-evaled strings.
  18330. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  18331. + ;;
  18332. + *)
  18333. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  18334. + ;;
  18335. + esac
  18336. + done
  18337. +
  18338. + case $lt_echo in
  18339. + *'\$0 --fallback-echo"')
  18340. + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  18341. + ;;
  18342. + esac
  18343. +
  18344. +cfgfile="${ofile}T"
  18345. + trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  18346. + $rm -f "$cfgfile"
  18347. + { echo "$as_me:$LINENO: creating $ofile" >&5
  18348. +echo "$as_me: creating $ofile" >&6;}
  18349. +
  18350. + cat <<__EOF__ >> "$cfgfile"
  18351. +#! $SHELL
  18352. +
  18353. +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  18354. +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  18355. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  18356. +#
  18357. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  18358. +# Free Software Foundation, Inc.
  18359. +#
  18360. +# This file is part of GNU Libtool:
  18361. +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  18362. +#
  18363. +# This program is free software; you can redistribute it and/or modify
  18364. +# it under the terms of the GNU General Public License as published by
  18365. +# the Free Software Foundation; either version 2 of the License, or
  18366. +# (at your option) any later version.
  18367. +#
  18368. +# This program is distributed in the hope that it will be useful, but
  18369. +# WITHOUT ANY WARRANTY; without even the implied warranty of
  18370. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  18371. +# General Public License for more details.
  18372. +#
  18373. +# You should have received a copy of the GNU General Public License
  18374. +# along with this program; if not, write to the Free Software
  18375. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18376. +#
  18377. +# As a special exception to the GNU General Public License, if you
  18378. +# distribute this file as part of a program that contains a
  18379. +# configuration script generated by Autoconf, you may include it under
  18380. +# the same distribution terms that you use for the rest of that program.
  18381. +
  18382. +# A sed program that does not truncate output.
  18383. +SED=$lt_SED
  18384. +
  18385. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  18386. +Xsed="$SED -e 1s/^X//"
  18387. +
  18388. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  18389. +# if CDPATH is set.
  18390. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18391. +
  18392. +# The names of the tagged configurations supported by this script.
  18393. +available_tags=
  18394. +
  18395. +# ### BEGIN LIBTOOL CONFIG
  18396. +
  18397. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  18398. +
  18399. +# Shell to use when invoking shell scripts.
  18400. +SHELL=$lt_SHELL
  18401. +
  18402. +# Whether or not to build shared libraries.
  18403. +build_libtool_libs=$enable_shared
  18404. +
  18405. +# Whether or not to build static libraries.
  18406. +build_old_libs=$enable_static
  18407. +
  18408. +# Whether or not to add -lc for building shared libraries.
  18409. +build_libtool_need_lc=$archive_cmds_need_lc
  18410. +
  18411. +# Whether or not to disallow shared libs when runtime libs are static
  18412. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  18413. +
  18414. +# Whether or not to optimize for fast installation.
  18415. +fast_install=$enable_fast_install
  18416. +
  18417. +# The host system.
  18418. +host_alias=$host_alias
  18419. +host=$host
  18420. +host_os=$host_os
  18421. +
  18422. +# The build system.
  18423. +build_alias=$build_alias
  18424. +build=$build
  18425. +build_os=$build_os
  18426. +
  18427. +# An echo program that does not interpret backslashes.
  18428. +echo=$lt_echo
  18429. +
  18430. +# The archiver.
  18431. +AR=$lt_AR
  18432. +AR_FLAGS=$lt_AR_FLAGS
  18433. +
  18434. +# A C compiler.
  18435. +LTCC=$lt_LTCC
  18436. +
  18437. +# LTCC compiler flags.
  18438. +LTCFLAGS=$lt_LTCFLAGS
  18439. +
  18440. +# A language-specific compiler.
  18441. +CC=$lt_compiler
  18442. +
  18443. +# Is the compiler the GNU C compiler?
  18444. +with_gcc=$GCC
  18445. +
  18446. +# An ERE matcher.
  18447. +EGREP=$lt_EGREP
  18448. +
  18449. +# The linker used to build libraries.
  18450. +LD=$lt_LD
  18451. +
  18452. +# Whether we need hard or soft links.
  18453. +LN_S=$lt_LN_S
  18454. +
  18455. +# A BSD-compatible nm program.
  18456. +NM=$lt_NM
  18457. +
  18458. +# A symbol stripping program
  18459. +STRIP=$lt_STRIP
  18460. +
  18461. +# Used to examine libraries when file_magic_cmd begins "file"
  18462. +MAGIC_CMD=$MAGIC_CMD
  18463. +
  18464. +# Used on cygwin: DLL creation program.
  18465. +DLLTOOL="$DLLTOOL"
  18466. +
  18467. +# Used on cygwin: object dumper.
  18468. +OBJDUMP="$OBJDUMP"
  18469. +
  18470. +# Used on cygwin: assembler.
  18471. +AS="$AS"
  18472. +
  18473. +# The name of the directory that contains temporary libtool files.
  18474. +objdir=$objdir
  18475. +
  18476. +# How to create reloadable object files.
  18477. +reload_flag=$lt_reload_flag
  18478. +reload_cmds=$lt_reload_cmds
  18479. +
  18480. +# How to pass a linker flag through the compiler.
  18481. +wl=$lt_lt_prog_compiler_wl
  18482. +
  18483. +# Object file suffix (normally "o").
  18484. +objext="$ac_objext"
  18485. +
  18486. +# Old archive suffix (normally "a").
  18487. +libext="$libext"
  18488. +
  18489. +# Shared library suffix (normally ".so").
  18490. +shrext_cmds='$shrext_cmds'
  18491. +
  18492. +# Executable file suffix (normally "").
  18493. +exeext="$exeext"
  18494. +
  18495. +# Additional compiler flags for building library objects.
  18496. +pic_flag=$lt_lt_prog_compiler_pic
  18497. +pic_mode=$pic_mode
  18498. +
  18499. +# What is the maximum length of a command?
  18500. +max_cmd_len=$lt_cv_sys_max_cmd_len
  18501. +
  18502. +# Does compiler simultaneously support -c and -o options?
  18503. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  18504. +
  18505. +# Must we lock files when doing compilation?
  18506. +need_locks=$lt_need_locks
  18507. +
  18508. +# Do we need the lib prefix for modules?
  18509. +need_lib_prefix=$need_lib_prefix
  18510. +
  18511. +# Do we need a version for libraries?
  18512. +need_version=$need_version
  18513. +
  18514. +# Whether dlopen is supported.
  18515. +dlopen_support=$enable_dlopen
  18516. +
  18517. +# Whether dlopen of programs is supported.
  18518. +dlopen_self=$enable_dlopen_self
  18519. +
  18520. +# Whether dlopen of statically linked programs is supported.
  18521. +dlopen_self_static=$enable_dlopen_self_static
  18522. +
  18523. +# Compiler flag to prevent dynamic linking.
  18524. +link_static_flag=$lt_lt_prog_compiler_static
  18525. +
  18526. +# Compiler flag to turn off builtin functions.
  18527. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  18528. +
  18529. +# Compiler flag to allow reflexive dlopens.
  18530. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  18531. +
  18532. +# Compiler flag to generate shared objects directly from archives.
  18533. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  18534. +
  18535. +# Compiler flag to generate thread-safe objects.
  18536. +thread_safe_flag_spec=$lt_thread_safe_flag_spec
  18537. +
  18538. +# Library versioning type.
  18539. +version_type=$version_type
  18540. +
  18541. +# Format of library name prefix.
  18542. +libname_spec=$lt_libname_spec
  18543. +
  18544. +# List of archive names. First name is the real one, the rest are links.
  18545. +# The last name is the one that the linker finds with -lNAME.
  18546. +library_names_spec=$lt_library_names_spec
  18547. +
  18548. +# The coded name of the library, if different from the real name.
  18549. +soname_spec=$lt_soname_spec
  18550. +
  18551. +# Commands used to build and install an old-style archive.
  18552. +RANLIB=$lt_RANLIB
  18553. +old_archive_cmds=$lt_old_archive_cmds
  18554. +old_postinstall_cmds=$lt_old_postinstall_cmds
  18555. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  18556. +
  18557. +# Create an old-style archive from a shared archive.
  18558. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  18559. +
  18560. +# Create a temporary old-style archive to link instead of a shared archive.
  18561. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  18562. +
  18563. +# Commands used to build and install a shared archive.
  18564. +archive_cmds=$lt_archive_cmds
  18565. +archive_expsym_cmds=$lt_archive_expsym_cmds
  18566. +postinstall_cmds=$lt_postinstall_cmds
  18567. +postuninstall_cmds=$lt_postuninstall_cmds
  18568. +
  18569. +# Commands used to build a loadable module (assumed same as above if empty)
  18570. +module_cmds=$lt_module_cmds
  18571. +module_expsym_cmds=$lt_module_expsym_cmds
  18572. +
  18573. +# Commands to strip libraries.
  18574. +old_striplib=$lt_old_striplib
  18575. +striplib=$lt_striplib
  18576. +
  18577. +# Dependencies to place before the objects being linked to create a
  18578. +# shared library.
  18579. +predep_objects=$lt_predep_objects
  18580. +
  18581. +# Dependencies to place after the objects being linked to create a
  18582. +# shared library.
  18583. +postdep_objects=$lt_postdep_objects
  18584. +
  18585. +# Dependencies to place before the objects being linked to create a
  18586. +# shared library.
  18587. +predeps=$lt_predeps
  18588. +
  18589. +# Dependencies to place after the objects being linked to create a
  18590. +# shared library.
  18591. +postdeps=$lt_postdeps
  18592. +
  18593. +# The library search path used internally by the compiler when linking
  18594. +# a shared library.
  18595. +compiler_lib_search_path=$lt_compiler_lib_search_path
  18596. +
  18597. +# Method to check whether dependent libraries are shared objects.
  18598. +deplibs_check_method=$lt_deplibs_check_method
  18599. +
  18600. +# Command to use when deplibs_check_method == file_magic.
  18601. +file_magic_cmd=$lt_file_magic_cmd
  18602. +
  18603. +# Flag that allows shared libraries with undefined symbols to be built.
  18604. +allow_undefined_flag=$lt_allow_undefined_flag
  18605. +
  18606. +# Flag that forces no undefined symbols.
  18607. +no_undefined_flag=$lt_no_undefined_flag
  18608. +
  18609. +# Commands used to finish a libtool library installation in a directory.
  18610. +finish_cmds=$lt_finish_cmds
  18611. +
  18612. +# Same as above, but a single script fragment to be evaled but not shown.
  18613. +finish_eval=$lt_finish_eval
  18614. +
  18615. +# Take the output of nm and produce a listing of raw symbols and C names.
  18616. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  18617. +
  18618. +# Transform the output of nm in a proper C declaration
  18619. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  18620. +
  18621. +# Transform the output of nm in a C name address pair
  18622. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  18623. +
  18624. +# This is the shared library runtime path variable.
  18625. +runpath_var=$runpath_var
  18626. +
  18627. +# This is the shared library path variable.
  18628. +shlibpath_var=$shlibpath_var
  18629. +
  18630. +# Is shlibpath searched before the hard-coded library search path?
  18631. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  18632. +
  18633. +# How to hardcode a shared library path into an executable.
  18634. +hardcode_action=$hardcode_action
  18635. +
  18636. +# Whether we should hardcode library paths into libraries.
  18637. +hardcode_into_libs=$hardcode_into_libs
  18638. +
  18639. +# Flag to hardcode \$libdir into a binary during linking.
  18640. +# This must work even if \$libdir does not exist.
  18641. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  18642. +
  18643. +# If ld is used when linking, flag to hardcode \$libdir into
  18644. +# a binary during linking. This must work even if \$libdir does
  18645. +# not exist.
  18646. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  18647. +
  18648. +# Whether we need a single -rpath flag with a separated argument.
  18649. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  18650. +
  18651. +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  18652. +# resulting binary.
  18653. +hardcode_direct=$hardcode_direct
  18654. +
  18655. +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  18656. +# resulting binary.
  18657. +hardcode_minus_L=$hardcode_minus_L
  18658. +
  18659. +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  18660. +# the resulting binary.
  18661. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  18662. +
  18663. +# Set to yes if building a shared library automatically hardcodes DIR into the library
  18664. +# and all subsequent libraries and executables linked against it.
  18665. +hardcode_automatic=$hardcode_automatic
  18666. +
  18667. +# Variables whose values should be saved in libtool wrapper scripts and
  18668. +# restored at relink time.
  18669. +variables_saved_for_relink="$variables_saved_for_relink"
  18670. +
  18671. +# Whether libtool must link a program against all its dependency libraries.
  18672. +link_all_deplibs=$link_all_deplibs
  18673. +
  18674. +# Compile-time system search path for libraries
  18675. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  18676. +
  18677. +# Run-time system search path for libraries
  18678. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  18679. +
  18680. +# Fix the shell variable \$srcfile for the compiler.
  18681. +fix_srcfile_path="$fix_srcfile_path"
  18682. +
  18683. +# Set to yes if exported symbols are required.
  18684. +always_export_symbols=$always_export_symbols
  18685. +
  18686. +# The commands to list exported symbols.
  18687. +export_symbols_cmds=$lt_export_symbols_cmds
  18688. +
  18689. +# The commands to extract the exported symbol list from a shared archive.
  18690. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  18691. +
  18692. +# Symbols that should not be listed in the preloaded symbols.
  18693. +exclude_expsyms=$lt_exclude_expsyms
  18694. +
  18695. +# Symbols that must always be exported.
  18696. +include_expsyms=$lt_include_expsyms
  18697. +
  18698. +# ### END LIBTOOL CONFIG
  18699. +
  18700. +__EOF__
  18701. +
  18702. +
  18703. + case $host_os in
  18704. + aix3*)
  18705. + cat <<\EOF >> "$cfgfile"
  18706. +
  18707. +# AIX sometimes has problems with the GCC collect2 program. For some
  18708. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  18709. +# vanish in a puff of smoke.
  18710. +if test "X${COLLECT_NAMES+set}" != Xset; then
  18711. + COLLECT_NAMES=
  18712. + export COLLECT_NAMES
  18713. +fi
  18714. +EOF
  18715. + ;;
  18716. + esac
  18717. +
  18718. + # We use sed instead of cat because bash on DJGPP gets confused if
  18719. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  18720. + # text mode, it properly converts lines to CR/LF. This bash problem
  18721. + # is reportedly fixed, but why not run on old versions too?
  18722. + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  18723. +
  18724. + mv -f "$cfgfile" "$ofile" || \
  18725. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  18726. + chmod +x "$ofile"
  18727. +
  18728. +else
  18729. + # If there is no Makefile yet, we rely on a make rule to execute
  18730. + # `config.status --recheck' to rerun these tests and create the
  18731. + # libtool script then.
  18732. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  18733. + if test -f "$ltmain_in"; then
  18734. + test -f Makefile && make "$ltmain"
  18735. + fi
  18736. +fi
  18737. +
  18738. +
  18739. +ac_ext=c
  18740. +ac_cpp='$CPP $CPPFLAGS'
  18741. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18742. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18743. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18744. +
  18745. +CC="$lt_save_CC"
  18746. +
  18747. +
  18748. +# Check whether --with-tags or --without-tags was given.
  18749. +if test "${with_tags+set}" = set; then
  18750. + withval="$with_tags"
  18751. + tagnames="$withval"
  18752. +fi;
  18753. +
  18754. +if test -f "$ltmain" && test -n "$tagnames"; then
  18755. + if test ! -f "${ofile}"; then
  18756. + { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  18757. +echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  18758. + fi
  18759. +
  18760. + if test -z "$LTCC"; then
  18761. + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  18762. + if test -z "$LTCC"; then
  18763. + { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  18764. +echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  18765. + else
  18766. + { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  18767. +echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  18768. + fi
  18769. + fi
  18770. + if test -z "$LTCFLAGS"; then
  18771. + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  18772. + fi
  18773. +
  18774. + # Extract list of available tagged configurations in $ofile.
  18775. + # Note that this assumes the entire list is on one line.
  18776. + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  18777. +
  18778. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  18779. + for tagname in $tagnames; do
  18780. + IFS="$lt_save_ifs"
  18781. + # Check whether tagname contains only valid characters
  18782. + case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  18783. + "") ;;
  18784. + *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  18785. +echo "$as_me: error: invalid tag name: $tagname" >&2;}
  18786. + { (exit 1); exit 1; }; }
  18787. + ;;
  18788. + esac
  18789. +
  18790. + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  18791. + then
  18792. + { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  18793. +echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  18794. + { (exit 1); exit 1; }; }
  18795. + fi
  18796. +
  18797. + # Update the list of available tags.
  18798. + if test -n "$tagname"; then
  18799. + echo appending configuration tag \"$tagname\" to $ofile
  18800. +
  18801. + case $tagname in
  18802. + CXX)
  18803. + if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  18804. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  18805. + (test "X$CXX" != "Xg++"))) ; then
  18806. + ac_ext=cc
  18807. +ac_cpp='$CXXCPP $CPPFLAGS'
  18808. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18809. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18810. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18811. +
  18812. +
  18813. +
  18814. +
  18815. +archive_cmds_need_lc_CXX=no
  18816. +allow_undefined_flag_CXX=
  18817. +always_export_symbols_CXX=no
  18818. +archive_expsym_cmds_CXX=
  18819. +export_dynamic_flag_spec_CXX=
  18820. +hardcode_direct_CXX=no
  18821. +hardcode_libdir_flag_spec_CXX=
  18822. +hardcode_libdir_flag_spec_ld_CXX=
  18823. +hardcode_libdir_separator_CXX=
  18824. +hardcode_minus_L_CXX=no
  18825. +hardcode_shlibpath_var_CXX=unsupported
  18826. +hardcode_automatic_CXX=no
  18827. +module_cmds_CXX=
  18828. +module_expsym_cmds_CXX=
  18829. +link_all_deplibs_CXX=unknown
  18830. +old_archive_cmds_CXX=$old_archive_cmds
  18831. +no_undefined_flag_CXX=
  18832. +whole_archive_flag_spec_CXX=
  18833. +enable_shared_with_static_runtimes_CXX=no
  18834. +
  18835. +# Dependencies to place before and after the object being linked:
  18836. +predep_objects_CXX=
  18837. +postdep_objects_CXX=
  18838. +predeps_CXX=
  18839. +postdeps_CXX=
  18840. +compiler_lib_search_path_CXX=
  18841. +
  18842. +# Source file extension for C++ test sources.
  18843. +ac_ext=cpp
  18844. +
  18845. +# Object file extension for compiled C++ test sources.
  18846. +objext=o
  18847. +objext_CXX=$objext
  18848. +
  18849. +# Code to be used in simple compile tests
  18850. +lt_simple_compile_test_code="int some_variable = 0;\n"
  18851. +
  18852. +# Code to be used in simple link tests
  18853. +lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  18854. +
  18855. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  18856. +
  18857. +# If no C compiler was specified, use CC.
  18858. +LTCC=${LTCC-"$CC"}
  18859. +
  18860. +# If no C compiler flags were specified, use CFLAGS.
  18861. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  18862. +
  18863. +# Allow CC to be a program name with arguments.
  18864. +compiler=$CC
  18865. +
  18866. +
  18867. +# save warnings/boilerplate of simple test code
  18868. +ac_outfile=conftest.$ac_objext
  18869. +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  18870. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  18871. +_lt_compiler_boilerplate=`cat conftest.err`
  18872. +$rm conftest*
  18873. +
  18874. +ac_outfile=conftest.$ac_objext
  18875. +printf "$lt_simple_link_test_code" >conftest.$ac_ext
  18876. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  18877. +_lt_linker_boilerplate=`cat conftest.err`
  18878. +$rm conftest*
  18879. +
  18880. +
  18881. +# Allow CC to be a program name with arguments.
  18882. +lt_save_CC=$CC
  18883. +lt_save_LD=$LD
  18884. +lt_save_GCC=$GCC
  18885. +GCC=$GXX
  18886. +lt_save_with_gnu_ld=$with_gnu_ld
  18887. +lt_save_path_LD=$lt_cv_path_LD
  18888. +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  18889. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  18890. +else
  18891. + $as_unset lt_cv_prog_gnu_ld
  18892. +fi
  18893. +if test -n "${lt_cv_path_LDCXX+set}"; then
  18894. + lt_cv_path_LD=$lt_cv_path_LDCXX
  18895. +else
  18896. + $as_unset lt_cv_path_LD
  18897. +fi
  18898. +test -z "${LDCXX+set}" || LD=$LDCXX
  18899. +CC=${CXX-"c++"}
  18900. +compiler=$CC
  18901. +compiler_CXX=$CC
  18902. +for cc_temp in $compiler""; do
  18903. + case $cc_temp in
  18904. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  18905. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  18906. + \-*) ;;
  18907. + *) break;;
  18908. + esac
  18909. +done
  18910. +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  18911. +
  18912. +
  18913. +# We don't want -fno-exception wen compiling C++ code, so set the
  18914. +# no_builtin_flag separately
  18915. +if test "$GXX" = yes; then
  18916. + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  18917. +else
  18918. + lt_prog_compiler_no_builtin_flag_CXX=
  18919. +fi
  18920. +
  18921. +if test "$GXX" = yes; then
  18922. + # Set up default GNU C++ configuration
  18923. +
  18924. +
  18925. +# Check whether --with-gnu-ld or --without-gnu-ld was given.
  18926. +if test "${with_gnu_ld+set}" = set; then
  18927. + withval="$with_gnu_ld"
  18928. + test "$withval" = no || with_gnu_ld=yes
  18929. +else
  18930. + with_gnu_ld=no
  18931. +fi;
  18932. +ac_prog=ld
  18933. +if test "$GCC" = yes; then
  18934. + # Check if gcc -print-prog-name=ld gives a path.
  18935. + echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  18936. +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  18937. + case $host in
  18938. + *-*-mingw*)
  18939. + # gcc leaves a trailing carriage return which upsets mingw
  18940. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  18941. + *)
  18942. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  18943. + esac
  18944. + case $ac_prog in
  18945. + # Accept absolute paths.
  18946. + [\\/]* | ?:[\\/]*)
  18947. + re_direlt='/[^/][^/]*/\.\./'
  18948. + # Canonicalize the pathname of ld
  18949. + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  18950. + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  18951. + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  18952. + done
  18953. + test -z "$LD" && LD="$ac_prog"
  18954. + ;;
  18955. + "")
  18956. + # If it fails, then pretend we aren't using GCC.
  18957. + ac_prog=ld
  18958. + ;;
  18959. + *)
  18960. + # If it is relative, then search for the first ld in PATH.
  18961. + with_gnu_ld=unknown
  18962. + ;;
  18963. + esac
  18964. +elif test "$with_gnu_ld" = yes; then
  18965. + echo "$as_me:$LINENO: checking for GNU ld" >&5
  18966. +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  18967. +else
  18968. + echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  18969. +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  18970. +fi
  18971. +if test "${lt_cv_path_LD+set}" = set; then
  18972. + echo $ECHO_N "(cached) $ECHO_C" >&6
  18973. +else
  18974. + if test -z "$LD"; then
  18975. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  18976. + for ac_dir in $PATH; do
  18977. + IFS="$lt_save_ifs"
  18978. + test -z "$ac_dir" && ac_dir=.
  18979. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  18980. + lt_cv_path_LD="$ac_dir/$ac_prog"
  18981. + # Check to see if the program is GNU ld. I'd rather use --version,
  18982. + # but apparently some variants of GNU ld only accept -v.
  18983. + # Break only if it was the GNU/non-GNU ld that we prefer.
  18984. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  18985. + *GNU* | *'with BFD'*)
  18986. + test "$with_gnu_ld" != no && break
  18987. + ;;
  18988. + *)
  18989. + test "$with_gnu_ld" != yes && break
  18990. + ;;
  18991. + esac
  18992. + fi
  18993. + done
  18994. + IFS="$lt_save_ifs"
  18995. +else
  18996. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  18997. +fi
  18998. +fi
  18999. +
  19000. +LD="$lt_cv_path_LD"
  19001. +if test -n "$LD"; then
  19002. + echo "$as_me:$LINENO: result: $LD" >&5
  19003. +echo "${ECHO_T}$LD" >&6
  19004. +else
  19005. + echo "$as_me:$LINENO: result: no" >&5
  19006. +echo "${ECHO_T}no" >&6
  19007. +fi
  19008. +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  19009. +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  19010. + { (exit 1); exit 1; }; }
  19011. +echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  19012. +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  19013. +if test "${lt_cv_prog_gnu_ld+set}" = set; then
  19014. + echo $ECHO_N "(cached) $ECHO_C" >&6
  19015. +else
  19016. + # I'd rather use --version here, but apparently some GNU lds only accept -v.
  19017. +case `$LD -v 2>&1 </dev/null` in
  19018. +*GNU* | *'with BFD'*)
  19019. + lt_cv_prog_gnu_ld=yes
  19020. + ;;
  19021. +*)
  19022. + lt_cv_prog_gnu_ld=no
  19023. + ;;
  19024. +esac
  19025. +fi
  19026. +echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  19027. +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  19028. +with_gnu_ld=$lt_cv_prog_gnu_ld
  19029. +
  19030. +
  19031. +
  19032. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  19033. + # archiving commands below assume that GNU ld is being used.
  19034. + if test "$with_gnu_ld" = yes; then
  19035. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  19036. + archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  19037. +
  19038. + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  19039. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  19040. +
  19041. + # If archive_cmds runs LD, not CC, wlarc should be empty
  19042. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  19043. + # investigate it a little bit more. (MM)
  19044. + wlarc='${wl}'
  19045. +
  19046. + # ancient GNU ld didn't support --whole-archive et. al.
  19047. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  19048. + grep 'no-whole-archive' > /dev/null; then
  19049. + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  19050. + else
  19051. + whole_archive_flag_spec_CXX=
  19052. + fi
  19053. + else
  19054. + with_gnu_ld=no
  19055. + wlarc=
  19056. +
  19057. + # A generic and very simple default shared library creation
  19058. + # command for GNU C++ for the case where it uses the native
  19059. + # linker, instead of GNU ld. If possible, this setting should
  19060. + # overridden to take advantage of the native linker features on
  19061. + # the platform it is being used on.
  19062. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  19063. + fi
  19064. +
  19065. + # Commands to make compiler produce verbose output that lists
  19066. + # what "hidden" libraries, object files and flags are used when
  19067. + # linking a shared library.
  19068. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  19069. +
  19070. +else
  19071. + GXX=no
  19072. + with_gnu_ld=no
  19073. + wlarc=
  19074. +fi
  19075. +
  19076. +# PORTME: fill in a description of your system's C++ link characteristics
  19077. +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  19078. +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  19079. +ld_shlibs_CXX=yes
  19080. +case $host_os in
  19081. + aix3*)
  19082. + # FIXME: insert proper C++ library support
  19083. + ld_shlibs_CXX=no
  19084. + ;;
  19085. + aix4* | aix5*)
  19086. + if test "$host_cpu" = ia64; then
  19087. + # On IA64, the linker does run time linking by default, so we don't
  19088. + # have to do anything special.
  19089. + aix_use_runtimelinking=no
  19090. + exp_sym_flag='-Bexport'
  19091. + no_entry_flag=""
  19092. + else
  19093. + aix_use_runtimelinking=no
  19094. +
  19095. + # Test if we are trying to use run time linking or normal
  19096. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  19097. + # need to do runtime linking.
  19098. + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  19099. + for ld_flag in $LDFLAGS; do
  19100. + case $ld_flag in
  19101. + *-brtl*)
  19102. + aix_use_runtimelinking=yes
  19103. + break
  19104. + ;;
  19105. + esac
  19106. + done
  19107. + ;;
  19108. + esac
  19109. +
  19110. + exp_sym_flag='-bexport'
  19111. + no_entry_flag='-bnoentry'
  19112. + fi
  19113. +
  19114. + # When large executables or shared objects are built, AIX ld can
  19115. + # have problems creating the table of contents. If linking a library
  19116. + # or program results in "error TOC overflow" add -mminimal-toc to
  19117. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  19118. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  19119. +
  19120. + archive_cmds_CXX=''
  19121. + hardcode_direct_CXX=yes
  19122. + hardcode_libdir_separator_CXX=':'
  19123. + link_all_deplibs_CXX=yes
  19124. +
  19125. + if test "$GXX" = yes; then
  19126. + case $host_os in aix4.[012]|aix4.[012].*)
  19127. + # We only want to do this on AIX 4.2 and lower, the check
  19128. + # below for broken collect2 doesn't work under 4.3+
  19129. + collect2name=`${CC} -print-prog-name=collect2`
  19130. + if test -f "$collect2name" && \
  19131. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  19132. + then
  19133. + # We have reworked collect2
  19134. + hardcode_direct_CXX=yes
  19135. + else
  19136. + # We have old collect2
  19137. + hardcode_direct_CXX=unsupported
  19138. + # It fails to find uninstalled libraries when the uninstalled
  19139. + # path is not listed in the libpath. Setting hardcode_minus_L
  19140. + # to unsupported forces relinking
  19141. + hardcode_minus_L_CXX=yes
  19142. + hardcode_libdir_flag_spec_CXX='-L$libdir'
  19143. + hardcode_libdir_separator_CXX=
  19144. + fi
  19145. + ;;
  19146. + esac
  19147. + shared_flag='-shared'
  19148. + if test "$aix_use_runtimelinking" = yes; then
  19149. + shared_flag="$shared_flag "'${wl}-G'
  19150. + fi
  19151. + else
  19152. + # not using gcc
  19153. + if test "$host_cpu" = ia64; then
  19154. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  19155. + # chokes on -Wl,-G. The following line is correct:
  19156. + shared_flag='-G'
  19157. + else
  19158. + if test "$aix_use_runtimelinking" = yes; then
  19159. + shared_flag='${wl}-G'
  19160. + else
  19161. + shared_flag='${wl}-bM:SRE'
  19162. + fi
  19163. + fi
  19164. + fi
  19165. +
  19166. + # It seems that -bexpall does not export symbols beginning with
  19167. + # underscore (_), so it is better to generate a list of symbols to export.
  19168. + always_export_symbols_CXX=yes
  19169. + if test "$aix_use_runtimelinking" = yes; then
  19170. + # Warning - without using the other runtime loading flags (-brtl),
  19171. + # -berok will link without error, but may produce a broken library.
  19172. + allow_undefined_flag_CXX='-berok'
  19173. + # Determine the default libpath from the value encoded in an empty executable.
  19174. + cat >conftest.$ac_ext <<_ACEOF
  19175. +/* confdefs.h. */
  19176. +_ACEOF
  19177. +cat confdefs.h >>conftest.$ac_ext
  19178. +cat >>conftest.$ac_ext <<_ACEOF
  19179. +/* end confdefs.h. */
  19180. +
  19181. +int
  19182. +main ()
  19183. +{
  19184. +
  19185. + ;
  19186. + return 0;
  19187. +}
  19188. +_ACEOF
  19189. +rm -f conftest.$ac_objext conftest$ac_exeext
  19190. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19191. + (eval $ac_link) 2>conftest.er1
  19192. + ac_status=$?
  19193. + grep -v '^ *+' conftest.er1 >conftest.err
  19194. + rm -f conftest.er1
  19195. + cat conftest.err >&5
  19196. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19197. + (exit $ac_status); } &&
  19198. + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  19199. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19200. + (eval $ac_try) 2>&5
  19201. + ac_status=$?
  19202. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19203. + (exit $ac_status); }; } &&
  19204. + { ac_try='test -s conftest$ac_exeext'
  19205. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19206. + (eval $ac_try) 2>&5
  19207. + ac_status=$?
  19208. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19209. + (exit $ac_status); }; }; then
  19210. +
  19211. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  19212. +}'`
  19213. +# Check for a 64-bit object if we didn't find anything.
  19214. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  19215. +}'`; fi
  19216. +else
  19217. + echo "$as_me: failed program was:" >&5
  19218. +sed 's/^/| /' conftest.$ac_ext >&5
  19219. +
  19220. +fi
  19221. +rm -f conftest.err conftest.$ac_objext \
  19222. + conftest$ac_exeext conftest.$ac_ext
  19223. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  19224. +
  19225. + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  19226. +
  19227. + archive_expsym_cmds_CXX="\$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"
  19228. + else
  19229. + if test "$host_cpu" = ia64; then
  19230. + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  19231. + allow_undefined_flag_CXX="-z nodefs"
  19232. + archive_expsym_cmds_CXX="\$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"
  19233. + else
  19234. + # Determine the default libpath from the value encoded in an empty executable.
  19235. + cat >conftest.$ac_ext <<_ACEOF
  19236. +/* confdefs.h. */
  19237. +_ACEOF
  19238. +cat confdefs.h >>conftest.$ac_ext
  19239. +cat >>conftest.$ac_ext <<_ACEOF
  19240. +/* end confdefs.h. */
  19241. +
  19242. +int
  19243. +main ()
  19244. +{
  19245. +
  19246. + ;
  19247. + return 0;
  19248. +}
  19249. +_ACEOF
  19250. +rm -f conftest.$ac_objext conftest$ac_exeext
  19251. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19252. + (eval $ac_link) 2>conftest.er1
  19253. + ac_status=$?
  19254. + grep -v '^ *+' conftest.er1 >conftest.err
  19255. + rm -f conftest.er1
  19256. + cat conftest.err >&5
  19257. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19258. + (exit $ac_status); } &&
  19259. + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  19260. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19261. + (eval $ac_try) 2>&5
  19262. + ac_status=$?
  19263. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19264. + (exit $ac_status); }; } &&
  19265. + { ac_try='test -s conftest$ac_exeext'
  19266. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19267. + (eval $ac_try) 2>&5
  19268. + ac_status=$?
  19269. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19270. + (exit $ac_status); }; }; then
  19271. +
  19272. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  19273. +}'`
  19274. +# Check for a 64-bit object if we didn't find anything.
  19275. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  19276. +}'`; fi
  19277. +else
  19278. + echo "$as_me: failed program was:" >&5
  19279. +sed 's/^/| /' conftest.$ac_ext >&5
  19280. +
  19281. +fi
  19282. +rm -f conftest.err conftest.$ac_objext \
  19283. + conftest$ac_exeext conftest.$ac_ext
  19284. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  19285. +
  19286. + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  19287. + # Warning - without using the other run time loading flags,
  19288. + # -berok will link without error, but may produce a broken library.
  19289. + no_undefined_flag_CXX=' ${wl}-bernotok'
  19290. + allow_undefined_flag_CXX=' ${wl}-berok'
  19291. + # Exported symbols can be pulled into shared objects from archives
  19292. + whole_archive_flag_spec_CXX='$convenience'
  19293. + archive_cmds_need_lc_CXX=yes
  19294. + # This is similar to how AIX traditionally builds its shared libraries.
  19295. + archive_expsym_cmds_CXX="\$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'
  19296. + fi
  19297. + fi
  19298. + ;;
  19299. +
  19300. + beos*)
  19301. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  19302. + allow_undefined_flag_CXX=unsupported
  19303. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  19304. + # support --undefined. This deserves some investigation. FIXME
  19305. + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  19306. + else
  19307. + ld_shlibs_CXX=no
  19308. + fi
  19309. + ;;
  19310. +
  19311. + chorus*)
  19312. + case $cc_basename in
  19313. + *)
  19314. + # FIXME: insert proper C++ library support
  19315. + ld_shlibs_CXX=no
  19316. + ;;
  19317. + esac
  19318. + ;;
  19319. +
  19320. + cygwin* | mingw* | pw32*)
  19321. + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  19322. + # as there is no search path for DLLs.
  19323. + hardcode_libdir_flag_spec_CXX='-L$libdir'
  19324. + allow_undefined_flag_CXX=unsupported
  19325. + always_export_symbols_CXX=no
  19326. + enable_shared_with_static_runtimes_CXX=yes
  19327. +
  19328. + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  19329. + archive_cmds_CXX='$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'
  19330. + # If the export-symbols file already is a .def file (1st line
  19331. + # is EXPORTS), use it as is; otherwise, prepend...
  19332. + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  19333. + cp $export_symbols $output_objdir/$soname.def;
  19334. + else
  19335. + echo EXPORTS > $output_objdir/$soname.def;
  19336. + cat $export_symbols >> $output_objdir/$soname.def;
  19337. + fi~
  19338. + $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'
  19339. + else
  19340. + ld_shlibs_CXX=no
  19341. + fi
  19342. + ;;
  19343. + darwin* | rhapsody*)
  19344. + case $host_os in
  19345. + rhapsody* | darwin1.[012])
  19346. + allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  19347. + ;;
  19348. + *) # Darwin 1.3 on
  19349. + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  19350. + allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  19351. + else
  19352. + case ${MACOSX_DEPLOYMENT_TARGET} in
  19353. + 10.[012])
  19354. + allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  19355. + ;;
  19356. + 10.*)
  19357. + allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  19358. + ;;
  19359. + esac
  19360. + fi
  19361. + ;;
  19362. + esac
  19363. + archive_cmds_need_lc_CXX=no
  19364. + hardcode_direct_CXX=no
  19365. + hardcode_automatic_CXX=yes
  19366. + hardcode_shlibpath_var_CXX=unsupported
  19367. + whole_archive_flag_spec_CXX=''
  19368. + link_all_deplibs_CXX=yes
  19369. +
  19370. + if test "$GXX" = yes ; then
  19371. + lt_int_apple_cc_single_mod=no
  19372. + output_verbose_link_cmd='echo'
  19373. + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  19374. + lt_int_apple_cc_single_mod=yes
  19375. + fi
  19376. + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  19377. + archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  19378. + else
  19379. + archive_cmds_CXX='$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'
  19380. + fi
  19381. + module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  19382. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  19383. + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  19384. + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  19385. + else
  19386. + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  19387. + fi
  19388. + module_expsym_cmds_CXX='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}'
  19389. + else
  19390. + case $cc_basename in
  19391. + xlc*)
  19392. + output_verbose_link_cmd='echo'
  19393. + archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  19394. + module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  19395. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  19396. + archive_expsym_cmds_CXX='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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  19397. + module_expsym_cmds_CXX='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}'
  19398. + ;;
  19399. + *)
  19400. + ld_shlibs_CXX=no
  19401. + ;;
  19402. + esac
  19403. + fi
  19404. + ;;
  19405. +
  19406. + dgux*)
  19407. + case $cc_basename in
  19408. + ec++*)
  19409. + # FIXME: insert proper C++ library support
  19410. + ld_shlibs_CXX=no
  19411. + ;;
  19412. + ghcx*)
  19413. + # Green Hills C++ Compiler
  19414. + # FIXME: insert proper C++ library support
  19415. + ld_shlibs_CXX=no
  19416. + ;;
  19417. + *)
  19418. + # FIXME: insert proper C++ library support
  19419. + ld_shlibs_CXX=no
  19420. + ;;
  19421. + esac
  19422. + ;;
  19423. + freebsd[12]*)
  19424. + # C++ shared libraries reported to be fairly broken before switch to ELF
  19425. + ld_shlibs_CXX=no
  19426. + ;;
  19427. + freebsd-elf*)
  19428. + archive_cmds_need_lc_CXX=no
  19429. + ;;
  19430. + freebsd* | kfreebsd*-gnu | dragonfly*)
  19431. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  19432. + # conventions
  19433. + ld_shlibs_CXX=yes
  19434. + ;;
  19435. + gnu*)
  19436. + ;;
  19437. + hpux9*)
  19438. + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  19439. + hardcode_libdir_separator_CXX=:
  19440. + export_dynamic_flag_spec_CXX='${wl}-E'
  19441. + hardcode_direct_CXX=yes
  19442. + hardcode_minus_L_CXX=yes # Not in the search PATH,
  19443. + # but as the default
  19444. + # location of the library.
  19445. +
  19446. + case $cc_basename in
  19447. + CC*)
  19448. + # FIXME: insert proper C++ library support
  19449. + ld_shlibs_CXX=no
  19450. + ;;
  19451. + aCC*)
  19452. + archive_cmds_CXX='$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'
  19453. + # Commands to make compiler produce verbose output that lists
  19454. + # what "hidden" libraries, object files and flags are used when
  19455. + # linking a shared library.
  19456. + #
  19457. + # There doesn't appear to be a way to prevent this compiler from
  19458. + # explicitly linking system object files so we need to strip them
  19459. + # from the output so that they don't get included in the library
  19460. + # dependencies.
  19461. + 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'
  19462. + ;;
  19463. + *)
  19464. + if test "$GXX" = yes; then
  19465. + archive_cmds_CXX='$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'
  19466. + else
  19467. + # FIXME: insert proper C++ library support
  19468. + ld_shlibs_CXX=no
  19469. + fi
  19470. + ;;
  19471. + esac
  19472. + ;;
  19473. + hpux10*|hpux11*)
  19474. + if test $with_gnu_ld = no; then
  19475. + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  19476. + hardcode_libdir_separator_CXX=:
  19477. +
  19478. + case $host_cpu in
  19479. + hppa*64*|ia64*)
  19480. + hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  19481. + ;;
  19482. + *)
  19483. + export_dynamic_flag_spec_CXX='${wl}-E'
  19484. + ;;
  19485. + esac
  19486. + fi
  19487. + case $host_cpu in
  19488. + hppa*64*|ia64*)
  19489. + hardcode_direct_CXX=no
  19490. + hardcode_shlibpath_var_CXX=no
  19491. + ;;
  19492. + *)
  19493. + hardcode_direct_CXX=yes
  19494. + hardcode_minus_L_CXX=yes # Not in the search PATH,
  19495. + # but as the default
  19496. + # location of the library.
  19497. + ;;
  19498. + esac
  19499. +
  19500. + case $cc_basename in
  19501. + CC*)
  19502. + # FIXME: insert proper C++ library support
  19503. + ld_shlibs_CXX=no
  19504. + ;;
  19505. + aCC*)
  19506. + case $host_cpu in
  19507. + hppa*64*)
  19508. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  19509. + ;;
  19510. + ia64*)
  19511. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  19512. + ;;
  19513. + *)
  19514. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  19515. + ;;
  19516. + esac
  19517. + # Commands to make compiler produce verbose output that lists
  19518. + # what "hidden" libraries, object files and flags are used when
  19519. + # linking a shared library.
  19520. + #
  19521. + # There doesn't appear to be a way to prevent this compiler from
  19522. + # explicitly linking system object files so we need to strip them
  19523. + # from the output so that they don't get included in the library
  19524. + # dependencies.
  19525. + 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'
  19526. + ;;
  19527. + *)
  19528. + if test "$GXX" = yes; then
  19529. + if test $with_gnu_ld = no; then
  19530. + case $host_cpu in
  19531. + hppa*64*)
  19532. + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  19533. + ;;
  19534. + ia64*)
  19535. + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  19536. + ;;
  19537. + *)
  19538. + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  19539. + ;;
  19540. + esac
  19541. + fi
  19542. + else
  19543. + # FIXME: insert proper C++ library support
  19544. + ld_shlibs_CXX=no
  19545. + fi
  19546. + ;;
  19547. + esac
  19548. + ;;
  19549. + interix3*)
  19550. + hardcode_direct_CXX=no
  19551. + hardcode_shlibpath_var_CXX=no
  19552. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  19553. + export_dynamic_flag_spec_CXX='${wl}-E'
  19554. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  19555. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  19556. + # default) and relocated if they conflict, which is a slow very memory
  19557. + # consuming and fragmenting process. To avoid this, we pick a random,
  19558. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  19559. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  19560. + archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  19561. + archive_expsym_cmds_CXX='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'
  19562. + ;;
  19563. + irix5* | irix6*)
  19564. + case $cc_basename in
  19565. + CC*)
  19566. + # SGI C++
  19567. + archive_cmds_CXX='$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'
  19568. +
  19569. + # Archives containing C++ object files must be created using
  19570. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  19571. + # necessary to make sure instantiated templates are included
  19572. + # in the archive.
  19573. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  19574. + ;;
  19575. + *)
  19576. + if test "$GXX" = yes; then
  19577. + if test "$with_gnu_ld" = no; then
  19578. + archive_cmds_CXX='$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'
  19579. + else
  19580. + archive_cmds_CXX='$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'
  19581. + fi
  19582. + fi
  19583. + link_all_deplibs_CXX=yes
  19584. + ;;
  19585. + esac
  19586. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  19587. + hardcode_libdir_separator_CXX=:
  19588. + ;;
  19589. + linux*)
  19590. + case $cc_basename in
  19591. + KCC*)
  19592. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  19593. +
  19594. + # KCC will only create a shared library if the output file
  19595. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  19596. + # to its proper name (with version) after linking.
  19597. + archive_cmds_CXX='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'
  19598. + archive_expsym_cmds_CXX='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'
  19599. + # Commands to make compiler produce verbose output that lists
  19600. + # what "hidden" libraries, object files and flags are used when
  19601. + # linking a shared library.
  19602. + #
  19603. + # There doesn't appear to be a way to prevent this compiler from
  19604. + # explicitly linking system object files so we need to strip them
  19605. + # from the output so that they don't get included in the library
  19606. + # dependencies.
  19607. + 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'
  19608. +
  19609. + hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  19610. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  19611. +
  19612. + # Archives containing C++ object files must be created using
  19613. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  19614. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  19615. + ;;
  19616. + icpc*)
  19617. + # Intel C++
  19618. + with_gnu_ld=yes
  19619. + # version 8.0 and above of icpc choke on multiply defined symbols
  19620. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  19621. + # earlier do not add the objects themselves.
  19622. + case `$CC -V 2>&1` in
  19623. + *"Version 7."*)
  19624. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  19625. + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  19626. + ;;
  19627. + *) # Version 8.0 or newer
  19628. + tmp_idyn=
  19629. + case $host_cpu in
  19630. + ia64*) tmp_idyn=' -i_dynamic';;
  19631. + esac
  19632. + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  19633. + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  19634. + ;;
  19635. + esac
  19636. + archive_cmds_need_lc_CXX=no
  19637. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  19638. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  19639. + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  19640. + ;;
  19641. + pgCC*)
  19642. + # Portland Group C++ compiler
  19643. + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  19644. + archive_expsym_cmds_CXX='$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'
  19645. +
  19646. + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  19647. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  19648. + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  19649. + ;;
  19650. + cxx*)
  19651. + # Compaq C++
  19652. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  19653. + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  19654. +
  19655. + runpath_var=LD_RUN_PATH
  19656. + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  19657. + hardcode_libdir_separator_CXX=:
  19658. +
  19659. + # Commands to make compiler produce verbose output that lists
  19660. + # what "hidden" libraries, object files and flags are used when
  19661. + # linking a shared library.
  19662. + #
  19663. + # There doesn't appear to be a way to prevent this compiler from
  19664. + # explicitly linking system object files so we need to strip them
  19665. + # from the output so that they don't get included in the library
  19666. + # dependencies.
  19667. + 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'
  19668. + ;;
  19669. + esac
  19670. + ;;
  19671. + lynxos*)
  19672. + # FIXME: insert proper C++ library support
  19673. + ld_shlibs_CXX=no
  19674. + ;;
  19675. + m88k*)
  19676. + # FIXME: insert proper C++ library support
  19677. + ld_shlibs_CXX=no
  19678. + ;;
  19679. + mvs*)
  19680. + case $cc_basename in
  19681. + cxx*)
  19682. + # FIXME: insert proper C++ library support
  19683. + ld_shlibs_CXX=no
  19684. + ;;
  19685. + *)
  19686. + # FIXME: insert proper C++ library support
  19687. + ld_shlibs_CXX=no
  19688. + ;;
  19689. + esac
  19690. + ;;
  19691. + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  19692. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  19693. + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  19694. + wlarc=
  19695. + hardcode_libdir_flag_spec_CXX='-R$libdir'
  19696. + hardcode_direct_CXX=yes
  19697. + hardcode_shlibpath_var_CXX=no
  19698. + fi
  19699. + # Workaround some broken pre-1.5 toolchains
  19700. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  19701. + ;;
  19702. + openbsd2*)
  19703. + # C++ shared libraries are fairly broken
  19704. + ld_shlibs_CXX=no
  19705. + ;;
  19706. + openbsd*)
  19707. + hardcode_direct_CXX=yes
  19708. + hardcode_shlibpath_var_CXX=no
  19709. + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  19710. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  19711. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  19712. + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  19713. + export_dynamic_flag_spec_CXX='${wl}-E'
  19714. + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  19715. + fi
  19716. + output_verbose_link_cmd='echo'
  19717. + ;;
  19718. + osf3*)
  19719. + case $cc_basename in
  19720. + KCC*)
  19721. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  19722. +
  19723. + # KCC will only create a shared library if the output file
  19724. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  19725. + # to its proper name (with version) after linking.
  19726. + archive_cmds_CXX='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'
  19727. +
  19728. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  19729. + hardcode_libdir_separator_CXX=:
  19730. +
  19731. + # Archives containing C++ object files must be created using
  19732. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  19733. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  19734. +
  19735. + ;;
  19736. + RCC*)
  19737. + # Rational C++ 2.4.1
  19738. + # FIXME: insert proper C++ library support
  19739. + ld_shlibs_CXX=no
  19740. + ;;
  19741. + cxx*)
  19742. + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  19743. + archive_cmds_CXX='$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'
  19744. +
  19745. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  19746. + hardcode_libdir_separator_CXX=:
  19747. +
  19748. + # Commands to make compiler produce verbose output that lists
  19749. + # what "hidden" libraries, object files and flags are used when
  19750. + # linking a shared library.
  19751. + #
  19752. + # There doesn't appear to be a way to prevent this compiler from
  19753. + # explicitly linking system object files so we need to strip them
  19754. + # from the output so that they don't get included in the library
  19755. + # dependencies.
  19756. + 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'
  19757. + ;;
  19758. + *)
  19759. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  19760. + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  19761. + archive_cmds_CXX='$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'
  19762. +
  19763. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  19764. + hardcode_libdir_separator_CXX=:
  19765. +
  19766. + # Commands to make compiler produce verbose output that lists
  19767. + # what "hidden" libraries, object files and flags are used when
  19768. + # linking a shared library.
  19769. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  19770. +
  19771. + else
  19772. + # FIXME: insert proper C++ library support
  19773. + ld_shlibs_CXX=no
  19774. + fi
  19775. + ;;
  19776. + esac
  19777. + ;;
  19778. + osf4* | osf5*)
  19779. + case $cc_basename in
  19780. + KCC*)
  19781. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  19782. +
  19783. + # KCC will only create a shared library if the output file
  19784. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  19785. + # to its proper name (with version) after linking.
  19786. + archive_cmds_CXX='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'
  19787. +
  19788. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  19789. + hardcode_libdir_separator_CXX=:
  19790. +
  19791. + # Archives containing C++ object files must be created using
  19792. + # the KAI C++ compiler.
  19793. + old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  19794. + ;;
  19795. + RCC*)
  19796. + # Rational C++ 2.4.1
  19797. + # FIXME: insert proper C++ library support
  19798. + ld_shlibs_CXX=no
  19799. + ;;
  19800. + cxx*)
  19801. + allow_undefined_flag_CXX=' -expect_unresolved \*'
  19802. + archive_cmds_CXX='$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'
  19803. + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  19804. + echo "-hidden">> $lib.exp~
  19805. + $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~
  19806. + $rm $lib.exp'
  19807. +
  19808. + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  19809. + hardcode_libdir_separator_CXX=:
  19810. +
  19811. + # Commands to make compiler produce verbose output that lists
  19812. + # what "hidden" libraries, object files and flags are used when
  19813. + # linking a shared library.
  19814. + #
  19815. + # There doesn't appear to be a way to prevent this compiler from
  19816. + # explicitly linking system object files so we need to strip them
  19817. + # from the output so that they don't get included in the library
  19818. + # dependencies.
  19819. + 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'
  19820. + ;;
  19821. + *)
  19822. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  19823. + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  19824. + archive_cmds_CXX='$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'
  19825. +
  19826. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  19827. + hardcode_libdir_separator_CXX=:
  19828. +
  19829. + # Commands to make compiler produce verbose output that lists
  19830. + # what "hidden" libraries, object files and flags are used when
  19831. + # linking a shared library.
  19832. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  19833. +
  19834. + else
  19835. + # FIXME: insert proper C++ library support
  19836. + ld_shlibs_CXX=no
  19837. + fi
  19838. + ;;
  19839. + esac
  19840. + ;;
  19841. + psos*)
  19842. + # FIXME: insert proper C++ library support
  19843. + ld_shlibs_CXX=no
  19844. + ;;
  19845. + sunos4*)
  19846. + case $cc_basename in
  19847. + CC*)
  19848. + # Sun C++ 4.x
  19849. + # FIXME: insert proper C++ library support
  19850. + ld_shlibs_CXX=no
  19851. + ;;
  19852. + lcc*)
  19853. + # Lucid
  19854. + # FIXME: insert proper C++ library support
  19855. + ld_shlibs_CXX=no
  19856. + ;;
  19857. + *)
  19858. + # FIXME: insert proper C++ library support
  19859. + ld_shlibs_CXX=no
  19860. + ;;
  19861. + esac
  19862. + ;;
  19863. + solaris*)
  19864. + case $cc_basename in
  19865. + CC*)
  19866. + # Sun C++ 4.2, 5.x and Centerline C++
  19867. + archive_cmds_need_lc_CXX=yes
  19868. + no_undefined_flag_CXX=' -zdefs'
  19869. + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  19870. + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  19871. + $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'
  19872. +
  19873. + hardcode_libdir_flag_spec_CXX='-R$libdir'
  19874. + hardcode_shlibpath_var_CXX=no
  19875. + case $host_os in
  19876. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  19877. + *)
  19878. + # The C++ compiler is used as linker so we must use $wl
  19879. + # flag to pass the commands to the underlying system
  19880. + # linker. We must also pass each convience library through
  19881. + # to the system linker between allextract/defaultextract.
  19882. + # The C++ compiler will combine linker options so we
  19883. + # cannot just pass the convience library names through
  19884. + # without $wl.
  19885. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  19886. + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  19887. + ;;
  19888. + esac
  19889. + link_all_deplibs_CXX=yes
  19890. +
  19891. + output_verbose_link_cmd='echo'
  19892. +
  19893. + # Archives containing C++ object files must be created using
  19894. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  19895. + # necessary to make sure instantiated templates are included
  19896. + # in the archive.
  19897. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  19898. + ;;
  19899. + gcx*)
  19900. + # Green Hills C++ Compiler
  19901. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  19902. +
  19903. + # The C++ compiler must be used to create the archive.
  19904. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  19905. + ;;
  19906. + *)
  19907. + # GNU C++ compiler with Solaris linker
  19908. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  19909. + no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  19910. + if $CC --version | grep -v '^2\.7' > /dev/null; then
  19911. + archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  19912. + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  19913. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  19914. +
  19915. + # Commands to make compiler produce verbose output that lists
  19916. + # what "hidden" libraries, object files and flags are used when
  19917. + # linking a shared library.
  19918. + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  19919. + else
  19920. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  19921. + # platform.
  19922. + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  19923. + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  19924. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  19925. +
  19926. + # Commands to make compiler produce verbose output that lists
  19927. + # what "hidden" libraries, object files and flags are used when
  19928. + # linking a shared library.
  19929. + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  19930. + fi
  19931. +
  19932. + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  19933. + fi
  19934. + ;;
  19935. + esac
  19936. + ;;
  19937. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  19938. + no_undefined_flag_CXX='${wl}-z,text'
  19939. + archive_cmds_need_lc_CXX=no
  19940. + hardcode_shlibpath_var_CXX=no
  19941. + runpath_var='LD_RUN_PATH'
  19942. +
  19943. + case $cc_basename in
  19944. + CC*)
  19945. + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  19946. + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  19947. + ;;
  19948. + *)
  19949. + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  19950. + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  19951. + ;;
  19952. + esac
  19953. + ;;
  19954. + sysv5* | sco3.2v5* | sco5v6*)
  19955. + # Note: We can NOT use -z defs as we might desire, because we do not
  19956. + # link with -lc, and that would cause any symbols used from libc to
  19957. + # always be unresolved, which means just about no library would
  19958. + # ever link correctly. If we're not using GNU ld we use -z text
  19959. + # though, which does catch some bad symbols but isn't as heavy-handed
  19960. + # as -z defs.
  19961. + # For security reasons, it is highly recommended that you always
  19962. + # use absolute paths for naming shared libraries, and exclude the
  19963. + # DT_RUNPATH tag from executables and libraries. But doing so
  19964. + # requires that you compile everything twice, which is a pain.
  19965. + # So that behaviour is only enabled if SCOABSPATH is set to a
  19966. + # non-empty value in the environment. Most likely only useful for
  19967. + # creating official distributions of packages.
  19968. + # This is a hack until libtool officially supports absolute path
  19969. + # names for shared libraries.
  19970. + no_undefined_flag_CXX='${wl}-z,text'
  19971. + allow_undefined_flag_CXX='${wl}-z,nodefs'
  19972. + archive_cmds_need_lc_CXX=no
  19973. + hardcode_shlibpath_var_CXX=no
  19974. + hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  19975. + hardcode_libdir_separator_CXX=':'
  19976. + link_all_deplibs_CXX=yes
  19977. + export_dynamic_flag_spec_CXX='${wl}-Bexport'
  19978. + runpath_var='LD_RUN_PATH'
  19979. +
  19980. + case $cc_basename in
  19981. + CC*)
  19982. + archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  19983. + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  19984. + ;;
  19985. + *)
  19986. + archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  19987. + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  19988. + ;;
  19989. + esac
  19990. + ;;
  19991. + tandem*)
  19992. + case $cc_basename in
  19993. + NCC*)
  19994. + # NonStop-UX NCC 3.20
  19995. + # FIXME: insert proper C++ library support
  19996. + ld_shlibs_CXX=no
  19997. + ;;
  19998. + *)
  19999. + # FIXME: insert proper C++ library support
  20000. + ld_shlibs_CXX=no
  20001. + ;;
  20002. + esac
  20003. + ;;
  20004. + vxworks*)
  20005. + # FIXME: insert proper C++ library support
  20006. + ld_shlibs_CXX=no
  20007. + ;;
  20008. + *)
  20009. + # FIXME: insert proper C++ library support
  20010. + ld_shlibs_CXX=no
  20011. + ;;
  20012. +esac
  20013. +echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  20014. +echo "${ECHO_T}$ld_shlibs_CXX" >&6
  20015. +test "$ld_shlibs_CXX" = no && can_build_shared=no
  20016. +
  20017. +GCC_CXX="$GXX"
  20018. +LD_CXX="$LD"
  20019. +
  20020. +
  20021. +cat > conftest.$ac_ext <<EOF
  20022. +class Foo
  20023. +{
  20024. +public:
  20025. + Foo (void) { a = 0; }
  20026. +private:
  20027. + int a;
  20028. +};
  20029. +EOF
  20030. +
  20031. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20032. + (eval $ac_compile) 2>&5
  20033. + ac_status=$?
  20034. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20035. + (exit $ac_status); }; then
  20036. + # Parse the compiler output and extract the necessary
  20037. + # objects, libraries and library flags.
  20038. +
  20039. + # Sentinel used to keep track of whether or not we are before
  20040. + # the conftest object file.
  20041. + pre_test_object_deps_done=no
  20042. +
  20043. + # The `*' in the case matches for architectures that use `case' in
  20044. + # $output_verbose_cmd can trigger glob expansion during the loop
  20045. + # eval without this substitution.
  20046. + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  20047. +
  20048. + for p in `eval $output_verbose_link_cmd`; do
  20049. + case $p in
  20050. +
  20051. + -L* | -R* | -l*)
  20052. + # Some compilers place space between "-{L,R}" and the path.
  20053. + # Remove the space.
  20054. + if test $p = "-L" \
  20055. + || test $p = "-R"; then
  20056. + prev=$p
  20057. + continue
  20058. + else
  20059. + prev=
  20060. + fi
  20061. +
  20062. + if test "$pre_test_object_deps_done" = no; then
  20063. + case $p in
  20064. + -L* | -R*)
  20065. + # Internal compiler library paths should come after those
  20066. + # provided the user. The postdeps already come after the
  20067. + # user supplied libs so there is no need to process them.
  20068. + if test -z "$compiler_lib_search_path_CXX"; then
  20069. + compiler_lib_search_path_CXX="${prev}${p}"
  20070. + else
  20071. + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  20072. + fi
  20073. + ;;
  20074. + # The "-l" case would never come before the object being
  20075. + # linked, so don't bother handling this case.
  20076. + esac
  20077. + else
  20078. + if test -z "$postdeps_CXX"; then
  20079. + postdeps_CXX="${prev}${p}"
  20080. + else
  20081. + postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  20082. + fi
  20083. + fi
  20084. + ;;
  20085. +
  20086. + *.$objext)
  20087. + # This assumes that the test object file only shows up
  20088. + # once in the compiler output.
  20089. + if test "$p" = "conftest.$objext"; then
  20090. + pre_test_object_deps_done=yes
  20091. + continue
  20092. + fi
  20093. +
  20094. + if test "$pre_test_object_deps_done" = no; then
  20095. + if test -z "$predep_objects_CXX"; then
  20096. + predep_objects_CXX="$p"
  20097. + else
  20098. + predep_objects_CXX="$predep_objects_CXX $p"
  20099. + fi
  20100. + else
  20101. + if test -z "$postdep_objects_CXX"; then
  20102. + postdep_objects_CXX="$p"
  20103. + else
  20104. + postdep_objects_CXX="$postdep_objects_CXX $p"
  20105. + fi
  20106. + fi
  20107. + ;;
  20108. +
  20109. + *) ;; # Ignore the rest.
  20110. +
  20111. + esac
  20112. + done
  20113. +
  20114. + # Clean up.
  20115. + rm -f a.out a.exe
  20116. +else
  20117. + echo "libtool.m4: error: problem compiling CXX test program"
  20118. +fi
  20119. +
  20120. +$rm -f confest.$objext
  20121. +
  20122. +# PORTME: override above test on systems where it is broken
  20123. +case $host_os in
  20124. +interix3*)
  20125. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  20126. + # hack all around it, let's just trust "g++" to DTRT.
  20127. + predep_objects_CXX=
  20128. + postdep_objects_CXX=
  20129. + postdeps_CXX=
  20130. + ;;
  20131. +
  20132. +solaris*)
  20133. + case $cc_basename in
  20134. + CC*)
  20135. + # Adding this requires a known-good setup of shared libraries for
  20136. + # Sun compiler versions before 5.6, else PIC objects from an old
  20137. + # archive will be linked into the output, leading to subtle bugs.
  20138. + postdeps_CXX='-lCstd -lCrun'
  20139. + ;;
  20140. + esac
  20141. + ;;
  20142. +esac
  20143. +
  20144. +
  20145. +case " $postdeps_CXX " in
  20146. +*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  20147. +esac
  20148. +
  20149. +lt_prog_compiler_wl_CXX=
  20150. +lt_prog_compiler_pic_CXX=
  20151. +lt_prog_compiler_static_CXX=
  20152. +
  20153. +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  20154. +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  20155. +
  20156. + # C++ specific cases for pic, static, wl, etc.
  20157. + if test "$GXX" = yes; then
  20158. + lt_prog_compiler_wl_CXX='-Wl,'
  20159. + lt_prog_compiler_static_CXX='-static'
  20160. +
  20161. + case $host_os in
  20162. + aix*)
  20163. + # All AIX code is PIC.
  20164. + if test "$host_cpu" = ia64; then
  20165. + # AIX 5 now supports IA64 processor
  20166. + lt_prog_compiler_static_CXX='-Bstatic'
  20167. + fi
  20168. + ;;
  20169. + amigaos*)
  20170. + # FIXME: we need at least 68020 code to build shared libraries, but
  20171. + # adding the `-m68020' flag to GCC prevents building anything better,
  20172. + # like `-m68040'.
  20173. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  20174. + ;;
  20175. + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  20176. + # PIC is the default for these OSes.
  20177. + ;;
  20178. + mingw* | os2* | pw32*)
  20179. + # This hack is so that the source file can tell whether it is being
  20180. + # built for inclusion in a dll (and should export symbols for example).
  20181. + lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  20182. + ;;
  20183. + darwin* | rhapsody*)
  20184. + # PIC is the default on this platform
  20185. + # Common symbols not allowed in MH_DYLIB files
  20186. + lt_prog_compiler_pic_CXX='-fno-common'
  20187. + ;;
  20188. + *djgpp*)
  20189. + # DJGPP does not support shared libraries at all
  20190. + lt_prog_compiler_pic_CXX=
  20191. + ;;
  20192. + interix3*)
  20193. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  20194. + # Instead, we relocate shared libraries at runtime.
  20195. + ;;
  20196. + sysv4*MP*)
  20197. + if test -d /usr/nec; then
  20198. + lt_prog_compiler_pic_CXX=-Kconform_pic
  20199. + fi
  20200. + ;;
  20201. + hpux*)
  20202. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  20203. + # not for PA HP-UX.
  20204. + case $host_cpu in
  20205. + hppa*64*|ia64*)
  20206. + ;;
  20207. + *)
  20208. + lt_prog_compiler_pic_CXX='-fPIC'
  20209. + ;;
  20210. + esac
  20211. + ;;
  20212. + *)
  20213. + lt_prog_compiler_pic_CXX='-fPIC'
  20214. + ;;
  20215. + esac
  20216. + else
  20217. + case $host_os in
  20218. + aix4* | aix5*)
  20219. + # All AIX code is PIC.
  20220. + if test "$host_cpu" = ia64; then
  20221. + # AIX 5 now supports IA64 processor
  20222. + lt_prog_compiler_static_CXX='-Bstatic'
  20223. + else
  20224. + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  20225. + fi
  20226. + ;;
  20227. + chorus*)
  20228. + case $cc_basename in
  20229. + cxch68*)
  20230. + # Green Hills C++ Compiler
  20231. + # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--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"
  20232. + ;;
  20233. + esac
  20234. + ;;
  20235. + darwin*)
  20236. + # PIC is the default on this platform
  20237. + # Common symbols not allowed in MH_DYLIB files
  20238. + case $cc_basename in
  20239. + xlc*)
  20240. + lt_prog_compiler_pic_CXX='-qnocommon'
  20241. + lt_prog_compiler_wl_CXX='-Wl,'
  20242. + ;;
  20243. + esac
  20244. + ;;
  20245. + dgux*)
  20246. + case $cc_basename in
  20247. + ec++*)
  20248. + lt_prog_compiler_pic_CXX='-KPIC'
  20249. + ;;
  20250. + ghcx*)
  20251. + # Green Hills C++ Compiler
  20252. + lt_prog_compiler_pic_CXX='-pic'
  20253. + ;;
  20254. + *)
  20255. + ;;
  20256. + esac
  20257. + ;;
  20258. + freebsd* | kfreebsd*-gnu | dragonfly*)
  20259. + # FreeBSD uses GNU C++
  20260. + ;;
  20261. + hpux9* | hpux10* | hpux11*)
  20262. + case $cc_basename in
  20263. + CC*)
  20264. + lt_prog_compiler_wl_CXX='-Wl,'
  20265. + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  20266. + if test "$host_cpu" != ia64; then
  20267. + lt_prog_compiler_pic_CXX='+Z'
  20268. + fi
  20269. + ;;
  20270. + aCC*)
  20271. + lt_prog_compiler_wl_CXX='-Wl,'
  20272. + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  20273. + case $host_cpu in
  20274. + hppa*64*|ia64*)
  20275. + # +Z the default
  20276. + ;;
  20277. + *)
  20278. + lt_prog_compiler_pic_CXX='+Z'
  20279. + ;;
  20280. + esac
  20281. + ;;
  20282. + *)
  20283. + ;;
  20284. + esac
  20285. + ;;
  20286. + interix*)
  20287. + # This is c89, which is MS Visual C++ (no shared libs)
  20288. + # Anyone wants to do a port?
  20289. + ;;
  20290. + irix5* | irix6* | nonstopux*)
  20291. + case $cc_basename in
  20292. + CC*)
  20293. + lt_prog_compiler_wl_CXX='-Wl,'
  20294. + lt_prog_compiler_static_CXX='-non_shared'
  20295. + # CC pic flag -KPIC is the default.
  20296. + ;;
  20297. + *)
  20298. + ;;
  20299. + esac
  20300. + ;;
  20301. + linux*)
  20302. + case $cc_basename in
  20303. + KCC*)
  20304. + # KAI C++ Compiler
  20305. + lt_prog_compiler_wl_CXX='--backend -Wl,'
  20306. + lt_prog_compiler_pic_CXX='-fPIC'
  20307. + ;;
  20308. + icpc* | ecpc*)
  20309. + # Intel C++
  20310. + lt_prog_compiler_wl_CXX='-Wl,'
  20311. + lt_prog_compiler_pic_CXX='-KPIC'
  20312. + lt_prog_compiler_static_CXX='-static'
  20313. + ;;
  20314. + pgCC*)
  20315. + # Portland Group C++ compiler.
  20316. + lt_prog_compiler_wl_CXX='-Wl,'
  20317. + lt_prog_compiler_pic_CXX='-fpic'
  20318. + lt_prog_compiler_static_CXX='-Bstatic'
  20319. + ;;
  20320. + cxx*)
  20321. + # Compaq C++
  20322. + # Make sure the PIC flag is empty. It appears that all Alpha
  20323. + # Linux and Compaq Tru64 Unix objects are PIC.
  20324. + lt_prog_compiler_pic_CXX=
  20325. + lt_prog_compiler_static_CXX='-non_shared'
  20326. + ;;
  20327. + *)
  20328. + ;;
  20329. + esac
  20330. + ;;
  20331. + lynxos*)
  20332. + ;;
  20333. + m88k*)
  20334. + ;;
  20335. + mvs*)
  20336. + case $cc_basename in
  20337. + cxx*)
  20338. + lt_prog_compiler_pic_CXX='-W c,exportall'
  20339. + ;;
  20340. + *)
  20341. + ;;
  20342. + esac
  20343. + ;;
  20344. + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  20345. + ;;
  20346. + osf3* | osf4* | osf5*)
  20347. + case $cc_basename in
  20348. + KCC*)
  20349. + lt_prog_compiler_wl_CXX='--backend -Wl,'
  20350. + ;;
  20351. + RCC*)
  20352. + # Rational C++ 2.4.1
  20353. + lt_prog_compiler_pic_CXX='-pic'
  20354. + ;;
  20355. + cxx*)
  20356. + # Digital/Compaq C++
  20357. + lt_prog_compiler_wl_CXX='-Wl,'
  20358. + # Make sure the PIC flag is empty. It appears that all Alpha
  20359. + # Linux and Compaq Tru64 Unix objects are PIC.
  20360. + lt_prog_compiler_pic_CXX=
  20361. + lt_prog_compiler_static_CXX='-non_shared'
  20362. + ;;
  20363. + *)
  20364. + ;;
  20365. + esac
  20366. + ;;
  20367. + psos*)
  20368. + ;;
  20369. + solaris*)
  20370. + case $cc_basename in
  20371. + CC*)
  20372. + # Sun C++ 4.2, 5.x and Centerline C++
  20373. + lt_prog_compiler_pic_CXX='-KPIC'
  20374. + lt_prog_compiler_static_CXX='-Bstatic'
  20375. + lt_prog_compiler_wl_CXX='-Qoption ld '
  20376. + ;;
  20377. + gcx*)
  20378. + # Green Hills C++ Compiler
  20379. + lt_prog_compiler_pic_CXX='-PIC'
  20380. + ;;
  20381. + *)
  20382. + ;;
  20383. + esac
  20384. + ;;
  20385. + sunos4*)
  20386. + case $cc_basename in
  20387. + CC*)
  20388. + # Sun C++ 4.x
  20389. + lt_prog_compiler_pic_CXX='-pic'
  20390. + lt_prog_compiler_static_CXX='-Bstatic'
  20391. + ;;
  20392. + lcc*)
  20393. + # Lucid
  20394. + lt_prog_compiler_pic_CXX='-pic'
  20395. + ;;
  20396. + *)
  20397. + ;;
  20398. + esac
  20399. + ;;
  20400. + tandem*)
  20401. + case $cc_basename in
  20402. + NCC*)
  20403. + # NonStop-UX NCC 3.20
  20404. + lt_prog_compiler_pic_CXX='-KPIC'
  20405. + ;;
  20406. + *)
  20407. + ;;
  20408. + esac
  20409. + ;;
  20410. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  20411. + case $cc_basename in
  20412. + CC*)
  20413. + lt_prog_compiler_wl_CXX='-Wl,'
  20414. + lt_prog_compiler_pic_CXX='-KPIC'
  20415. + lt_prog_compiler_static_CXX='-Bstatic'
  20416. + ;;
  20417. + esac
  20418. + ;;
  20419. + vxworks*)
  20420. + ;;
  20421. + *)
  20422. + lt_prog_compiler_can_build_shared_CXX=no
  20423. + ;;
  20424. + esac
  20425. + fi
  20426. +
  20427. +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  20428. +echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  20429. +
  20430. +#
  20431. +# Check to make sure the PIC flag actually works.
  20432. +#
  20433. +if test -n "$lt_prog_compiler_pic_CXX"; then
  20434. +
  20435. +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  20436. +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  20437. +if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  20438. + echo $ECHO_N "(cached) $ECHO_C" >&6
  20439. +else
  20440. + lt_prog_compiler_pic_works_CXX=no
  20441. + ac_outfile=conftest.$ac_objext
  20442. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  20443. + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  20444. + # Insert the option either (1) after the last *FLAGS variable, or
  20445. + # (2) before a word containing "conftest.", or (3) at the end.
  20446. + # Note that $ac_compile itself does not contain backslashes and begins
  20447. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  20448. + # The option is referenced via a variable to avoid confusing sed.
  20449. + lt_compile=`echo "$ac_compile" | $SED \
  20450. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  20451. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  20452. + -e 's:$: $lt_compiler_flag:'`
  20453. + (eval echo "\"\$as_me:11138: $lt_compile\"" >&5)
  20454. + (eval "$lt_compile" 2>conftest.err)
  20455. + ac_status=$?
  20456. + cat conftest.err >&5
  20457. + echo "$as_me:11142: \$? = $ac_status" >&5
  20458. + if (exit $ac_status) && test -s "$ac_outfile"; then
  20459. + # The compiler can only warn and ignore the option if not recognized
  20460. + # So say no if there are warnings other than the usual output.
  20461. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  20462. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  20463. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  20464. + lt_prog_compiler_pic_works_CXX=yes
  20465. + fi
  20466. + fi
  20467. + $rm conftest*
  20468. +
  20469. +fi
  20470. +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  20471. +echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  20472. +
  20473. +if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  20474. + case $lt_prog_compiler_pic_CXX in
  20475. + "" | " "*) ;;
  20476. + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  20477. + esac
  20478. +else
  20479. + lt_prog_compiler_pic_CXX=
  20480. + lt_prog_compiler_can_build_shared_CXX=no
  20481. +fi
  20482. +
  20483. +fi
  20484. +case $host_os in
  20485. + # For platforms which do not support PIC, -DPIC is meaningless:
  20486. + *djgpp*)
  20487. + lt_prog_compiler_pic_CXX=
  20488. + ;;
  20489. + *)
  20490. + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  20491. + ;;
  20492. +esac
  20493. +
  20494. +#
  20495. +# Check to make sure the static flag actually works.
  20496. +#
  20497. +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  20498. +echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  20499. +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  20500. +if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  20501. + echo $ECHO_N "(cached) $ECHO_C" >&6
  20502. +else
  20503. + lt_prog_compiler_static_works_CXX=no
  20504. + save_LDFLAGS="$LDFLAGS"
  20505. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  20506. + printf "$lt_simple_link_test_code" > conftest.$ac_ext
  20507. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  20508. + # The linker can only warn and ignore the option if not recognized
  20509. + # So say no if there are warnings
  20510. + if test -s conftest.err; then
  20511. + # Append any errors to the config.log.
  20512. + cat conftest.err 1>&5
  20513. + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  20514. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  20515. + if diff conftest.exp conftest.er2 >/dev/null; then
  20516. + lt_prog_compiler_static_works_CXX=yes
  20517. + fi
  20518. + else
  20519. + lt_prog_compiler_static_works_CXX=yes
  20520. + fi
  20521. + fi
  20522. + $rm conftest*
  20523. + LDFLAGS="$save_LDFLAGS"
  20524. +
  20525. +fi
  20526. +echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  20527. +echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
  20528. +
  20529. +if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  20530. + :
  20531. +else
  20532. + lt_prog_compiler_static_CXX=
  20533. +fi
  20534. +
  20535. +
  20536. +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  20537. +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  20538. +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  20539. + echo $ECHO_N "(cached) $ECHO_C" >&6
  20540. +else
  20541. + lt_cv_prog_compiler_c_o_CXX=no
  20542. + $rm -r conftest 2>/dev/null
  20543. + mkdir conftest
  20544. + cd conftest
  20545. + mkdir out
  20546. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  20547. +
  20548. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  20549. + # Insert the option either (1) after the last *FLAGS variable, or
  20550. + # (2) before a word containing "conftest.", or (3) at the end.
  20551. + # Note that $ac_compile itself does not contain backslashes and begins
  20552. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  20553. + lt_compile=`echo "$ac_compile" | $SED \
  20554. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  20555. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  20556. + -e 's:$: $lt_compiler_flag:'`
  20557. + (eval echo "\"\$as_me:11242: $lt_compile\"" >&5)
  20558. + (eval "$lt_compile" 2>out/conftest.err)
  20559. + ac_status=$?
  20560. + cat out/conftest.err >&5
  20561. + echo "$as_me:11246: \$? = $ac_status" >&5
  20562. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  20563. + then
  20564. + # The compiler can only warn and ignore the option if not recognized
  20565. + # So say no if there are warnings
  20566. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  20567. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  20568. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  20569. + lt_cv_prog_compiler_c_o_CXX=yes
  20570. + fi
  20571. + fi
  20572. + chmod u+w . 2>&5
  20573. + $rm conftest*
  20574. + # SGI C++ compiler will create directory out/ii_files/ for
  20575. + # template instantiation
  20576. + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  20577. + $rm out/* && rmdir out
  20578. + cd ..
  20579. + rmdir conftest
  20580. + $rm conftest*
  20581. +
  20582. +fi
  20583. +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  20584. +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  20585. +
  20586. +
  20587. +hard_links="nottested"
  20588. +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  20589. + # do not overwrite the value of need_locks provided by the user
  20590. + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  20591. +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  20592. + hard_links=yes
  20593. + $rm conftest*
  20594. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  20595. + touch conftest.a
  20596. + ln conftest.a conftest.b 2>&5 || hard_links=no
  20597. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  20598. + echo "$as_me:$LINENO: result: $hard_links" >&5
  20599. +echo "${ECHO_T}$hard_links" >&6
  20600. + if test "$hard_links" = no; then
  20601. + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  20602. +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  20603. + need_locks=warn
  20604. + fi
  20605. +else
  20606. + need_locks=no
  20607. +fi
  20608. +
  20609. +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  20610. +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  20611. +
  20612. + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  20613. + case $host_os in
  20614. + aix4* | aix5*)
  20615. + # If we're using GNU nm, then we don't want the "-C" option.
  20616. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  20617. + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  20618. + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  20619. + else
  20620. + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  20621. + fi
  20622. + ;;
  20623. + pw32*)
  20624. + export_symbols_cmds_CXX="$ltdll_cmds"
  20625. + ;;
  20626. + cygwin* | mingw*)
  20627. + export_symbols_cmds_CXX='$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'
  20628. + ;;
  20629. + kfreebsd*-gnu)
  20630. + link_all_deplibs_CXX=no
  20631. + ;;
  20632. + linux*)
  20633. + link_all_deplibs_CXX=no
  20634. + ;;
  20635. + *)
  20636. + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  20637. + ;;
  20638. + esac
  20639. +
  20640. +echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  20641. +echo "${ECHO_T}$ld_shlibs_CXX" >&6
  20642. +test "$ld_shlibs_CXX" = no && can_build_shared=no
  20643. +
  20644. +#
  20645. +# Do we need to explicitly link libc?
  20646. +#
  20647. +case "x$archive_cmds_need_lc_CXX" in
  20648. +x|xyes)
  20649. + # Assume -lc should be added
  20650. + archive_cmds_need_lc_CXX=yes
  20651. +
  20652. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  20653. + case $archive_cmds_CXX in
  20654. + *'~'*)
  20655. + # FIXME: we may have to deal with multi-command sequences.
  20656. + ;;
  20657. + '$CC '*)
  20658. + # Test whether the compiler implicitly links with -lc since on some
  20659. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  20660. + # to ld, don't add -lc before -lgcc.
  20661. + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  20662. +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  20663. + $rm conftest*
  20664. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  20665. +
  20666. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20667. + (eval $ac_compile) 2>&5
  20668. + ac_status=$?
  20669. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20670. + (exit $ac_status); } 2>conftest.err; then
  20671. + soname=conftest
  20672. + lib=conftest
  20673. + libobjs=conftest.$ac_objext
  20674. + deplibs=
  20675. + wl=$lt_prog_compiler_wl_CXX
  20676. + pic_flag=$lt_prog_compiler_pic_CXX
  20677. + compiler_flags=-v
  20678. + linker_flags=-v
  20679. + verstring=
  20680. + output_objdir=.
  20681. + libname=conftest
  20682. + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  20683. + allow_undefined_flag_CXX=
  20684. + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  20685. + (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  20686. + ac_status=$?
  20687. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20688. + (exit $ac_status); }
  20689. + then
  20690. + archive_cmds_need_lc_CXX=no
  20691. + else
  20692. + archive_cmds_need_lc_CXX=yes
  20693. + fi
  20694. + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  20695. + else
  20696. + cat conftest.err 1>&5
  20697. + fi
  20698. + $rm conftest*
  20699. + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  20700. +echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  20701. + ;;
  20702. + esac
  20703. + fi
  20704. + ;;
  20705. +esac
  20706. +
  20707. +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  20708. +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  20709. +library_names_spec=
  20710. +libname_spec='lib$name'
  20711. +soname_spec=
  20712. +shrext_cmds=".so"
  20713. +postinstall_cmds=
  20714. +postuninstall_cmds=
  20715. +finish_cmds=
  20716. +finish_eval=
  20717. +shlibpath_var=
  20718. +shlibpath_overrides_runpath=unknown
  20719. +version_type=none
  20720. +dynamic_linker="$host_os ld.so"
  20721. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  20722. +if test "$GCC" = yes; then
  20723. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  20724. + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  20725. + # if the path contains ";" then we assume it to be the separator
  20726. + # otherwise default to the standard path separator (i.e. ":") - it is
  20727. + # assumed that no part of a normal pathname contains ";" but that should
  20728. + # okay in the real world where ";" in dirpaths is itself problematic.
  20729. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  20730. + else
  20731. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  20732. + fi
  20733. +else
  20734. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  20735. +fi
  20736. +need_lib_prefix=unknown
  20737. +hardcode_into_libs=no
  20738. +
  20739. +# when you set need_version to no, make sure it does not cause -set_version
  20740. +# flags to be left without arguments
  20741. +need_version=unknown
  20742. +
  20743. +case $host_os in
  20744. +aix3*)
  20745. + version_type=linux
  20746. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  20747. + shlibpath_var=LIBPATH
  20748. +
  20749. + # AIX 3 has no versioning support, so we append a major version to the name.
  20750. + soname_spec='${libname}${release}${shared_ext}$major'
  20751. + ;;
  20752. +
  20753. +aix4* | aix5*)
  20754. + version_type=linux
  20755. + need_lib_prefix=no
  20756. + need_version=no
  20757. + hardcode_into_libs=yes
  20758. + if test "$host_cpu" = ia64; then
  20759. + # AIX 5 supports IA64
  20760. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  20761. + shlibpath_var=LD_LIBRARY_PATH
  20762. + else
  20763. + # With GCC up to 2.95.x, collect2 would create an import file
  20764. + # for dependence libraries. The import file would start with
  20765. + # the line `#! .'. This would cause the generated library to
  20766. + # depend on `.', always an invalid library. This was fixed in
  20767. + # development snapshots of GCC prior to 3.0.
  20768. + case $host_os in
  20769. + aix4 | aix4.[01] | aix4.[01].*)
  20770. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  20771. + echo ' yes '
  20772. + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  20773. + :
  20774. + else
  20775. + can_build_shared=no
  20776. + fi
  20777. + ;;
  20778. + esac
  20779. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  20780. + # soname into executable. Probably we can add versioning support to
  20781. + # collect2, so additional links can be useful in future.
  20782. + if test "$aix_use_runtimelinking" = yes; then
  20783. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  20784. + # instead of lib<name>.a to let people know that these are not
  20785. + # typical AIX shared libraries.
  20786. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20787. + else
  20788. + # We preserve .a as extension for shared libraries through AIX4.2
  20789. + # and later when we are not doing run time linking.
  20790. + library_names_spec='${libname}${release}.a $libname.a'
  20791. + soname_spec='${libname}${release}${shared_ext}$major'
  20792. + fi
  20793. + shlibpath_var=LIBPATH
  20794. + fi
  20795. + ;;
  20796. +
  20797. +amigaos*)
  20798. + library_names_spec='$libname.ixlibrary $libname.a'
  20799. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  20800. + 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'
  20801. + ;;
  20802. +
  20803. +beos*)
  20804. + library_names_spec='${libname}${shared_ext}'
  20805. + dynamic_linker="$host_os ld.so"
  20806. + shlibpath_var=LIBRARY_PATH
  20807. + ;;
  20808. +
  20809. +bsdi[45]*)
  20810. + version_type=linux
  20811. + need_version=no
  20812. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20813. + soname_spec='${libname}${release}${shared_ext}$major'
  20814. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  20815. + shlibpath_var=LD_LIBRARY_PATH
  20816. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  20817. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  20818. + # the default ld.so.conf also contains /usr/contrib/lib and
  20819. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  20820. + # libtool to hard-code these into programs
  20821. + ;;
  20822. +
  20823. +cygwin* | mingw* | pw32*)
  20824. + version_type=windows
  20825. + shrext_cmds=".dll"
  20826. + need_version=no
  20827. + need_lib_prefix=no
  20828. +
  20829. + case $GCC,$host_os in
  20830. + yes,cygwin* | yes,mingw* | yes,pw32*)
  20831. + library_names_spec='$libname.dll.a'
  20832. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  20833. + postinstall_cmds='base_file=`basename \${file}`~
  20834. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  20835. + dldir=$destdir/`dirname \$dlpath`~
  20836. + test -d \$dldir || mkdir -p \$dldir~
  20837. + $install_prog $dir/$dlname \$dldir/$dlname~
  20838. + chmod a+x \$dldir/$dlname'
  20839. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  20840. + dlpath=$dir/\$dldll~
  20841. + $rm \$dlpath'
  20842. + shlibpath_overrides_runpath=yes
  20843. +
  20844. + case $host_os in
  20845. + cygwin*)
  20846. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  20847. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  20848. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  20849. + ;;
  20850. + mingw*)
  20851. + # MinGW DLLs use traditional 'lib' prefix
  20852. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  20853. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  20854. + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  20855. + # It is most probably a Windows format PATH printed by
  20856. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  20857. + # path with ; separators, and with drive letters. We can handle the
  20858. + # drive letters (cygwin fileutils understands them), so leave them,
  20859. + # especially as we might pass files found there to a mingw objdump,
  20860. + # which wouldn't understand a cygwinified path. Ahh.
  20861. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  20862. + else
  20863. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  20864. + fi
  20865. + ;;
  20866. + pw32*)
  20867. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  20868. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  20869. + ;;
  20870. + esac
  20871. + ;;
  20872. +
  20873. + *)
  20874. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  20875. + ;;
  20876. + esac
  20877. + dynamic_linker='Win32 ld.exe'
  20878. + # FIXME: first we should search . and the directory the executable is in
  20879. + shlibpath_var=PATH
  20880. + ;;
  20881. +
  20882. +darwin* | rhapsody*)
  20883. + dynamic_linker="$host_os dyld"
  20884. + version_type=darwin
  20885. + need_lib_prefix=no
  20886. + need_version=no
  20887. + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  20888. + soname_spec='${libname}${release}${major}$shared_ext'
  20889. + shlibpath_overrides_runpath=yes
  20890. + shlibpath_var=DYLD_LIBRARY_PATH
  20891. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  20892. + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  20893. + if test "$GCC" = yes; then
  20894. + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  20895. + else
  20896. + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  20897. + fi
  20898. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  20899. + ;;
  20900. +
  20901. +dgux*)
  20902. + version_type=linux
  20903. + need_lib_prefix=no
  20904. + need_version=no
  20905. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  20906. + soname_spec='${libname}${release}${shared_ext}$major'
  20907. + shlibpath_var=LD_LIBRARY_PATH
  20908. + ;;
  20909. +
  20910. +freebsd1*)
  20911. + dynamic_linker=no
  20912. + ;;
  20913. +
  20914. +kfreebsd*-gnu)
  20915. + version_type=linux
  20916. + need_lib_prefix=no
  20917. + need_version=no
  20918. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  20919. + soname_spec='${libname}${release}${shared_ext}$major'
  20920. + shlibpath_var=LD_LIBRARY_PATH
  20921. + shlibpath_overrides_runpath=no
  20922. + hardcode_into_libs=yes
  20923. + dynamic_linker='GNU ld.so'
  20924. + ;;
  20925. +
  20926. +freebsd* | dragonfly*)
  20927. + # DragonFly does not have aout. When/if they implement a new
  20928. + # versioning mechanism, adjust this.
  20929. + if test -x /usr/bin/objformat; then
  20930. + objformat=`/usr/bin/objformat`
  20931. + else
  20932. + case $host_os in
  20933. + freebsd[123]*) objformat=aout ;;
  20934. + *) objformat=elf ;;
  20935. + esac
  20936. + fi
  20937. + version_type=freebsd-$objformat
  20938. + case $version_type in
  20939. + freebsd-elf*)
  20940. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  20941. + need_version=no
  20942. + need_lib_prefix=no
  20943. + ;;
  20944. + freebsd-*)
  20945. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  20946. + need_version=yes
  20947. + ;;
  20948. + esac
  20949. + shlibpath_var=LD_LIBRARY_PATH
  20950. + case $host_os in
  20951. + freebsd2*)
  20952. + shlibpath_overrides_runpath=yes
  20953. + ;;
  20954. + freebsd3.[01]* | freebsdelf3.[01]*)
  20955. + shlibpath_overrides_runpath=yes
  20956. + hardcode_into_libs=yes
  20957. + ;;
  20958. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  20959. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  20960. + shlibpath_overrides_runpath=no
  20961. + hardcode_into_libs=yes
  20962. + ;;
  20963. + freebsd*) # from 4.6 on
  20964. + shlibpath_overrides_runpath=yes
  20965. + hardcode_into_libs=yes
  20966. + ;;
  20967. + esac
  20968. + ;;
  20969. +
  20970. +gnu*)
  20971. + version_type=linux
  20972. + need_lib_prefix=no
  20973. + need_version=no
  20974. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  20975. + soname_spec='${libname}${release}${shared_ext}$major'
  20976. + shlibpath_var=LD_LIBRARY_PATH
  20977. + hardcode_into_libs=yes
  20978. + ;;
  20979. +
  20980. +hpux9* | hpux10* | hpux11*)
  20981. + # Give a soname corresponding to the major version so that dld.sl refuses to
  20982. + # link against other versions.
  20983. + version_type=sunos
  20984. + need_lib_prefix=no
  20985. + need_version=no
  20986. + case $host_cpu in
  20987. + ia64*)
  20988. + shrext_cmds='.so'
  20989. + hardcode_into_libs=yes
  20990. + dynamic_linker="$host_os dld.so"
  20991. + shlibpath_var=LD_LIBRARY_PATH
  20992. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  20993. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20994. + soname_spec='${libname}${release}${shared_ext}$major'
  20995. + if test "X$HPUX_IA64_MODE" = X32; then
  20996. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  20997. + else
  20998. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  20999. + fi
  21000. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  21001. + ;;
  21002. + hppa*64*)
  21003. + shrext_cmds='.sl'
  21004. + hardcode_into_libs=yes
  21005. + dynamic_linker="$host_os dld.sl"
  21006. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  21007. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  21008. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21009. + soname_spec='${libname}${release}${shared_ext}$major'
  21010. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  21011. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  21012. + ;;
  21013. + *)
  21014. + shrext_cmds='.sl'
  21015. + dynamic_linker="$host_os dld.sl"
  21016. + shlibpath_var=SHLIB_PATH
  21017. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  21018. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21019. + soname_spec='${libname}${release}${shared_ext}$major'
  21020. + ;;
  21021. + esac
  21022. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  21023. + postinstall_cmds='chmod 555 $lib'
  21024. + ;;
  21025. +
  21026. +interix3*)
  21027. + version_type=linux
  21028. + need_lib_prefix=no
  21029. + need_version=no
  21030. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  21031. + soname_spec='${libname}${release}${shared_ext}$major'
  21032. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  21033. + shlibpath_var=LD_LIBRARY_PATH
  21034. + shlibpath_overrides_runpath=no
  21035. + hardcode_into_libs=yes
  21036. + ;;
  21037. +
  21038. +irix5* | irix6* | nonstopux*)
  21039. + case $host_os in
  21040. + nonstopux*) version_type=nonstopux ;;
  21041. + *)
  21042. + if test "$lt_cv_prog_gnu_ld" = yes; then
  21043. + version_type=linux
  21044. + else
  21045. + version_type=irix
  21046. + fi ;;
  21047. + esac
  21048. + need_lib_prefix=no
  21049. + need_version=no
  21050. + soname_spec='${libname}${release}${shared_ext}$major'
  21051. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  21052. + case $host_os in
  21053. + irix5* | nonstopux*)
  21054. + libsuff= shlibsuff=
  21055. + ;;
  21056. + *)
  21057. + case $LD in # libtool.m4 will add one of these switches to LD
  21058. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  21059. + libsuff= shlibsuff= libmagic=32-bit;;
  21060. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  21061. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  21062. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  21063. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  21064. + *) libsuff= shlibsuff= libmagic=never-match;;
  21065. + esac
  21066. + ;;
  21067. + esac
  21068. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  21069. + shlibpath_overrides_runpath=no
  21070. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  21071. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  21072. + hardcode_into_libs=yes
  21073. + ;;
  21074. +
  21075. +# No shared lib support for Linux oldld, aout, or coff.
  21076. +linux*oldld* | linux*aout* | linux*coff*)
  21077. + dynamic_linker=no
  21078. + ;;
  21079. +
  21080. +# This must be Linux ELF.
  21081. +linux*)
  21082. + version_type=linux
  21083. + need_lib_prefix=no
  21084. + need_version=no
  21085. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21086. + soname_spec='${libname}${release}${shared_ext}$major'
  21087. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  21088. + shlibpath_var=LD_LIBRARY_PATH
  21089. + shlibpath_overrides_runpath=no
  21090. + # This implies no fast_install, which is unacceptable.
  21091. + # Some rework will be needed to allow for fast_install
  21092. + # before this can be enabled.
  21093. + hardcode_into_libs=yes
  21094. +
  21095. + # Append ld.so.conf contents to the search path
  21096. + if test -f /etc/ld.so.conf; then
  21097. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  21098. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  21099. + fi
  21100. +
  21101. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  21102. + # powerpc, because MkLinux only supported shared libraries with the
  21103. + # GNU dynamic linker. Since this was broken with cross compilers,
  21104. + # most powerpc-linux boxes support dynamic linking these days and
  21105. + # people can always --disable-shared, the test was removed, and we
  21106. + # assume the GNU/Linux dynamic linker is in use.
  21107. + dynamic_linker='GNU/Linux ld.so'
  21108. + ;;
  21109. +
  21110. +netbsdelf*-gnu)
  21111. + version_type=linux
  21112. + need_lib_prefix=no
  21113. + need_version=no
  21114. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  21115. + soname_spec='${libname}${release}${shared_ext}$major'
  21116. + shlibpath_var=LD_LIBRARY_PATH
  21117. + shlibpath_overrides_runpath=no
  21118. + hardcode_into_libs=yes
  21119. + dynamic_linker='NetBSD ld.elf_so'
  21120. + ;;
  21121. +
  21122. +knetbsd*-gnu)
  21123. + version_type=linux
  21124. + need_lib_prefix=no
  21125. + need_version=no
  21126. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  21127. + soname_spec='${libname}${release}${shared_ext}$major'
  21128. + shlibpath_var=LD_LIBRARY_PATH
  21129. + shlibpath_overrides_runpath=no
  21130. + hardcode_into_libs=yes
  21131. + dynamic_linker='GNU ld.so'
  21132. + ;;
  21133. +
  21134. +netbsd*)
  21135. + version_type=sunos
  21136. + need_lib_prefix=no
  21137. + need_version=no
  21138. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  21139. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  21140. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  21141. + dynamic_linker='NetBSD (a.out) ld.so'
  21142. + else
  21143. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  21144. + soname_spec='${libname}${release}${shared_ext}$major'
  21145. + dynamic_linker='NetBSD ld.elf_so'
  21146. + fi
  21147. + shlibpath_var=LD_LIBRARY_PATH
  21148. + shlibpath_overrides_runpath=yes
  21149. + hardcode_into_libs=yes
  21150. + ;;
  21151. +
  21152. +newsos6)
  21153. + version_type=linux
  21154. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21155. + shlibpath_var=LD_LIBRARY_PATH
  21156. + shlibpath_overrides_runpath=yes
  21157. + ;;
  21158. +
  21159. +nto-qnx*)
  21160. + version_type=linux
  21161. + need_lib_prefix=no
  21162. + need_version=no
  21163. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21164. + soname_spec='${libname}${release}${shared_ext}$major'
  21165. + shlibpath_var=LD_LIBRARY_PATH
  21166. + shlibpath_overrides_runpath=yes
  21167. + ;;
  21168. +
  21169. +openbsd*)
  21170. + version_type=sunos
  21171. + sys_lib_dlsearch_path_spec="/usr/lib"
  21172. + need_lib_prefix=no
  21173. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  21174. + case $host_os in
  21175. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  21176. + *) need_version=no ;;
  21177. + esac
  21178. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  21179. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  21180. + shlibpath_var=LD_LIBRARY_PATH
  21181. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  21182. + case $host_os in
  21183. + openbsd2.[89] | openbsd2.[89].*)
  21184. + shlibpath_overrides_runpath=no
  21185. + ;;
  21186. + *)
  21187. + shlibpath_overrides_runpath=yes
  21188. + ;;
  21189. + esac
  21190. + else
  21191. + shlibpath_overrides_runpath=yes
  21192. + fi
  21193. + ;;
  21194. +
  21195. +os2*)
  21196. + libname_spec='$name'
  21197. + shrext_cmds=".dll"
  21198. + need_lib_prefix=no
  21199. + library_names_spec='$libname${shared_ext} $libname.a'
  21200. + dynamic_linker='OS/2 ld.exe'
  21201. + shlibpath_var=LIBPATH
  21202. + ;;
  21203. +
  21204. +osf3* | osf4* | osf5*)
  21205. + version_type=osf
  21206. + need_lib_prefix=no
  21207. + need_version=no
  21208. + soname_spec='${libname}${release}${shared_ext}$major'
  21209. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21210. + shlibpath_var=LD_LIBRARY_PATH
  21211. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  21212. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  21213. + ;;
  21214. +
  21215. +solaris*)
  21216. + version_type=linux
  21217. + need_lib_prefix=no
  21218. + need_version=no
  21219. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21220. + soname_spec='${libname}${release}${shared_ext}$major'
  21221. + shlibpath_var=LD_LIBRARY_PATH
  21222. + shlibpath_overrides_runpath=yes
  21223. + hardcode_into_libs=yes
  21224. + # ldd complains unless libraries are executable
  21225. + postinstall_cmds='chmod +x $lib'
  21226. + ;;
  21227. +
  21228. +sunos4*)
  21229. + version_type=sunos
  21230. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  21231. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  21232. + shlibpath_var=LD_LIBRARY_PATH
  21233. + shlibpath_overrides_runpath=yes
  21234. + if test "$with_gnu_ld" = yes; then
  21235. + need_lib_prefix=no
  21236. + fi
  21237. + need_version=yes
  21238. + ;;
  21239. +
  21240. +sysv4 | sysv4.3*)
  21241. + version_type=linux
  21242. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21243. + soname_spec='${libname}${release}${shared_ext}$major'
  21244. + shlibpath_var=LD_LIBRARY_PATH
  21245. + case $host_vendor in
  21246. + sni)
  21247. + shlibpath_overrides_runpath=no
  21248. + need_lib_prefix=no
  21249. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  21250. + runpath_var=LD_RUN_PATH
  21251. + ;;
  21252. + siemens)
  21253. + need_lib_prefix=no
  21254. + ;;
  21255. + motorola)
  21256. + need_lib_prefix=no
  21257. + need_version=no
  21258. + shlibpath_overrides_runpath=no
  21259. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  21260. + ;;
  21261. + esac
  21262. + ;;
  21263. +
  21264. +sysv4*MP*)
  21265. + if test -d /usr/nec ;then
  21266. + version_type=linux
  21267. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  21268. + soname_spec='$libname${shared_ext}.$major'
  21269. + shlibpath_var=LD_LIBRARY_PATH
  21270. + fi
  21271. + ;;
  21272. +
  21273. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  21274. + version_type=freebsd-elf
  21275. + need_lib_prefix=no
  21276. + need_version=no
  21277. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  21278. + soname_spec='${libname}${release}${shared_ext}$major'
  21279. + shlibpath_var=LD_LIBRARY_PATH
  21280. + hardcode_into_libs=yes
  21281. + if test "$with_gnu_ld" = yes; then
  21282. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  21283. + shlibpath_overrides_runpath=no
  21284. + else
  21285. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  21286. + shlibpath_overrides_runpath=yes
  21287. + case $host_os in
  21288. + sco3.2v5*)
  21289. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  21290. + ;;
  21291. + esac
  21292. + fi
  21293. + sys_lib_dlsearch_path_spec='/usr/lib'
  21294. + ;;
  21295. +
  21296. +uts4*)
  21297. + version_type=linux
  21298. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21299. + soname_spec='${libname}${release}${shared_ext}$major'
  21300. + shlibpath_var=LD_LIBRARY_PATH
  21301. + ;;
  21302. +
  21303. +*)
  21304. + dynamic_linker=no
  21305. + ;;
  21306. +esac
  21307. +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  21308. +echo "${ECHO_T}$dynamic_linker" >&6
  21309. +test "$dynamic_linker" = no && can_build_shared=no
  21310. +
  21311. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  21312. +if test "$GCC" = yes; then
  21313. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  21314. +fi
  21315. +
  21316. +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  21317. +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  21318. +hardcode_action_CXX=
  21319. +if test -n "$hardcode_libdir_flag_spec_CXX" || \
  21320. + test -n "$runpath_var_CXX" || \
  21321. + test "X$hardcode_automatic_CXX" = "Xyes" ; then
  21322. +
  21323. + # We can hardcode non-existant directories.
  21324. + if test "$hardcode_direct_CXX" != no &&
  21325. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  21326. + # have to relink, otherwise we might link with an installed library
  21327. + # when we should be linking with a yet-to-be-installed one
  21328. + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  21329. + test "$hardcode_minus_L_CXX" != no; then
  21330. + # Linking always hardcodes the temporary library directory.
  21331. + hardcode_action_CXX=relink
  21332. + else
  21333. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  21334. + hardcode_action_CXX=immediate
  21335. + fi
  21336. +else
  21337. + # We cannot hardcode anything, or else we can only hardcode existing
  21338. + # directories.
  21339. + hardcode_action_CXX=unsupported
  21340. +fi
  21341. +echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  21342. +echo "${ECHO_T}$hardcode_action_CXX" >&6
  21343. +
  21344. +if test "$hardcode_action_CXX" = relink; then
  21345. + # Fast installation is not supported
  21346. + enable_fast_install=no
  21347. +elif test "$shlibpath_overrides_runpath" = yes ||
  21348. + test "$enable_shared" = no; then
  21349. + # Fast installation is not necessary
  21350. + enable_fast_install=needless
  21351. +fi
  21352. +
  21353. +
  21354. +# The else clause should only fire when bootstrapping the
  21355. +# libtool distribution, otherwise you forgot to ship ltmain.sh
  21356. +# with your package, and you will get complaints that there are
  21357. +# no rules to generate ltmain.sh.
  21358. +if test -f "$ltmain"; then
  21359. + # See if we are running on zsh, and set the options which allow our commands through
  21360. + # without removal of \ escapes.
  21361. + if test -n "${ZSH_VERSION+set}" ; then
  21362. + setopt NO_GLOB_SUBST
  21363. + fi
  21364. + # Now quote all the things that may contain metacharacters while being
  21365. + # careful not to overquote the AC_SUBSTed values. We take copies of the
  21366. + # variables and quote the copies for generation of the libtool script.
  21367. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  21368. + SED SHELL STRIP \
  21369. + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  21370. + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  21371. + deplibs_check_method reload_flag reload_cmds need_locks \
  21372. + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  21373. + lt_cv_sys_global_symbol_to_c_name_address \
  21374. + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  21375. + old_postinstall_cmds old_postuninstall_cmds \
  21376. + compiler_CXX \
  21377. + CC_CXX \
  21378. + LD_CXX \
  21379. + lt_prog_compiler_wl_CXX \
  21380. + lt_prog_compiler_pic_CXX \
  21381. + lt_prog_compiler_static_CXX \
  21382. + lt_prog_compiler_no_builtin_flag_CXX \
  21383. + export_dynamic_flag_spec_CXX \
  21384. + thread_safe_flag_spec_CXX \
  21385. + whole_archive_flag_spec_CXX \
  21386. + enable_shared_with_static_runtimes_CXX \
  21387. + old_archive_cmds_CXX \
  21388. + old_archive_from_new_cmds_CXX \
  21389. + predep_objects_CXX \
  21390. + postdep_objects_CXX \
  21391. + predeps_CXX \
  21392. + postdeps_CXX \
  21393. + compiler_lib_search_path_CXX \
  21394. + archive_cmds_CXX \
  21395. + archive_expsym_cmds_CXX \
  21396. + postinstall_cmds_CXX \
  21397. + postuninstall_cmds_CXX \
  21398. + old_archive_from_expsyms_cmds_CXX \
  21399. + allow_undefined_flag_CXX \
  21400. + no_undefined_flag_CXX \
  21401. + export_symbols_cmds_CXX \
  21402. + hardcode_libdir_flag_spec_CXX \
  21403. + hardcode_libdir_flag_spec_ld_CXX \
  21404. + hardcode_libdir_separator_CXX \
  21405. + hardcode_automatic_CXX \
  21406. + module_cmds_CXX \
  21407. + module_expsym_cmds_CXX \
  21408. + lt_cv_prog_compiler_c_o_CXX \
  21409. + exclude_expsyms_CXX \
  21410. + include_expsyms_CXX; do
  21411. +
  21412. + case $var in
  21413. + old_archive_cmds_CXX | \
  21414. + old_archive_from_new_cmds_CXX | \
  21415. + archive_cmds_CXX | \
  21416. + archive_expsym_cmds_CXX | \
  21417. + module_cmds_CXX | \
  21418. + module_expsym_cmds_CXX | \
  21419. + old_archive_from_expsyms_cmds_CXX | \
  21420. + export_symbols_cmds_CXX | \
  21421. + extract_expsyms_cmds | reload_cmds | finish_cmds | \
  21422. + postinstall_cmds | postuninstall_cmds | \
  21423. + old_postinstall_cmds | old_postuninstall_cmds | \
  21424. + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  21425. + # Double-quote double-evaled strings.
  21426. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  21427. + ;;
  21428. + *)
  21429. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  21430. + ;;
  21431. + esac
  21432. + done
  21433. +
  21434. + case $lt_echo in
  21435. + *'\$0 --fallback-echo"')
  21436. + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  21437. + ;;
  21438. + esac
  21439. +
  21440. +cfgfile="$ofile"
  21441. +
  21442. + cat <<__EOF__ >> "$cfgfile"
  21443. +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  21444. +
  21445. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  21446. +
  21447. +# Shell to use when invoking shell scripts.
  21448. +SHELL=$lt_SHELL
  21449. +
  21450. +# Whether or not to build shared libraries.
  21451. +build_libtool_libs=$enable_shared
  21452. +
  21453. +# Whether or not to build static libraries.
  21454. +build_old_libs=$enable_static
  21455. +
  21456. +# Whether or not to add -lc for building shared libraries.
  21457. +build_libtool_need_lc=$archive_cmds_need_lc_CXX
  21458. +
  21459. +# Whether or not to disallow shared libs when runtime libs are static
  21460. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  21461. +
  21462. +# Whether or not to optimize for fast installation.
  21463. +fast_install=$enable_fast_install
  21464. +
  21465. +# The host system.
  21466. +host_alias=$host_alias
  21467. +host=$host
  21468. +host_os=$host_os
  21469. +
  21470. +# The build system.
  21471. +build_alias=$build_alias
  21472. +build=$build
  21473. +build_os=$build_os
  21474. +
  21475. +# An echo program that does not interpret backslashes.
  21476. +echo=$lt_echo
  21477. +
  21478. +# The archiver.
  21479. +AR=$lt_AR
  21480. +AR_FLAGS=$lt_AR_FLAGS
  21481. +
  21482. +# A C compiler.
  21483. +LTCC=$lt_LTCC
  21484. +
  21485. +# LTCC compiler flags.
  21486. +LTCFLAGS=$lt_LTCFLAGS
  21487. +
  21488. +# A language-specific compiler.
  21489. +CC=$lt_compiler_CXX
  21490. +
  21491. +# Is the compiler the GNU C compiler?
  21492. +with_gcc=$GCC_CXX
  21493. +
  21494. +# An ERE matcher.
  21495. +EGREP=$lt_EGREP
  21496. +
  21497. +# The linker used to build libraries.
  21498. +LD=$lt_LD_CXX
  21499. +
  21500. +# Whether we need hard or soft links.
  21501. +LN_S=$lt_LN_S
  21502. +
  21503. +# A BSD-compatible nm program.
  21504. +NM=$lt_NM
  21505. +
  21506. +# A symbol stripping program
  21507. +STRIP=$lt_STRIP
  21508. +
  21509. +# Used to examine libraries when file_magic_cmd begins "file"
  21510. +MAGIC_CMD=$MAGIC_CMD
  21511. +
  21512. +# Used on cygwin: DLL creation program.
  21513. +DLLTOOL="$DLLTOOL"
  21514. +
  21515. +# Used on cygwin: object dumper.
  21516. +OBJDUMP="$OBJDUMP"
  21517. +
  21518. +# Used on cygwin: assembler.
  21519. +AS="$AS"
  21520. +
  21521. +# The name of the directory that contains temporary libtool files.
  21522. +objdir=$objdir
  21523. +
  21524. +# How to create reloadable object files.
  21525. +reload_flag=$lt_reload_flag
  21526. +reload_cmds=$lt_reload_cmds
  21527. +
  21528. +# How to pass a linker flag through the compiler.
  21529. +wl=$lt_lt_prog_compiler_wl_CXX
  21530. +
  21531. +# Object file suffix (normally "o").
  21532. +objext="$ac_objext"
  21533. +
  21534. +# Old archive suffix (normally "a").
  21535. +libext="$libext"
  21536. +
  21537. +# Shared library suffix (normally ".so").
  21538. +shrext_cmds='$shrext_cmds'
  21539. +
  21540. +# Executable file suffix (normally "").
  21541. +exeext="$exeext"
  21542. +
  21543. +# Additional compiler flags for building library objects.
  21544. +pic_flag=$lt_lt_prog_compiler_pic_CXX
  21545. +pic_mode=$pic_mode
  21546. +
  21547. +# What is the maximum length of a command?
  21548. +max_cmd_len=$lt_cv_sys_max_cmd_len
  21549. +
  21550. +# Does compiler simultaneously support -c and -o options?
  21551. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  21552. +
  21553. +# Must we lock files when doing compilation?
  21554. +need_locks=$lt_need_locks
  21555. +
  21556. +# Do we need the lib prefix for modules?
  21557. +need_lib_prefix=$need_lib_prefix
  21558. +
  21559. +# Do we need a version for libraries?
  21560. +need_version=$need_version
  21561. +
  21562. +# Whether dlopen is supported.
  21563. +dlopen_support=$enable_dlopen
  21564. +
  21565. +# Whether dlopen of programs is supported.
  21566. +dlopen_self=$enable_dlopen_self
  21567. +
  21568. +# Whether dlopen of statically linked programs is supported.
  21569. +dlopen_self_static=$enable_dlopen_self_static
  21570. +
  21571. +# Compiler flag to prevent dynamic linking.
  21572. +link_static_flag=$lt_lt_prog_compiler_static_CXX
  21573. +
  21574. +# Compiler flag to turn off builtin functions.
  21575. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  21576. +
  21577. +# Compiler flag to allow reflexive dlopens.
  21578. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  21579. +
  21580. +# Compiler flag to generate shared objects directly from archives.
  21581. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  21582. +
  21583. +# Compiler flag to generate thread-safe objects.
  21584. +thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  21585. +
  21586. +# Library versioning type.
  21587. +version_type=$version_type
  21588. +
  21589. +# Format of library name prefix.
  21590. +libname_spec=$lt_libname_spec
  21591. +
  21592. +# List of archive names. First name is the real one, the rest are links.
  21593. +# The last name is the one that the linker finds with -lNAME.
  21594. +library_names_spec=$lt_library_names_spec
  21595. +
  21596. +# The coded name of the library, if different from the real name.
  21597. +soname_spec=$lt_soname_spec
  21598. +
  21599. +# Commands used to build and install an old-style archive.
  21600. +RANLIB=$lt_RANLIB
  21601. +old_archive_cmds=$lt_old_archive_cmds_CXX
  21602. +old_postinstall_cmds=$lt_old_postinstall_cmds
  21603. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  21604. +
  21605. +# Create an old-style archive from a shared archive.
  21606. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  21607. +
  21608. +# Create a temporary old-style archive to link instead of a shared archive.
  21609. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  21610. +
  21611. +# Commands used to build and install a shared archive.
  21612. +archive_cmds=$lt_archive_cmds_CXX
  21613. +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  21614. +postinstall_cmds=$lt_postinstall_cmds
  21615. +postuninstall_cmds=$lt_postuninstall_cmds
  21616. +
  21617. +# Commands used to build a loadable module (assumed same as above if empty)
  21618. +module_cmds=$lt_module_cmds_CXX
  21619. +module_expsym_cmds=$lt_module_expsym_cmds_CXX
  21620. +
  21621. +# Commands to strip libraries.
  21622. +old_striplib=$lt_old_striplib
  21623. +striplib=$lt_striplib
  21624. +
  21625. +# Dependencies to place before the objects being linked to create a
  21626. +# shared library.
  21627. +predep_objects=$lt_predep_objects_CXX
  21628. +
  21629. +# Dependencies to place after the objects being linked to create a
  21630. +# shared library.
  21631. +postdep_objects=$lt_postdep_objects_CXX
  21632. +
  21633. +# Dependencies to place before the objects being linked to create a
  21634. +# shared library.
  21635. +predeps=$lt_predeps_CXX
  21636. +
  21637. +# Dependencies to place after the objects being linked to create a
  21638. +# shared library.
  21639. +postdeps=$lt_postdeps_CXX
  21640. +
  21641. +# The library search path used internally by the compiler when linking
  21642. +# a shared library.
  21643. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  21644. +
  21645. +# Method to check whether dependent libraries are shared objects.
  21646. +deplibs_check_method=$lt_deplibs_check_method
  21647. +
  21648. +# Command to use when deplibs_check_method == file_magic.
  21649. +file_magic_cmd=$lt_file_magic_cmd
  21650. +
  21651. +# Flag that allows shared libraries with undefined symbols to be built.
  21652. +allow_undefined_flag=$lt_allow_undefined_flag_CXX
  21653. +
  21654. +# Flag that forces no undefined symbols.
  21655. +no_undefined_flag=$lt_no_undefined_flag_CXX
  21656. +
  21657. +# Commands used to finish a libtool library installation in a directory.
  21658. +finish_cmds=$lt_finish_cmds
  21659. +
  21660. +# Same as above, but a single script fragment to be evaled but not shown.
  21661. +finish_eval=$lt_finish_eval
  21662. +
  21663. +# Take the output of nm and produce a listing of raw symbols and C names.
  21664. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  21665. +
  21666. +# Transform the output of nm in a proper C declaration
  21667. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  21668. +
  21669. +# Transform the output of nm in a C name address pair
  21670. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  21671. +
  21672. +# This is the shared library runtime path variable.
  21673. +runpath_var=$runpath_var
  21674. +
  21675. +# This is the shared library path variable.
  21676. +shlibpath_var=$shlibpath_var
  21677. +
  21678. +# Is shlibpath searched before the hard-coded library search path?
  21679. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  21680. +
  21681. +# How to hardcode a shared library path into an executable.
  21682. +hardcode_action=$hardcode_action_CXX
  21683. +
  21684. +# Whether we should hardcode library paths into libraries.
  21685. +hardcode_into_libs=$hardcode_into_libs
  21686. +
  21687. +# Flag to hardcode \$libdir into a binary during linking.
  21688. +# This must work even if \$libdir does not exist.
  21689. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  21690. +
  21691. +# If ld is used when linking, flag to hardcode \$libdir into
  21692. +# a binary during linking. This must work even if \$libdir does
  21693. +# not exist.
  21694. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  21695. +
  21696. +# Whether we need a single -rpath flag with a separated argument.
  21697. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  21698. +
  21699. +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  21700. +# resulting binary.
  21701. +hardcode_direct=$hardcode_direct_CXX
  21702. +
  21703. +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  21704. +# resulting binary.
  21705. +hardcode_minus_L=$hardcode_minus_L_CXX
  21706. +
  21707. +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  21708. +# the resulting binary.
  21709. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  21710. +
  21711. +# Set to yes if building a shared library automatically hardcodes DIR into the library
  21712. +# and all subsequent libraries and executables linked against it.
  21713. +hardcode_automatic=$hardcode_automatic_CXX
  21714. +
  21715. +# Variables whose values should be saved in libtool wrapper scripts and
  21716. +# restored at relink time.
  21717. +variables_saved_for_relink="$variables_saved_for_relink"
  21718. +
  21719. +# Whether libtool must link a program against all its dependency libraries.
  21720. +link_all_deplibs=$link_all_deplibs_CXX
  21721. +
  21722. +# Compile-time system search path for libraries
  21723. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  21724. +
  21725. +# Run-time system search path for libraries
  21726. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  21727. +
  21728. +# Fix the shell variable \$srcfile for the compiler.
  21729. +fix_srcfile_path="$fix_srcfile_path_CXX"
  21730. +
  21731. +# Set to yes if exported symbols are required.
  21732. +always_export_symbols=$always_export_symbols_CXX
  21733. +
  21734. +# The commands to list exported symbols.
  21735. +export_symbols_cmds=$lt_export_symbols_cmds_CXX
  21736. +
  21737. +# The commands to extract the exported symbol list from a shared archive.
  21738. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  21739. +
  21740. +# Symbols that should not be listed in the preloaded symbols.
  21741. +exclude_expsyms=$lt_exclude_expsyms_CXX
  21742. +
  21743. +# Symbols that must always be exported.
  21744. +include_expsyms=$lt_include_expsyms_CXX
  21745. +
  21746. +# ### END LIBTOOL TAG CONFIG: $tagname
  21747. +
  21748. +__EOF__
  21749. +
  21750. +
  21751. +else
  21752. + # If there is no Makefile yet, we rely on a make rule to execute
  21753. + # `config.status --recheck' to rerun these tests and create the
  21754. + # libtool script then.
  21755. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  21756. + if test -f "$ltmain_in"; then
  21757. + test -f Makefile && make "$ltmain"
  21758. + fi
  21759. +fi
  21760. +
  21761. +
  21762. +ac_ext=c
  21763. +ac_cpp='$CPP $CPPFLAGS'
  21764. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21765. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21766. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21767. +
  21768. +CC=$lt_save_CC
  21769. +LDCXX=$LD
  21770. +LD=$lt_save_LD
  21771. +GCC=$lt_save_GCC
  21772. +with_gnu_ldcxx=$with_gnu_ld
  21773. +with_gnu_ld=$lt_save_with_gnu_ld
  21774. +lt_cv_path_LDCXX=$lt_cv_path_LD
  21775. +lt_cv_path_LD=$lt_save_path_LD
  21776. +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  21777. +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  21778. +
  21779. + else
  21780. + tagname=""
  21781. + fi
  21782. + ;;
  21783. +
  21784. + F77)
  21785. + if test -n "$F77" && test "X$F77" != "Xno"; then
  21786. +
  21787. +ac_ext=f
  21788. +ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  21789. +ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21790. +ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  21791. +
  21792. +
  21793. +archive_cmds_need_lc_F77=no
  21794. +allow_undefined_flag_F77=
  21795. +always_export_symbols_F77=no
  21796. +archive_expsym_cmds_F77=
  21797. +export_dynamic_flag_spec_F77=
  21798. +hardcode_direct_F77=no
  21799. +hardcode_libdir_flag_spec_F77=
  21800. +hardcode_libdir_flag_spec_ld_F77=
  21801. +hardcode_libdir_separator_F77=
  21802. +hardcode_minus_L_F77=no
  21803. +hardcode_automatic_F77=no
  21804. +module_cmds_F77=
  21805. +module_expsym_cmds_F77=
  21806. +link_all_deplibs_F77=unknown
  21807. +old_archive_cmds_F77=$old_archive_cmds
  21808. +no_undefined_flag_F77=
  21809. +whole_archive_flag_spec_F77=
  21810. +enable_shared_with_static_runtimes_F77=no
  21811. +
  21812. +# Source file extension for f77 test sources.
  21813. +ac_ext=f
  21814. +
  21815. +# Object file extension for compiled f77 test sources.
  21816. +objext=o
  21817. +objext_F77=$objext
  21818. +
  21819. +# Code to be used in simple compile tests
  21820. +lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  21821. +
  21822. +# Code to be used in simple link tests
  21823. +lt_simple_link_test_code=" program t\n end\n"
  21824. +
  21825. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  21826. +
  21827. +# If no C compiler was specified, use CC.
  21828. +LTCC=${LTCC-"$CC"}
  21829. +
  21830. +# If no C compiler flags were specified, use CFLAGS.
  21831. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  21832. +
  21833. +# Allow CC to be a program name with arguments.
  21834. +compiler=$CC
  21835. +
  21836. +
  21837. +# save warnings/boilerplate of simple test code
  21838. +ac_outfile=conftest.$ac_objext
  21839. +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  21840. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  21841. +_lt_compiler_boilerplate=`cat conftest.err`
  21842. +$rm conftest*
  21843. +
  21844. +ac_outfile=conftest.$ac_objext
  21845. +printf "$lt_simple_link_test_code" >conftest.$ac_ext
  21846. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  21847. +_lt_linker_boilerplate=`cat conftest.err`
  21848. +$rm conftest*
  21849. +
  21850. +
  21851. +# Allow CC to be a program name with arguments.
  21852. +lt_save_CC="$CC"
  21853. +CC=${F77-"f77"}
  21854. +compiler=$CC
  21855. +compiler_F77=$CC
  21856. +for cc_temp in $compiler""; do
  21857. + case $cc_temp in
  21858. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  21859. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  21860. + \-*) ;;
  21861. + *) break;;
  21862. + esac
  21863. +done
  21864. +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  21865. +
  21866. +
  21867. +echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  21868. +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  21869. +echo "$as_me:$LINENO: result: $can_build_shared" >&5
  21870. +echo "${ECHO_T}$can_build_shared" >&6
  21871. +
  21872. +echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  21873. +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  21874. +test "$can_build_shared" = "no" && enable_shared=no
  21875. +
  21876. +# On AIX, shared libraries and static libraries use the same namespace, and
  21877. +# are all built from PIC.
  21878. +case $host_os in
  21879. +aix3*)
  21880. + test "$enable_shared" = yes && enable_static=no
  21881. + if test -n "$RANLIB"; then
  21882. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  21883. + postinstall_cmds='$RANLIB $lib'
  21884. + fi
  21885. + ;;
  21886. +aix4* | aix5*)
  21887. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  21888. + test "$enable_shared" = yes && enable_static=no
  21889. + fi
  21890. + ;;
  21891. +esac
  21892. +echo "$as_me:$LINENO: result: $enable_shared" >&5
  21893. +echo "${ECHO_T}$enable_shared" >&6
  21894. +
  21895. +echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  21896. +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  21897. +# Make sure either enable_shared or enable_static is yes.
  21898. +test "$enable_shared" = yes || enable_static=yes
  21899. +echo "$as_me:$LINENO: result: $enable_static" >&5
  21900. +echo "${ECHO_T}$enable_static" >&6
  21901. +
  21902. +GCC_F77="$G77"
  21903. +LD_F77="$LD"
  21904. +
  21905. +lt_prog_compiler_wl_F77=
  21906. +lt_prog_compiler_pic_F77=
  21907. +lt_prog_compiler_static_F77=
  21908. +
  21909. +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  21910. +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  21911. +
  21912. + if test "$GCC" = yes; then
  21913. + lt_prog_compiler_wl_F77='-Wl,'
  21914. + lt_prog_compiler_static_F77='-static'
  21915. +
  21916. + case $host_os in
  21917. + aix*)
  21918. + # All AIX code is PIC.
  21919. + if test "$host_cpu" = ia64; then
  21920. + # AIX 5 now supports IA64 processor
  21921. + lt_prog_compiler_static_F77='-Bstatic'
  21922. + fi
  21923. + ;;
  21924. +
  21925. + amigaos*)
  21926. + # FIXME: we need at least 68020 code to build shared libraries, but
  21927. + # adding the `-m68020' flag to GCC prevents building anything better,
  21928. + # like `-m68040'.
  21929. + lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  21930. + ;;
  21931. +
  21932. + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  21933. + # PIC is the default for these OSes.
  21934. + ;;
  21935. +
  21936. + mingw* | pw32* | os2*)
  21937. + # This hack is so that the source file can tell whether it is being
  21938. + # built for inclusion in a dll (and should export symbols for example).
  21939. + lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  21940. + ;;
  21941. +
  21942. + darwin* | rhapsody*)
  21943. + # PIC is the default on this platform
  21944. + # Common symbols not allowed in MH_DYLIB files
  21945. + lt_prog_compiler_pic_F77='-fno-common'
  21946. + ;;
  21947. +
  21948. + interix3*)
  21949. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  21950. + # Instead, we relocate shared libraries at runtime.
  21951. + ;;
  21952. +
  21953. + msdosdjgpp*)
  21954. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  21955. + # on systems that don't support them.
  21956. + lt_prog_compiler_can_build_shared_F77=no
  21957. + enable_shared=no
  21958. + ;;
  21959. +
  21960. + sysv4*MP*)
  21961. + if test -d /usr/nec; then
  21962. + lt_prog_compiler_pic_F77=-Kconform_pic
  21963. + fi
  21964. + ;;
  21965. +
  21966. + hpux*)
  21967. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  21968. + # not for PA HP-UX.
  21969. + case $host_cpu in
  21970. + hppa*64*|ia64*)
  21971. + # +Z the default
  21972. + ;;
  21973. + *)
  21974. + lt_prog_compiler_pic_F77='-fPIC'
  21975. + ;;
  21976. + esac
  21977. + ;;
  21978. +
  21979. + *)
  21980. + lt_prog_compiler_pic_F77='-fPIC'
  21981. + ;;
  21982. + esac
  21983. + else
  21984. + # PORTME Check for flag to pass linker flags through the system compiler.
  21985. + case $host_os in
  21986. + aix*)
  21987. + lt_prog_compiler_wl_F77='-Wl,'
  21988. + if test "$host_cpu" = ia64; then
  21989. + # AIX 5 now supports IA64 processor
  21990. + lt_prog_compiler_static_F77='-Bstatic'
  21991. + else
  21992. + lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  21993. + fi
  21994. + ;;
  21995. + darwin*)
  21996. + # PIC is the default on this platform
  21997. + # Common symbols not allowed in MH_DYLIB files
  21998. + case $cc_basename in
  21999. + xlc*)
  22000. + lt_prog_compiler_pic_F77='-qnocommon'
  22001. + lt_prog_compiler_wl_F77='-Wl,'
  22002. + ;;
  22003. + esac
  22004. + ;;
  22005. +
  22006. + mingw* | pw32* | os2*)
  22007. + # This hack is so that the source file can tell whether it is being
  22008. + # built for inclusion in a dll (and should export symbols for example).
  22009. + lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  22010. + ;;
  22011. +
  22012. + hpux9* | hpux10* | hpux11*)
  22013. + lt_prog_compiler_wl_F77='-Wl,'
  22014. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  22015. + # not for PA HP-UX.
  22016. + case $host_cpu in
  22017. + hppa*64*|ia64*)
  22018. + # +Z the default
  22019. + ;;
  22020. + *)
  22021. + lt_prog_compiler_pic_F77='+Z'
  22022. + ;;
  22023. + esac
  22024. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  22025. + lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  22026. + ;;
  22027. +
  22028. + irix5* | irix6* | nonstopux*)
  22029. + lt_prog_compiler_wl_F77='-Wl,'
  22030. + # PIC (with -KPIC) is the default.
  22031. + lt_prog_compiler_static_F77='-non_shared'
  22032. + ;;
  22033. +
  22034. + newsos6)
  22035. + lt_prog_compiler_pic_F77='-KPIC'
  22036. + lt_prog_compiler_static_F77='-Bstatic'
  22037. + ;;
  22038. +
  22039. + linux*)
  22040. + case $cc_basename in
  22041. + icc* | ecc*)
  22042. + lt_prog_compiler_wl_F77='-Wl,'
  22043. + lt_prog_compiler_pic_F77='-KPIC'
  22044. + lt_prog_compiler_static_F77='-static'
  22045. + ;;
  22046. + pgcc* | pgf77* | pgf90* | pgf95*)
  22047. + # Portland Group compilers (*not* the Pentium gcc compiler,
  22048. + # which looks to be a dead project)
  22049. + lt_prog_compiler_wl_F77='-Wl,'
  22050. + lt_prog_compiler_pic_F77='-fpic'
  22051. + lt_prog_compiler_static_F77='-Bstatic'
  22052. + ;;
  22053. + ccc*)
  22054. + lt_prog_compiler_wl_F77='-Wl,'
  22055. + # All Alpha code is PIC.
  22056. + lt_prog_compiler_static_F77='-non_shared'
  22057. + ;;
  22058. + esac
  22059. + ;;
  22060. +
  22061. + osf3* | osf4* | osf5*)
  22062. + lt_prog_compiler_wl_F77='-Wl,'
  22063. + # All OSF/1 code is PIC.
  22064. + lt_prog_compiler_static_F77='-non_shared'
  22065. + ;;
  22066. +
  22067. + solaris*)
  22068. + lt_prog_compiler_pic_F77='-KPIC'
  22069. + lt_prog_compiler_static_F77='-Bstatic'
  22070. + case $cc_basename in
  22071. + f77* | f90* | f95*)
  22072. + lt_prog_compiler_wl_F77='-Qoption ld ';;
  22073. + *)
  22074. + lt_prog_compiler_wl_F77='-Wl,';;
  22075. + esac
  22076. + ;;
  22077. +
  22078. + sunos4*)
  22079. + lt_prog_compiler_wl_F77='-Qoption ld '
  22080. + lt_prog_compiler_pic_F77='-PIC'
  22081. + lt_prog_compiler_static_F77='-Bstatic'
  22082. + ;;
  22083. +
  22084. + sysv4 | sysv4.2uw2* | sysv4.3*)
  22085. + lt_prog_compiler_wl_F77='-Wl,'
  22086. + lt_prog_compiler_pic_F77='-KPIC'
  22087. + lt_prog_compiler_static_F77='-Bstatic'
  22088. + ;;
  22089. +
  22090. + sysv4*MP*)
  22091. + if test -d /usr/nec ;then
  22092. + lt_prog_compiler_pic_F77='-Kconform_pic'
  22093. + lt_prog_compiler_static_F77='-Bstatic'
  22094. + fi
  22095. + ;;
  22096. +
  22097. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  22098. + lt_prog_compiler_wl_F77='-Wl,'
  22099. + lt_prog_compiler_pic_F77='-KPIC'
  22100. + lt_prog_compiler_static_F77='-Bstatic'
  22101. + ;;
  22102. +
  22103. + unicos*)
  22104. + lt_prog_compiler_wl_F77='-Wl,'
  22105. + lt_prog_compiler_can_build_shared_F77=no
  22106. + ;;
  22107. +
  22108. + uts4*)
  22109. + lt_prog_compiler_pic_F77='-pic'
  22110. + lt_prog_compiler_static_F77='-Bstatic'
  22111. + ;;
  22112. +
  22113. + *)
  22114. + lt_prog_compiler_can_build_shared_F77=no
  22115. + ;;
  22116. + esac
  22117. + fi
  22118. +
  22119. +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  22120. +echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  22121. +
  22122. +#
  22123. +# Check to make sure the PIC flag actually works.
  22124. +#
  22125. +if test -n "$lt_prog_compiler_pic_F77"; then
  22126. +
  22127. +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  22128. +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  22129. +if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  22130. + echo $ECHO_N "(cached) $ECHO_C" >&6
  22131. +else
  22132. + lt_prog_compiler_pic_works_F77=no
  22133. + ac_outfile=conftest.$ac_objext
  22134. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  22135. + lt_compiler_flag="$lt_prog_compiler_pic_F77"
  22136. + # Insert the option either (1) after the last *FLAGS variable, or
  22137. + # (2) before a word containing "conftest.", or (3) at the end.
  22138. + # Note that $ac_compile itself does not contain backslashes and begins
  22139. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  22140. + # The option is referenced via a variable to avoid confusing sed.
  22141. + lt_compile=`echo "$ac_compile" | $SED \
  22142. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  22143. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  22144. + -e 's:$: $lt_compiler_flag:'`
  22145. + (eval echo "\"\$as_me:12830: $lt_compile\"" >&5)
  22146. + (eval "$lt_compile" 2>conftest.err)
  22147. + ac_status=$?
  22148. + cat conftest.err >&5
  22149. + echo "$as_me:12834: \$? = $ac_status" >&5
  22150. + if (exit $ac_status) && test -s "$ac_outfile"; then
  22151. + # The compiler can only warn and ignore the option if not recognized
  22152. + # So say no if there are warnings other than the usual output.
  22153. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  22154. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  22155. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  22156. + lt_prog_compiler_pic_works_F77=yes
  22157. + fi
  22158. + fi
  22159. + $rm conftest*
  22160. +
  22161. +fi
  22162. +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  22163. +echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  22164. +
  22165. +if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  22166. + case $lt_prog_compiler_pic_F77 in
  22167. + "" | " "*) ;;
  22168. + *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  22169. + esac
  22170. +else
  22171. + lt_prog_compiler_pic_F77=
  22172. + lt_prog_compiler_can_build_shared_F77=no
  22173. +fi
  22174. +
  22175. +fi
  22176. +case $host_os in
  22177. + # For platforms which do not support PIC, -DPIC is meaningless:
  22178. + *djgpp*)
  22179. + lt_prog_compiler_pic_F77=
  22180. + ;;
  22181. + *)
  22182. + lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  22183. + ;;
  22184. +esac
  22185. +
  22186. +#
  22187. +# Check to make sure the static flag actually works.
  22188. +#
  22189. +wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  22190. +echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  22191. +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  22192. +if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  22193. + echo $ECHO_N "(cached) $ECHO_C" >&6
  22194. +else
  22195. + lt_prog_compiler_static_works_F77=no
  22196. + save_LDFLAGS="$LDFLAGS"
  22197. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  22198. + printf "$lt_simple_link_test_code" > conftest.$ac_ext
  22199. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  22200. + # The linker can only warn and ignore the option if not recognized
  22201. + # So say no if there are warnings
  22202. + if test -s conftest.err; then
  22203. + # Append any errors to the config.log.
  22204. + cat conftest.err 1>&5
  22205. + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  22206. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  22207. + if diff conftest.exp conftest.er2 >/dev/null; then
  22208. + lt_prog_compiler_static_works_F77=yes
  22209. + fi
  22210. + else
  22211. + lt_prog_compiler_static_works_F77=yes
  22212. + fi
  22213. + fi
  22214. + $rm conftest*
  22215. + LDFLAGS="$save_LDFLAGS"
  22216. +
  22217. +fi
  22218. +echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  22219. +echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
  22220. +
  22221. +if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  22222. + :
  22223. +else
  22224. + lt_prog_compiler_static_F77=
  22225. +fi
  22226. +
  22227. +
  22228. +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  22229. +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  22230. +if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  22231. + echo $ECHO_N "(cached) $ECHO_C" >&6
  22232. +else
  22233. + lt_cv_prog_compiler_c_o_F77=no
  22234. + $rm -r conftest 2>/dev/null
  22235. + mkdir conftest
  22236. + cd conftest
  22237. + mkdir out
  22238. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  22239. +
  22240. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  22241. + # Insert the option either (1) after the last *FLAGS variable, or
  22242. + # (2) before a word containing "conftest.", or (3) at the end.
  22243. + # Note that $ac_compile itself does not contain backslashes and begins
  22244. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  22245. + lt_compile=`echo "$ac_compile" | $SED \
  22246. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  22247. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  22248. + -e 's:$: $lt_compiler_flag:'`
  22249. + (eval echo "\"\$as_me:12934: $lt_compile\"" >&5)
  22250. + (eval "$lt_compile" 2>out/conftest.err)
  22251. + ac_status=$?
  22252. + cat out/conftest.err >&5
  22253. + echo "$as_me:12938: \$? = $ac_status" >&5
  22254. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  22255. + then
  22256. + # The compiler can only warn and ignore the option if not recognized
  22257. + # So say no if there are warnings
  22258. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  22259. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  22260. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  22261. + lt_cv_prog_compiler_c_o_F77=yes
  22262. + fi
  22263. + fi
  22264. + chmod u+w . 2>&5
  22265. + $rm conftest*
  22266. + # SGI C++ compiler will create directory out/ii_files/ for
  22267. + # template instantiation
  22268. + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  22269. + $rm out/* && rmdir out
  22270. + cd ..
  22271. + rmdir conftest
  22272. + $rm conftest*
  22273. +
  22274. +fi
  22275. +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  22276. +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  22277. +
  22278. +
  22279. +hard_links="nottested"
  22280. +if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  22281. + # do not overwrite the value of need_locks provided by the user
  22282. + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  22283. +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  22284. + hard_links=yes
  22285. + $rm conftest*
  22286. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  22287. + touch conftest.a
  22288. + ln conftest.a conftest.b 2>&5 || hard_links=no
  22289. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  22290. + echo "$as_me:$LINENO: result: $hard_links" >&5
  22291. +echo "${ECHO_T}$hard_links" >&6
  22292. + if test "$hard_links" = no; then
  22293. + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  22294. +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  22295. + need_locks=warn
  22296. + fi
  22297. +else
  22298. + need_locks=no
  22299. +fi
  22300. +
  22301. +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  22302. +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  22303. +
  22304. + runpath_var=
  22305. + allow_undefined_flag_F77=
  22306. + enable_shared_with_static_runtimes_F77=no
  22307. + archive_cmds_F77=
  22308. + archive_expsym_cmds_F77=
  22309. + old_archive_From_new_cmds_F77=
  22310. + old_archive_from_expsyms_cmds_F77=
  22311. + export_dynamic_flag_spec_F77=
  22312. + whole_archive_flag_spec_F77=
  22313. + thread_safe_flag_spec_F77=
  22314. + hardcode_libdir_flag_spec_F77=
  22315. + hardcode_libdir_flag_spec_ld_F77=
  22316. + hardcode_libdir_separator_F77=
  22317. + hardcode_direct_F77=no
  22318. + hardcode_minus_L_F77=no
  22319. + hardcode_shlibpath_var_F77=unsupported
  22320. + link_all_deplibs_F77=unknown
  22321. + hardcode_automatic_F77=no
  22322. + module_cmds_F77=
  22323. + module_expsym_cmds_F77=
  22324. + always_export_symbols_F77=no
  22325. + export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  22326. + # include_expsyms should be a list of space-separated symbols to be *always*
  22327. + # included in the symbol list
  22328. + include_expsyms_F77=
  22329. + # exclude_expsyms can be an extended regexp of symbols to exclude
  22330. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  22331. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  22332. + # as well as any symbol that contains `d'.
  22333. + exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  22334. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  22335. + # platforms (ab)use it in PIC code, but their linkers get confused if
  22336. + # the symbol is explicitly referenced. Since portable code cannot
  22337. + # rely on this symbol name, it's probably fine to never include it in
  22338. + # preloaded symbol tables.
  22339. + extract_expsyms_cmds=
  22340. + # Just being paranoid about ensuring that cc_basename is set.
  22341. + for cc_temp in $compiler""; do
  22342. + case $cc_temp in
  22343. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  22344. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  22345. + \-*) ;;
  22346. + *) break;;
  22347. + esac
  22348. +done
  22349. +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  22350. +
  22351. + case $host_os in
  22352. + cygwin* | mingw* | pw32*)
  22353. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  22354. + # When not using gcc, we currently assume that we are using
  22355. + # Microsoft Visual C++.
  22356. + if test "$GCC" != yes; then
  22357. + with_gnu_ld=no
  22358. + fi
  22359. + ;;
  22360. + interix*)
  22361. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  22362. + with_gnu_ld=yes
  22363. + ;;
  22364. + openbsd*)
  22365. + with_gnu_ld=no
  22366. + ;;
  22367. + esac
  22368. +
  22369. + ld_shlibs_F77=yes
  22370. + if test "$with_gnu_ld" = yes; then
  22371. + # If archive_cmds runs LD, not CC, wlarc should be empty
  22372. + wlarc='${wl}'
  22373. +
  22374. + # Set some defaults for GNU ld with shared library support. These
  22375. + # are reset later if shared libraries are not supported. Putting them
  22376. + # here allows them to be overridden if necessary.
  22377. + runpath_var=LD_RUN_PATH
  22378. + hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  22379. + export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  22380. + # ancient GNU ld didn't support --whole-archive et. al.
  22381. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  22382. + whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  22383. + else
  22384. + whole_archive_flag_spec_F77=
  22385. + fi
  22386. + supports_anon_versioning=no
  22387. + case `$LD -v 2>/dev/null` in
  22388. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  22389. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  22390. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  22391. + *\ 2.11.*) ;; # other 2.11 versions
  22392. + *) supports_anon_versioning=yes ;;
  22393. + esac
  22394. +
  22395. + # See if GNU ld supports shared libraries.
  22396. + case $host_os in
  22397. + aix3* | aix4* | aix5*)
  22398. + # On AIX/PPC, the GNU linker is very broken
  22399. + if test "$host_cpu" != ia64; then
  22400. + ld_shlibs_F77=no
  22401. + cat <<EOF 1>&2
  22402. +
  22403. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  22404. +*** to be unable to reliably create shared libraries on AIX.
  22405. +*** Therefore, libtool is disabling shared libraries support. If you
  22406. +*** really care for shared libraries, you may want to modify your PATH
  22407. +*** so that a non-GNU linker is found, and then restart.
  22408. +
  22409. +EOF
  22410. + fi
  22411. + ;;
  22412. +
  22413. + amigaos*)
  22414. + archive_cmds_F77='$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)'
  22415. + hardcode_libdir_flag_spec_F77='-L$libdir'
  22416. + hardcode_minus_L_F77=yes
  22417. +
  22418. + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  22419. + # that the semantics of dynamic libraries on AmigaOS, at least up
  22420. + # to version 4, is to share data among multiple programs linked
  22421. + # with the same dynamic library. Since this doesn't match the
  22422. + # behavior of shared libraries on other platforms, we can't use
  22423. + # them.
  22424. + ld_shlibs_F77=no
  22425. + ;;
  22426. +
  22427. + beos*)
  22428. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  22429. + allow_undefined_flag_F77=unsupported
  22430. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  22431. + # support --undefined. This deserves some investigation. FIXME
  22432. + archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22433. + else
  22434. + ld_shlibs_F77=no
  22435. + fi
  22436. + ;;
  22437. +
  22438. + cygwin* | mingw* | pw32*)
  22439. + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  22440. + # as there is no search path for DLLs.
  22441. + hardcode_libdir_flag_spec_F77='-L$libdir'
  22442. + allow_undefined_flag_F77=unsupported
  22443. + always_export_symbols_F77=no
  22444. + enable_shared_with_static_runtimes_F77=yes
  22445. + export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  22446. +
  22447. + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  22448. + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  22449. + # If the export-symbols file already is a .def file (1st line
  22450. + # is EXPORTS), use it as is; otherwise, prepend...
  22451. + archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  22452. + cp $export_symbols $output_objdir/$soname.def;
  22453. + else
  22454. + echo EXPORTS > $output_objdir/$soname.def;
  22455. + cat $export_symbols >> $output_objdir/$soname.def;
  22456. + fi~
  22457. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  22458. + else
  22459. + ld_shlibs_F77=no
  22460. + fi
  22461. + ;;
  22462. +
  22463. + interix3*)
  22464. + hardcode_direct_F77=no
  22465. + hardcode_shlibpath_var_F77=no
  22466. + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  22467. + export_dynamic_flag_spec_F77='${wl}-E'
  22468. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  22469. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  22470. + # default) and relocated if they conflict, which is a slow very memory
  22471. + # consuming and fragmenting process. To avoid this, we pick a random,
  22472. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  22473. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  22474. + archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  22475. + archive_expsym_cmds_F77='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'
  22476. + ;;
  22477. +
  22478. + linux*)
  22479. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  22480. + tmp_addflag=
  22481. + case $cc_basename,$host_cpu in
  22482. + pgcc*) # Portland Group C compiler
  22483. + whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  22484. + tmp_addflag=' $pic_flag'
  22485. + ;;
  22486. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  22487. + whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  22488. + tmp_addflag=' $pic_flag -Mnomain' ;;
  22489. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  22490. + tmp_addflag=' -i_dynamic' ;;
  22491. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  22492. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  22493. + ifc* | ifort*) # Intel Fortran compiler
  22494. + tmp_addflag=' -nofor_main' ;;
  22495. + esac
  22496. + archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22497. +
  22498. + if test $supports_anon_versioning = yes; then
  22499. + archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  22500. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  22501. + $echo "local: *; };" >> $output_objdir/$libname.ver~
  22502. + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  22503. + fi
  22504. + link_all_deplibs_F77=no
  22505. + else
  22506. + ld_shlibs_F77=no
  22507. + fi
  22508. + ;;
  22509. +
  22510. + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  22511. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  22512. + archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  22513. + wlarc=
  22514. + else
  22515. + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22516. + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  22517. + fi
  22518. + ;;
  22519. +
  22520. + solaris*)
  22521. + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  22522. + ld_shlibs_F77=no
  22523. + cat <<EOF 1>&2
  22524. +
  22525. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  22526. +*** create shared libraries on Solaris systems. Therefore, libtool
  22527. +*** is disabling shared libraries support. We urge you to upgrade GNU
  22528. +*** binutils to release 2.9.1 or newer. Another option is to modify
  22529. +*** your PATH or compiler configuration so that the native linker is
  22530. +*** used, and then restart.
  22531. +
  22532. +EOF
  22533. + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  22534. + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22535. + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  22536. + else
  22537. + ld_shlibs_F77=no
  22538. + fi
  22539. + ;;
  22540. +
  22541. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  22542. + case `$LD -v 2>&1` in
  22543. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  22544. + ld_shlibs_F77=no
  22545. + cat <<_LT_EOF 1>&2
  22546. +
  22547. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  22548. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  22549. +*** is disabling shared libraries support. We urge you to upgrade GNU
  22550. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  22551. +*** your PATH or compiler configuration so that the native linker is
  22552. +*** used, and then restart.
  22553. +
  22554. +_LT_EOF
  22555. + ;;
  22556. + *)
  22557. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  22558. + hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  22559. + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  22560. + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  22561. + else
  22562. + ld_shlibs_F77=no
  22563. + fi
  22564. + ;;
  22565. + esac
  22566. + ;;
  22567. +
  22568. + sunos4*)
  22569. + archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  22570. + wlarc=
  22571. + hardcode_direct_F77=yes
  22572. + hardcode_shlibpath_var_F77=no
  22573. + ;;
  22574. +
  22575. + *)
  22576. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  22577. + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22578. + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  22579. + else
  22580. + ld_shlibs_F77=no
  22581. + fi
  22582. + ;;
  22583. + esac
  22584. +
  22585. + if test "$ld_shlibs_F77" = no; then
  22586. + runpath_var=
  22587. + hardcode_libdir_flag_spec_F77=
  22588. + export_dynamic_flag_spec_F77=
  22589. + whole_archive_flag_spec_F77=
  22590. + fi
  22591. + else
  22592. + # PORTME fill in a description of your system's linker (not GNU ld)
  22593. + case $host_os in
  22594. + aix3*)
  22595. + allow_undefined_flag_F77=unsupported
  22596. + always_export_symbols_F77=yes
  22597. + archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  22598. + # Note: this linker hardcodes the directories in LIBPATH if there
  22599. + # are no directories specified by -L.
  22600. + hardcode_minus_L_F77=yes
  22601. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  22602. + # Neither direct hardcoding nor static linking is supported with a
  22603. + # broken collect2.
  22604. + hardcode_direct_F77=unsupported
  22605. + fi
  22606. + ;;
  22607. +
  22608. + aix4* | aix5*)
  22609. + if test "$host_cpu" = ia64; then
  22610. + # On IA64, the linker does run time linking by default, so we don't
  22611. + # have to do anything special.
  22612. + aix_use_runtimelinking=no
  22613. + exp_sym_flag='-Bexport'
  22614. + no_entry_flag=""
  22615. + else
  22616. + # If we're using GNU nm, then we don't want the "-C" option.
  22617. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  22618. + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  22619. + export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  22620. + else
  22621. + export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  22622. + fi
  22623. + aix_use_runtimelinking=no
  22624. +
  22625. + # Test if we are trying to use run time linking or normal
  22626. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  22627. + # need to do runtime linking.
  22628. + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  22629. + for ld_flag in $LDFLAGS; do
  22630. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  22631. + aix_use_runtimelinking=yes
  22632. + break
  22633. + fi
  22634. + done
  22635. + ;;
  22636. + esac
  22637. +
  22638. + exp_sym_flag='-bexport'
  22639. + no_entry_flag='-bnoentry'
  22640. + fi
  22641. +
  22642. + # When large executables or shared objects are built, AIX ld can
  22643. + # have problems creating the table of contents. If linking a library
  22644. + # or program results in "error TOC overflow" add -mminimal-toc to
  22645. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  22646. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  22647. +
  22648. + archive_cmds_F77=''
  22649. + hardcode_direct_F77=yes
  22650. + hardcode_libdir_separator_F77=':'
  22651. + link_all_deplibs_F77=yes
  22652. +
  22653. + if test "$GCC" = yes; then
  22654. + case $host_os in aix4.[012]|aix4.[012].*)
  22655. + # We only want to do this on AIX 4.2 and lower, the check
  22656. + # below for broken collect2 doesn't work under 4.3+
  22657. + collect2name=`${CC} -print-prog-name=collect2`
  22658. + if test -f "$collect2name" && \
  22659. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  22660. + then
  22661. + # We have reworked collect2
  22662. + hardcode_direct_F77=yes
  22663. + else
  22664. + # We have old collect2
  22665. + hardcode_direct_F77=unsupported
  22666. + # It fails to find uninstalled libraries when the uninstalled
  22667. + # path is not listed in the libpath. Setting hardcode_minus_L
  22668. + # to unsupported forces relinking
  22669. + hardcode_minus_L_F77=yes
  22670. + hardcode_libdir_flag_spec_F77='-L$libdir'
  22671. + hardcode_libdir_separator_F77=
  22672. + fi
  22673. + ;;
  22674. + esac
  22675. + shared_flag='-shared'
  22676. + if test "$aix_use_runtimelinking" = yes; then
  22677. + shared_flag="$shared_flag "'${wl}-G'
  22678. + fi
  22679. + else
  22680. + # not using gcc
  22681. + if test "$host_cpu" = ia64; then
  22682. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  22683. + # chokes on -Wl,-G. The following line is correct:
  22684. + shared_flag='-G'
  22685. + else
  22686. + if test "$aix_use_runtimelinking" = yes; then
  22687. + shared_flag='${wl}-G'
  22688. + else
  22689. + shared_flag='${wl}-bM:SRE'
  22690. + fi
  22691. + fi
  22692. + fi
  22693. +
  22694. + # It seems that -bexpall does not export symbols beginning with
  22695. + # underscore (_), so it is better to generate a list of symbols to export.
  22696. + always_export_symbols_F77=yes
  22697. + if test "$aix_use_runtimelinking" = yes; then
  22698. + # Warning - without using the other runtime loading flags (-brtl),
  22699. + # -berok will link without error, but may produce a broken library.
  22700. + allow_undefined_flag_F77='-berok'
  22701. + # Determine the default libpath from the value encoded in an empty executable.
  22702. + cat >conftest.$ac_ext <<_ACEOF
  22703. + program main
  22704. +
  22705. + end
  22706. +_ACEOF
  22707. +rm -f conftest.$ac_objext conftest$ac_exeext
  22708. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22709. + (eval $ac_link) 2>conftest.er1
  22710. + ac_status=$?
  22711. + grep -v '^ *+' conftest.er1 >conftest.err
  22712. + rm -f conftest.er1
  22713. + cat conftest.err >&5
  22714. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22715. + (exit $ac_status); } &&
  22716. + { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  22717. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22718. + (eval $ac_try) 2>&5
  22719. + ac_status=$?
  22720. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22721. + (exit $ac_status); }; } &&
  22722. + { ac_try='test -s conftest$ac_exeext'
  22723. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22724. + (eval $ac_try) 2>&5
  22725. + ac_status=$?
  22726. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22727. + (exit $ac_status); }; }; then
  22728. +
  22729. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  22730. +}'`
  22731. +# Check for a 64-bit object if we didn't find anything.
  22732. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  22733. +}'`; fi
  22734. +else
  22735. + echo "$as_me: failed program was:" >&5
  22736. +sed 's/^/| /' conftest.$ac_ext >&5
  22737. +
  22738. +fi
  22739. +rm -f conftest.err conftest.$ac_objext \
  22740. + conftest$ac_exeext conftest.$ac_ext
  22741. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  22742. +
  22743. + hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  22744. + archive_expsym_cmds_F77="\$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"
  22745. + else
  22746. + if test "$host_cpu" = ia64; then
  22747. + hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  22748. + allow_undefined_flag_F77="-z nodefs"
  22749. + archive_expsym_cmds_F77="\$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"
  22750. + else
  22751. + # Determine the default libpath from the value encoded in an empty executable.
  22752. + cat >conftest.$ac_ext <<_ACEOF
  22753. + program main
  22754. +
  22755. + end
  22756. +_ACEOF
  22757. +rm -f conftest.$ac_objext conftest$ac_exeext
  22758. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22759. + (eval $ac_link) 2>conftest.er1
  22760. + ac_status=$?
  22761. + grep -v '^ *+' conftest.er1 >conftest.err
  22762. + rm -f conftest.er1
  22763. + cat conftest.err >&5
  22764. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22765. + (exit $ac_status); } &&
  22766. + { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  22767. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22768. + (eval $ac_try) 2>&5
  22769. + ac_status=$?
  22770. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22771. + (exit $ac_status); }; } &&
  22772. + { ac_try='test -s conftest$ac_exeext'
  22773. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22774. + (eval $ac_try) 2>&5
  22775. + ac_status=$?
  22776. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22777. + (exit $ac_status); }; }; then
  22778. +
  22779. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  22780. +}'`
  22781. +# Check for a 64-bit object if we didn't find anything.
  22782. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  22783. +}'`; fi
  22784. +else
  22785. + echo "$as_me: failed program was:" >&5
  22786. +sed 's/^/| /' conftest.$ac_ext >&5
  22787. +
  22788. +fi
  22789. +rm -f conftest.err conftest.$ac_objext \
  22790. + conftest$ac_exeext conftest.$ac_ext
  22791. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  22792. +
  22793. + hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  22794. + # Warning - without using the other run time loading flags,
  22795. + # -berok will link without error, but may produce a broken library.
  22796. + no_undefined_flag_F77=' ${wl}-bernotok'
  22797. + allow_undefined_flag_F77=' ${wl}-berok'
  22798. + # Exported symbols can be pulled into shared objects from archives
  22799. + whole_archive_flag_spec_F77='$convenience'
  22800. + archive_cmds_need_lc_F77=yes
  22801. + # This is similar to how AIX traditionally builds its shared libraries.
  22802. + archive_expsym_cmds_F77="\$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'
  22803. + fi
  22804. + fi
  22805. + ;;
  22806. +
  22807. + amigaos*)
  22808. + archive_cmds_F77='$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)'
  22809. + hardcode_libdir_flag_spec_F77='-L$libdir'
  22810. + hardcode_minus_L_F77=yes
  22811. + # see comment about different semantics on the GNU ld section
  22812. + ld_shlibs_F77=no
  22813. + ;;
  22814. +
  22815. + bsdi[45]*)
  22816. + export_dynamic_flag_spec_F77=-rdynamic
  22817. + ;;
  22818. +
  22819. + cygwin* | mingw* | pw32*)
  22820. + # When not using gcc, we currently assume that we are using
  22821. + # Microsoft Visual C++.
  22822. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  22823. + # no search path for DLLs.
  22824. + hardcode_libdir_flag_spec_F77=' '
  22825. + allow_undefined_flag_F77=unsupported
  22826. + # Tell ltmain to make .lib files, not .a files.
  22827. + libext=lib
  22828. + # Tell ltmain to make .dll files, not .so files.
  22829. + shrext_cmds=".dll"
  22830. + # FIXME: Setting linknames here is a bad hack.
  22831. + archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  22832. + # The linker will automatically build a .lib file if we build a DLL.
  22833. + old_archive_From_new_cmds_F77='true'
  22834. + # FIXME: Should let the user specify the lib program.
  22835. + old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  22836. + fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  22837. + enable_shared_with_static_runtimes_F77=yes
  22838. + ;;
  22839. +
  22840. + darwin* | rhapsody*)
  22841. + case $host_os in
  22842. + rhapsody* | darwin1.[012])
  22843. + allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  22844. + ;;
  22845. + *) # Darwin 1.3 on
  22846. + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  22847. + allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  22848. + else
  22849. + case ${MACOSX_DEPLOYMENT_TARGET} in
  22850. + 10.[012])
  22851. + allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  22852. + ;;
  22853. + 10.*)
  22854. + allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  22855. + ;;
  22856. + esac
  22857. + fi
  22858. + ;;
  22859. + esac
  22860. + archive_cmds_need_lc_F77=no
  22861. + hardcode_direct_F77=no
  22862. + hardcode_automatic_F77=yes
  22863. + hardcode_shlibpath_var_F77=unsupported
  22864. + whole_archive_flag_spec_F77=''
  22865. + link_all_deplibs_F77=yes
  22866. + if test "$GCC" = yes ; then
  22867. + output_verbose_link_cmd='echo'
  22868. + archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  22869. + module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  22870. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  22871. + archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  22872. + module_expsym_cmds_F77='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}'
  22873. + else
  22874. + case $cc_basename in
  22875. + xlc*)
  22876. + output_verbose_link_cmd='echo'
  22877. + archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  22878. + module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  22879. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  22880. + archive_expsym_cmds_F77='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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  22881. + module_expsym_cmds_F77='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}'
  22882. + ;;
  22883. + *)
  22884. + ld_shlibs_F77=no
  22885. + ;;
  22886. + esac
  22887. + fi
  22888. + ;;
  22889. +
  22890. + dgux*)
  22891. + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22892. + hardcode_libdir_flag_spec_F77='-L$libdir'
  22893. + hardcode_shlibpath_var_F77=no
  22894. + ;;
  22895. +
  22896. + freebsd1*)
  22897. + ld_shlibs_F77=no
  22898. + ;;
  22899. +
  22900. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  22901. + # support. Future versions do this automatically, but an explicit c++rt0.o
  22902. + # does not break anything, and helps significantly (at the cost of a little
  22903. + # extra space).
  22904. + freebsd2.2*)
  22905. + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  22906. + hardcode_libdir_flag_spec_F77='-R$libdir'
  22907. + hardcode_direct_F77=yes
  22908. + hardcode_shlibpath_var_F77=no
  22909. + ;;
  22910. +
  22911. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  22912. + freebsd2*)
  22913. + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  22914. + hardcode_direct_F77=yes
  22915. + hardcode_minus_L_F77=yes
  22916. + hardcode_shlibpath_var_F77=no
  22917. + ;;
  22918. +
  22919. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  22920. + freebsd* | dragonfly*)
  22921. + archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  22922. + hardcode_libdir_flag_spec_F77='-R$libdir'
  22923. + hardcode_direct_F77=yes
  22924. + hardcode_shlibpath_var_F77=no
  22925. + ;;
  22926. +
  22927. + # GNU/kFreeBSD uses gcc -shared to do shared libraries.
  22928. + kfreebsd*-gnu)
  22929. + archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  22930. + hardcode_libdir_flag_spec_F77='-R$libdir'
  22931. + hardcode_direct_F77=yes
  22932. + hardcode_shlibpath_var_F77=no
  22933. + link_all_deplibs_F77=no
  22934. + ;;
  22935. +
  22936. + hpux9*)
  22937. + if test "$GCC" = yes; then
  22938. + archive_cmds_F77='$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'
  22939. + else
  22940. + archive_cmds_F77='$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'
  22941. + fi
  22942. + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  22943. + hardcode_libdir_separator_F77=:
  22944. + hardcode_direct_F77=yes
  22945. +
  22946. + # hardcode_minus_L: Not really in the search PATH,
  22947. + # but as the default location of the library.
  22948. + hardcode_minus_L_F77=yes
  22949. + export_dynamic_flag_spec_F77='${wl}-E'
  22950. + ;;
  22951. +
  22952. + hpux10*)
  22953. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  22954. + archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  22955. + else
  22956. + archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  22957. + fi
  22958. + if test "$with_gnu_ld" = no; then
  22959. + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  22960. + hardcode_libdir_separator_F77=:
  22961. +
  22962. + hardcode_direct_F77=yes
  22963. + export_dynamic_flag_spec_F77='${wl}-E'
  22964. +
  22965. + # hardcode_minus_L: Not really in the search PATH,
  22966. + # but as the default location of the library.
  22967. + hardcode_minus_L_F77=yes
  22968. + fi
  22969. + ;;
  22970. +
  22971. + hpux11*)
  22972. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  22973. + case $host_cpu in
  22974. + hppa*64*)
  22975. + archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  22976. + ;;
  22977. + ia64*)
  22978. + archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  22979. + ;;
  22980. + *)
  22981. + archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  22982. + ;;
  22983. + esac
  22984. + else
  22985. + case $host_cpu in
  22986. + hppa*64*)
  22987. + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  22988. + ;;
  22989. + ia64*)
  22990. + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  22991. + ;;
  22992. + *)
  22993. + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  22994. + ;;
  22995. + esac
  22996. + fi
  22997. + if test "$with_gnu_ld" = no; then
  22998. + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  22999. + hardcode_libdir_separator_F77=:
  23000. +
  23001. + case $host_cpu in
  23002. + hppa*64*|ia64*)
  23003. + hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  23004. + hardcode_direct_F77=no
  23005. + hardcode_shlibpath_var_F77=no
  23006. + ;;
  23007. + *)
  23008. + hardcode_direct_F77=yes
  23009. + export_dynamic_flag_spec_F77='${wl}-E'
  23010. +
  23011. + # hardcode_minus_L: Not really in the search PATH,
  23012. + # but as the default location of the library.
  23013. + hardcode_minus_L_F77=yes
  23014. + ;;
  23015. + esac
  23016. + fi
  23017. + ;;
  23018. +
  23019. + irix5* | irix6* | nonstopux*)
  23020. + if test "$GCC" = yes; then
  23021. + archive_cmds_F77='$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'
  23022. + else
  23023. + archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  23024. + hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  23025. + fi
  23026. + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  23027. + hardcode_libdir_separator_F77=:
  23028. + link_all_deplibs_F77=yes
  23029. + ;;
  23030. +
  23031. + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  23032. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  23033. + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  23034. + else
  23035. + archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  23036. + fi
  23037. + hardcode_libdir_flag_spec_F77='-R$libdir'
  23038. + hardcode_direct_F77=yes
  23039. + hardcode_shlibpath_var_F77=no
  23040. + ;;
  23041. +
  23042. + newsos6)
  23043. + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23044. + hardcode_direct_F77=yes
  23045. + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  23046. + hardcode_libdir_separator_F77=:
  23047. + hardcode_shlibpath_var_F77=no
  23048. + ;;
  23049. +
  23050. + openbsd*)
  23051. + hardcode_direct_F77=yes
  23052. + hardcode_shlibpath_var_F77=no
  23053. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  23054. + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  23055. + archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  23056. + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  23057. + export_dynamic_flag_spec_F77='${wl}-E'
  23058. + else
  23059. + case $host_os in
  23060. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  23061. + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  23062. + hardcode_libdir_flag_spec_F77='-R$libdir'
  23063. + ;;
  23064. + *)
  23065. + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  23066. + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  23067. + ;;
  23068. + esac
  23069. + fi
  23070. + ;;
  23071. +
  23072. + os2*)
  23073. + hardcode_libdir_flag_spec_F77='-L$libdir'
  23074. + hardcode_minus_L_F77=yes
  23075. + allow_undefined_flag_F77=unsupported
  23076. + archive_cmds_F77='$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'
  23077. + old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  23078. + ;;
  23079. +
  23080. + osf3*)
  23081. + if test "$GCC" = yes; then
  23082. + allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  23083. + archive_cmds_F77='$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'
  23084. + else
  23085. + allow_undefined_flag_F77=' -expect_unresolved \*'
  23086. + archive_cmds_F77='$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'
  23087. + fi
  23088. + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  23089. + hardcode_libdir_separator_F77=:
  23090. + ;;
  23091. +
  23092. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  23093. + if test "$GCC" = yes; then
  23094. + allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  23095. + archive_cmds_F77='$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'
  23096. + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  23097. + else
  23098. + allow_undefined_flag_F77=' -expect_unresolved \*'
  23099. + archive_cmds_F77='$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'
  23100. + archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  23101. + $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'
  23102. +
  23103. + # Both c and cxx compiler support -rpath directly
  23104. + hardcode_libdir_flag_spec_F77='-rpath $libdir'
  23105. + fi
  23106. + hardcode_libdir_separator_F77=:
  23107. + ;;
  23108. +
  23109. + solaris*)
  23110. + no_undefined_flag_F77=' -z text'
  23111. + if test "$GCC" = yes; then
  23112. + wlarc='${wl}'
  23113. + archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23114. + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  23115. + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  23116. + else
  23117. + wlarc=''
  23118. + archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23119. + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  23120. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  23121. + fi
  23122. + hardcode_libdir_flag_spec_F77='-R$libdir'
  23123. + hardcode_shlibpath_var_F77=no
  23124. + case $host_os in
  23125. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  23126. + *)
  23127. + # The compiler driver will combine linker options so we
  23128. + # cannot just pass the convience library names through
  23129. + # without $wl, iff we do not link with $LD.
  23130. + # Luckily, gcc supports the same syntax we need for Sun Studio.
  23131. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  23132. + case $wlarc in
  23133. + '')
  23134. + whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  23135. + *)
  23136. + whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  23137. + esac ;;
  23138. + esac
  23139. + link_all_deplibs_F77=yes
  23140. + ;;
  23141. +
  23142. + sunos4*)
  23143. + if test "x$host_vendor" = xsequent; then
  23144. + # Use $CC to link under sequent, because it throws in some extra .o
  23145. + # files that make .init and .fini sections work.
  23146. + archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  23147. + else
  23148. + archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  23149. + fi
  23150. + hardcode_libdir_flag_spec_F77='-L$libdir'
  23151. + hardcode_direct_F77=yes
  23152. + hardcode_minus_L_F77=yes
  23153. + hardcode_shlibpath_var_F77=no
  23154. + ;;
  23155. +
  23156. + sysv4)
  23157. + case $host_vendor in
  23158. + sni)
  23159. + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23160. + hardcode_direct_F77=yes # is this really true???
  23161. + ;;
  23162. + siemens)
  23163. + ## LD is ld it makes a PLAMLIB
  23164. + ## CC just makes a GrossModule.
  23165. + archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  23166. + reload_cmds_F77='$CC -r -o $output$reload_objs'
  23167. + hardcode_direct_F77=no
  23168. + ;;
  23169. + motorola)
  23170. + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23171. + hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  23172. + ;;
  23173. + esac
  23174. + runpath_var='LD_RUN_PATH'
  23175. + hardcode_shlibpath_var_F77=no
  23176. + ;;
  23177. +
  23178. + sysv4.3*)
  23179. + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23180. + hardcode_shlibpath_var_F77=no
  23181. + export_dynamic_flag_spec_F77='-Bexport'
  23182. + ;;
  23183. +
  23184. + sysv4*MP*)
  23185. + if test -d /usr/nec; then
  23186. + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23187. + hardcode_shlibpath_var_F77=no
  23188. + runpath_var=LD_RUN_PATH
  23189. + hardcode_runpath_var=yes
  23190. + ld_shlibs_F77=yes
  23191. + fi
  23192. + ;;
  23193. +
  23194. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  23195. + no_undefined_flag_F77='${wl}-z,text'
  23196. + archive_cmds_need_lc_F77=no
  23197. + hardcode_shlibpath_var_F77=no
  23198. + runpath_var='LD_RUN_PATH'
  23199. +
  23200. + if test "$GCC" = yes; then
  23201. + archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23202. + archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23203. + else
  23204. + archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23205. + archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23206. + fi
  23207. + ;;
  23208. +
  23209. + sysv5* | sco3.2v5* | sco5v6*)
  23210. + # Note: We can NOT use -z defs as we might desire, because we do not
  23211. + # link with -lc, and that would cause any symbols used from libc to
  23212. + # always be unresolved, which means just about no library would
  23213. + # ever link correctly. If we're not using GNU ld we use -z text
  23214. + # though, which does catch some bad symbols but isn't as heavy-handed
  23215. + # as -z defs.
  23216. + no_undefined_flag_F77='${wl}-z,text'
  23217. + allow_undefined_flag_F77='${wl}-z,nodefs'
  23218. + archive_cmds_need_lc_F77=no
  23219. + hardcode_shlibpath_var_F77=no
  23220. + hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  23221. + hardcode_libdir_separator_F77=':'
  23222. + link_all_deplibs_F77=yes
  23223. + export_dynamic_flag_spec_F77='${wl}-Bexport'
  23224. + runpath_var='LD_RUN_PATH'
  23225. +
  23226. + if test "$GCC" = yes; then
  23227. + archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23228. + archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23229. + else
  23230. + archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23231. + archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23232. + fi
  23233. + ;;
  23234. +
  23235. + uts4*)
  23236. + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23237. + hardcode_libdir_flag_spec_F77='-L$libdir'
  23238. + hardcode_shlibpath_var_F77=no
  23239. + ;;
  23240. +
  23241. + *)
  23242. + ld_shlibs_F77=no
  23243. + ;;
  23244. + esac
  23245. + fi
  23246. +
  23247. +echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  23248. +echo "${ECHO_T}$ld_shlibs_F77" >&6
  23249. +test "$ld_shlibs_F77" = no && can_build_shared=no
  23250. +
  23251. +#
  23252. +# Do we need to explicitly link libc?
  23253. +#
  23254. +case "x$archive_cmds_need_lc_F77" in
  23255. +x|xyes)
  23256. + # Assume -lc should be added
  23257. + archive_cmds_need_lc_F77=yes
  23258. +
  23259. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  23260. + case $archive_cmds_F77 in
  23261. + *'~'*)
  23262. + # FIXME: we may have to deal with multi-command sequences.
  23263. + ;;
  23264. + '$CC '*)
  23265. + # Test whether the compiler implicitly links with -lc since on some
  23266. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  23267. + # to ld, don't add -lc before -lgcc.
  23268. + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  23269. +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  23270. + $rm conftest*
  23271. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  23272. +
  23273. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23274. + (eval $ac_compile) 2>&5
  23275. + ac_status=$?
  23276. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23277. + (exit $ac_status); } 2>conftest.err; then
  23278. + soname=conftest
  23279. + lib=conftest
  23280. + libobjs=conftest.$ac_objext
  23281. + deplibs=
  23282. + wl=$lt_prog_compiler_wl_F77
  23283. + pic_flag=$lt_prog_compiler_pic_F77
  23284. + compiler_flags=-v
  23285. + linker_flags=-v
  23286. + verstring=
  23287. + output_objdir=.
  23288. + libname=conftest
  23289. + lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  23290. + allow_undefined_flag_F77=
  23291. + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  23292. + (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  23293. + ac_status=$?
  23294. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23295. + (exit $ac_status); }
  23296. + then
  23297. + archive_cmds_need_lc_F77=no
  23298. + else
  23299. + archive_cmds_need_lc_F77=yes
  23300. + fi
  23301. + allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  23302. + else
  23303. + cat conftest.err 1>&5
  23304. + fi
  23305. + $rm conftest*
  23306. + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  23307. +echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  23308. + ;;
  23309. + esac
  23310. + fi
  23311. + ;;
  23312. +esac
  23313. +
  23314. +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  23315. +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  23316. +library_names_spec=
  23317. +libname_spec='lib$name'
  23318. +soname_spec=
  23319. +shrext_cmds=".so"
  23320. +postinstall_cmds=
  23321. +postuninstall_cmds=
  23322. +finish_cmds=
  23323. +finish_eval=
  23324. +shlibpath_var=
  23325. +shlibpath_overrides_runpath=unknown
  23326. +version_type=none
  23327. +dynamic_linker="$host_os ld.so"
  23328. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  23329. +if test "$GCC" = yes; then
  23330. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  23331. + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  23332. + # if the path contains ";" then we assume it to be the separator
  23333. + # otherwise default to the standard path separator (i.e. ":") - it is
  23334. + # assumed that no part of a normal pathname contains ";" but that should
  23335. + # okay in the real world where ";" in dirpaths is itself problematic.
  23336. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  23337. + else
  23338. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  23339. + fi
  23340. +else
  23341. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  23342. +fi
  23343. +need_lib_prefix=unknown
  23344. +hardcode_into_libs=no
  23345. +
  23346. +# when you set need_version to no, make sure it does not cause -set_version
  23347. +# flags to be left without arguments
  23348. +need_version=unknown
  23349. +
  23350. +case $host_os in
  23351. +aix3*)
  23352. + version_type=linux
  23353. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  23354. + shlibpath_var=LIBPATH
  23355. +
  23356. + # AIX 3 has no versioning support, so we append a major version to the name.
  23357. + soname_spec='${libname}${release}${shared_ext}$major'
  23358. + ;;
  23359. +
  23360. +aix4* | aix5*)
  23361. + version_type=linux
  23362. + need_lib_prefix=no
  23363. + need_version=no
  23364. + hardcode_into_libs=yes
  23365. + if test "$host_cpu" = ia64; then
  23366. + # AIX 5 supports IA64
  23367. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  23368. + shlibpath_var=LD_LIBRARY_PATH
  23369. + else
  23370. + # With GCC up to 2.95.x, collect2 would create an import file
  23371. + # for dependence libraries. The import file would start with
  23372. + # the line `#! .'. This would cause the generated library to
  23373. + # depend on `.', always an invalid library. This was fixed in
  23374. + # development snapshots of GCC prior to 3.0.
  23375. + case $host_os in
  23376. + aix4 | aix4.[01] | aix4.[01].*)
  23377. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  23378. + echo ' yes '
  23379. + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  23380. + :
  23381. + else
  23382. + can_build_shared=no
  23383. + fi
  23384. + ;;
  23385. + esac
  23386. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  23387. + # soname into executable. Probably we can add versioning support to
  23388. + # collect2, so additional links can be useful in future.
  23389. + if test "$aix_use_runtimelinking" = yes; then
  23390. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  23391. + # instead of lib<name>.a to let people know that these are not
  23392. + # typical AIX shared libraries.
  23393. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23394. + else
  23395. + # We preserve .a as extension for shared libraries through AIX4.2
  23396. + # and later when we are not doing run time linking.
  23397. + library_names_spec='${libname}${release}.a $libname.a'
  23398. + soname_spec='${libname}${release}${shared_ext}$major'
  23399. + fi
  23400. + shlibpath_var=LIBPATH
  23401. + fi
  23402. + ;;
  23403. +
  23404. +amigaos*)
  23405. + library_names_spec='$libname.ixlibrary $libname.a'
  23406. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  23407. + 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'
  23408. + ;;
  23409. +
  23410. +beos*)
  23411. + library_names_spec='${libname}${shared_ext}'
  23412. + dynamic_linker="$host_os ld.so"
  23413. + shlibpath_var=LIBRARY_PATH
  23414. + ;;
  23415. +
  23416. +bsdi[45]*)
  23417. + version_type=linux
  23418. + need_version=no
  23419. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23420. + soname_spec='${libname}${release}${shared_ext}$major'
  23421. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  23422. + shlibpath_var=LD_LIBRARY_PATH
  23423. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  23424. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  23425. + # the default ld.so.conf also contains /usr/contrib/lib and
  23426. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  23427. + # libtool to hard-code these into programs
  23428. + ;;
  23429. +
  23430. +cygwin* | mingw* | pw32*)
  23431. + version_type=windows
  23432. + shrext_cmds=".dll"
  23433. + need_version=no
  23434. + need_lib_prefix=no
  23435. +
  23436. + case $GCC,$host_os in
  23437. + yes,cygwin* | yes,mingw* | yes,pw32*)
  23438. + library_names_spec='$libname.dll.a'
  23439. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  23440. + postinstall_cmds='base_file=`basename \${file}`~
  23441. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  23442. + dldir=$destdir/`dirname \$dlpath`~
  23443. + test -d \$dldir || mkdir -p \$dldir~
  23444. + $install_prog $dir/$dlname \$dldir/$dlname~
  23445. + chmod a+x \$dldir/$dlname'
  23446. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  23447. + dlpath=$dir/\$dldll~
  23448. + $rm \$dlpath'
  23449. + shlibpath_overrides_runpath=yes
  23450. +
  23451. + case $host_os in
  23452. + cygwin*)
  23453. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  23454. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  23455. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  23456. + ;;
  23457. + mingw*)
  23458. + # MinGW DLLs use traditional 'lib' prefix
  23459. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  23460. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  23461. + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  23462. + # It is most probably a Windows format PATH printed by
  23463. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  23464. + # path with ; separators, and with drive letters. We can handle the
  23465. + # drive letters (cygwin fileutils understands them), so leave them,
  23466. + # especially as we might pass files found there to a mingw objdump,
  23467. + # which wouldn't understand a cygwinified path. Ahh.
  23468. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  23469. + else
  23470. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  23471. + fi
  23472. + ;;
  23473. + pw32*)
  23474. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  23475. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  23476. + ;;
  23477. + esac
  23478. + ;;
  23479. +
  23480. + *)
  23481. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  23482. + ;;
  23483. + esac
  23484. + dynamic_linker='Win32 ld.exe'
  23485. + # FIXME: first we should search . and the directory the executable is in
  23486. + shlibpath_var=PATH
  23487. + ;;
  23488. +
  23489. +darwin* | rhapsody*)
  23490. + dynamic_linker="$host_os dyld"
  23491. + version_type=darwin
  23492. + need_lib_prefix=no
  23493. + need_version=no
  23494. + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  23495. + soname_spec='${libname}${release}${major}$shared_ext'
  23496. + shlibpath_overrides_runpath=yes
  23497. + shlibpath_var=DYLD_LIBRARY_PATH
  23498. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  23499. + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  23500. + if test "$GCC" = yes; then
  23501. + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  23502. + else
  23503. + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  23504. + fi
  23505. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  23506. + ;;
  23507. +
  23508. +dgux*)
  23509. + version_type=linux
  23510. + need_lib_prefix=no
  23511. + need_version=no
  23512. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  23513. + soname_spec='${libname}${release}${shared_ext}$major'
  23514. + shlibpath_var=LD_LIBRARY_PATH
  23515. + ;;
  23516. +
  23517. +freebsd1*)
  23518. + dynamic_linker=no
  23519. + ;;
  23520. +
  23521. +kfreebsd*-gnu)
  23522. + version_type=linux
  23523. + need_lib_prefix=no
  23524. + need_version=no
  23525. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  23526. + soname_spec='${libname}${release}${shared_ext}$major'
  23527. + shlibpath_var=LD_LIBRARY_PATH
  23528. + shlibpath_overrides_runpath=no
  23529. + hardcode_into_libs=yes
  23530. + dynamic_linker='GNU ld.so'
  23531. + ;;
  23532. +
  23533. +freebsd* | dragonfly*)
  23534. + # DragonFly does not have aout. When/if they implement a new
  23535. + # versioning mechanism, adjust this.
  23536. + if test -x /usr/bin/objformat; then
  23537. + objformat=`/usr/bin/objformat`
  23538. + else
  23539. + case $host_os in
  23540. + freebsd[123]*) objformat=aout ;;
  23541. + *) objformat=elf ;;
  23542. + esac
  23543. + fi
  23544. + version_type=freebsd-$objformat
  23545. + case $version_type in
  23546. + freebsd-elf*)
  23547. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  23548. + need_version=no
  23549. + need_lib_prefix=no
  23550. + ;;
  23551. + freebsd-*)
  23552. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  23553. + need_version=yes
  23554. + ;;
  23555. + esac
  23556. + shlibpath_var=LD_LIBRARY_PATH
  23557. + case $host_os in
  23558. + freebsd2*)
  23559. + shlibpath_overrides_runpath=yes
  23560. + ;;
  23561. + freebsd3.[01]* | freebsdelf3.[01]*)
  23562. + shlibpath_overrides_runpath=yes
  23563. + hardcode_into_libs=yes
  23564. + ;;
  23565. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  23566. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  23567. + shlibpath_overrides_runpath=no
  23568. + hardcode_into_libs=yes
  23569. + ;;
  23570. + freebsd*) # from 4.6 on
  23571. + shlibpath_overrides_runpath=yes
  23572. + hardcode_into_libs=yes
  23573. + ;;
  23574. + esac
  23575. + ;;
  23576. +
  23577. +gnu*)
  23578. + version_type=linux
  23579. + need_lib_prefix=no
  23580. + need_version=no
  23581. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  23582. + soname_spec='${libname}${release}${shared_ext}$major'
  23583. + shlibpath_var=LD_LIBRARY_PATH
  23584. + hardcode_into_libs=yes
  23585. + ;;
  23586. +
  23587. +hpux9* | hpux10* | hpux11*)
  23588. + # Give a soname corresponding to the major version so that dld.sl refuses to
  23589. + # link against other versions.
  23590. + version_type=sunos
  23591. + need_lib_prefix=no
  23592. + need_version=no
  23593. + case $host_cpu in
  23594. + ia64*)
  23595. + shrext_cmds='.so'
  23596. + hardcode_into_libs=yes
  23597. + dynamic_linker="$host_os dld.so"
  23598. + shlibpath_var=LD_LIBRARY_PATH
  23599. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  23600. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23601. + soname_spec='${libname}${release}${shared_ext}$major'
  23602. + if test "X$HPUX_IA64_MODE" = X32; then
  23603. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  23604. + else
  23605. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  23606. + fi
  23607. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  23608. + ;;
  23609. + hppa*64*)
  23610. + shrext_cmds='.sl'
  23611. + hardcode_into_libs=yes
  23612. + dynamic_linker="$host_os dld.sl"
  23613. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  23614. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  23615. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23616. + soname_spec='${libname}${release}${shared_ext}$major'
  23617. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  23618. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  23619. + ;;
  23620. + *)
  23621. + shrext_cmds='.sl'
  23622. + dynamic_linker="$host_os dld.sl"
  23623. + shlibpath_var=SHLIB_PATH
  23624. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  23625. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23626. + soname_spec='${libname}${release}${shared_ext}$major'
  23627. + ;;
  23628. + esac
  23629. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  23630. + postinstall_cmds='chmod 555 $lib'
  23631. + ;;
  23632. +
  23633. +interix3*)
  23634. + version_type=linux
  23635. + need_lib_prefix=no
  23636. + need_version=no
  23637. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  23638. + soname_spec='${libname}${release}${shared_ext}$major'
  23639. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  23640. + shlibpath_var=LD_LIBRARY_PATH
  23641. + shlibpath_overrides_runpath=no
  23642. + hardcode_into_libs=yes
  23643. + ;;
  23644. +
  23645. +irix5* | irix6* | nonstopux*)
  23646. + case $host_os in
  23647. + nonstopux*) version_type=nonstopux ;;
  23648. + *)
  23649. + if test "$lt_cv_prog_gnu_ld" = yes; then
  23650. + version_type=linux
  23651. + else
  23652. + version_type=irix
  23653. + fi ;;
  23654. + esac
  23655. + need_lib_prefix=no
  23656. + need_version=no
  23657. + soname_spec='${libname}${release}${shared_ext}$major'
  23658. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  23659. + case $host_os in
  23660. + irix5* | nonstopux*)
  23661. + libsuff= shlibsuff=
  23662. + ;;
  23663. + *)
  23664. + case $LD in # libtool.m4 will add one of these switches to LD
  23665. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  23666. + libsuff= shlibsuff= libmagic=32-bit;;
  23667. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  23668. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  23669. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  23670. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  23671. + *) libsuff= shlibsuff= libmagic=never-match;;
  23672. + esac
  23673. + ;;
  23674. + esac
  23675. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  23676. + shlibpath_overrides_runpath=no
  23677. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  23678. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  23679. + hardcode_into_libs=yes
  23680. + ;;
  23681. +
  23682. +# No shared lib support for Linux oldld, aout, or coff.
  23683. +linux*oldld* | linux*aout* | linux*coff*)
  23684. + dynamic_linker=no
  23685. + ;;
  23686. +
  23687. +# This must be Linux ELF.
  23688. +linux*)
  23689. + version_type=linux
  23690. + need_lib_prefix=no
  23691. + need_version=no
  23692. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23693. + soname_spec='${libname}${release}${shared_ext}$major'
  23694. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  23695. + shlibpath_var=LD_LIBRARY_PATH
  23696. + shlibpath_overrides_runpath=no
  23697. + # This implies no fast_install, which is unacceptable.
  23698. + # Some rework will be needed to allow for fast_install
  23699. + # before this can be enabled.
  23700. + hardcode_into_libs=yes
  23701. +
  23702. + # Append ld.so.conf contents to the search path
  23703. + if test -f /etc/ld.so.conf; then
  23704. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  23705. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  23706. + fi
  23707. +
  23708. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  23709. + # powerpc, because MkLinux only supported shared libraries with the
  23710. + # GNU dynamic linker. Since this was broken with cross compilers,
  23711. + # most powerpc-linux boxes support dynamic linking these days and
  23712. + # people can always --disable-shared, the test was removed, and we
  23713. + # assume the GNU/Linux dynamic linker is in use.
  23714. + dynamic_linker='GNU/Linux ld.so'
  23715. + ;;
  23716. +
  23717. +netbsdelf*-gnu)
  23718. + version_type=linux
  23719. + need_lib_prefix=no
  23720. + need_version=no
  23721. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  23722. + soname_spec='${libname}${release}${shared_ext}$major'
  23723. + shlibpath_var=LD_LIBRARY_PATH
  23724. + shlibpath_overrides_runpath=no
  23725. + hardcode_into_libs=yes
  23726. + dynamic_linker='NetBSD ld.elf_so'
  23727. + ;;
  23728. +
  23729. +knetbsd*-gnu)
  23730. + version_type=linux
  23731. + need_lib_prefix=no
  23732. + need_version=no
  23733. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  23734. + soname_spec='${libname}${release}${shared_ext}$major'
  23735. + shlibpath_var=LD_LIBRARY_PATH
  23736. + shlibpath_overrides_runpath=no
  23737. + hardcode_into_libs=yes
  23738. + dynamic_linker='GNU ld.so'
  23739. + ;;
  23740. +
  23741. +netbsd*)
  23742. + version_type=sunos
  23743. + need_lib_prefix=no
  23744. + need_version=no
  23745. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  23746. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  23747. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  23748. + dynamic_linker='NetBSD (a.out) ld.so'
  23749. + else
  23750. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  23751. + soname_spec='${libname}${release}${shared_ext}$major'
  23752. + dynamic_linker='NetBSD ld.elf_so'
  23753. + fi
  23754. + shlibpath_var=LD_LIBRARY_PATH
  23755. + shlibpath_overrides_runpath=yes
  23756. + hardcode_into_libs=yes
  23757. + ;;
  23758. +
  23759. +newsos6)
  23760. + version_type=linux
  23761. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23762. + shlibpath_var=LD_LIBRARY_PATH
  23763. + shlibpath_overrides_runpath=yes
  23764. + ;;
  23765. +
  23766. +nto-qnx*)
  23767. + version_type=linux
  23768. + need_lib_prefix=no
  23769. + need_version=no
  23770. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23771. + soname_spec='${libname}${release}${shared_ext}$major'
  23772. + shlibpath_var=LD_LIBRARY_PATH
  23773. + shlibpath_overrides_runpath=yes
  23774. + ;;
  23775. +
  23776. +openbsd*)
  23777. + version_type=sunos
  23778. + sys_lib_dlsearch_path_spec="/usr/lib"
  23779. + need_lib_prefix=no
  23780. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  23781. + case $host_os in
  23782. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  23783. + *) need_version=no ;;
  23784. + esac
  23785. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  23786. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  23787. + shlibpath_var=LD_LIBRARY_PATH
  23788. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  23789. + case $host_os in
  23790. + openbsd2.[89] | openbsd2.[89].*)
  23791. + shlibpath_overrides_runpath=no
  23792. + ;;
  23793. + *)
  23794. + shlibpath_overrides_runpath=yes
  23795. + ;;
  23796. + esac
  23797. + else
  23798. + shlibpath_overrides_runpath=yes
  23799. + fi
  23800. + ;;
  23801. +
  23802. +os2*)
  23803. + libname_spec='$name'
  23804. + shrext_cmds=".dll"
  23805. + need_lib_prefix=no
  23806. + library_names_spec='$libname${shared_ext} $libname.a'
  23807. + dynamic_linker='OS/2 ld.exe'
  23808. + shlibpath_var=LIBPATH
  23809. + ;;
  23810. +
  23811. +osf3* | osf4* | osf5*)
  23812. + version_type=osf
  23813. + need_lib_prefix=no
  23814. + need_version=no
  23815. + soname_spec='${libname}${release}${shared_ext}$major'
  23816. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23817. + shlibpath_var=LD_LIBRARY_PATH
  23818. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  23819. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  23820. + ;;
  23821. +
  23822. +solaris*)
  23823. + version_type=linux
  23824. + need_lib_prefix=no
  23825. + need_version=no
  23826. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23827. + soname_spec='${libname}${release}${shared_ext}$major'
  23828. + shlibpath_var=LD_LIBRARY_PATH
  23829. + shlibpath_overrides_runpath=yes
  23830. + hardcode_into_libs=yes
  23831. + # ldd complains unless libraries are executable
  23832. + postinstall_cmds='chmod +x $lib'
  23833. + ;;
  23834. +
  23835. +sunos4*)
  23836. + version_type=sunos
  23837. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  23838. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  23839. + shlibpath_var=LD_LIBRARY_PATH
  23840. + shlibpath_overrides_runpath=yes
  23841. + if test "$with_gnu_ld" = yes; then
  23842. + need_lib_prefix=no
  23843. + fi
  23844. + need_version=yes
  23845. + ;;
  23846. +
  23847. +sysv4 | sysv4.3*)
  23848. + version_type=linux
  23849. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23850. + soname_spec='${libname}${release}${shared_ext}$major'
  23851. + shlibpath_var=LD_LIBRARY_PATH
  23852. + case $host_vendor in
  23853. + sni)
  23854. + shlibpath_overrides_runpath=no
  23855. + need_lib_prefix=no
  23856. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  23857. + runpath_var=LD_RUN_PATH
  23858. + ;;
  23859. + siemens)
  23860. + need_lib_prefix=no
  23861. + ;;
  23862. + motorola)
  23863. + need_lib_prefix=no
  23864. + need_version=no
  23865. + shlibpath_overrides_runpath=no
  23866. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  23867. + ;;
  23868. + esac
  23869. + ;;
  23870. +
  23871. +sysv4*MP*)
  23872. + if test -d /usr/nec ;then
  23873. + version_type=linux
  23874. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  23875. + soname_spec='$libname${shared_ext}.$major'
  23876. + shlibpath_var=LD_LIBRARY_PATH
  23877. + fi
  23878. + ;;
  23879. +
  23880. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  23881. + version_type=freebsd-elf
  23882. + need_lib_prefix=no
  23883. + need_version=no
  23884. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  23885. + soname_spec='${libname}${release}${shared_ext}$major'
  23886. + shlibpath_var=LD_LIBRARY_PATH
  23887. + hardcode_into_libs=yes
  23888. + if test "$with_gnu_ld" = yes; then
  23889. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  23890. + shlibpath_overrides_runpath=no
  23891. + else
  23892. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  23893. + shlibpath_overrides_runpath=yes
  23894. + case $host_os in
  23895. + sco3.2v5*)
  23896. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  23897. + ;;
  23898. + esac
  23899. + fi
  23900. + sys_lib_dlsearch_path_spec='/usr/lib'
  23901. + ;;
  23902. +
  23903. +uts4*)
  23904. + version_type=linux
  23905. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23906. + soname_spec='${libname}${release}${shared_ext}$major'
  23907. + shlibpath_var=LD_LIBRARY_PATH
  23908. + ;;
  23909. +
  23910. +*)
  23911. + dynamic_linker=no
  23912. + ;;
  23913. +esac
  23914. +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  23915. +echo "${ECHO_T}$dynamic_linker" >&6
  23916. +test "$dynamic_linker" = no && can_build_shared=no
  23917. +
  23918. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  23919. +if test "$GCC" = yes; then
  23920. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  23921. +fi
  23922. +
  23923. +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  23924. +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  23925. +hardcode_action_F77=
  23926. +if test -n "$hardcode_libdir_flag_spec_F77" || \
  23927. + test -n "$runpath_var_F77" || \
  23928. + test "X$hardcode_automatic_F77" = "Xyes" ; then
  23929. +
  23930. + # We can hardcode non-existant directories.
  23931. + if test "$hardcode_direct_F77" != no &&
  23932. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  23933. + # have to relink, otherwise we might link with an installed library
  23934. + # when we should be linking with a yet-to-be-installed one
  23935. + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  23936. + test "$hardcode_minus_L_F77" != no; then
  23937. + # Linking always hardcodes the temporary library directory.
  23938. + hardcode_action_F77=relink
  23939. + else
  23940. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  23941. + hardcode_action_F77=immediate
  23942. + fi
  23943. +else
  23944. + # We cannot hardcode anything, or else we can only hardcode existing
  23945. + # directories.
  23946. + hardcode_action_F77=unsupported
  23947. +fi
  23948. +echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  23949. +echo "${ECHO_T}$hardcode_action_F77" >&6
  23950. +
  23951. +if test "$hardcode_action_F77" = relink; then
  23952. + # Fast installation is not supported
  23953. + enable_fast_install=no
  23954. +elif test "$shlibpath_overrides_runpath" = yes ||
  23955. + test "$enable_shared" = no; then
  23956. + # Fast installation is not necessary
  23957. + enable_fast_install=needless
  23958. +fi
  23959. +
  23960. +
  23961. +# The else clause should only fire when bootstrapping the
  23962. +# libtool distribution, otherwise you forgot to ship ltmain.sh
  23963. +# with your package, and you will get complaints that there are
  23964. +# no rules to generate ltmain.sh.
  23965. +if test -f "$ltmain"; then
  23966. + # See if we are running on zsh, and set the options which allow our commands through
  23967. + # without removal of \ escapes.
  23968. + if test -n "${ZSH_VERSION+set}" ; then
  23969. + setopt NO_GLOB_SUBST
  23970. + fi
  23971. + # Now quote all the things that may contain metacharacters while being
  23972. + # careful not to overquote the AC_SUBSTed values. We take copies of the
  23973. + # variables and quote the copies for generation of the libtool script.
  23974. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  23975. + SED SHELL STRIP \
  23976. + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  23977. + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  23978. + deplibs_check_method reload_flag reload_cmds need_locks \
  23979. + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  23980. + lt_cv_sys_global_symbol_to_c_name_address \
  23981. + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  23982. + old_postinstall_cmds old_postuninstall_cmds \
  23983. + compiler_F77 \
  23984. + CC_F77 \
  23985. + LD_F77 \
  23986. + lt_prog_compiler_wl_F77 \
  23987. + lt_prog_compiler_pic_F77 \
  23988. + lt_prog_compiler_static_F77 \
  23989. + lt_prog_compiler_no_builtin_flag_F77 \
  23990. + export_dynamic_flag_spec_F77 \
  23991. + thread_safe_flag_spec_F77 \
  23992. + whole_archive_flag_spec_F77 \
  23993. + enable_shared_with_static_runtimes_F77 \
  23994. + old_archive_cmds_F77 \
  23995. + old_archive_from_new_cmds_F77 \
  23996. + predep_objects_F77 \
  23997. + postdep_objects_F77 \
  23998. + predeps_F77 \
  23999. + postdeps_F77 \
  24000. + compiler_lib_search_path_F77 \
  24001. + archive_cmds_F77 \
  24002. + archive_expsym_cmds_F77 \
  24003. + postinstall_cmds_F77 \
  24004. + postuninstall_cmds_F77 \
  24005. + old_archive_from_expsyms_cmds_F77 \
  24006. + allow_undefined_flag_F77 \
  24007. + no_undefined_flag_F77 \
  24008. + export_symbols_cmds_F77 \
  24009. + hardcode_libdir_flag_spec_F77 \
  24010. + hardcode_libdir_flag_spec_ld_F77 \
  24011. + hardcode_libdir_separator_F77 \
  24012. + hardcode_automatic_F77 \
  24013. + module_cmds_F77 \
  24014. + module_expsym_cmds_F77 \
  24015. + lt_cv_prog_compiler_c_o_F77 \
  24016. + exclude_expsyms_F77 \
  24017. + include_expsyms_F77; do
  24018. +
  24019. + case $var in
  24020. + old_archive_cmds_F77 | \
  24021. + old_archive_from_new_cmds_F77 | \
  24022. + archive_cmds_F77 | \
  24023. + archive_expsym_cmds_F77 | \
  24024. + module_cmds_F77 | \
  24025. + module_expsym_cmds_F77 | \
  24026. + old_archive_from_expsyms_cmds_F77 | \
  24027. + export_symbols_cmds_F77 | \
  24028. + extract_expsyms_cmds | reload_cmds | finish_cmds | \
  24029. + postinstall_cmds | postuninstall_cmds | \
  24030. + old_postinstall_cmds | old_postuninstall_cmds | \
  24031. + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  24032. + # Double-quote double-evaled strings.
  24033. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  24034. + ;;
  24035. + *)
  24036. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  24037. + ;;
  24038. + esac
  24039. + done
  24040. +
  24041. + case $lt_echo in
  24042. + *'\$0 --fallback-echo"')
  24043. + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  24044. + ;;
  24045. + esac
  24046. +
  24047. +cfgfile="$ofile"
  24048. +
  24049. + cat <<__EOF__ >> "$cfgfile"
  24050. +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  24051. +
  24052. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  24053. +
  24054. +# Shell to use when invoking shell scripts.
  24055. +SHELL=$lt_SHELL
  24056. +
  24057. +# Whether or not to build shared libraries.
  24058. +build_libtool_libs=$enable_shared
  24059. +
  24060. +# Whether or not to build static libraries.
  24061. +build_old_libs=$enable_static
  24062. +
  24063. +# Whether or not to add -lc for building shared libraries.
  24064. +build_libtool_need_lc=$archive_cmds_need_lc_F77
  24065. +
  24066. +# Whether or not to disallow shared libs when runtime libs are static
  24067. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  24068. +
  24069. +# Whether or not to optimize for fast installation.
  24070. +fast_install=$enable_fast_install
  24071. +
  24072. +# The host system.
  24073. +host_alias=$host_alias
  24074. +host=$host
  24075. +host_os=$host_os
  24076. +
  24077. +# The build system.
  24078. +build_alias=$build_alias
  24079. +build=$build
  24080. +build_os=$build_os
  24081. +
  24082. +# An echo program that does not interpret backslashes.
  24083. +echo=$lt_echo
  24084. +
  24085. +# The archiver.
  24086. +AR=$lt_AR
  24087. +AR_FLAGS=$lt_AR_FLAGS
  24088. +
  24089. +# A C compiler.
  24090. +LTCC=$lt_LTCC
  24091. +
  24092. +# LTCC compiler flags.
  24093. +LTCFLAGS=$lt_LTCFLAGS
  24094. +
  24095. +# A language-specific compiler.
  24096. +CC=$lt_compiler_F77
  24097. +
  24098. +# Is the compiler the GNU C compiler?
  24099. +with_gcc=$GCC_F77
  24100. +
  24101. +# An ERE matcher.
  24102. +EGREP=$lt_EGREP
  24103. +
  24104. +# The linker used to build libraries.
  24105. +LD=$lt_LD_F77
  24106. +
  24107. +# Whether we need hard or soft links.
  24108. +LN_S=$lt_LN_S
  24109. +
  24110. +# A BSD-compatible nm program.
  24111. +NM=$lt_NM
  24112. +
  24113. +# A symbol stripping program
  24114. +STRIP=$lt_STRIP
  24115. +
  24116. +# Used to examine libraries when file_magic_cmd begins "file"
  24117. +MAGIC_CMD=$MAGIC_CMD
  24118. +
  24119. +# Used on cygwin: DLL creation program.
  24120. +DLLTOOL="$DLLTOOL"
  24121. +
  24122. +# Used on cygwin: object dumper.
  24123. +OBJDUMP="$OBJDUMP"
  24124. +
  24125. +# Used on cygwin: assembler.
  24126. +AS="$AS"
  24127. +
  24128. +# The name of the directory that contains temporary libtool files.
  24129. +objdir=$objdir
  24130. +
  24131. +# How to create reloadable object files.
  24132. +reload_flag=$lt_reload_flag
  24133. +reload_cmds=$lt_reload_cmds
  24134. +
  24135. +# How to pass a linker flag through the compiler.
  24136. +wl=$lt_lt_prog_compiler_wl_F77
  24137. +
  24138. +# Object file suffix (normally "o").
  24139. +objext="$ac_objext"
  24140. +
  24141. +# Old archive suffix (normally "a").
  24142. +libext="$libext"
  24143. +
  24144. +# Shared library suffix (normally ".so").
  24145. +shrext_cmds='$shrext_cmds'
  24146. +
  24147. +# Executable file suffix (normally "").
  24148. +exeext="$exeext"
  24149. +
  24150. +# Additional compiler flags for building library objects.
  24151. +pic_flag=$lt_lt_prog_compiler_pic_F77
  24152. +pic_mode=$pic_mode
  24153. +
  24154. +# What is the maximum length of a command?
  24155. +max_cmd_len=$lt_cv_sys_max_cmd_len
  24156. +
  24157. +# Does compiler simultaneously support -c and -o options?
  24158. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  24159. +
  24160. +# Must we lock files when doing compilation?
  24161. +need_locks=$lt_need_locks
  24162. +
  24163. +# Do we need the lib prefix for modules?
  24164. +need_lib_prefix=$need_lib_prefix
  24165. +
  24166. +# Do we need a version for libraries?
  24167. +need_version=$need_version
  24168. +
  24169. +# Whether dlopen is supported.
  24170. +dlopen_support=$enable_dlopen
  24171. +
  24172. +# Whether dlopen of programs is supported.
  24173. +dlopen_self=$enable_dlopen_self
  24174. +
  24175. +# Whether dlopen of statically linked programs is supported.
  24176. +dlopen_self_static=$enable_dlopen_self_static
  24177. +
  24178. +# Compiler flag to prevent dynamic linking.
  24179. +link_static_flag=$lt_lt_prog_compiler_static_F77
  24180. +
  24181. +# Compiler flag to turn off builtin functions.
  24182. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  24183. +
  24184. +# Compiler flag to allow reflexive dlopens.
  24185. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  24186. +
  24187. +# Compiler flag to generate shared objects directly from archives.
  24188. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  24189. +
  24190. +# Compiler flag to generate thread-safe objects.
  24191. +thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  24192. +
  24193. +# Library versioning type.
  24194. +version_type=$version_type
  24195. +
  24196. +# Format of library name prefix.
  24197. +libname_spec=$lt_libname_spec
  24198. +
  24199. +# List of archive names. First name is the real one, the rest are links.
  24200. +# The last name is the one that the linker finds with -lNAME.
  24201. +library_names_spec=$lt_library_names_spec
  24202. +
  24203. +# The coded name of the library, if different from the real name.
  24204. +soname_spec=$lt_soname_spec
  24205. +
  24206. +# Commands used to build and install an old-style archive.
  24207. +RANLIB=$lt_RANLIB
  24208. +old_archive_cmds=$lt_old_archive_cmds_F77
  24209. +old_postinstall_cmds=$lt_old_postinstall_cmds
  24210. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  24211. +
  24212. +# Create an old-style archive from a shared archive.
  24213. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  24214. +
  24215. +# Create a temporary old-style archive to link instead of a shared archive.
  24216. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  24217. +
  24218. +# Commands used to build and install a shared archive.
  24219. +archive_cmds=$lt_archive_cmds_F77
  24220. +archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  24221. +postinstall_cmds=$lt_postinstall_cmds
  24222. +postuninstall_cmds=$lt_postuninstall_cmds
  24223. +
  24224. +# Commands used to build a loadable module (assumed same as above if empty)
  24225. +module_cmds=$lt_module_cmds_F77
  24226. +module_expsym_cmds=$lt_module_expsym_cmds_F77
  24227. +
  24228. +# Commands to strip libraries.
  24229. +old_striplib=$lt_old_striplib
  24230. +striplib=$lt_striplib
  24231. +
  24232. +# Dependencies to place before the objects being linked to create a
  24233. +# shared library.
  24234. +predep_objects=$lt_predep_objects_F77
  24235. +
  24236. +# Dependencies to place after the objects being linked to create a
  24237. +# shared library.
  24238. +postdep_objects=$lt_postdep_objects_F77
  24239. +
  24240. +# Dependencies to place before the objects being linked to create a
  24241. +# shared library.
  24242. +predeps=$lt_predeps_F77
  24243. +
  24244. +# Dependencies to place after the objects being linked to create a
  24245. +# shared library.
  24246. +postdeps=$lt_postdeps_F77
  24247. +
  24248. +# The library search path used internally by the compiler when linking
  24249. +# a shared library.
  24250. +compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  24251. +
  24252. +# Method to check whether dependent libraries are shared objects.
  24253. +deplibs_check_method=$lt_deplibs_check_method
  24254. +
  24255. +# Command to use when deplibs_check_method == file_magic.
  24256. +file_magic_cmd=$lt_file_magic_cmd
  24257. +
  24258. +# Flag that allows shared libraries with undefined symbols to be built.
  24259. +allow_undefined_flag=$lt_allow_undefined_flag_F77
  24260. +
  24261. +# Flag that forces no undefined symbols.
  24262. +no_undefined_flag=$lt_no_undefined_flag_F77
  24263. +
  24264. +# Commands used to finish a libtool library installation in a directory.
  24265. +finish_cmds=$lt_finish_cmds
  24266. +
  24267. +# Same as above, but a single script fragment to be evaled but not shown.
  24268. +finish_eval=$lt_finish_eval
  24269. +
  24270. +# Take the output of nm and produce a listing of raw symbols and C names.
  24271. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  24272. +
  24273. +# Transform the output of nm in a proper C declaration
  24274. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  24275. +
  24276. +# Transform the output of nm in a C name address pair
  24277. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  24278. +
  24279. +# This is the shared library runtime path variable.
  24280. +runpath_var=$runpath_var
  24281. +
  24282. +# This is the shared library path variable.
  24283. +shlibpath_var=$shlibpath_var
  24284. +
  24285. +# Is shlibpath searched before the hard-coded library search path?
  24286. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  24287. +
  24288. +# How to hardcode a shared library path into an executable.
  24289. +hardcode_action=$hardcode_action_F77
  24290. +
  24291. +# Whether we should hardcode library paths into libraries.
  24292. +hardcode_into_libs=$hardcode_into_libs
  24293. +
  24294. +# Flag to hardcode \$libdir into a binary during linking.
  24295. +# This must work even if \$libdir does not exist.
  24296. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  24297. +
  24298. +# If ld is used when linking, flag to hardcode \$libdir into
  24299. +# a binary during linking. This must work even if \$libdir does
  24300. +# not exist.
  24301. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  24302. +
  24303. +# Whether we need a single -rpath flag with a separated argument.
  24304. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  24305. +
  24306. +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  24307. +# resulting binary.
  24308. +hardcode_direct=$hardcode_direct_F77
  24309. +
  24310. +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  24311. +# resulting binary.
  24312. +hardcode_minus_L=$hardcode_minus_L_F77
  24313. +
  24314. +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  24315. +# the resulting binary.
  24316. +hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  24317. +
  24318. +# Set to yes if building a shared library automatically hardcodes DIR into the library
  24319. +# and all subsequent libraries and executables linked against it.
  24320. +hardcode_automatic=$hardcode_automatic_F77
  24321. +
  24322. +# Variables whose values should be saved in libtool wrapper scripts and
  24323. +# restored at relink time.
  24324. +variables_saved_for_relink="$variables_saved_for_relink"
  24325. +
  24326. +# Whether libtool must link a program against all its dependency libraries.
  24327. +link_all_deplibs=$link_all_deplibs_F77
  24328. +
  24329. +# Compile-time system search path for libraries
  24330. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  24331. +
  24332. +# Run-time system search path for libraries
  24333. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  24334. +
  24335. +# Fix the shell variable \$srcfile for the compiler.
  24336. +fix_srcfile_path="$fix_srcfile_path_F77"
  24337. +
  24338. +# Set to yes if exported symbols are required.
  24339. +always_export_symbols=$always_export_symbols_F77
  24340. +
  24341. +# The commands to list exported symbols.
  24342. +export_symbols_cmds=$lt_export_symbols_cmds_F77
  24343. +
  24344. +# The commands to extract the exported symbol list from a shared archive.
  24345. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  24346. +
  24347. +# Symbols that should not be listed in the preloaded symbols.
  24348. +exclude_expsyms=$lt_exclude_expsyms_F77
  24349. +
  24350. +# Symbols that must always be exported.
  24351. +include_expsyms=$lt_include_expsyms_F77
  24352. +
  24353. +# ### END LIBTOOL TAG CONFIG: $tagname
  24354. +
  24355. +__EOF__
  24356. +
  24357. +
  24358. +else
  24359. + # If there is no Makefile yet, we rely on a make rule to execute
  24360. + # `config.status --recheck' to rerun these tests and create the
  24361. + # libtool script then.
  24362. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  24363. + if test -f "$ltmain_in"; then
  24364. + test -f Makefile && make "$ltmain"
  24365. + fi
  24366. +fi
  24367. +
  24368. +
  24369. +ac_ext=c
  24370. +ac_cpp='$CPP $CPPFLAGS'
  24371. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24372. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24373. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  24374. +
  24375. +CC="$lt_save_CC"
  24376. +
  24377. + else
  24378. + tagname=""
  24379. + fi
  24380. + ;;
  24381. +
  24382. + GCJ)
  24383. + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  24384. +
  24385. +
  24386. +
  24387. +# Source file extension for Java test sources.
  24388. +ac_ext=java
  24389. +
  24390. +# Object file extension for compiled Java test sources.
  24391. +objext=o
  24392. +objext_GCJ=$objext
  24393. +
  24394. +# Code to be used in simple compile tests
  24395. +lt_simple_compile_test_code="class foo {}\n"
  24396. +
  24397. +# Code to be used in simple link tests
  24398. +lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  24399. +
  24400. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  24401. +
  24402. +# If no C compiler was specified, use CC.
  24403. +LTCC=${LTCC-"$CC"}
  24404. +
  24405. +# If no C compiler flags were specified, use CFLAGS.
  24406. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  24407. +
  24408. +# Allow CC to be a program name with arguments.
  24409. +compiler=$CC
  24410. +
  24411. +
  24412. +# save warnings/boilerplate of simple test code
  24413. +ac_outfile=conftest.$ac_objext
  24414. +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  24415. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  24416. +_lt_compiler_boilerplate=`cat conftest.err`
  24417. +$rm conftest*
  24418. +
  24419. +ac_outfile=conftest.$ac_objext
  24420. +printf "$lt_simple_link_test_code" >conftest.$ac_ext
  24421. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  24422. +_lt_linker_boilerplate=`cat conftest.err`
  24423. +$rm conftest*
  24424. +
  24425. +
  24426. +# Allow CC to be a program name with arguments.
  24427. +lt_save_CC="$CC"
  24428. +CC=${GCJ-"gcj"}
  24429. +compiler=$CC
  24430. +compiler_GCJ=$CC
  24431. +for cc_temp in $compiler""; do
  24432. + case $cc_temp in
  24433. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  24434. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  24435. + \-*) ;;
  24436. + *) break;;
  24437. + esac
  24438. +done
  24439. +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  24440. +
  24441. +
  24442. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  24443. +archive_cmds_need_lc_GCJ=no
  24444. +
  24445. +old_archive_cmds_GCJ=$old_archive_cmds
  24446. +
  24447. +
  24448. +lt_prog_compiler_no_builtin_flag_GCJ=
  24449. +
  24450. +if test "$GCC" = yes; then
  24451. + lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  24452. +
  24453. +
  24454. +echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  24455. +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  24456. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  24457. + echo $ECHO_N "(cached) $ECHO_C" >&6
  24458. +else
  24459. + lt_cv_prog_compiler_rtti_exceptions=no
  24460. + ac_outfile=conftest.$ac_objext
  24461. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  24462. + lt_compiler_flag="-fno-rtti -fno-exceptions"
  24463. + # Insert the option either (1) after the last *FLAGS variable, or
  24464. + # (2) before a word containing "conftest.", or (3) at the end.
  24465. + # Note that $ac_compile itself does not contain backslashes and begins
  24466. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  24467. + # The option is referenced via a variable to avoid confusing sed.
  24468. + lt_compile=`echo "$ac_compile" | $SED \
  24469. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  24470. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  24471. + -e 's:$: $lt_compiler_flag:'`
  24472. + (eval echo "\"\$as_me:15157: $lt_compile\"" >&5)
  24473. + (eval "$lt_compile" 2>conftest.err)
  24474. + ac_status=$?
  24475. + cat conftest.err >&5
  24476. + echo "$as_me:15161: \$? = $ac_status" >&5
  24477. + if (exit $ac_status) && test -s "$ac_outfile"; then
  24478. + # The compiler can only warn and ignore the option if not recognized
  24479. + # So say no if there are warnings other than the usual output.
  24480. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  24481. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  24482. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  24483. + lt_cv_prog_compiler_rtti_exceptions=yes
  24484. + fi
  24485. + fi
  24486. + $rm conftest*
  24487. +
  24488. +fi
  24489. +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  24490. +echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  24491. +
  24492. +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  24493. + lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  24494. +else
  24495. + :
  24496. +fi
  24497. +
  24498. +fi
  24499. +
  24500. +lt_prog_compiler_wl_GCJ=
  24501. +lt_prog_compiler_pic_GCJ=
  24502. +lt_prog_compiler_static_GCJ=
  24503. +
  24504. +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  24505. +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  24506. +
  24507. + if test "$GCC" = yes; then
  24508. + lt_prog_compiler_wl_GCJ='-Wl,'
  24509. + lt_prog_compiler_static_GCJ='-static'
  24510. +
  24511. + case $host_os in
  24512. + aix*)
  24513. + # All AIX code is PIC.
  24514. + if test "$host_cpu" = ia64; then
  24515. + # AIX 5 now supports IA64 processor
  24516. + lt_prog_compiler_static_GCJ='-Bstatic'
  24517. + fi
  24518. + ;;
  24519. +
  24520. + amigaos*)
  24521. + # FIXME: we need at least 68020 code to build shared libraries, but
  24522. + # adding the `-m68020' flag to GCC prevents building anything better,
  24523. + # like `-m68040'.
  24524. + lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  24525. + ;;
  24526. +
  24527. + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  24528. + # PIC is the default for these OSes.
  24529. + ;;
  24530. +
  24531. + mingw* | pw32* | os2*)
  24532. + # This hack is so that the source file can tell whether it is being
  24533. + # built for inclusion in a dll (and should export symbols for example).
  24534. + lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  24535. + ;;
  24536. +
  24537. + darwin* | rhapsody*)
  24538. + # PIC is the default on this platform
  24539. + # Common symbols not allowed in MH_DYLIB files
  24540. + lt_prog_compiler_pic_GCJ='-fno-common'
  24541. + ;;
  24542. +
  24543. + interix3*)
  24544. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  24545. + # Instead, we relocate shared libraries at runtime.
  24546. + ;;
  24547. +
  24548. + msdosdjgpp*)
  24549. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  24550. + # on systems that don't support them.
  24551. + lt_prog_compiler_can_build_shared_GCJ=no
  24552. + enable_shared=no
  24553. + ;;
  24554. +
  24555. + sysv4*MP*)
  24556. + if test -d /usr/nec; then
  24557. + lt_prog_compiler_pic_GCJ=-Kconform_pic
  24558. + fi
  24559. + ;;
  24560. +
  24561. + hpux*)
  24562. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  24563. + # not for PA HP-UX.
  24564. + case $host_cpu in
  24565. + hppa*64*|ia64*)
  24566. + # +Z the default
  24567. + ;;
  24568. + *)
  24569. + lt_prog_compiler_pic_GCJ='-fPIC'
  24570. + ;;
  24571. + esac
  24572. + ;;
  24573. +
  24574. + *)
  24575. + lt_prog_compiler_pic_GCJ='-fPIC'
  24576. + ;;
  24577. + esac
  24578. + else
  24579. + # PORTME Check for flag to pass linker flags through the system compiler.
  24580. + case $host_os in
  24581. + aix*)
  24582. + lt_prog_compiler_wl_GCJ='-Wl,'
  24583. + if test "$host_cpu" = ia64; then
  24584. + # AIX 5 now supports IA64 processor
  24585. + lt_prog_compiler_static_GCJ='-Bstatic'
  24586. + else
  24587. + lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  24588. + fi
  24589. + ;;
  24590. + darwin*)
  24591. + # PIC is the default on this platform
  24592. + # Common symbols not allowed in MH_DYLIB files
  24593. + case $cc_basename in
  24594. + xlc*)
  24595. + lt_prog_compiler_pic_GCJ='-qnocommon'
  24596. + lt_prog_compiler_wl_GCJ='-Wl,'
  24597. + ;;
  24598. + esac
  24599. + ;;
  24600. +
  24601. + mingw* | pw32* | os2*)
  24602. + # This hack is so that the source file can tell whether it is being
  24603. + # built for inclusion in a dll (and should export symbols for example).
  24604. + lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  24605. + ;;
  24606. +
  24607. + hpux9* | hpux10* | hpux11*)
  24608. + lt_prog_compiler_wl_GCJ='-Wl,'
  24609. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  24610. + # not for PA HP-UX.
  24611. + case $host_cpu in
  24612. + hppa*64*|ia64*)
  24613. + # +Z the default
  24614. + ;;
  24615. + *)
  24616. + lt_prog_compiler_pic_GCJ='+Z'
  24617. + ;;
  24618. + esac
  24619. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  24620. + lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  24621. + ;;
  24622. +
  24623. + irix5* | irix6* | nonstopux*)
  24624. + lt_prog_compiler_wl_GCJ='-Wl,'
  24625. + # PIC (with -KPIC) is the default.
  24626. + lt_prog_compiler_static_GCJ='-non_shared'
  24627. + ;;
  24628. +
  24629. + newsos6)
  24630. + lt_prog_compiler_pic_GCJ='-KPIC'
  24631. + lt_prog_compiler_static_GCJ='-Bstatic'
  24632. + ;;
  24633. +
  24634. + linux*)
  24635. + case $cc_basename in
  24636. + icc* | ecc*)
  24637. + lt_prog_compiler_wl_GCJ='-Wl,'
  24638. + lt_prog_compiler_pic_GCJ='-KPIC'
  24639. + lt_prog_compiler_static_GCJ='-static'
  24640. + ;;
  24641. + pgcc* | pgf77* | pgf90* | pgf95*)
  24642. + # Portland Group compilers (*not* the Pentium gcc compiler,
  24643. + # which looks to be a dead project)
  24644. + lt_prog_compiler_wl_GCJ='-Wl,'
  24645. + lt_prog_compiler_pic_GCJ='-fpic'
  24646. + lt_prog_compiler_static_GCJ='-Bstatic'
  24647. + ;;
  24648. + ccc*)
  24649. + lt_prog_compiler_wl_GCJ='-Wl,'
  24650. + # All Alpha code is PIC.
  24651. + lt_prog_compiler_static_GCJ='-non_shared'
  24652. + ;;
  24653. + esac
  24654. + ;;
  24655. +
  24656. + osf3* | osf4* | osf5*)
  24657. + lt_prog_compiler_wl_GCJ='-Wl,'
  24658. + # All OSF/1 code is PIC.
  24659. + lt_prog_compiler_static_GCJ='-non_shared'
  24660. + ;;
  24661. +
  24662. + solaris*)
  24663. + lt_prog_compiler_pic_GCJ='-KPIC'
  24664. + lt_prog_compiler_static_GCJ='-Bstatic'
  24665. + case $cc_basename in
  24666. + f77* | f90* | f95*)
  24667. + lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  24668. + *)
  24669. + lt_prog_compiler_wl_GCJ='-Wl,';;
  24670. + esac
  24671. + ;;
  24672. +
  24673. + sunos4*)
  24674. + lt_prog_compiler_wl_GCJ='-Qoption ld '
  24675. + lt_prog_compiler_pic_GCJ='-PIC'
  24676. + lt_prog_compiler_static_GCJ='-Bstatic'
  24677. + ;;
  24678. +
  24679. + sysv4 | sysv4.2uw2* | sysv4.3*)
  24680. + lt_prog_compiler_wl_GCJ='-Wl,'
  24681. + lt_prog_compiler_pic_GCJ='-KPIC'
  24682. + lt_prog_compiler_static_GCJ='-Bstatic'
  24683. + ;;
  24684. +
  24685. + sysv4*MP*)
  24686. + if test -d /usr/nec ;then
  24687. + lt_prog_compiler_pic_GCJ='-Kconform_pic'
  24688. + lt_prog_compiler_static_GCJ='-Bstatic'
  24689. + fi
  24690. + ;;
  24691. +
  24692. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  24693. + lt_prog_compiler_wl_GCJ='-Wl,'
  24694. + lt_prog_compiler_pic_GCJ='-KPIC'
  24695. + lt_prog_compiler_static_GCJ='-Bstatic'
  24696. + ;;
  24697. +
  24698. + unicos*)
  24699. + lt_prog_compiler_wl_GCJ='-Wl,'
  24700. + lt_prog_compiler_can_build_shared_GCJ=no
  24701. + ;;
  24702. +
  24703. + uts4*)
  24704. + lt_prog_compiler_pic_GCJ='-pic'
  24705. + lt_prog_compiler_static_GCJ='-Bstatic'
  24706. + ;;
  24707. +
  24708. + *)
  24709. + lt_prog_compiler_can_build_shared_GCJ=no
  24710. + ;;
  24711. + esac
  24712. + fi
  24713. +
  24714. +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  24715. +echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  24716. +
  24717. +#
  24718. +# Check to make sure the PIC flag actually works.
  24719. +#
  24720. +if test -n "$lt_prog_compiler_pic_GCJ"; then
  24721. +
  24722. +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  24723. +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  24724. +if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  24725. + echo $ECHO_N "(cached) $ECHO_C" >&6
  24726. +else
  24727. + lt_prog_compiler_pic_works_GCJ=no
  24728. + ac_outfile=conftest.$ac_objext
  24729. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  24730. + lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  24731. + # Insert the option either (1) after the last *FLAGS variable, or
  24732. + # (2) before a word containing "conftest.", or (3) at the end.
  24733. + # Note that $ac_compile itself does not contain backslashes and begins
  24734. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  24735. + # The option is referenced via a variable to avoid confusing sed.
  24736. + lt_compile=`echo "$ac_compile" | $SED \
  24737. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  24738. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  24739. + -e 's:$: $lt_compiler_flag:'`
  24740. + (eval echo "\"\$as_me:15425: $lt_compile\"" >&5)
  24741. + (eval "$lt_compile" 2>conftest.err)
  24742. + ac_status=$?
  24743. + cat conftest.err >&5
  24744. + echo "$as_me:15429: \$? = $ac_status" >&5
  24745. + if (exit $ac_status) && test -s "$ac_outfile"; then
  24746. + # The compiler can only warn and ignore the option if not recognized
  24747. + # So say no if there are warnings other than the usual output.
  24748. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  24749. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  24750. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  24751. + lt_prog_compiler_pic_works_GCJ=yes
  24752. + fi
  24753. + fi
  24754. + $rm conftest*
  24755. +
  24756. +fi
  24757. +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  24758. +echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  24759. +
  24760. +if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  24761. + case $lt_prog_compiler_pic_GCJ in
  24762. + "" | " "*) ;;
  24763. + *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  24764. + esac
  24765. +else
  24766. + lt_prog_compiler_pic_GCJ=
  24767. + lt_prog_compiler_can_build_shared_GCJ=no
  24768. +fi
  24769. +
  24770. +fi
  24771. +case $host_os in
  24772. + # For platforms which do not support PIC, -DPIC is meaningless:
  24773. + *djgpp*)
  24774. + lt_prog_compiler_pic_GCJ=
  24775. + ;;
  24776. + *)
  24777. + lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  24778. + ;;
  24779. +esac
  24780. +
  24781. +#
  24782. +# Check to make sure the static flag actually works.
  24783. +#
  24784. +wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  24785. +echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  24786. +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  24787. +if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  24788. + echo $ECHO_N "(cached) $ECHO_C" >&6
  24789. +else
  24790. + lt_prog_compiler_static_works_GCJ=no
  24791. + save_LDFLAGS="$LDFLAGS"
  24792. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  24793. + printf "$lt_simple_link_test_code" > conftest.$ac_ext
  24794. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  24795. + # The linker can only warn and ignore the option if not recognized
  24796. + # So say no if there are warnings
  24797. + if test -s conftest.err; then
  24798. + # Append any errors to the config.log.
  24799. + cat conftest.err 1>&5
  24800. + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  24801. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  24802. + if diff conftest.exp conftest.er2 >/dev/null; then
  24803. + lt_prog_compiler_static_works_GCJ=yes
  24804. + fi
  24805. + else
  24806. + lt_prog_compiler_static_works_GCJ=yes
  24807. + fi
  24808. + fi
  24809. + $rm conftest*
  24810. + LDFLAGS="$save_LDFLAGS"
  24811. +
  24812. +fi
  24813. +echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  24814. +echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
  24815. +
  24816. +if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  24817. + :
  24818. +else
  24819. + lt_prog_compiler_static_GCJ=
  24820. +fi
  24821. +
  24822. +
  24823. +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  24824. +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  24825. +if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  24826. + echo $ECHO_N "(cached) $ECHO_C" >&6
  24827. +else
  24828. + lt_cv_prog_compiler_c_o_GCJ=no
  24829. + $rm -r conftest 2>/dev/null
  24830. + mkdir conftest
  24831. + cd conftest
  24832. + mkdir out
  24833. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  24834. +
  24835. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  24836. + # Insert the option either (1) after the last *FLAGS variable, or
  24837. + # (2) before a word containing "conftest.", or (3) at the end.
  24838. + # Note that $ac_compile itself does not contain backslashes and begins
  24839. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  24840. + lt_compile=`echo "$ac_compile" | $SED \
  24841. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  24842. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  24843. + -e 's:$: $lt_compiler_flag:'`
  24844. + (eval echo "\"\$as_me:15529: $lt_compile\"" >&5)
  24845. + (eval "$lt_compile" 2>out/conftest.err)
  24846. + ac_status=$?
  24847. + cat out/conftest.err >&5
  24848. + echo "$as_me:15533: \$? = $ac_status" >&5
  24849. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  24850. + then
  24851. + # The compiler can only warn and ignore the option if not recognized
  24852. + # So say no if there are warnings
  24853. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  24854. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  24855. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  24856. + lt_cv_prog_compiler_c_o_GCJ=yes
  24857. + fi
  24858. + fi
  24859. + chmod u+w . 2>&5
  24860. + $rm conftest*
  24861. + # SGI C++ compiler will create directory out/ii_files/ for
  24862. + # template instantiation
  24863. + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  24864. + $rm out/* && rmdir out
  24865. + cd ..
  24866. + rmdir conftest
  24867. + $rm conftest*
  24868. +
  24869. +fi
  24870. +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  24871. +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  24872. +
  24873. +
  24874. +hard_links="nottested"
  24875. +if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  24876. + # do not overwrite the value of need_locks provided by the user
  24877. + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  24878. +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  24879. + hard_links=yes
  24880. + $rm conftest*
  24881. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  24882. + touch conftest.a
  24883. + ln conftest.a conftest.b 2>&5 || hard_links=no
  24884. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  24885. + echo "$as_me:$LINENO: result: $hard_links" >&5
  24886. +echo "${ECHO_T}$hard_links" >&6
  24887. + if test "$hard_links" = no; then
  24888. + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  24889. +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  24890. + need_locks=warn
  24891. + fi
  24892. +else
  24893. + need_locks=no
  24894. +fi
  24895. +
  24896. +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  24897. +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  24898. +
  24899. + runpath_var=
  24900. + allow_undefined_flag_GCJ=
  24901. + enable_shared_with_static_runtimes_GCJ=no
  24902. + archive_cmds_GCJ=
  24903. + archive_expsym_cmds_GCJ=
  24904. + old_archive_From_new_cmds_GCJ=
  24905. + old_archive_from_expsyms_cmds_GCJ=
  24906. + export_dynamic_flag_spec_GCJ=
  24907. + whole_archive_flag_spec_GCJ=
  24908. + thread_safe_flag_spec_GCJ=
  24909. + hardcode_libdir_flag_spec_GCJ=
  24910. + hardcode_libdir_flag_spec_ld_GCJ=
  24911. + hardcode_libdir_separator_GCJ=
  24912. + hardcode_direct_GCJ=no
  24913. + hardcode_minus_L_GCJ=no
  24914. + hardcode_shlibpath_var_GCJ=unsupported
  24915. + link_all_deplibs_GCJ=unknown
  24916. + hardcode_automatic_GCJ=no
  24917. + module_cmds_GCJ=
  24918. + module_expsym_cmds_GCJ=
  24919. + always_export_symbols_GCJ=no
  24920. + export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  24921. + # include_expsyms should be a list of space-separated symbols to be *always*
  24922. + # included in the symbol list
  24923. + include_expsyms_GCJ=
  24924. + # exclude_expsyms can be an extended regexp of symbols to exclude
  24925. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  24926. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  24927. + # as well as any symbol that contains `d'.
  24928. + exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  24929. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  24930. + # platforms (ab)use it in PIC code, but their linkers get confused if
  24931. + # the symbol is explicitly referenced. Since portable code cannot
  24932. + # rely on this symbol name, it's probably fine to never include it in
  24933. + # preloaded symbol tables.
  24934. + extract_expsyms_cmds=
  24935. + # Just being paranoid about ensuring that cc_basename is set.
  24936. + for cc_temp in $compiler""; do
  24937. + case $cc_temp in
  24938. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  24939. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  24940. + \-*) ;;
  24941. + *) break;;
  24942. + esac
  24943. +done
  24944. +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  24945. +
  24946. + case $host_os in
  24947. + cygwin* | mingw* | pw32*)
  24948. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  24949. + # When not using gcc, we currently assume that we are using
  24950. + # Microsoft Visual C++.
  24951. + if test "$GCC" != yes; then
  24952. + with_gnu_ld=no
  24953. + fi
  24954. + ;;
  24955. + interix*)
  24956. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  24957. + with_gnu_ld=yes
  24958. + ;;
  24959. + openbsd*)
  24960. + with_gnu_ld=no
  24961. + ;;
  24962. + esac
  24963. +
  24964. + ld_shlibs_GCJ=yes
  24965. + if test "$with_gnu_ld" = yes; then
  24966. + # If archive_cmds runs LD, not CC, wlarc should be empty
  24967. + wlarc='${wl}'
  24968. +
  24969. + # Set some defaults for GNU ld with shared library support. These
  24970. + # are reset later if shared libraries are not supported. Putting them
  24971. + # here allows them to be overridden if necessary.
  24972. + runpath_var=LD_RUN_PATH
  24973. + hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  24974. + export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  24975. + # ancient GNU ld didn't support --whole-archive et. al.
  24976. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  24977. + whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  24978. + else
  24979. + whole_archive_flag_spec_GCJ=
  24980. + fi
  24981. + supports_anon_versioning=no
  24982. + case `$LD -v 2>/dev/null` in
  24983. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  24984. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  24985. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  24986. + *\ 2.11.*) ;; # other 2.11 versions
  24987. + *) supports_anon_versioning=yes ;;
  24988. + esac
  24989. +
  24990. + # See if GNU ld supports shared libraries.
  24991. + case $host_os in
  24992. + aix3* | aix4* | aix5*)
  24993. + # On AIX/PPC, the GNU linker is very broken
  24994. + if test "$host_cpu" != ia64; then
  24995. + ld_shlibs_GCJ=no
  24996. + cat <<EOF 1>&2
  24997. +
  24998. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  24999. +*** to be unable to reliably create shared libraries on AIX.
  25000. +*** Therefore, libtool is disabling shared libraries support. If you
  25001. +*** really care for shared libraries, you may want to modify your PATH
  25002. +*** so that a non-GNU linker is found, and then restart.
  25003. +
  25004. +EOF
  25005. + fi
  25006. + ;;
  25007. +
  25008. + amigaos*)
  25009. + archive_cmds_GCJ='$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)'
  25010. + hardcode_libdir_flag_spec_GCJ='-L$libdir'
  25011. + hardcode_minus_L_GCJ=yes
  25012. +
  25013. + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  25014. + # that the semantics of dynamic libraries on AmigaOS, at least up
  25015. + # to version 4, is to share data among multiple programs linked
  25016. + # with the same dynamic library. Since this doesn't match the
  25017. + # behavior of shared libraries on other platforms, we can't use
  25018. + # them.
  25019. + ld_shlibs_GCJ=no
  25020. + ;;
  25021. +
  25022. + beos*)
  25023. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  25024. + allow_undefined_flag_GCJ=unsupported
  25025. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  25026. + # support --undefined. This deserves some investigation. FIXME
  25027. + archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25028. + else
  25029. + ld_shlibs_GCJ=no
  25030. + fi
  25031. + ;;
  25032. +
  25033. + cygwin* | mingw* | pw32*)
  25034. + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  25035. + # as there is no search path for DLLs.
  25036. + hardcode_libdir_flag_spec_GCJ='-L$libdir'
  25037. + allow_undefined_flag_GCJ=unsupported
  25038. + always_export_symbols_GCJ=no
  25039. + enable_shared_with_static_runtimes_GCJ=yes
  25040. + export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  25041. +
  25042. + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  25043. + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  25044. + # If the export-symbols file already is a .def file (1st line
  25045. + # is EXPORTS), use it as is; otherwise, prepend...
  25046. + archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  25047. + cp $export_symbols $output_objdir/$soname.def;
  25048. + else
  25049. + echo EXPORTS > $output_objdir/$soname.def;
  25050. + cat $export_symbols >> $output_objdir/$soname.def;
  25051. + fi~
  25052. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  25053. + else
  25054. + ld_shlibs_GCJ=no
  25055. + fi
  25056. + ;;
  25057. +
  25058. + interix3*)
  25059. + hardcode_direct_GCJ=no
  25060. + hardcode_shlibpath_var_GCJ=no
  25061. + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  25062. + export_dynamic_flag_spec_GCJ='${wl}-E'
  25063. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  25064. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  25065. + # default) and relocated if they conflict, which is a slow very memory
  25066. + # consuming and fragmenting process. To avoid this, we pick a random,
  25067. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  25068. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  25069. + archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  25070. + archive_expsym_cmds_GCJ='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'
  25071. + ;;
  25072. +
  25073. + linux*)
  25074. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  25075. + tmp_addflag=
  25076. + case $cc_basename,$host_cpu in
  25077. + pgcc*) # Portland Group C compiler
  25078. + whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  25079. + tmp_addflag=' $pic_flag'
  25080. + ;;
  25081. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  25082. + whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  25083. + tmp_addflag=' $pic_flag -Mnomain' ;;
  25084. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  25085. + tmp_addflag=' -i_dynamic' ;;
  25086. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  25087. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  25088. + ifc* | ifort*) # Intel Fortran compiler
  25089. + tmp_addflag=' -nofor_main' ;;
  25090. + esac
  25091. + archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25092. +
  25093. + if test $supports_anon_versioning = yes; then
  25094. + archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  25095. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  25096. + $echo "local: *; };" >> $output_objdir/$libname.ver~
  25097. + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  25098. + fi
  25099. + link_all_deplibs_GCJ=no
  25100. + else
  25101. + ld_shlibs_GCJ=no
  25102. + fi
  25103. + ;;
  25104. +
  25105. + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  25106. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  25107. + archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  25108. + wlarc=
  25109. + else
  25110. + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25111. + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  25112. + fi
  25113. + ;;
  25114. +
  25115. + solaris*)
  25116. + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  25117. + ld_shlibs_GCJ=no
  25118. + cat <<EOF 1>&2
  25119. +
  25120. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  25121. +*** create shared libraries on Solaris systems. Therefore, libtool
  25122. +*** is disabling shared libraries support. We urge you to upgrade GNU
  25123. +*** binutils to release 2.9.1 or newer. Another option is to modify
  25124. +*** your PATH or compiler configuration so that the native linker is
  25125. +*** used, and then restart.
  25126. +
  25127. +EOF
  25128. + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  25129. + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25130. + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  25131. + else
  25132. + ld_shlibs_GCJ=no
  25133. + fi
  25134. + ;;
  25135. +
  25136. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  25137. + case `$LD -v 2>&1` in
  25138. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  25139. + ld_shlibs_GCJ=no
  25140. + cat <<_LT_EOF 1>&2
  25141. +
  25142. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  25143. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  25144. +*** is disabling shared libraries support. We urge you to upgrade GNU
  25145. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  25146. +*** your PATH or compiler configuration so that the native linker is
  25147. +*** used, and then restart.
  25148. +
  25149. +_LT_EOF
  25150. + ;;
  25151. + *)
  25152. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  25153. + hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  25154. + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  25155. + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  25156. + else
  25157. + ld_shlibs_GCJ=no
  25158. + fi
  25159. + ;;
  25160. + esac
  25161. + ;;
  25162. +
  25163. + sunos4*)
  25164. + archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  25165. + wlarc=
  25166. + hardcode_direct_GCJ=yes
  25167. + hardcode_shlibpath_var_GCJ=no
  25168. + ;;
  25169. +
  25170. + *)
  25171. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  25172. + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25173. + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  25174. + else
  25175. + ld_shlibs_GCJ=no
  25176. + fi
  25177. + ;;
  25178. + esac
  25179. +
  25180. + if test "$ld_shlibs_GCJ" = no; then
  25181. + runpath_var=
  25182. + hardcode_libdir_flag_spec_GCJ=
  25183. + export_dynamic_flag_spec_GCJ=
  25184. + whole_archive_flag_spec_GCJ=
  25185. + fi
  25186. + else
  25187. + # PORTME fill in a description of your system's linker (not GNU ld)
  25188. + case $host_os in
  25189. + aix3*)
  25190. + allow_undefined_flag_GCJ=unsupported
  25191. + always_export_symbols_GCJ=yes
  25192. + archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  25193. + # Note: this linker hardcodes the directories in LIBPATH if there
  25194. + # are no directories specified by -L.
  25195. + hardcode_minus_L_GCJ=yes
  25196. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  25197. + # Neither direct hardcoding nor static linking is supported with a
  25198. + # broken collect2.
  25199. + hardcode_direct_GCJ=unsupported
  25200. + fi
  25201. + ;;
  25202. +
  25203. + aix4* | aix5*)
  25204. + if test "$host_cpu" = ia64; then
  25205. + # On IA64, the linker does run time linking by default, so we don't
  25206. + # have to do anything special.
  25207. + aix_use_runtimelinking=no
  25208. + exp_sym_flag='-Bexport'
  25209. + no_entry_flag=""
  25210. + else
  25211. + # If we're using GNU nm, then we don't want the "-C" option.
  25212. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  25213. + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  25214. + export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  25215. + else
  25216. + export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  25217. + fi
  25218. + aix_use_runtimelinking=no
  25219. +
  25220. + # Test if we are trying to use run time linking or normal
  25221. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  25222. + # need to do runtime linking.
  25223. + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  25224. + for ld_flag in $LDFLAGS; do
  25225. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  25226. + aix_use_runtimelinking=yes
  25227. + break
  25228. + fi
  25229. + done
  25230. + ;;
  25231. + esac
  25232. +
  25233. + exp_sym_flag='-bexport'
  25234. + no_entry_flag='-bnoentry'
  25235. + fi
  25236. +
  25237. + # When large executables or shared objects are built, AIX ld can
  25238. + # have problems creating the table of contents. If linking a library
  25239. + # or program results in "error TOC overflow" add -mminimal-toc to
  25240. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  25241. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  25242. +
  25243. + archive_cmds_GCJ=''
  25244. + hardcode_direct_GCJ=yes
  25245. + hardcode_libdir_separator_GCJ=':'
  25246. + link_all_deplibs_GCJ=yes
  25247. +
  25248. + if test "$GCC" = yes; then
  25249. + case $host_os in aix4.[012]|aix4.[012].*)
  25250. + # We only want to do this on AIX 4.2 and lower, the check
  25251. + # below for broken collect2 doesn't work under 4.3+
  25252. + collect2name=`${CC} -print-prog-name=collect2`
  25253. + if test -f "$collect2name" && \
  25254. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  25255. + then
  25256. + # We have reworked collect2
  25257. + hardcode_direct_GCJ=yes
  25258. + else
  25259. + # We have old collect2
  25260. + hardcode_direct_GCJ=unsupported
  25261. + # It fails to find uninstalled libraries when the uninstalled
  25262. + # path is not listed in the libpath. Setting hardcode_minus_L
  25263. + # to unsupported forces relinking
  25264. + hardcode_minus_L_GCJ=yes
  25265. + hardcode_libdir_flag_spec_GCJ='-L$libdir'
  25266. + hardcode_libdir_separator_GCJ=
  25267. + fi
  25268. + ;;
  25269. + esac
  25270. + shared_flag='-shared'
  25271. + if test "$aix_use_runtimelinking" = yes; then
  25272. + shared_flag="$shared_flag "'${wl}-G'
  25273. + fi
  25274. + else
  25275. + # not using gcc
  25276. + if test "$host_cpu" = ia64; then
  25277. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  25278. + # chokes on -Wl,-G. The following line is correct:
  25279. + shared_flag='-G'
  25280. + else
  25281. + if test "$aix_use_runtimelinking" = yes; then
  25282. + shared_flag='${wl}-G'
  25283. + else
  25284. + shared_flag='${wl}-bM:SRE'
  25285. + fi
  25286. + fi
  25287. + fi
  25288. +
  25289. + # It seems that -bexpall does not export symbols beginning with
  25290. + # underscore (_), so it is better to generate a list of symbols to export.
  25291. + always_export_symbols_GCJ=yes
  25292. + if test "$aix_use_runtimelinking" = yes; then
  25293. + # Warning - without using the other runtime loading flags (-brtl),
  25294. + # -berok will link without error, but may produce a broken library.
  25295. + allow_undefined_flag_GCJ='-berok'
  25296. + # Determine the default libpath from the value encoded in an empty executable.
  25297. + cat >conftest.$ac_ext <<_ACEOF
  25298. +/* confdefs.h. */
  25299. +_ACEOF
  25300. +cat confdefs.h >>conftest.$ac_ext
  25301. +cat >>conftest.$ac_ext <<_ACEOF
  25302. +/* end confdefs.h. */
  25303. +
  25304. +int
  25305. +main ()
  25306. +{
  25307. +
  25308. + ;
  25309. + return 0;
  25310. +}
  25311. +_ACEOF
  25312. +rm -f conftest.$ac_objext conftest$ac_exeext
  25313. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25314. + (eval $ac_link) 2>conftest.er1
  25315. + ac_status=$?
  25316. + grep -v '^ *+' conftest.er1 >conftest.err
  25317. + rm -f conftest.er1
  25318. + cat conftest.err >&5
  25319. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25320. + (exit $ac_status); } &&
  25321. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25322. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25323. + (eval $ac_try) 2>&5
  25324. + ac_status=$?
  25325. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25326. + (exit $ac_status); }; } &&
  25327. + { ac_try='test -s conftest$ac_exeext'
  25328. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25329. + (eval $ac_try) 2>&5
  25330. + ac_status=$?
  25331. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25332. + (exit $ac_status); }; }; then
  25333. +
  25334. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  25335. +}'`
  25336. +# Check for a 64-bit object if we didn't find anything.
  25337. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  25338. +}'`; fi
  25339. +else
  25340. + echo "$as_me: failed program was:" >&5
  25341. +sed 's/^/| /' conftest.$ac_ext >&5
  25342. +
  25343. +fi
  25344. +rm -f conftest.err conftest.$ac_objext \
  25345. + conftest$ac_exeext conftest.$ac_ext
  25346. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  25347. +
  25348. + hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  25349. + archive_expsym_cmds_GCJ="\$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"
  25350. + else
  25351. + if test "$host_cpu" = ia64; then
  25352. + hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  25353. + allow_undefined_flag_GCJ="-z nodefs"
  25354. + archive_expsym_cmds_GCJ="\$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"
  25355. + else
  25356. + # Determine the default libpath from the value encoded in an empty executable.
  25357. + cat >conftest.$ac_ext <<_ACEOF
  25358. +/* confdefs.h. */
  25359. +_ACEOF
  25360. +cat confdefs.h >>conftest.$ac_ext
  25361. +cat >>conftest.$ac_ext <<_ACEOF
  25362. +/* end confdefs.h. */
  25363. +
  25364. +int
  25365. +main ()
  25366. +{
  25367. +
  25368. + ;
  25369. + return 0;
  25370. +}
  25371. +_ACEOF
  25372. +rm -f conftest.$ac_objext conftest$ac_exeext
  25373. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25374. + (eval $ac_link) 2>conftest.er1
  25375. + ac_status=$?
  25376. + grep -v '^ *+' conftest.er1 >conftest.err
  25377. + rm -f conftest.er1
  25378. + cat conftest.err >&5
  25379. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25380. + (exit $ac_status); } &&
  25381. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25382. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25383. + (eval $ac_try) 2>&5
  25384. + ac_status=$?
  25385. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25386. + (exit $ac_status); }; } &&
  25387. + { ac_try='test -s conftest$ac_exeext'
  25388. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25389. + (eval $ac_try) 2>&5
  25390. + ac_status=$?
  25391. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25392. + (exit $ac_status); }; }; then
  25393. +
  25394. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  25395. +}'`
  25396. +# Check for a 64-bit object if we didn't find anything.
  25397. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  25398. +}'`; fi
  25399. +else
  25400. + echo "$as_me: failed program was:" >&5
  25401. +sed 's/^/| /' conftest.$ac_ext >&5
  25402. +
  25403. +fi
  25404. +rm -f conftest.err conftest.$ac_objext \
  25405. + conftest$ac_exeext conftest.$ac_ext
  25406. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  25407. +
  25408. + hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  25409. + # Warning - without using the other run time loading flags,
  25410. + # -berok will link without error, but may produce a broken library.
  25411. + no_undefined_flag_GCJ=' ${wl}-bernotok'
  25412. + allow_undefined_flag_GCJ=' ${wl}-berok'
  25413. + # Exported symbols can be pulled into shared objects from archives
  25414. + whole_archive_flag_spec_GCJ='$convenience'
  25415. + archive_cmds_need_lc_GCJ=yes
  25416. + # This is similar to how AIX traditionally builds its shared libraries.
  25417. + archive_expsym_cmds_GCJ="\$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'
  25418. + fi
  25419. + fi
  25420. + ;;
  25421. +
  25422. + amigaos*)
  25423. + archive_cmds_GCJ='$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)'
  25424. + hardcode_libdir_flag_spec_GCJ='-L$libdir'
  25425. + hardcode_minus_L_GCJ=yes
  25426. + # see comment about different semantics on the GNU ld section
  25427. + ld_shlibs_GCJ=no
  25428. + ;;
  25429. +
  25430. + bsdi[45]*)
  25431. + export_dynamic_flag_spec_GCJ=-rdynamic
  25432. + ;;
  25433. +
  25434. + cygwin* | mingw* | pw32*)
  25435. + # When not using gcc, we currently assume that we are using
  25436. + # Microsoft Visual C++.
  25437. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  25438. + # no search path for DLLs.
  25439. + hardcode_libdir_flag_spec_GCJ=' '
  25440. + allow_undefined_flag_GCJ=unsupported
  25441. + # Tell ltmain to make .lib files, not .a files.
  25442. + libext=lib
  25443. + # Tell ltmain to make .dll files, not .so files.
  25444. + shrext_cmds=".dll"
  25445. + # FIXME: Setting linknames here is a bad hack.
  25446. + archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  25447. + # The linker will automatically build a .lib file if we build a DLL.
  25448. + old_archive_From_new_cmds_GCJ='true'
  25449. + # FIXME: Should let the user specify the lib program.
  25450. + old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  25451. + fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  25452. + enable_shared_with_static_runtimes_GCJ=yes
  25453. + ;;
  25454. +
  25455. + darwin* | rhapsody*)
  25456. + case $host_os in
  25457. + rhapsody* | darwin1.[012])
  25458. + allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  25459. + ;;
  25460. + *) # Darwin 1.3 on
  25461. + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  25462. + allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  25463. + else
  25464. + case ${MACOSX_DEPLOYMENT_TARGET} in
  25465. + 10.[012])
  25466. + allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  25467. + ;;
  25468. + 10.*)
  25469. + allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  25470. + ;;
  25471. + esac
  25472. + fi
  25473. + ;;
  25474. + esac
  25475. + archive_cmds_need_lc_GCJ=no
  25476. + hardcode_direct_GCJ=no
  25477. + hardcode_automatic_GCJ=yes
  25478. + hardcode_shlibpath_var_GCJ=unsupported
  25479. + whole_archive_flag_spec_GCJ=''
  25480. + link_all_deplibs_GCJ=yes
  25481. + if test "$GCC" = yes ; then
  25482. + output_verbose_link_cmd='echo'
  25483. + archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  25484. + module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  25485. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  25486. + archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  25487. + module_expsym_cmds_GCJ='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}'
  25488. + else
  25489. + case $cc_basename in
  25490. + xlc*)
  25491. + output_verbose_link_cmd='echo'
  25492. + archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  25493. + module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  25494. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  25495. + archive_expsym_cmds_GCJ='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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  25496. + module_expsym_cmds_GCJ='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}'
  25497. + ;;
  25498. + *)
  25499. + ld_shlibs_GCJ=no
  25500. + ;;
  25501. + esac
  25502. + fi
  25503. + ;;
  25504. +
  25505. + dgux*)
  25506. + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25507. + hardcode_libdir_flag_spec_GCJ='-L$libdir'
  25508. + hardcode_shlibpath_var_GCJ=no
  25509. + ;;
  25510. +
  25511. + freebsd1*)
  25512. + ld_shlibs_GCJ=no
  25513. + ;;
  25514. +
  25515. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  25516. + # support. Future versions do this automatically, but an explicit c++rt0.o
  25517. + # does not break anything, and helps significantly (at the cost of a little
  25518. + # extra space).
  25519. + freebsd2.2*)
  25520. + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  25521. + hardcode_libdir_flag_spec_GCJ='-R$libdir'
  25522. + hardcode_direct_GCJ=yes
  25523. + hardcode_shlibpath_var_GCJ=no
  25524. + ;;
  25525. +
  25526. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  25527. + freebsd2*)
  25528. + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  25529. + hardcode_direct_GCJ=yes
  25530. + hardcode_minus_L_GCJ=yes
  25531. + hardcode_shlibpath_var_GCJ=no
  25532. + ;;
  25533. +
  25534. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  25535. + freebsd* | dragonfly*)
  25536. + archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  25537. + hardcode_libdir_flag_spec_GCJ='-R$libdir'
  25538. + hardcode_direct_GCJ=yes
  25539. + hardcode_shlibpath_var_GCJ=no
  25540. + ;;
  25541. +
  25542. + # GNU/kFreeBSD uses gcc -shared to do shared libraries.
  25543. + kfreebsd*-gnu)
  25544. + archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  25545. + hardcode_libdir_flag_spec_GCJ='-R$libdir'
  25546. + hardcode_direct_GCJ=yes
  25547. + hardcode_shlibpath_var_GCJ=no
  25548. + link_all_deplibs_GCJ=no
  25549. + ;;
  25550. +
  25551. + hpux9*)
  25552. + if test "$GCC" = yes; then
  25553. + archive_cmds_GCJ='$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'
  25554. + else
  25555. + archive_cmds_GCJ='$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'
  25556. + fi
  25557. + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  25558. + hardcode_libdir_separator_GCJ=:
  25559. + hardcode_direct_GCJ=yes
  25560. +
  25561. + # hardcode_minus_L: Not really in the search PATH,
  25562. + # but as the default location of the library.
  25563. + hardcode_minus_L_GCJ=yes
  25564. + export_dynamic_flag_spec_GCJ='${wl}-E'
  25565. + ;;
  25566. +
  25567. + hpux10*)
  25568. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  25569. + archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  25570. + else
  25571. + archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  25572. + fi
  25573. + if test "$with_gnu_ld" = no; then
  25574. + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  25575. + hardcode_libdir_separator_GCJ=:
  25576. +
  25577. + hardcode_direct_GCJ=yes
  25578. + export_dynamic_flag_spec_GCJ='${wl}-E'
  25579. +
  25580. + # hardcode_minus_L: Not really in the search PATH,
  25581. + # but as the default location of the library.
  25582. + hardcode_minus_L_GCJ=yes
  25583. + fi
  25584. + ;;
  25585. +
  25586. + hpux11*)
  25587. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  25588. + case $host_cpu in
  25589. + hppa*64*)
  25590. + archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25591. + ;;
  25592. + ia64*)
  25593. + archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  25594. + ;;
  25595. + *)
  25596. + archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  25597. + ;;
  25598. + esac
  25599. + else
  25600. + case $host_cpu in
  25601. + hppa*64*)
  25602. + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25603. + ;;
  25604. + ia64*)
  25605. + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  25606. + ;;
  25607. + *)
  25608. + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  25609. + ;;
  25610. + esac
  25611. + fi
  25612. + if test "$with_gnu_ld" = no; then
  25613. + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  25614. + hardcode_libdir_separator_GCJ=:
  25615. +
  25616. + case $host_cpu in
  25617. + hppa*64*|ia64*)
  25618. + hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  25619. + hardcode_direct_GCJ=no
  25620. + hardcode_shlibpath_var_GCJ=no
  25621. + ;;
  25622. + *)
  25623. + hardcode_direct_GCJ=yes
  25624. + export_dynamic_flag_spec_GCJ='${wl}-E'
  25625. +
  25626. + # hardcode_minus_L: Not really in the search PATH,
  25627. + # but as the default location of the library.
  25628. + hardcode_minus_L_GCJ=yes
  25629. + ;;
  25630. + esac
  25631. + fi
  25632. + ;;
  25633. +
  25634. + irix5* | irix6* | nonstopux*)
  25635. + if test "$GCC" = yes; then
  25636. + archive_cmds_GCJ='$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'
  25637. + else
  25638. + archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  25639. + hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  25640. + fi
  25641. + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  25642. + hardcode_libdir_separator_GCJ=:
  25643. + link_all_deplibs_GCJ=yes
  25644. + ;;
  25645. +
  25646. + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  25647. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  25648. + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  25649. + else
  25650. + archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  25651. + fi
  25652. + hardcode_libdir_flag_spec_GCJ='-R$libdir'
  25653. + hardcode_direct_GCJ=yes
  25654. + hardcode_shlibpath_var_GCJ=no
  25655. + ;;
  25656. +
  25657. + newsos6)
  25658. + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25659. + hardcode_direct_GCJ=yes
  25660. + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  25661. + hardcode_libdir_separator_GCJ=:
  25662. + hardcode_shlibpath_var_GCJ=no
  25663. + ;;
  25664. +
  25665. + openbsd*)
  25666. + hardcode_direct_GCJ=yes
  25667. + hardcode_shlibpath_var_GCJ=no
  25668. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  25669. + archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  25670. + archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  25671. + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  25672. + export_dynamic_flag_spec_GCJ='${wl}-E'
  25673. + else
  25674. + case $host_os in
  25675. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  25676. + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  25677. + hardcode_libdir_flag_spec_GCJ='-R$libdir'
  25678. + ;;
  25679. + *)
  25680. + archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  25681. + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  25682. + ;;
  25683. + esac
  25684. + fi
  25685. + ;;
  25686. +
  25687. + os2*)
  25688. + hardcode_libdir_flag_spec_GCJ='-L$libdir'
  25689. + hardcode_minus_L_GCJ=yes
  25690. + allow_undefined_flag_GCJ=unsupported
  25691. + archive_cmds_GCJ='$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'
  25692. + old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  25693. + ;;
  25694. +
  25695. + osf3*)
  25696. + if test "$GCC" = yes; then
  25697. + allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  25698. + archive_cmds_GCJ='$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'
  25699. + else
  25700. + allow_undefined_flag_GCJ=' -expect_unresolved \*'
  25701. + archive_cmds_GCJ='$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'
  25702. + fi
  25703. + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  25704. + hardcode_libdir_separator_GCJ=:
  25705. + ;;
  25706. +
  25707. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  25708. + if test "$GCC" = yes; then
  25709. + allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  25710. + archive_cmds_GCJ='$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'
  25711. + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  25712. + else
  25713. + allow_undefined_flag_GCJ=' -expect_unresolved \*'
  25714. + archive_cmds_GCJ='$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'
  25715. + archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  25716. + $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'
  25717. +
  25718. + # Both c and cxx compiler support -rpath directly
  25719. + hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  25720. + fi
  25721. + hardcode_libdir_separator_GCJ=:
  25722. + ;;
  25723. +
  25724. + solaris*)
  25725. + no_undefined_flag_GCJ=' -z text'
  25726. + if test "$GCC" = yes; then
  25727. + wlarc='${wl}'
  25728. + archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25729. + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  25730. + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  25731. + else
  25732. + wlarc=''
  25733. + archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25734. + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  25735. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  25736. + fi
  25737. + hardcode_libdir_flag_spec_GCJ='-R$libdir'
  25738. + hardcode_shlibpath_var_GCJ=no
  25739. + case $host_os in
  25740. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  25741. + *)
  25742. + # The compiler driver will combine linker options so we
  25743. + # cannot just pass the convience library names through
  25744. + # without $wl, iff we do not link with $LD.
  25745. + # Luckily, gcc supports the same syntax we need for Sun Studio.
  25746. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  25747. + case $wlarc in
  25748. + '')
  25749. + whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  25750. + *)
  25751. + whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  25752. + esac ;;
  25753. + esac
  25754. + link_all_deplibs_GCJ=yes
  25755. + ;;
  25756. +
  25757. + sunos4*)
  25758. + if test "x$host_vendor" = xsequent; then
  25759. + # Use $CC to link under sequent, because it throws in some extra .o
  25760. + # files that make .init and .fini sections work.
  25761. + archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  25762. + else
  25763. + archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  25764. + fi
  25765. + hardcode_libdir_flag_spec_GCJ='-L$libdir'
  25766. + hardcode_direct_GCJ=yes
  25767. + hardcode_minus_L_GCJ=yes
  25768. + hardcode_shlibpath_var_GCJ=no
  25769. + ;;
  25770. +
  25771. + sysv4)
  25772. + case $host_vendor in
  25773. + sni)
  25774. + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25775. + hardcode_direct_GCJ=yes # is this really true???
  25776. + ;;
  25777. + siemens)
  25778. + ## LD is ld it makes a PLAMLIB
  25779. + ## CC just makes a GrossModule.
  25780. + archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  25781. + reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  25782. + hardcode_direct_GCJ=no
  25783. + ;;
  25784. + motorola)
  25785. + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25786. + hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  25787. + ;;
  25788. + esac
  25789. + runpath_var='LD_RUN_PATH'
  25790. + hardcode_shlibpath_var_GCJ=no
  25791. + ;;
  25792. +
  25793. + sysv4.3*)
  25794. + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25795. + hardcode_shlibpath_var_GCJ=no
  25796. + export_dynamic_flag_spec_GCJ='-Bexport'
  25797. + ;;
  25798. +
  25799. + sysv4*MP*)
  25800. + if test -d /usr/nec; then
  25801. + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25802. + hardcode_shlibpath_var_GCJ=no
  25803. + runpath_var=LD_RUN_PATH
  25804. + hardcode_runpath_var=yes
  25805. + ld_shlibs_GCJ=yes
  25806. + fi
  25807. + ;;
  25808. +
  25809. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  25810. + no_undefined_flag_GCJ='${wl}-z,text'
  25811. + archive_cmds_need_lc_GCJ=no
  25812. + hardcode_shlibpath_var_GCJ=no
  25813. + runpath_var='LD_RUN_PATH'
  25814. +
  25815. + if test "$GCC" = yes; then
  25816. + archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25817. + archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25818. + else
  25819. + archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25820. + archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25821. + fi
  25822. + ;;
  25823. +
  25824. + sysv5* | sco3.2v5* | sco5v6*)
  25825. + # Note: We can NOT use -z defs as we might desire, because we do not
  25826. + # link with -lc, and that would cause any symbols used from libc to
  25827. + # always be unresolved, which means just about no library would
  25828. + # ever link correctly. If we're not using GNU ld we use -z text
  25829. + # though, which does catch some bad symbols but isn't as heavy-handed
  25830. + # as -z defs.
  25831. + no_undefined_flag_GCJ='${wl}-z,text'
  25832. + allow_undefined_flag_GCJ='${wl}-z,nodefs'
  25833. + archive_cmds_need_lc_GCJ=no
  25834. + hardcode_shlibpath_var_GCJ=no
  25835. + hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  25836. + hardcode_libdir_separator_GCJ=':'
  25837. + link_all_deplibs_GCJ=yes
  25838. + export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  25839. + runpath_var='LD_RUN_PATH'
  25840. +
  25841. + if test "$GCC" = yes; then
  25842. + archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25843. + archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25844. + else
  25845. + archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25846. + archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25847. + fi
  25848. + ;;
  25849. +
  25850. + uts4*)
  25851. + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25852. + hardcode_libdir_flag_spec_GCJ='-L$libdir'
  25853. + hardcode_shlibpath_var_GCJ=no
  25854. + ;;
  25855. +
  25856. + *)
  25857. + ld_shlibs_GCJ=no
  25858. + ;;
  25859. + esac
  25860. + fi
  25861. +
  25862. +echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  25863. +echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  25864. +test "$ld_shlibs_GCJ" = no && can_build_shared=no
  25865. +
  25866. +#
  25867. +# Do we need to explicitly link libc?
  25868. +#
  25869. +case "x$archive_cmds_need_lc_GCJ" in
  25870. +x|xyes)
  25871. + # Assume -lc should be added
  25872. + archive_cmds_need_lc_GCJ=yes
  25873. +
  25874. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  25875. + case $archive_cmds_GCJ in
  25876. + *'~'*)
  25877. + # FIXME: we may have to deal with multi-command sequences.
  25878. + ;;
  25879. + '$CC '*)
  25880. + # Test whether the compiler implicitly links with -lc since on some
  25881. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  25882. + # to ld, don't add -lc before -lgcc.
  25883. + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  25884. +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  25885. + $rm conftest*
  25886. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  25887. +
  25888. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25889. + (eval $ac_compile) 2>&5
  25890. + ac_status=$?
  25891. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25892. + (exit $ac_status); } 2>conftest.err; then
  25893. + soname=conftest
  25894. + lib=conftest
  25895. + libobjs=conftest.$ac_objext
  25896. + deplibs=
  25897. + wl=$lt_prog_compiler_wl_GCJ
  25898. + pic_flag=$lt_prog_compiler_pic_GCJ
  25899. + compiler_flags=-v
  25900. + linker_flags=-v
  25901. + verstring=
  25902. + output_objdir=.
  25903. + libname=conftest
  25904. + lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  25905. + allow_undefined_flag_GCJ=
  25906. + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  25907. + (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  25908. + ac_status=$?
  25909. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25910. + (exit $ac_status); }
  25911. + then
  25912. + archive_cmds_need_lc_GCJ=no
  25913. + else
  25914. + archive_cmds_need_lc_GCJ=yes
  25915. + fi
  25916. + allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  25917. + else
  25918. + cat conftest.err 1>&5
  25919. + fi
  25920. + $rm conftest*
  25921. + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  25922. +echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  25923. + ;;
  25924. + esac
  25925. + fi
  25926. + ;;
  25927. +esac
  25928. +
  25929. +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  25930. +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  25931. +library_names_spec=
  25932. +libname_spec='lib$name'
  25933. +soname_spec=
  25934. +shrext_cmds=".so"
  25935. +postinstall_cmds=
  25936. +postuninstall_cmds=
  25937. +finish_cmds=
  25938. +finish_eval=
  25939. +shlibpath_var=
  25940. +shlibpath_overrides_runpath=unknown
  25941. +version_type=none
  25942. +dynamic_linker="$host_os ld.so"
  25943. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  25944. +if test "$GCC" = yes; then
  25945. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  25946. + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  25947. + # if the path contains ";" then we assume it to be the separator
  25948. + # otherwise default to the standard path separator (i.e. ":") - it is
  25949. + # assumed that no part of a normal pathname contains ";" but that should
  25950. + # okay in the real world where ";" in dirpaths is itself problematic.
  25951. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  25952. + else
  25953. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  25954. + fi
  25955. +else
  25956. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  25957. +fi
  25958. +need_lib_prefix=unknown
  25959. +hardcode_into_libs=no
  25960. +
  25961. +# when you set need_version to no, make sure it does not cause -set_version
  25962. +# flags to be left without arguments
  25963. +need_version=unknown
  25964. +
  25965. +case $host_os in
  25966. +aix3*)
  25967. + version_type=linux
  25968. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  25969. + shlibpath_var=LIBPATH
  25970. +
  25971. + # AIX 3 has no versioning support, so we append a major version to the name.
  25972. + soname_spec='${libname}${release}${shared_ext}$major'
  25973. + ;;
  25974. +
  25975. +aix4* | aix5*)
  25976. + version_type=linux
  25977. + need_lib_prefix=no
  25978. + need_version=no
  25979. + hardcode_into_libs=yes
  25980. + if test "$host_cpu" = ia64; then
  25981. + # AIX 5 supports IA64
  25982. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  25983. + shlibpath_var=LD_LIBRARY_PATH
  25984. + else
  25985. + # With GCC up to 2.95.x, collect2 would create an import file
  25986. + # for dependence libraries. The import file would start with
  25987. + # the line `#! .'. This would cause the generated library to
  25988. + # depend on `.', always an invalid library. This was fixed in
  25989. + # development snapshots of GCC prior to 3.0.
  25990. + case $host_os in
  25991. + aix4 | aix4.[01] | aix4.[01].*)
  25992. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  25993. + echo ' yes '
  25994. + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  25995. + :
  25996. + else
  25997. + can_build_shared=no
  25998. + fi
  25999. + ;;
  26000. + esac
  26001. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  26002. + # soname into executable. Probably we can add versioning support to
  26003. + # collect2, so additional links can be useful in future.
  26004. + if test "$aix_use_runtimelinking" = yes; then
  26005. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  26006. + # instead of lib<name>.a to let people know that these are not
  26007. + # typical AIX shared libraries.
  26008. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26009. + else
  26010. + # We preserve .a as extension for shared libraries through AIX4.2
  26011. + # and later when we are not doing run time linking.
  26012. + library_names_spec='${libname}${release}.a $libname.a'
  26013. + soname_spec='${libname}${release}${shared_ext}$major'
  26014. + fi
  26015. + shlibpath_var=LIBPATH
  26016. + fi
  26017. + ;;
  26018. +
  26019. +amigaos*)
  26020. + library_names_spec='$libname.ixlibrary $libname.a'
  26021. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  26022. + 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'
  26023. + ;;
  26024. +
  26025. +beos*)
  26026. + library_names_spec='${libname}${shared_ext}'
  26027. + dynamic_linker="$host_os ld.so"
  26028. + shlibpath_var=LIBRARY_PATH
  26029. + ;;
  26030. +
  26031. +bsdi[45]*)
  26032. + version_type=linux
  26033. + need_version=no
  26034. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26035. + soname_spec='${libname}${release}${shared_ext}$major'
  26036. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  26037. + shlibpath_var=LD_LIBRARY_PATH
  26038. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  26039. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  26040. + # the default ld.so.conf also contains /usr/contrib/lib and
  26041. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  26042. + # libtool to hard-code these into programs
  26043. + ;;
  26044. +
  26045. +cygwin* | mingw* | pw32*)
  26046. + version_type=windows
  26047. + shrext_cmds=".dll"
  26048. + need_version=no
  26049. + need_lib_prefix=no
  26050. +
  26051. + case $GCC,$host_os in
  26052. + yes,cygwin* | yes,mingw* | yes,pw32*)
  26053. + library_names_spec='$libname.dll.a'
  26054. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  26055. + postinstall_cmds='base_file=`basename \${file}`~
  26056. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  26057. + dldir=$destdir/`dirname \$dlpath`~
  26058. + test -d \$dldir || mkdir -p \$dldir~
  26059. + $install_prog $dir/$dlname \$dldir/$dlname~
  26060. + chmod a+x \$dldir/$dlname'
  26061. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  26062. + dlpath=$dir/\$dldll~
  26063. + $rm \$dlpath'
  26064. + shlibpath_overrides_runpath=yes
  26065. +
  26066. + case $host_os in
  26067. + cygwin*)
  26068. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  26069. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  26070. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  26071. + ;;
  26072. + mingw*)
  26073. + # MinGW DLLs use traditional 'lib' prefix
  26074. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  26075. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  26076. + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  26077. + # It is most probably a Windows format PATH printed by
  26078. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  26079. + # path with ; separators, and with drive letters. We can handle the
  26080. + # drive letters (cygwin fileutils understands them), so leave them,
  26081. + # especially as we might pass files found there to a mingw objdump,
  26082. + # which wouldn't understand a cygwinified path. Ahh.
  26083. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  26084. + else
  26085. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  26086. + fi
  26087. + ;;
  26088. + pw32*)
  26089. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  26090. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  26091. + ;;
  26092. + esac
  26093. + ;;
  26094. +
  26095. + *)
  26096. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  26097. + ;;
  26098. + esac
  26099. + dynamic_linker='Win32 ld.exe'
  26100. + # FIXME: first we should search . and the directory the executable is in
  26101. + shlibpath_var=PATH
  26102. + ;;
  26103. +
  26104. +darwin* | rhapsody*)
  26105. + dynamic_linker="$host_os dyld"
  26106. + version_type=darwin
  26107. + need_lib_prefix=no
  26108. + need_version=no
  26109. + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  26110. + soname_spec='${libname}${release}${major}$shared_ext'
  26111. + shlibpath_overrides_runpath=yes
  26112. + shlibpath_var=DYLD_LIBRARY_PATH
  26113. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  26114. + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  26115. + if test "$GCC" = yes; then
  26116. + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  26117. + else
  26118. + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  26119. + fi
  26120. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  26121. + ;;
  26122. +
  26123. +dgux*)
  26124. + version_type=linux
  26125. + need_lib_prefix=no
  26126. + need_version=no
  26127. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  26128. + soname_spec='${libname}${release}${shared_ext}$major'
  26129. + shlibpath_var=LD_LIBRARY_PATH
  26130. + ;;
  26131. +
  26132. +freebsd1*)
  26133. + dynamic_linker=no
  26134. + ;;
  26135. +
  26136. +kfreebsd*-gnu)
  26137. + version_type=linux
  26138. + need_lib_prefix=no
  26139. + need_version=no
  26140. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  26141. + soname_spec='${libname}${release}${shared_ext}$major'
  26142. + shlibpath_var=LD_LIBRARY_PATH
  26143. + shlibpath_overrides_runpath=no
  26144. + hardcode_into_libs=yes
  26145. + dynamic_linker='GNU ld.so'
  26146. + ;;
  26147. +
  26148. +freebsd* | dragonfly*)
  26149. + # DragonFly does not have aout. When/if they implement a new
  26150. + # versioning mechanism, adjust this.
  26151. + if test -x /usr/bin/objformat; then
  26152. + objformat=`/usr/bin/objformat`
  26153. + else
  26154. + case $host_os in
  26155. + freebsd[123]*) objformat=aout ;;
  26156. + *) objformat=elf ;;
  26157. + esac
  26158. + fi
  26159. + version_type=freebsd-$objformat
  26160. + case $version_type in
  26161. + freebsd-elf*)
  26162. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  26163. + need_version=no
  26164. + need_lib_prefix=no
  26165. + ;;
  26166. + freebsd-*)
  26167. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  26168. + need_version=yes
  26169. + ;;
  26170. + esac
  26171. + shlibpath_var=LD_LIBRARY_PATH
  26172. + case $host_os in
  26173. + freebsd2*)
  26174. + shlibpath_overrides_runpath=yes
  26175. + ;;
  26176. + freebsd3.[01]* | freebsdelf3.[01]*)
  26177. + shlibpath_overrides_runpath=yes
  26178. + hardcode_into_libs=yes
  26179. + ;;
  26180. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  26181. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  26182. + shlibpath_overrides_runpath=no
  26183. + hardcode_into_libs=yes
  26184. + ;;
  26185. + freebsd*) # from 4.6 on
  26186. + shlibpath_overrides_runpath=yes
  26187. + hardcode_into_libs=yes
  26188. + ;;
  26189. + esac
  26190. + ;;
  26191. +
  26192. +gnu*)
  26193. + version_type=linux
  26194. + need_lib_prefix=no
  26195. + need_version=no
  26196. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  26197. + soname_spec='${libname}${release}${shared_ext}$major'
  26198. + shlibpath_var=LD_LIBRARY_PATH
  26199. + hardcode_into_libs=yes
  26200. + ;;
  26201. +
  26202. +hpux9* | hpux10* | hpux11*)
  26203. + # Give a soname corresponding to the major version so that dld.sl refuses to
  26204. + # link against other versions.
  26205. + version_type=sunos
  26206. + need_lib_prefix=no
  26207. + need_version=no
  26208. + case $host_cpu in
  26209. + ia64*)
  26210. + shrext_cmds='.so'
  26211. + hardcode_into_libs=yes
  26212. + dynamic_linker="$host_os dld.so"
  26213. + shlibpath_var=LD_LIBRARY_PATH
  26214. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  26215. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26216. + soname_spec='${libname}${release}${shared_ext}$major'
  26217. + if test "X$HPUX_IA64_MODE" = X32; then
  26218. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  26219. + else
  26220. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  26221. + fi
  26222. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  26223. + ;;
  26224. + hppa*64*)
  26225. + shrext_cmds='.sl'
  26226. + hardcode_into_libs=yes
  26227. + dynamic_linker="$host_os dld.sl"
  26228. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  26229. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  26230. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26231. + soname_spec='${libname}${release}${shared_ext}$major'
  26232. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  26233. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  26234. + ;;
  26235. + *)
  26236. + shrext_cmds='.sl'
  26237. + dynamic_linker="$host_os dld.sl"
  26238. + shlibpath_var=SHLIB_PATH
  26239. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  26240. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26241. + soname_spec='${libname}${release}${shared_ext}$major'
  26242. + ;;
  26243. + esac
  26244. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  26245. + postinstall_cmds='chmod 555 $lib'
  26246. + ;;
  26247. +
  26248. +interix3*)
  26249. + version_type=linux
  26250. + need_lib_prefix=no
  26251. + need_version=no
  26252. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  26253. + soname_spec='${libname}${release}${shared_ext}$major'
  26254. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  26255. + shlibpath_var=LD_LIBRARY_PATH
  26256. + shlibpath_overrides_runpath=no
  26257. + hardcode_into_libs=yes
  26258. + ;;
  26259. +
  26260. +irix5* | irix6* | nonstopux*)
  26261. + case $host_os in
  26262. + nonstopux*) version_type=nonstopux ;;
  26263. + *)
  26264. + if test "$lt_cv_prog_gnu_ld" = yes; then
  26265. + version_type=linux
  26266. + else
  26267. + version_type=irix
  26268. + fi ;;
  26269. + esac
  26270. + need_lib_prefix=no
  26271. + need_version=no
  26272. + soname_spec='${libname}${release}${shared_ext}$major'
  26273. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  26274. + case $host_os in
  26275. + irix5* | nonstopux*)
  26276. + libsuff= shlibsuff=
  26277. + ;;
  26278. + *)
  26279. + case $LD in # libtool.m4 will add one of these switches to LD
  26280. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  26281. + libsuff= shlibsuff= libmagic=32-bit;;
  26282. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  26283. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  26284. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  26285. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  26286. + *) libsuff= shlibsuff= libmagic=never-match;;
  26287. + esac
  26288. + ;;
  26289. + esac
  26290. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  26291. + shlibpath_overrides_runpath=no
  26292. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  26293. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  26294. + hardcode_into_libs=yes
  26295. + ;;
  26296. +
  26297. +# No shared lib support for Linux oldld, aout, or coff.
  26298. +linux*oldld* | linux*aout* | linux*coff*)
  26299. + dynamic_linker=no
  26300. + ;;
  26301. +
  26302. +# This must be Linux ELF.
  26303. +linux*)
  26304. + version_type=linux
  26305. + need_lib_prefix=no
  26306. + need_version=no
  26307. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26308. + soname_spec='${libname}${release}${shared_ext}$major'
  26309. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  26310. + shlibpath_var=LD_LIBRARY_PATH
  26311. + shlibpath_overrides_runpath=no
  26312. + # This implies no fast_install, which is unacceptable.
  26313. + # Some rework will be needed to allow for fast_install
  26314. + # before this can be enabled.
  26315. + hardcode_into_libs=yes
  26316. +
  26317. + # Append ld.so.conf contents to the search path
  26318. + if test -f /etc/ld.so.conf; then
  26319. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  26320. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  26321. + fi
  26322. +
  26323. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  26324. + # powerpc, because MkLinux only supported shared libraries with the
  26325. + # GNU dynamic linker. Since this was broken with cross compilers,
  26326. + # most powerpc-linux boxes support dynamic linking these days and
  26327. + # people can always --disable-shared, the test was removed, and we
  26328. + # assume the GNU/Linux dynamic linker is in use.
  26329. + dynamic_linker='GNU/Linux ld.so'
  26330. + ;;
  26331. +
  26332. +netbsdelf*-gnu)
  26333. + version_type=linux
  26334. + need_lib_prefix=no
  26335. + need_version=no
  26336. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  26337. + soname_spec='${libname}${release}${shared_ext}$major'
  26338. + shlibpath_var=LD_LIBRARY_PATH
  26339. + shlibpath_overrides_runpath=no
  26340. + hardcode_into_libs=yes
  26341. + dynamic_linker='NetBSD ld.elf_so'
  26342. + ;;
  26343. +
  26344. +knetbsd*-gnu)
  26345. + version_type=linux
  26346. + need_lib_prefix=no
  26347. + need_version=no
  26348. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  26349. + soname_spec='${libname}${release}${shared_ext}$major'
  26350. + shlibpath_var=LD_LIBRARY_PATH
  26351. + shlibpath_overrides_runpath=no
  26352. + hardcode_into_libs=yes
  26353. + dynamic_linker='GNU ld.so'
  26354. + ;;
  26355. +
  26356. +netbsd*)
  26357. + version_type=sunos
  26358. + need_lib_prefix=no
  26359. + need_version=no
  26360. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  26361. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  26362. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  26363. + dynamic_linker='NetBSD (a.out) ld.so'
  26364. + else
  26365. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  26366. + soname_spec='${libname}${release}${shared_ext}$major'
  26367. + dynamic_linker='NetBSD ld.elf_so'
  26368. + fi
  26369. + shlibpath_var=LD_LIBRARY_PATH
  26370. + shlibpath_overrides_runpath=yes
  26371. + hardcode_into_libs=yes
  26372. + ;;
  26373. +
  26374. +newsos6)
  26375. + version_type=linux
  26376. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26377. + shlibpath_var=LD_LIBRARY_PATH
  26378. + shlibpath_overrides_runpath=yes
  26379. + ;;
  26380. +
  26381. +nto-qnx*)
  26382. + version_type=linux
  26383. + need_lib_prefix=no
  26384. + need_version=no
  26385. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26386. + soname_spec='${libname}${release}${shared_ext}$major'
  26387. + shlibpath_var=LD_LIBRARY_PATH
  26388. + shlibpath_overrides_runpath=yes
  26389. + ;;
  26390. +
  26391. +openbsd*)
  26392. + version_type=sunos
  26393. + sys_lib_dlsearch_path_spec="/usr/lib"
  26394. + need_lib_prefix=no
  26395. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  26396. + case $host_os in
  26397. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  26398. + *) need_version=no ;;
  26399. + esac
  26400. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  26401. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  26402. + shlibpath_var=LD_LIBRARY_PATH
  26403. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  26404. + case $host_os in
  26405. + openbsd2.[89] | openbsd2.[89].*)
  26406. + shlibpath_overrides_runpath=no
  26407. + ;;
  26408. + *)
  26409. + shlibpath_overrides_runpath=yes
  26410. + ;;
  26411. + esac
  26412. + else
  26413. + shlibpath_overrides_runpath=yes
  26414. + fi
  26415. + ;;
  26416. +
  26417. +os2*)
  26418. + libname_spec='$name'
  26419. + shrext_cmds=".dll"
  26420. + need_lib_prefix=no
  26421. + library_names_spec='$libname${shared_ext} $libname.a'
  26422. + dynamic_linker='OS/2 ld.exe'
  26423. + shlibpath_var=LIBPATH
  26424. + ;;
  26425. +
  26426. +osf3* | osf4* | osf5*)
  26427. + version_type=osf
  26428. + need_lib_prefix=no
  26429. + need_version=no
  26430. + soname_spec='${libname}${release}${shared_ext}$major'
  26431. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26432. + shlibpath_var=LD_LIBRARY_PATH
  26433. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  26434. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  26435. + ;;
  26436. +
  26437. +solaris*)
  26438. + version_type=linux
  26439. + need_lib_prefix=no
  26440. + need_version=no
  26441. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26442. + soname_spec='${libname}${release}${shared_ext}$major'
  26443. + shlibpath_var=LD_LIBRARY_PATH
  26444. + shlibpath_overrides_runpath=yes
  26445. + hardcode_into_libs=yes
  26446. + # ldd complains unless libraries are executable
  26447. + postinstall_cmds='chmod +x $lib'
  26448. + ;;
  26449. +
  26450. +sunos4*)
  26451. + version_type=sunos
  26452. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  26453. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  26454. + shlibpath_var=LD_LIBRARY_PATH
  26455. + shlibpath_overrides_runpath=yes
  26456. + if test "$with_gnu_ld" = yes; then
  26457. + need_lib_prefix=no
  26458. + fi
  26459. + need_version=yes
  26460. + ;;
  26461. +
  26462. +sysv4 | sysv4.3*)
  26463. + version_type=linux
  26464. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26465. + soname_spec='${libname}${release}${shared_ext}$major'
  26466. + shlibpath_var=LD_LIBRARY_PATH
  26467. + case $host_vendor in
  26468. + sni)
  26469. + shlibpath_overrides_runpath=no
  26470. + need_lib_prefix=no
  26471. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  26472. + runpath_var=LD_RUN_PATH
  26473. + ;;
  26474. + siemens)
  26475. + need_lib_prefix=no
  26476. + ;;
  26477. + motorola)
  26478. + need_lib_prefix=no
  26479. + need_version=no
  26480. + shlibpath_overrides_runpath=no
  26481. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  26482. + ;;
  26483. + esac
  26484. + ;;
  26485. +
  26486. +sysv4*MP*)
  26487. + if test -d /usr/nec ;then
  26488. + version_type=linux
  26489. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  26490. + soname_spec='$libname${shared_ext}.$major'
  26491. + shlibpath_var=LD_LIBRARY_PATH
  26492. + fi
  26493. + ;;
  26494. +
  26495. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  26496. + version_type=freebsd-elf
  26497. + need_lib_prefix=no
  26498. + need_version=no
  26499. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  26500. + soname_spec='${libname}${release}${shared_ext}$major'
  26501. + shlibpath_var=LD_LIBRARY_PATH
  26502. + hardcode_into_libs=yes
  26503. + if test "$with_gnu_ld" = yes; then
  26504. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  26505. + shlibpath_overrides_runpath=no
  26506. + else
  26507. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  26508. + shlibpath_overrides_runpath=yes
  26509. + case $host_os in
  26510. + sco3.2v5*)
  26511. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  26512. + ;;
  26513. + esac
  26514. + fi
  26515. + sys_lib_dlsearch_path_spec='/usr/lib'
  26516. + ;;
  26517. +
  26518. +uts4*)
  26519. + version_type=linux
  26520. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26521. + soname_spec='${libname}${release}${shared_ext}$major'
  26522. + shlibpath_var=LD_LIBRARY_PATH
  26523. + ;;
  26524. +
  26525. +*)
  26526. + dynamic_linker=no
  26527. + ;;
  26528. +esac
  26529. +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  26530. +echo "${ECHO_T}$dynamic_linker" >&6
  26531. +test "$dynamic_linker" = no && can_build_shared=no
  26532. +
  26533. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  26534. +if test "$GCC" = yes; then
  26535. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  26536. +fi
  26537. +
  26538. +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  26539. +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  26540. +hardcode_action_GCJ=
  26541. +if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  26542. + test -n "$runpath_var_GCJ" || \
  26543. + test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  26544. +
  26545. + # We can hardcode non-existant directories.
  26546. + if test "$hardcode_direct_GCJ" != no &&
  26547. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  26548. + # have to relink, otherwise we might link with an installed library
  26549. + # when we should be linking with a yet-to-be-installed one
  26550. + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  26551. + test "$hardcode_minus_L_GCJ" != no; then
  26552. + # Linking always hardcodes the temporary library directory.
  26553. + hardcode_action_GCJ=relink
  26554. + else
  26555. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  26556. + hardcode_action_GCJ=immediate
  26557. + fi
  26558. +else
  26559. + # We cannot hardcode anything, or else we can only hardcode existing
  26560. + # directories.
  26561. + hardcode_action_GCJ=unsupported
  26562. +fi
  26563. +echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  26564. +echo "${ECHO_T}$hardcode_action_GCJ" >&6
  26565. +
  26566. +if test "$hardcode_action_GCJ" = relink; then
  26567. + # Fast installation is not supported
  26568. + enable_fast_install=no
  26569. +elif test "$shlibpath_overrides_runpath" = yes ||
  26570. + test "$enable_shared" = no; then
  26571. + # Fast installation is not necessary
  26572. + enable_fast_install=needless
  26573. +fi
  26574. +
  26575. +
  26576. +# The else clause should only fire when bootstrapping the
  26577. +# libtool distribution, otherwise you forgot to ship ltmain.sh
  26578. +# with your package, and you will get complaints that there are
  26579. +# no rules to generate ltmain.sh.
  26580. +if test -f "$ltmain"; then
  26581. + # See if we are running on zsh, and set the options which allow our commands through
  26582. + # without removal of \ escapes.
  26583. + if test -n "${ZSH_VERSION+set}" ; then
  26584. + setopt NO_GLOB_SUBST
  26585. + fi
  26586. + # Now quote all the things that may contain metacharacters while being
  26587. + # careful not to overquote the AC_SUBSTed values. We take copies of the
  26588. + # variables and quote the copies for generation of the libtool script.
  26589. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  26590. + SED SHELL STRIP \
  26591. + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  26592. + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  26593. + deplibs_check_method reload_flag reload_cmds need_locks \
  26594. + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  26595. + lt_cv_sys_global_symbol_to_c_name_address \
  26596. + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  26597. + old_postinstall_cmds old_postuninstall_cmds \
  26598. + compiler_GCJ \
  26599. + CC_GCJ \
  26600. + LD_GCJ \
  26601. + lt_prog_compiler_wl_GCJ \
  26602. + lt_prog_compiler_pic_GCJ \
  26603. + lt_prog_compiler_static_GCJ \
  26604. + lt_prog_compiler_no_builtin_flag_GCJ \
  26605. + export_dynamic_flag_spec_GCJ \
  26606. + thread_safe_flag_spec_GCJ \
  26607. + whole_archive_flag_spec_GCJ \
  26608. + enable_shared_with_static_runtimes_GCJ \
  26609. + old_archive_cmds_GCJ \
  26610. + old_archive_from_new_cmds_GCJ \
  26611. + predep_objects_GCJ \
  26612. + postdep_objects_GCJ \
  26613. + predeps_GCJ \
  26614. + postdeps_GCJ \
  26615. + compiler_lib_search_path_GCJ \
  26616. + archive_cmds_GCJ \
  26617. + archive_expsym_cmds_GCJ \
  26618. + postinstall_cmds_GCJ \
  26619. + postuninstall_cmds_GCJ \
  26620. + old_archive_from_expsyms_cmds_GCJ \
  26621. + allow_undefined_flag_GCJ \
  26622. + no_undefined_flag_GCJ \
  26623. + export_symbols_cmds_GCJ \
  26624. + hardcode_libdir_flag_spec_GCJ \
  26625. + hardcode_libdir_flag_spec_ld_GCJ \
  26626. + hardcode_libdir_separator_GCJ \
  26627. + hardcode_automatic_GCJ \
  26628. + module_cmds_GCJ \
  26629. + module_expsym_cmds_GCJ \
  26630. + lt_cv_prog_compiler_c_o_GCJ \
  26631. + exclude_expsyms_GCJ \
  26632. + include_expsyms_GCJ; do
  26633. +
  26634. + case $var in
  26635. + old_archive_cmds_GCJ | \
  26636. + old_archive_from_new_cmds_GCJ | \
  26637. + archive_cmds_GCJ | \
  26638. + archive_expsym_cmds_GCJ | \
  26639. + module_cmds_GCJ | \
  26640. + module_expsym_cmds_GCJ | \
  26641. + old_archive_from_expsyms_cmds_GCJ | \
  26642. + export_symbols_cmds_GCJ | \
  26643. + extract_expsyms_cmds | reload_cmds | finish_cmds | \
  26644. + postinstall_cmds | postuninstall_cmds | \
  26645. + old_postinstall_cmds | old_postuninstall_cmds | \
  26646. + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  26647. + # Double-quote double-evaled strings.
  26648. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  26649. + ;;
  26650. + *)
  26651. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  26652. + ;;
  26653. + esac
  26654. + done
  26655. +
  26656. + case $lt_echo in
  26657. + *'\$0 --fallback-echo"')
  26658. + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  26659. + ;;
  26660. + esac
  26661. +
  26662. +cfgfile="$ofile"
  26663. +
  26664. + cat <<__EOF__ >> "$cfgfile"
  26665. +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  26666. +
  26667. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  26668. +
  26669. +# Shell to use when invoking shell scripts.
  26670. +SHELL=$lt_SHELL
  26671. +
  26672. +# Whether or not to build shared libraries.
  26673. +build_libtool_libs=$enable_shared
  26674. +
  26675. +# Whether or not to build static libraries.
  26676. +build_old_libs=$enable_static
  26677. +
  26678. +# Whether or not to add -lc for building shared libraries.
  26679. +build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  26680. +
  26681. +# Whether or not to disallow shared libs when runtime libs are static
  26682. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  26683. +
  26684. +# Whether or not to optimize for fast installation.
  26685. +fast_install=$enable_fast_install
  26686. +
  26687. +# The host system.
  26688. +host_alias=$host_alias
  26689. +host=$host
  26690. +host_os=$host_os
  26691. +
  26692. +# The build system.
  26693. +build_alias=$build_alias
  26694. +build=$build
  26695. +build_os=$build_os
  26696. +
  26697. +# An echo program that does not interpret backslashes.
  26698. +echo=$lt_echo
  26699. +
  26700. +# The archiver.
  26701. +AR=$lt_AR
  26702. +AR_FLAGS=$lt_AR_FLAGS
  26703. +
  26704. +# A C compiler.
  26705. +LTCC=$lt_LTCC
  26706. +
  26707. +# LTCC compiler flags.
  26708. +LTCFLAGS=$lt_LTCFLAGS
  26709. +
  26710. +# A language-specific compiler.
  26711. +CC=$lt_compiler_GCJ
  26712. +
  26713. +# Is the compiler the GNU C compiler?
  26714. +with_gcc=$GCC_GCJ
  26715. +
  26716. +# An ERE matcher.
  26717. +EGREP=$lt_EGREP
  26718. +
  26719. +# The linker used to build libraries.
  26720. +LD=$lt_LD_GCJ
  26721. +
  26722. +# Whether we need hard or soft links.
  26723. +LN_S=$lt_LN_S
  26724. +
  26725. +# A BSD-compatible nm program.
  26726. +NM=$lt_NM
  26727. +
  26728. +# A symbol stripping program
  26729. +STRIP=$lt_STRIP
  26730. +
  26731. +# Used to examine libraries when file_magic_cmd begins "file"
  26732. +MAGIC_CMD=$MAGIC_CMD
  26733. +
  26734. +# Used on cygwin: DLL creation program.
  26735. +DLLTOOL="$DLLTOOL"
  26736. +
  26737. +# Used on cygwin: object dumper.
  26738. +OBJDUMP="$OBJDUMP"
  26739. +
  26740. +# Used on cygwin: assembler.
  26741. +AS="$AS"
  26742. +
  26743. +# The name of the directory that contains temporary libtool files.
  26744. +objdir=$objdir
  26745. +
  26746. +# How to create reloadable object files.
  26747. +reload_flag=$lt_reload_flag
  26748. +reload_cmds=$lt_reload_cmds
  26749. +
  26750. +# How to pass a linker flag through the compiler.
  26751. +wl=$lt_lt_prog_compiler_wl_GCJ
  26752. +
  26753. +# Object file suffix (normally "o").
  26754. +objext="$ac_objext"
  26755. +
  26756. +# Old archive suffix (normally "a").
  26757. +libext="$libext"
  26758. +
  26759. +# Shared library suffix (normally ".so").
  26760. +shrext_cmds='$shrext_cmds'
  26761. +
  26762. +# Executable file suffix (normally "").
  26763. +exeext="$exeext"
  26764. +
  26765. +# Additional compiler flags for building library objects.
  26766. +pic_flag=$lt_lt_prog_compiler_pic_GCJ
  26767. +pic_mode=$pic_mode
  26768. +
  26769. +# What is the maximum length of a command?
  26770. +max_cmd_len=$lt_cv_sys_max_cmd_len
  26771. +
  26772. +# Does compiler simultaneously support -c and -o options?
  26773. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  26774. +
  26775. +# Must we lock files when doing compilation?
  26776. +need_locks=$lt_need_locks
  26777. +
  26778. +# Do we need the lib prefix for modules?
  26779. +need_lib_prefix=$need_lib_prefix
  26780. +
  26781. +# Do we need a version for libraries?
  26782. +need_version=$need_version
  26783. +
  26784. +# Whether dlopen is supported.
  26785. +dlopen_support=$enable_dlopen
  26786. +
  26787. +# Whether dlopen of programs is supported.
  26788. +dlopen_self=$enable_dlopen_self
  26789. +
  26790. +# Whether dlopen of statically linked programs is supported.
  26791. +dlopen_self_static=$enable_dlopen_self_static
  26792. +
  26793. +# Compiler flag to prevent dynamic linking.
  26794. +link_static_flag=$lt_lt_prog_compiler_static_GCJ
  26795. +
  26796. +# Compiler flag to turn off builtin functions.
  26797. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  26798. +
  26799. +# Compiler flag to allow reflexive dlopens.
  26800. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  26801. +
  26802. +# Compiler flag to generate shared objects directly from archives.
  26803. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  26804. +
  26805. +# Compiler flag to generate thread-safe objects.
  26806. +thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  26807. +
  26808. +# Library versioning type.
  26809. +version_type=$version_type
  26810. +
  26811. +# Format of library name prefix.
  26812. +libname_spec=$lt_libname_spec
  26813. +
  26814. +# List of archive names. First name is the real one, the rest are links.
  26815. +# The last name is the one that the linker finds with -lNAME.
  26816. +library_names_spec=$lt_library_names_spec
  26817. +
  26818. +# The coded name of the library, if different from the real name.
  26819. +soname_spec=$lt_soname_spec
  26820. +
  26821. +# Commands used to build and install an old-style archive.
  26822. +RANLIB=$lt_RANLIB
  26823. +old_archive_cmds=$lt_old_archive_cmds_GCJ
  26824. +old_postinstall_cmds=$lt_old_postinstall_cmds
  26825. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  26826. +
  26827. +# Create an old-style archive from a shared archive.
  26828. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  26829. +
  26830. +# Create a temporary old-style archive to link instead of a shared archive.
  26831. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  26832. +
  26833. +# Commands used to build and install a shared archive.
  26834. +archive_cmds=$lt_archive_cmds_GCJ
  26835. +archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  26836. +postinstall_cmds=$lt_postinstall_cmds
  26837. +postuninstall_cmds=$lt_postuninstall_cmds
  26838. +
  26839. +# Commands used to build a loadable module (assumed same as above if empty)
  26840. +module_cmds=$lt_module_cmds_GCJ
  26841. +module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  26842. +
  26843. +# Commands to strip libraries.
  26844. +old_striplib=$lt_old_striplib
  26845. +striplib=$lt_striplib
  26846. +
  26847. +# Dependencies to place before the objects being linked to create a
  26848. +# shared library.
  26849. +predep_objects=$lt_predep_objects_GCJ
  26850. +
  26851. +# Dependencies to place after the objects being linked to create a
  26852. +# shared library.
  26853. +postdep_objects=$lt_postdep_objects_GCJ
  26854. +
  26855. +# Dependencies to place before the objects being linked to create a
  26856. +# shared library.
  26857. +predeps=$lt_predeps_GCJ
  26858. +
  26859. +# Dependencies to place after the objects being linked to create a
  26860. +# shared library.
  26861. +postdeps=$lt_postdeps_GCJ
  26862. +
  26863. +# The library search path used internally by the compiler when linking
  26864. +# a shared library.
  26865. +compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  26866. +
  26867. +# Method to check whether dependent libraries are shared objects.
  26868. +deplibs_check_method=$lt_deplibs_check_method
  26869. +
  26870. +# Command to use when deplibs_check_method == file_magic.
  26871. +file_magic_cmd=$lt_file_magic_cmd
  26872. +
  26873. +# Flag that allows shared libraries with undefined symbols to be built.
  26874. +allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  26875. +
  26876. +# Flag that forces no undefined symbols.
  26877. +no_undefined_flag=$lt_no_undefined_flag_GCJ
  26878. +
  26879. +# Commands used to finish a libtool library installation in a directory.
  26880. +finish_cmds=$lt_finish_cmds
  26881. +
  26882. +# Same as above, but a single script fragment to be evaled but not shown.
  26883. +finish_eval=$lt_finish_eval
  26884. +
  26885. +# Take the output of nm and produce a listing of raw symbols and C names.
  26886. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  26887. +
  26888. +# Transform the output of nm in a proper C declaration
  26889. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  26890. +
  26891. +# Transform the output of nm in a C name address pair
  26892. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  26893. +
  26894. +# This is the shared library runtime path variable.
  26895. +runpath_var=$runpath_var
  26896. +
  26897. +# This is the shared library path variable.
  26898. +shlibpath_var=$shlibpath_var
  26899. +
  26900. +# Is shlibpath searched before the hard-coded library search path?
  26901. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  26902. +
  26903. +# How to hardcode a shared library path into an executable.
  26904. +hardcode_action=$hardcode_action_GCJ
  26905. +
  26906. +# Whether we should hardcode library paths into libraries.
  26907. +hardcode_into_libs=$hardcode_into_libs
  26908. +
  26909. +# Flag to hardcode \$libdir into a binary during linking.
  26910. +# This must work even if \$libdir does not exist.
  26911. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  26912. +
  26913. +# If ld is used when linking, flag to hardcode \$libdir into
  26914. +# a binary during linking. This must work even if \$libdir does
  26915. +# not exist.
  26916. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  26917. +
  26918. +# Whether we need a single -rpath flag with a separated argument.
  26919. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  26920. +
  26921. +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  26922. +# resulting binary.
  26923. +hardcode_direct=$hardcode_direct_GCJ
  26924. +
  26925. +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  26926. +# resulting binary.
  26927. +hardcode_minus_L=$hardcode_minus_L_GCJ
  26928. +
  26929. +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  26930. +# the resulting binary.
  26931. +hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  26932. +
  26933. +# Set to yes if building a shared library automatically hardcodes DIR into the library
  26934. +# and all subsequent libraries and executables linked against it.
  26935. +hardcode_automatic=$hardcode_automatic_GCJ
  26936. +
  26937. +# Variables whose values should be saved in libtool wrapper scripts and
  26938. +# restored at relink time.
  26939. +variables_saved_for_relink="$variables_saved_for_relink"
  26940. +
  26941. +# Whether libtool must link a program against all its dependency libraries.
  26942. +link_all_deplibs=$link_all_deplibs_GCJ
  26943. +
  26944. +# Compile-time system search path for libraries
  26945. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  26946. +
  26947. +# Run-time system search path for libraries
  26948. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  26949. +
  26950. +# Fix the shell variable \$srcfile for the compiler.
  26951. +fix_srcfile_path="$fix_srcfile_path_GCJ"
  26952. +
  26953. +# Set to yes if exported symbols are required.
  26954. +always_export_symbols=$always_export_symbols_GCJ
  26955. +
  26956. +# The commands to list exported symbols.
  26957. +export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  26958. +
  26959. +# The commands to extract the exported symbol list from a shared archive.
  26960. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  26961. +
  26962. +# Symbols that should not be listed in the preloaded symbols.
  26963. +exclude_expsyms=$lt_exclude_expsyms_GCJ
  26964. +
  26965. +# Symbols that must always be exported.
  26966. +include_expsyms=$lt_include_expsyms_GCJ
  26967. +
  26968. +# ### END LIBTOOL TAG CONFIG: $tagname
  26969. +
  26970. +__EOF__
  26971. +
  26972. +
  26973. +else
  26974. + # If there is no Makefile yet, we rely on a make rule to execute
  26975. + # `config.status --recheck' to rerun these tests and create the
  26976. + # libtool script then.
  26977. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  26978. + if test -f "$ltmain_in"; then
  26979. + test -f Makefile && make "$ltmain"
  26980. + fi
  26981. +fi
  26982. +
  26983. +
  26984. +ac_ext=c
  26985. +ac_cpp='$CPP $CPPFLAGS'
  26986. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26987. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26988. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26989. +
  26990. +CC="$lt_save_CC"
  26991. +
  26992. + else
  26993. + tagname=""
  26994. + fi
  26995. + ;;
  26996. +
  26997. + RC)
  26998. +
  26999. +
  27000. +
  27001. +# Source file extension for RC test sources.
  27002. +ac_ext=rc
  27003. +
  27004. +# Object file extension for compiled RC test sources.
  27005. +objext=o
  27006. +objext_RC=$objext
  27007. +
  27008. +# Code to be used in simple compile tests
  27009. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  27010. +
  27011. +# Code to be used in simple link tests
  27012. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  27013. +
  27014. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  27015. +
  27016. +# If no C compiler was specified, use CC.
  27017. +LTCC=${LTCC-"$CC"}
  27018. +
  27019. +# If no C compiler flags were specified, use CFLAGS.
  27020. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  27021. +
  27022. +# Allow CC to be a program name with arguments.
  27023. +compiler=$CC
  27024. +
  27025. +
  27026. +# save warnings/boilerplate of simple test code
  27027. +ac_outfile=conftest.$ac_objext
  27028. +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  27029. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  27030. +_lt_compiler_boilerplate=`cat conftest.err`
  27031. +$rm conftest*
  27032. +
  27033. +ac_outfile=conftest.$ac_objext
  27034. +printf "$lt_simple_link_test_code" >conftest.$ac_ext
  27035. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  27036. +_lt_linker_boilerplate=`cat conftest.err`
  27037. +$rm conftest*
  27038. +
  27039. +
  27040. +# Allow CC to be a program name with arguments.
  27041. +lt_save_CC="$CC"
  27042. +CC=${RC-"windres"}
  27043. +compiler=$CC
  27044. +compiler_RC=$CC
  27045. +for cc_temp in $compiler""; do
  27046. + case $cc_temp in
  27047. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27048. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27049. + \-*) ;;
  27050. + *) break;;
  27051. + esac
  27052. +done
  27053. +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  27054. +
  27055. +lt_cv_prog_compiler_c_o_RC=yes
  27056. +
  27057. +# The else clause should only fire when bootstrapping the
  27058. +# libtool distribution, otherwise you forgot to ship ltmain.sh
  27059. +# with your package, and you will get complaints that there are
  27060. +# no rules to generate ltmain.sh.
  27061. +if test -f "$ltmain"; then
  27062. + # See if we are running on zsh, and set the options which allow our commands through
  27063. + # without removal of \ escapes.
  27064. + if test -n "${ZSH_VERSION+set}" ; then
  27065. + setopt NO_GLOB_SUBST
  27066. + fi
  27067. + # Now quote all the things that may contain metacharacters while being
  27068. + # careful not to overquote the AC_SUBSTed values. We take copies of the
  27069. + # variables and quote the copies for generation of the libtool script.
  27070. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  27071. + SED SHELL STRIP \
  27072. + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  27073. + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  27074. + deplibs_check_method reload_flag reload_cmds need_locks \
  27075. + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  27076. + lt_cv_sys_global_symbol_to_c_name_address \
  27077. + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  27078. + old_postinstall_cmds old_postuninstall_cmds \
  27079. + compiler_RC \
  27080. + CC_RC \
  27081. + LD_RC \
  27082. + lt_prog_compiler_wl_RC \
  27083. + lt_prog_compiler_pic_RC \
  27084. + lt_prog_compiler_static_RC \
  27085. + lt_prog_compiler_no_builtin_flag_RC \
  27086. + export_dynamic_flag_spec_RC \
  27087. + thread_safe_flag_spec_RC \
  27088. + whole_archive_flag_spec_RC \
  27089. + enable_shared_with_static_runtimes_RC \
  27090. + old_archive_cmds_RC \
  27091. + old_archive_from_new_cmds_RC \
  27092. + predep_objects_RC \
  27093. + postdep_objects_RC \
  27094. + predeps_RC \
  27095. + postdeps_RC \
  27096. + compiler_lib_search_path_RC \
  27097. + archive_cmds_RC \
  27098. + archive_expsym_cmds_RC \
  27099. + postinstall_cmds_RC \
  27100. + postuninstall_cmds_RC \
  27101. + old_archive_from_expsyms_cmds_RC \
  27102. + allow_undefined_flag_RC \
  27103. + no_undefined_flag_RC \
  27104. + export_symbols_cmds_RC \
  27105. + hardcode_libdir_flag_spec_RC \
  27106. + hardcode_libdir_flag_spec_ld_RC \
  27107. + hardcode_libdir_separator_RC \
  27108. + hardcode_automatic_RC \
  27109. + module_cmds_RC \
  27110. + module_expsym_cmds_RC \
  27111. + lt_cv_prog_compiler_c_o_RC \
  27112. + exclude_expsyms_RC \
  27113. + include_expsyms_RC; do
  27114. +
  27115. + case $var in
  27116. + old_archive_cmds_RC | \
  27117. + old_archive_from_new_cmds_RC | \
  27118. + archive_cmds_RC | \
  27119. + archive_expsym_cmds_RC | \
  27120. + module_cmds_RC | \
  27121. + module_expsym_cmds_RC | \
  27122. + old_archive_from_expsyms_cmds_RC | \
  27123. + export_symbols_cmds_RC | \
  27124. + extract_expsyms_cmds | reload_cmds | finish_cmds | \
  27125. + postinstall_cmds | postuninstall_cmds | \
  27126. + old_postinstall_cmds | old_postuninstall_cmds | \
  27127. + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  27128. + # Double-quote double-evaled strings.
  27129. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  27130. + ;;
  27131. + *)
  27132. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  27133. + ;;
  27134. + esac
  27135. + done
  27136. +
  27137. + case $lt_echo in
  27138. + *'\$0 --fallback-echo"')
  27139. + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  27140. + ;;
  27141. + esac
  27142. +
  27143. +cfgfile="$ofile"
  27144. +
  27145. + cat <<__EOF__ >> "$cfgfile"
  27146. +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  27147. +
  27148. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27149. +
  27150. +# Shell to use when invoking shell scripts.
  27151. +SHELL=$lt_SHELL
  27152. +
  27153. +# Whether or not to build shared libraries.
  27154. +build_libtool_libs=$enable_shared
  27155. +
  27156. +# Whether or not to build static libraries.
  27157. +build_old_libs=$enable_static
  27158. +
  27159. +# Whether or not to add -lc for building shared libraries.
  27160. +build_libtool_need_lc=$archive_cmds_need_lc_RC
  27161. +
  27162. +# Whether or not to disallow shared libs when runtime libs are static
  27163. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  27164. +
  27165. +# Whether or not to optimize for fast installation.
  27166. +fast_install=$enable_fast_install
  27167. +
  27168. +# The host system.
  27169. +host_alias=$host_alias
  27170. +host=$host
  27171. +host_os=$host_os
  27172. +
  27173. +# The build system.
  27174. +build_alias=$build_alias
  27175. +build=$build
  27176. +build_os=$build_os
  27177. +
  27178. +# An echo program that does not interpret backslashes.
  27179. +echo=$lt_echo
  27180. +
  27181. +# The archiver.
  27182. +AR=$lt_AR
  27183. +AR_FLAGS=$lt_AR_FLAGS
  27184. +
  27185. +# A C compiler.
  27186. +LTCC=$lt_LTCC
  27187. +
  27188. +# LTCC compiler flags.
  27189. +LTCFLAGS=$lt_LTCFLAGS
  27190. +
  27191. +# A language-specific compiler.
  27192. +CC=$lt_compiler_RC
  27193. +
  27194. +# Is the compiler the GNU C compiler?
  27195. +with_gcc=$GCC_RC
  27196. +
  27197. +# An ERE matcher.
  27198. +EGREP=$lt_EGREP
  27199. +
  27200. +# The linker used to build libraries.
  27201. +LD=$lt_LD_RC
  27202. +
  27203. +# Whether we need hard or soft links.
  27204. +LN_S=$lt_LN_S
  27205. +
  27206. +# A BSD-compatible nm program.
  27207. +NM=$lt_NM
  27208. +
  27209. +# A symbol stripping program
  27210. +STRIP=$lt_STRIP
  27211. +
  27212. +# Used to examine libraries when file_magic_cmd begins "file"
  27213. +MAGIC_CMD=$MAGIC_CMD
  27214. +
  27215. +# Used on cygwin: DLL creation program.
  27216. +DLLTOOL="$DLLTOOL"
  27217. +
  27218. +# Used on cygwin: object dumper.
  27219. +OBJDUMP="$OBJDUMP"
  27220. +
  27221. +# Used on cygwin: assembler.
  27222. +AS="$AS"
  27223. +
  27224. +# The name of the directory that contains temporary libtool files.
  27225. +objdir=$objdir
  27226. +
  27227. +# How to create reloadable object files.
  27228. +reload_flag=$lt_reload_flag
  27229. +reload_cmds=$lt_reload_cmds
  27230. +
  27231. +# How to pass a linker flag through the compiler.
  27232. +wl=$lt_lt_prog_compiler_wl_RC
  27233. +
  27234. +# Object file suffix (normally "o").
  27235. +objext="$ac_objext"
  27236. +
  27237. +# Old archive suffix (normally "a").
  27238. +libext="$libext"
  27239. +
  27240. +# Shared library suffix (normally ".so").
  27241. +shrext_cmds='$shrext_cmds'
  27242. +
  27243. +# Executable file suffix (normally "").
  27244. +exeext="$exeext"
  27245. +
  27246. +# Additional compiler flags for building library objects.
  27247. +pic_flag=$lt_lt_prog_compiler_pic_RC
  27248. +pic_mode=$pic_mode
  27249. +
  27250. +# What is the maximum length of a command?
  27251. +max_cmd_len=$lt_cv_sys_max_cmd_len
  27252. +
  27253. +# Does compiler simultaneously support -c and -o options?
  27254. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  27255. +
  27256. +# Must we lock files when doing compilation?
  27257. +need_locks=$lt_need_locks
  27258. +
  27259. +# Do we need the lib prefix for modules?
  27260. +need_lib_prefix=$need_lib_prefix
  27261. +
  27262. +# Do we need a version for libraries?
  27263. +need_version=$need_version
  27264. +
  27265. +# Whether dlopen is supported.
  27266. +dlopen_support=$enable_dlopen
  27267. +
  27268. +# Whether dlopen of programs is supported.
  27269. +dlopen_self=$enable_dlopen_self
  27270. +
  27271. +# Whether dlopen of statically linked programs is supported.
  27272. +dlopen_self_static=$enable_dlopen_self_static
  27273. +
  27274. +# Compiler flag to prevent dynamic linking.
  27275. +link_static_flag=$lt_lt_prog_compiler_static_RC
  27276. +
  27277. +# Compiler flag to turn off builtin functions.
  27278. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  27279. +
  27280. +# Compiler flag to allow reflexive dlopens.
  27281. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  27282. +
  27283. +# Compiler flag to generate shared objects directly from archives.
  27284. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  27285. +
  27286. +# Compiler flag to generate thread-safe objects.
  27287. +thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  27288. +
  27289. +# Library versioning type.
  27290. +version_type=$version_type
  27291. +
  27292. +# Format of library name prefix.
  27293. +libname_spec=$lt_libname_spec
  27294. +
  27295. +# List of archive names. First name is the real one, the rest are links.
  27296. +# The last name is the one that the linker finds with -lNAME.
  27297. +library_names_spec=$lt_library_names_spec
  27298. +
  27299. +# The coded name of the library, if different from the real name.
  27300. +soname_spec=$lt_soname_spec
  27301. +
  27302. +# Commands used to build and install an old-style archive.
  27303. +RANLIB=$lt_RANLIB
  27304. +old_archive_cmds=$lt_old_archive_cmds_RC
  27305. +old_postinstall_cmds=$lt_old_postinstall_cmds
  27306. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27307. +
  27308. +# Create an old-style archive from a shared archive.
  27309. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  27310. +
  27311. +# Create a temporary old-style archive to link instead of a shared archive.
  27312. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  27313. +
  27314. +# Commands used to build and install a shared archive.
  27315. +archive_cmds=$lt_archive_cmds_RC
  27316. +archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  27317. +postinstall_cmds=$lt_postinstall_cmds
  27318. +postuninstall_cmds=$lt_postuninstall_cmds
  27319. +
  27320. +# Commands used to build a loadable module (assumed same as above if empty)
  27321. +module_cmds=$lt_module_cmds_RC
  27322. +module_expsym_cmds=$lt_module_expsym_cmds_RC
  27323. +
  27324. +# Commands to strip libraries.
  27325. +old_striplib=$lt_old_striplib
  27326. +striplib=$lt_striplib
  27327. +
  27328. +# Dependencies to place before the objects being linked to create a
  27329. +# shared library.
  27330. +predep_objects=$lt_predep_objects_RC
  27331. +
  27332. +# Dependencies to place after the objects being linked to create a
  27333. +# shared library.
  27334. +postdep_objects=$lt_postdep_objects_RC
  27335. +
  27336. +# Dependencies to place before the objects being linked to create a
  27337. +# shared library.
  27338. +predeps=$lt_predeps_RC
  27339. +
  27340. +# Dependencies to place after the objects being linked to create a
  27341. +# shared library.
  27342. +postdeps=$lt_postdeps_RC
  27343. +
  27344. +# The library search path used internally by the compiler when linking
  27345. +# a shared library.
  27346. +compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  27347. +
  27348. +# Method to check whether dependent libraries are shared objects.
  27349. +deplibs_check_method=$lt_deplibs_check_method
  27350. +
  27351. +# Command to use when deplibs_check_method == file_magic.
  27352. +file_magic_cmd=$lt_file_magic_cmd
  27353. +
  27354. +# Flag that allows shared libraries with undefined symbols to be built.
  27355. +allow_undefined_flag=$lt_allow_undefined_flag_RC
  27356. +
  27357. +# Flag that forces no undefined symbols.
  27358. +no_undefined_flag=$lt_no_undefined_flag_RC
  27359. +
  27360. +# Commands used to finish a libtool library installation in a directory.
  27361. +finish_cmds=$lt_finish_cmds
  27362. +
  27363. +# Same as above, but a single script fragment to be evaled but not shown.
  27364. +finish_eval=$lt_finish_eval
  27365. +
  27366. +# Take the output of nm and produce a listing of raw symbols and C names.
  27367. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27368. +
  27369. +# Transform the output of nm in a proper C declaration
  27370. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27371. +
  27372. +# Transform the output of nm in a C name address pair
  27373. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27374. +
  27375. +# This is the shared library runtime path variable.
  27376. +runpath_var=$runpath_var
  27377. +
  27378. +# This is the shared library path variable.
  27379. +shlibpath_var=$shlibpath_var
  27380. -# Check for any special flags to pass to ltconfig.
  27381. -libtool_flags="--cache-file=$cache_file"
  27382. -test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
  27383. -test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
  27384. -test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
  27385. -test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
  27386. -test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
  27387. +# Is shlibpath searched before the hard-coded library search path?
  27388. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27389. +# How to hardcode a shared library path into an executable.
  27390. +hardcode_action=$hardcode_action_RC
  27391. -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  27392. -if test "${enable_libtool_lock+set}" = set; then
  27393. - enableval="$enable_libtool_lock"
  27394. - :
  27395. -fi
  27396. +# Whether we should hardcode library paths into libraries.
  27397. +hardcode_into_libs=$hardcode_into_libs
  27398. -test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
  27399. -test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
  27400. +# Flag to hardcode \$libdir into a binary during linking.
  27401. +# This must work even if \$libdir does not exist.
  27402. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  27403. -# Some flags need to be propagated to the compiler or linker for good
  27404. -# libtool support.
  27405. -case "$lt_target" in
  27406. -*-*-irix6*)
  27407. - # Find out which ABI we are using.
  27408. - echo '#line 1422 "configure"' > conftest.$ac_ext
  27409. - if { (eval echo configure:1423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  27410. - case "`/usr/bin/file conftest.o`" in
  27411. - *32-bit*)
  27412. - LD="${LD-ld} -32"
  27413. - ;;
  27414. - *N32*)
  27415. - LD="${LD-ld} -n32"
  27416. - ;;
  27417. - *64-bit*)
  27418. - LD="${LD-ld} -64"
  27419. - ;;
  27420. - esac
  27421. - fi
  27422. - rm -rf conftest*
  27423. - ;;
  27424. +# If ld is used when linking, flag to hardcode \$libdir into
  27425. +# a binary during linking. This must work even if \$libdir does
  27426. +# not exist.
  27427. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  27428. -*-*-sco3.2v5*)
  27429. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  27430. - SAVE_CFLAGS="$CFLAGS"
  27431. - CFLAGS="$CFLAGS -belf"
  27432. - echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
  27433. -echo "configure:1444: checking whether the C compiler needs -belf" >&5
  27434. -if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
  27435. - echo $ac_n "(cached) $ac_c" 1>&6
  27436. -else
  27437. - cat > conftest.$ac_ext <<EOF
  27438. -#line 1449 "configure"
  27439. -#include "confdefs.h"
  27440. +# Whether we need a single -rpath flag with a separated argument.
  27441. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  27442. -int main() {
  27443. +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  27444. +# resulting binary.
  27445. +hardcode_direct=$hardcode_direct_RC
  27446. -; return 0; }
  27447. -EOF
  27448. -if { (eval echo configure:1456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  27449. - rm -rf conftest*
  27450. - lt_cv_cc_needs_belf=yes
  27451. -else
  27452. - echo "configure: failed program was:" >&5
  27453. - cat conftest.$ac_ext >&5
  27454. - rm -rf conftest*
  27455. - lt_cv_cc_needs_belf=no
  27456. -fi
  27457. -rm -f conftest*
  27458. -fi
  27459. +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  27460. +# resulting binary.
  27461. +hardcode_minus_L=$hardcode_minus_L_RC
  27462. -echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
  27463. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  27464. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  27465. - CFLAGS="$SAVE_CFLAGS"
  27466. - fi
  27467. - ;;
  27468. +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  27469. +# the resulting binary.
  27470. +hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  27471. +# Set to yes if building a shared library automatically hardcodes DIR into the library
  27472. +# and all subsequent libraries and executables linked against it.
  27473. +hardcode_automatic=$hardcode_automatic_RC
  27474. -esac
  27475. +# Variables whose values should be saved in libtool wrapper scripts and
  27476. +# restored at relink time.
  27477. +variables_saved_for_relink="$variables_saved_for_relink"
  27478. +
  27479. +# Whether libtool must link a program against all its dependency libraries.
  27480. +link_all_deplibs=$link_all_deplibs_RC
  27481. +
  27482. +# Compile-time system search path for libraries
  27483. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27484. +
  27485. +# Run-time system search path for libraries
  27486. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  27487. +
  27488. +# Fix the shell variable \$srcfile for the compiler.
  27489. +fix_srcfile_path="$fix_srcfile_path_RC"
  27490. +
  27491. +# Set to yes if exported symbols are required.
  27492. +always_export_symbols=$always_export_symbols_RC
  27493. +
  27494. +# The commands to list exported symbols.
  27495. +export_symbols_cmds=$lt_export_symbols_cmds_RC
  27496. +
  27497. +# The commands to extract the exported symbol list from a shared archive.
  27498. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27499. +
  27500. +# Symbols that should not be listed in the preloaded symbols.
  27501. +exclude_expsyms=$lt_exclude_expsyms_RC
  27502. +
  27503. +# Symbols that must always be exported.
  27504. +include_expsyms=$lt_include_expsyms_RC
  27505. +
  27506. +# ### END LIBTOOL TAG CONFIG: $tagname
  27507. +
  27508. +__EOF__
  27509. -# Save cache, so that ltconfig can load it
  27510. -cat > confcache <<\EOF
  27511. -# This file is a shell script that caches the results of configure
  27512. -# tests run on this system so they can be shared between configure
  27513. -# scripts and configure runs. It is not useful on other systems.
  27514. -# If it contains results you don't want to keep, you may remove or edit it.
  27515. -#
  27516. -# By default, configure uses ./config.cache as the cache file,
  27517. -# creating it if it does not exist already. You can give configure
  27518. -# the --cache-file=FILE option to use a different cache file; that is
  27519. -# what configure does when it calls configure scripts in
  27520. -# subdirectories, so they share the cache.
  27521. -# Giving --cache-file=/dev/null disables caching, for debugging configure.
  27522. -# config.status only pays attention to the cache file if you give it the
  27523. -# --recheck option to rerun configure.
  27524. -#
  27525. -EOF
  27526. -# The following way of writing the cache mishandles newlines in values,
  27527. -# but we know of no workaround that is simple, portable, and efficient.
  27528. -# So, don't put newlines in cache variables' values.
  27529. -# Ultrix sh set writes to stderr and can't be redirected directly,
  27530. -# and sets the high bit in the cache file unless we assign to the vars.
  27531. -(set) 2>&1 |
  27532. - case `(ac_space=' '; set | grep ac_space) 2>&1` in
  27533. - *ac_space=\ *)
  27534. - # `set' does not quote correctly, so add quotes (double-quote substitution
  27535. - # turns \\\\ into \\, and sed turns \\ into \).
  27536. - sed -n \
  27537. - -e "s/'/'\\\\''/g" \
  27538. - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  27539. - ;;
  27540. - *)
  27541. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  27542. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  27543. - ;;
  27544. - esac >> confcache
  27545. -if cmp -s $cache_file confcache; then
  27546. - :
  27547. else
  27548. - if test -w $cache_file; then
  27549. - echo "updating cache $cache_file"
  27550. - cat confcache > $cache_file
  27551. - else
  27552. - echo "not updating unwritable cache $cache_file"
  27553. + # If there is no Makefile yet, we rely on a make rule to execute
  27554. + # `config.status --recheck' to rerun these tests and create the
  27555. + # libtool script then.
  27556. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  27557. + if test -f "$ltmain_in"; then
  27558. + test -f Makefile && make "$ltmain"
  27559. fi
  27560. fi
  27561. -rm -f confcache
  27562. -# Actually configure libtool. ac_aux_dir is where install-sh is found.
  27563. -CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
  27564. -LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
  27565. -LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
  27566. -DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
  27567. -${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
  27568. -$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
  27569. -|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
  27570. +ac_ext=c
  27571. +ac_cpp='$CPP $CPPFLAGS'
  27572. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27573. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27574. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27575. +
  27576. +CC="$lt_save_CC"
  27577. +
  27578. + ;;
  27579. +
  27580. + *)
  27581. + { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  27582. +echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  27583. + { (exit 1); exit 1; }; }
  27584. + ;;
  27585. + esac
  27586. -# Reload cache, that may have been modified by ltconfig
  27587. -if test -r "$cache_file"; then
  27588. - echo "loading cache $cache_file"
  27589. - . $cache_file
  27590. -else
  27591. - echo "creating cache $cache_file"
  27592. - > $cache_file
  27593. + # Append the new tag name to the list of available tags.
  27594. + if test -n "$tagname" ; then
  27595. + available_tags="$available_tags $tagname"
  27596. + fi
  27597. + fi
  27598. + done
  27599. + IFS="$lt_save_ifs"
  27600. +
  27601. + # Now substitute the updated list of available tags.
  27602. + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  27603. + mv "${ofile}T" "$ofile"
  27604. + chmod +x "$ofile"
  27605. + else
  27606. + rm -f "${ofile}T"
  27607. + { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  27608. +echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  27609. + { (exit 1); exit 1; }; }
  27610. + fi
  27611. fi
  27612. +
  27613. # This can be used to rebuild libtool when needed
  27614. -LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
  27615. +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  27616. # Always use our own libtool.
  27617. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  27618. -# Redirect the config.log output again, so that the ltconfig log is not
  27619. -# clobbered by the next message.
  27620. -exec 5>>./config.log
  27621. +# Prevent multiple expansion
  27622. +
  27623. +
  27624. +
  27625. +
  27626. +
  27627. +
  27628. +
  27629. +
  27630. +
  27631. +
  27632. +
  27633. +
  27634. -echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
  27635. -echo "configure:1559: checking whether to enable maintainer-specific portions of Makefiles" >&5
  27636. +
  27637. +
  27638. +
  27639. +
  27640. +
  27641. +
  27642. +
  27643. +echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  27644. +echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  27645. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  27646. if test "${enable_maintainer_mode+set}" = set; then
  27647. enableval="$enable_maintainer_mode"
  27648. USE_MAINTAINER_MODE=$enableval
  27649. else
  27650. USE_MAINTAINER_MODE=no
  27651. -fi
  27652. +fi;
  27653. + echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  27654. +echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  27655. - echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
  27656. -
  27657. if test $USE_MAINTAINER_MODE = yes; then
  27658. MAINTAINER_MODE_TRUE=
  27659. @@ -1575,113 +18235,81 @@
  27660. MAINTAINER_MODE_FALSE=
  27661. fi
  27662. MAINT=$MAINTAINER_MODE_TRUE
  27663. -
  27664. -# Make sure we can run config.sub.
  27665. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  27666. -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  27667. -fi
  27668. -
  27669. -echo $ac_n "checking host system type""... $ac_c" 1>&6
  27670. -echo "configure:1589: checking host system type" >&5
  27671. -
  27672. -host_alias=$host
  27673. -case "$host_alias" in
  27674. -NONE)
  27675. - case $nonopt in
  27676. - NONE)
  27677. - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  27678. - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  27679. - fi ;;
  27680. - *) host_alias=$nonopt ;;
  27681. - esac ;;
  27682. -esac
  27683. -
  27684. -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  27685. -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  27686. -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  27687. -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  27688. -echo "$ac_t""$host" 1>&6
  27689. # Check whether --enable-debug or --disable-debug was given.
  27690. if test "${enable_debug+set}" = set; then
  27691. enableval="$enable_debug"
  27692. - :
  27693. +
  27694. else
  27695. enable_debug=$debug_default
  27696. -fi
  27697. -
  27698. +fi;
  27699. # Check whether --enable-shm or --disable-shm was given.
  27700. if test "${enable_shm+set}" = set; then
  27701. enableval="$enable_shm"
  27702. echo $enable_shm
  27703. else
  27704. enable_shm="yes"
  27705. -fi
  27706. -
  27707. +fi;
  27708. # Check whether --enable-ansi or --disable-ansi was given.
  27709. if test "${enable_ansi+set}" = set; then
  27710. enableval="$enable_ansi"
  27711. - :
  27712. +
  27713. else
  27714. enable_ansi=no
  27715. -fi
  27716. +fi;
  27717. # Check whether --with-glib or --without-glib was given.
  27718. if test "${with_glib+set}" = set; then
  27719. withval="$with_glib"
  27720. - :
  27721. -fi
  27722. +fi;
  27723. # Check whether --enable-xim or --disable-xim was given.
  27724. if test "${enable_xim+set}" = set; then
  27725. enableval="$enable_xim"
  27726. - :
  27727. +
  27728. else
  27729. enable_xim="yes"
  27730. -fi
  27731. -
  27732. +fi;
  27733. # Check whether --enable-xim_inst or --disable-xim_inst was given.
  27734. if test "${enable_xim_inst+set}" = set; then
  27735. enableval="$enable_xim_inst"
  27736. - :
  27737. +
  27738. else
  27739. enable_xim_inst="maybe"
  27740. -fi
  27741. -
  27742. +fi;
  27743. # Check whether --enable-rebuilds or --disable-rebuilds was given.
  27744. if test "${enable_rebuilds+set}" = set; then
  27745. enableval="$enable_rebuilds"
  27746. - :
  27747. +
  27748. else
  27749. enable_rebuilds=yes
  27750. -fi
  27751. +fi;
  27752. # Check whether --with-locale or --without-locale was given.
  27753. if test "${with_locale+set}" = set; then
  27754. withval="$with_locale"
  27755. - :
  27756. -fi
  27757. +
  27758. +fi;
  27759. # Check whether --with-xinput or --without-xinput was given.
  27760. if test "${with_xinput+set}" = set; then
  27761. withval="$with_xinput"
  27762. - :
  27763. -fi
  27764. +
  27765. +fi;
  27766. # Check whether --with-native_locale or --without-native_locale was given.
  27767. if test "${with_native_locale+set}" = set; then
  27768. withval="$with_native_locale"
  27769. - :
  27770. +
  27771. else
  27772. with_native_locale=no
  27773. -fi
  27774. -
  27775. +fi;
  27776. if test "x$enable_debug" = "xyes"; then
  27777. test "$cflags_set" = set || CFLAGS="$CFLAGS -g"
  27778. @@ -1694,14 +18322,14 @@
  27779. fi
  27780. fi
  27781. -cat >> confdefs.h <<EOF
  27782. +cat >>confdefs.h <<_ACEOF
  27783. #define GTK_COMPILED_WITH_DEBUGGING "${enable_debug}"
  27784. -EOF
  27785. +_ACEOF
  27786. # Build time sanity check...
  27787. -echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  27788. -echo "configure:1705: checking whether build environment is sane" >&5
  27789. +echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  27790. +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  27791. # Just in case
  27792. sleep 1
  27793. echo timestamp > conftestfile
  27794. @@ -1723,8 +18351,11 @@
  27795. # if, for instance, CONFIG_SHELL is bash and it inherits a
  27796. # broken ls alias from the environment. This has actually
  27797. # happened. Such a system could not be considered "sane".
  27798. - { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
  27799. -alias in your environment" 1>&2; exit 1; }
  27800. + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  27801. +alias in your environment" >&5
  27802. +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  27803. +alias in your environment" >&2;}
  27804. + { (exit 1); exit 1; }; }
  27805. fi
  27806. test "$2" = conftestfile
  27807. @@ -1733,221 +18364,467 @@
  27808. # Ok.
  27809. :
  27810. else
  27811. - { echo "configure: error: newly created file is older than distributed files!
  27812. -Check your system clock" 1>&2; exit 1; }
  27813. + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  27814. +Check your system clock" >&5
  27815. +echo "$as_me: error: newly created file is older than distributed files!
  27816. +Check your system clock" >&2;}
  27817. + { (exit 1); exit 1; }; }
  27818. fi
  27819. rm -f conftest*
  27820. -echo "$ac_t""yes" 1>&6
  27821. +echo "$as_me:$LINENO: result: yes" >&5
  27822. +echo "${ECHO_T}yes" >&6
  27823. # Checks for programs.
  27824. -# Extract the first word of "gcc", so it can be a program name with args.
  27825. +ac_ext=c
  27826. +ac_cpp='$CPP $CPPFLAGS'
  27827. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27828. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27829. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27830. +if test -n "$ac_tool_prefix"; then
  27831. + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  27832. +set dummy ${ac_tool_prefix}gcc; ac_word=$2
  27833. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  27834. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  27835. +if test "${ac_cv_prog_CC+set}" = set; then
  27836. + echo $ECHO_N "(cached) $ECHO_C" >&6
  27837. +else
  27838. + if test -n "$CC"; then
  27839. + ac_cv_prog_CC="$CC" # Let the user override the test.
  27840. +else
  27841. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  27842. +for as_dir in $PATH
  27843. +do
  27844. + IFS=$as_save_IFS
  27845. + test -z "$as_dir" && as_dir=.
  27846. + for ac_exec_ext in '' $ac_executable_extensions; do
  27847. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  27848. + ac_cv_prog_CC="${ac_tool_prefix}gcc"
  27849. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  27850. + break 2
  27851. + fi
  27852. +done
  27853. +done
  27854. +
  27855. +fi
  27856. +fi
  27857. +CC=$ac_cv_prog_CC
  27858. +if test -n "$CC"; then
  27859. + echo "$as_me:$LINENO: result: $CC" >&5
  27860. +echo "${ECHO_T}$CC" >&6
  27861. +else
  27862. + echo "$as_me:$LINENO: result: no" >&5
  27863. +echo "${ECHO_T}no" >&6
  27864. +fi
  27865. +
  27866. +fi
  27867. +if test -z "$ac_cv_prog_CC"; then
  27868. + ac_ct_CC=$CC
  27869. + # Extract the first word of "gcc", so it can be a program name with args.
  27870. set dummy gcc; ac_word=$2
  27871. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  27872. -echo "configure:1747: checking for $ac_word" >&5
  27873. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  27874. - echo $ac_n "(cached) $ac_c" 1>&6
  27875. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  27876. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  27877. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  27878. + echo $ECHO_N "(cached) $ECHO_C" >&6
  27879. +else
  27880. + if test -n "$ac_ct_CC"; then
  27881. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  27882. +else
  27883. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  27884. +for as_dir in $PATH
  27885. +do
  27886. + IFS=$as_save_IFS
  27887. + test -z "$as_dir" && as_dir=.
  27888. + for ac_exec_ext in '' $ac_executable_extensions; do
  27889. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  27890. + ac_cv_prog_ac_ct_CC="gcc"
  27891. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  27892. + break 2
  27893. + fi
  27894. +done
  27895. +done
  27896. +
  27897. +fi
  27898. +fi
  27899. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  27900. +if test -n "$ac_ct_CC"; then
  27901. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  27902. +echo "${ECHO_T}$ac_ct_CC" >&6
  27903. +else
  27904. + echo "$as_me:$LINENO: result: no" >&5
  27905. +echo "${ECHO_T}no" >&6
  27906. +fi
  27907. +
  27908. + CC=$ac_ct_CC
  27909. +else
  27910. + CC="$ac_cv_prog_CC"
  27911. +fi
  27912. +
  27913. +if test -z "$CC"; then
  27914. + if test -n "$ac_tool_prefix"; then
  27915. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  27916. +set dummy ${ac_tool_prefix}cc; ac_word=$2
  27917. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  27918. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  27919. +if test "${ac_cv_prog_CC+set}" = set; then
  27920. + echo $ECHO_N "(cached) $ECHO_C" >&6
  27921. else
  27922. if test -n "$CC"; then
  27923. ac_cv_prog_CC="$CC" # Let the user override the test.
  27924. else
  27925. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  27926. - ac_dummy="$PATH"
  27927. - for ac_dir in $ac_dummy; do
  27928. - test -z "$ac_dir" && ac_dir=.
  27929. - if test -f $ac_dir/$ac_word; then
  27930. - ac_cv_prog_CC="gcc"
  27931. - break
  27932. - fi
  27933. - done
  27934. - IFS="$ac_save_ifs"
  27935. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  27936. +for as_dir in $PATH
  27937. +do
  27938. + IFS=$as_save_IFS
  27939. + test -z "$as_dir" && as_dir=.
  27940. + for ac_exec_ext in '' $ac_executable_extensions; do
  27941. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  27942. + ac_cv_prog_CC="${ac_tool_prefix}cc"
  27943. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  27944. + break 2
  27945. + fi
  27946. +done
  27947. +done
  27948. +
  27949. fi
  27950. fi
  27951. -CC="$ac_cv_prog_CC"
  27952. +CC=$ac_cv_prog_CC
  27953. if test -n "$CC"; then
  27954. - echo "$ac_t""$CC" 1>&6
  27955. + echo "$as_me:$LINENO: result: $CC" >&5
  27956. +echo "${ECHO_T}$CC" >&6
  27957. +else
  27958. + echo "$as_me:$LINENO: result: no" >&5
  27959. +echo "${ECHO_T}no" >&6
  27960. +fi
  27961. +
  27962. +fi
  27963. +if test -z "$ac_cv_prog_CC"; then
  27964. + ac_ct_CC=$CC
  27965. + # Extract the first word of "cc", so it can be a program name with args.
  27966. +set dummy cc; ac_word=$2
  27967. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  27968. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  27969. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  27970. + echo $ECHO_N "(cached) $ECHO_C" >&6
  27971. +else
  27972. + if test -n "$ac_ct_CC"; then
  27973. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  27974. +else
  27975. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  27976. +for as_dir in $PATH
  27977. +do
  27978. + IFS=$as_save_IFS
  27979. + test -z "$as_dir" && as_dir=.
  27980. + for ac_exec_ext in '' $ac_executable_extensions; do
  27981. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  27982. + ac_cv_prog_ac_ct_CC="cc"
  27983. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  27984. + break 2
  27985. + fi
  27986. +done
  27987. +done
  27988. +
  27989. +fi
  27990. +fi
  27991. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  27992. +if test -n "$ac_ct_CC"; then
  27993. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  27994. +echo "${ECHO_T}$ac_ct_CC" >&6
  27995. +else
  27996. + echo "$as_me:$LINENO: result: no" >&5
  27997. +echo "${ECHO_T}no" >&6
  27998. +fi
  27999. +
  28000. + CC=$ac_ct_CC
  28001. else
  28002. - echo "$ac_t""no" 1>&6
  28003. + CC="$ac_cv_prog_CC"
  28004. fi
  28005. +fi
  28006. if test -z "$CC"; then
  28007. # Extract the first word of "cc", so it can be a program name with args.
  28008. set dummy cc; ac_word=$2
  28009. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  28010. -echo "configure:1777: checking for $ac_word" >&5
  28011. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  28012. - echo $ac_n "(cached) $ac_c" 1>&6
  28013. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  28014. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  28015. +if test "${ac_cv_prog_CC+set}" = set; then
  28016. + echo $ECHO_N "(cached) $ECHO_C" >&6
  28017. else
  28018. if test -n "$CC"; then
  28019. ac_cv_prog_CC="$CC" # Let the user override the test.
  28020. else
  28021. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  28022. ac_prog_rejected=no
  28023. - ac_dummy="$PATH"
  28024. - for ac_dir in $ac_dummy; do
  28025. - test -z "$ac_dir" && ac_dir=.
  28026. - if test -f $ac_dir/$ac_word; then
  28027. - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  28028. - ac_prog_rejected=yes
  28029. - continue
  28030. - fi
  28031. - ac_cv_prog_CC="cc"
  28032. - break
  28033. - fi
  28034. - done
  28035. - IFS="$ac_save_ifs"
  28036. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  28037. +for as_dir in $PATH
  28038. +do
  28039. + IFS=$as_save_IFS
  28040. + test -z "$as_dir" && as_dir=.
  28041. + for ac_exec_ext in '' $ac_executable_extensions; do
  28042. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  28043. + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  28044. + ac_prog_rejected=yes
  28045. + continue
  28046. + fi
  28047. + ac_cv_prog_CC="cc"
  28048. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  28049. + break 2
  28050. + fi
  28051. +done
  28052. +done
  28053. +
  28054. if test $ac_prog_rejected = yes; then
  28055. # We found a bogon in the path, so make sure we never use it.
  28056. set dummy $ac_cv_prog_CC
  28057. shift
  28058. - if test $# -gt 0; then
  28059. + if test $# != 0; then
  28060. # We chose a different compiler from the bogus one.
  28061. # However, it has the same basename, so the bogon will be chosen
  28062. # first if we set CC to just the basename; use the full file name.
  28063. shift
  28064. - set dummy "$ac_dir/$ac_word" "$@"
  28065. - shift
  28066. - ac_cv_prog_CC="$@"
  28067. + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  28068. fi
  28069. fi
  28070. fi
  28071. fi
  28072. -CC="$ac_cv_prog_CC"
  28073. +CC=$ac_cv_prog_CC
  28074. if test -n "$CC"; then
  28075. - echo "$ac_t""$CC" 1>&6
  28076. + echo "$as_me:$LINENO: result: $CC" >&5
  28077. +echo "${ECHO_T}$CC" >&6
  28078. else
  28079. - echo "$ac_t""no" 1>&6
  28080. + echo "$as_me:$LINENO: result: no" >&5
  28081. +echo "${ECHO_T}no" >&6
  28082. fi
  28083. - if test -z "$CC"; then
  28084. - case "`uname -s`" in
  28085. - *win32* | *WIN32*)
  28086. - # Extract the first word of "cl", so it can be a program name with args.
  28087. -set dummy cl; ac_word=$2
  28088. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  28089. -echo "configure:1828: checking for $ac_word" >&5
  28090. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  28091. - echo $ac_n "(cached) $ac_c" 1>&6
  28092. +fi
  28093. +if test -z "$CC"; then
  28094. + if test -n "$ac_tool_prefix"; then
  28095. + for ac_prog in cl
  28096. + do
  28097. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  28098. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  28099. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  28100. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  28101. +if test "${ac_cv_prog_CC+set}" = set; then
  28102. + echo $ECHO_N "(cached) $ECHO_C" >&6
  28103. else
  28104. if test -n "$CC"; then
  28105. ac_cv_prog_CC="$CC" # Let the user override the test.
  28106. else
  28107. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  28108. - ac_dummy="$PATH"
  28109. - for ac_dir in $ac_dummy; do
  28110. - test -z "$ac_dir" && ac_dir=.
  28111. - if test -f $ac_dir/$ac_word; then
  28112. - ac_cv_prog_CC="cl"
  28113. - break
  28114. - fi
  28115. - done
  28116. - IFS="$ac_save_ifs"
  28117. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  28118. +for as_dir in $PATH
  28119. +do
  28120. + IFS=$as_save_IFS
  28121. + test -z "$as_dir" && as_dir=.
  28122. + for ac_exec_ext in '' $ac_executable_extensions; do
  28123. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  28124. + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  28125. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  28126. + break 2
  28127. + fi
  28128. +done
  28129. +done
  28130. +
  28131. fi
  28132. fi
  28133. -CC="$ac_cv_prog_CC"
  28134. +CC=$ac_cv_prog_CC
  28135. if test -n "$CC"; then
  28136. - echo "$ac_t""$CC" 1>&6
  28137. + echo "$as_me:$LINENO: result: $CC" >&5
  28138. +echo "${ECHO_T}$CC" >&6
  28139. else
  28140. - echo "$ac_t""no" 1>&6
  28141. -fi
  28142. - ;;
  28143. - esac
  28144. - fi
  28145. - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  28146. + echo "$as_me:$LINENO: result: no" >&5
  28147. +echo "${ECHO_T}no" >&6
  28148. fi
  28149. -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  28150. -echo "configure:1860: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  28151. -
  28152. -ac_ext=c
  28153. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  28154. -ac_cpp='$CPP $CPPFLAGS'
  28155. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  28156. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  28157. -cross_compiling=$ac_cv_prog_cc_cross
  28158. -
  28159. -cat > conftest.$ac_ext << EOF
  28160. -
  28161. -#line 1871 "configure"
  28162. -#include "confdefs.h"
  28163. -
  28164. -main(){return(0);}
  28165. -EOF
  28166. -if { (eval echo configure:1876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  28167. - ac_cv_prog_cc_works=yes
  28168. - # If we can't run a trivial program, we are probably using a cross compiler.
  28169. - if (./conftest; exit) 2>/dev/null; then
  28170. - ac_cv_prog_cc_cross=no
  28171. - else
  28172. - ac_cv_prog_cc_cross=yes
  28173. - fi
  28174. -else
  28175. - echo "configure: failed program was:" >&5
  28176. - cat conftest.$ac_ext >&5
  28177. - ac_cv_prog_cc_works=no
  28178. + test -n "$CC" && break
  28179. + done
  28180. fi
  28181. -rm -fr conftest*
  28182. -ac_ext=c
  28183. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  28184. -ac_cpp='$CPP $CPPFLAGS'
  28185. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  28186. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  28187. -cross_compiling=$ac_cv_prog_cc_cross
  28188. -
  28189. -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  28190. -if test $ac_cv_prog_cc_works = no; then
  28191. - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  28192. -fi
  28193. -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  28194. -echo "configure:1902: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  28195. -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  28196. -cross_compiling=$ac_cv_prog_cc_cross
  28197. -
  28198. -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  28199. -echo "configure:1907: checking whether we are using GNU C" >&5
  28200. -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  28201. - echo $ac_n "(cached) $ac_c" 1>&6
  28202. +if test -z "$CC"; then
  28203. + ac_ct_CC=$CC
  28204. + for ac_prog in cl
  28205. +do
  28206. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  28207. +set dummy $ac_prog; ac_word=$2
  28208. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  28209. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  28210. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  28211. + echo $ECHO_N "(cached) $ECHO_C" >&6
  28212. else
  28213. - cat > conftest.c <<EOF
  28214. -#ifdef __GNUC__
  28215. - yes;
  28216. -#endif
  28217. -EOF
  28218. -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  28219. - ac_cv_prog_gcc=yes
  28220. + if test -n "$ac_ct_CC"; then
  28221. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  28222. else
  28223. - ac_cv_prog_gcc=no
  28224. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  28225. +for as_dir in $PATH
  28226. +do
  28227. + IFS=$as_save_IFS
  28228. + test -z "$as_dir" && as_dir=.
  28229. + for ac_exec_ext in '' $ac_executable_extensions; do
  28230. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  28231. + ac_cv_prog_ac_ct_CC="$ac_prog"
  28232. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  28233. + break 2
  28234. + fi
  28235. +done
  28236. +done
  28237. +
  28238. +fi
  28239. fi
  28240. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  28241. +if test -n "$ac_ct_CC"; then
  28242. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  28243. +echo "${ECHO_T}$ac_ct_CC" >&6
  28244. +else
  28245. + echo "$as_me:$LINENO: result: no" >&5
  28246. +echo "${ECHO_T}no" >&6
  28247. fi
  28248. -echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  28249. + test -n "$ac_ct_CC" && break
  28250. +done
  28251. +
  28252. + CC=$ac_ct_CC
  28253. +fi
  28254. -if test $ac_cv_prog_gcc = yes; then
  28255. - GCC=yes
  28256. -else
  28257. - GCC=
  28258. fi
  28259. -ac_test_CFLAGS="${CFLAGS+set}"
  28260. -ac_save_CFLAGS="$CFLAGS"
  28261. -CFLAGS=
  28262. -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  28263. -echo "configure:1935: checking whether ${CC-cc} accepts -g" >&5
  28264. -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  28265. - echo $ac_n "(cached) $ac_c" 1>&6
  28266. -else
  28267. - echo 'void f(){}' > conftest.c
  28268. -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  28269. +
  28270. +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  28271. +See \`config.log' for more details." >&5
  28272. +echo "$as_me: error: no acceptable C compiler found in \$PATH
  28273. +See \`config.log' for more details." >&2;}
  28274. + { (exit 1); exit 1; }; }
  28275. +
  28276. +# Provide some information about the compiler.
  28277. +echo "$as_me:$LINENO:" \
  28278. + "checking for C compiler version" >&5
  28279. +ac_compiler=`set X $ac_compile; echo $2`
  28280. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  28281. + (eval $ac_compiler --version </dev/null >&5) 2>&5
  28282. + ac_status=$?
  28283. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28284. + (exit $ac_status); }
  28285. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  28286. + (eval $ac_compiler -v </dev/null >&5) 2>&5
  28287. + ac_status=$?
  28288. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28289. + (exit $ac_status); }
  28290. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  28291. + (eval $ac_compiler -V </dev/null >&5) 2>&5
  28292. + ac_status=$?
  28293. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28294. + (exit $ac_status); }
  28295. +
  28296. +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  28297. +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  28298. +if test "${ac_cv_c_compiler_gnu+set}" = set; then
  28299. + echo $ECHO_N "(cached) $ECHO_C" >&6
  28300. +else
  28301. + cat >conftest.$ac_ext <<_ACEOF
  28302. +/* confdefs.h. */
  28303. +_ACEOF
  28304. +cat confdefs.h >>conftest.$ac_ext
  28305. +cat >>conftest.$ac_ext <<_ACEOF
  28306. +/* end confdefs.h. */
  28307. +
  28308. +int
  28309. +main ()
  28310. +{
  28311. +#ifndef __GNUC__
  28312. + choke me
  28313. +#endif
  28314. +
  28315. + ;
  28316. + return 0;
  28317. +}
  28318. +_ACEOF
  28319. +rm -f conftest.$ac_objext
  28320. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28321. + (eval $ac_compile) 2>conftest.er1
  28322. + ac_status=$?
  28323. + grep -v '^ *+' conftest.er1 >conftest.err
  28324. + rm -f conftest.er1
  28325. + cat conftest.err >&5
  28326. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28327. + (exit $ac_status); } &&
  28328. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  28329. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28330. + (eval $ac_try) 2>&5
  28331. + ac_status=$?
  28332. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28333. + (exit $ac_status); }; } &&
  28334. + { ac_try='test -s conftest.$ac_objext'
  28335. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28336. + (eval $ac_try) 2>&5
  28337. + ac_status=$?
  28338. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28339. + (exit $ac_status); }; }; then
  28340. + ac_compiler_gnu=yes
  28341. +else
  28342. + echo "$as_me: failed program was:" >&5
  28343. +sed 's/^/| /' conftest.$ac_ext >&5
  28344. +
  28345. +ac_compiler_gnu=no
  28346. +fi
  28347. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28348. +ac_cv_c_compiler_gnu=$ac_compiler_gnu
  28349. +
  28350. +fi
  28351. +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  28352. +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  28353. +GCC=`test $ac_compiler_gnu = yes && echo yes`
  28354. +ac_test_CFLAGS=${CFLAGS+set}
  28355. +ac_save_CFLAGS=$CFLAGS
  28356. +CFLAGS="-g"
  28357. +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  28358. +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  28359. +if test "${ac_cv_prog_cc_g+set}" = set; then
  28360. + echo $ECHO_N "(cached) $ECHO_C" >&6
  28361. +else
  28362. + cat >conftest.$ac_ext <<_ACEOF
  28363. +/* confdefs.h. */
  28364. +_ACEOF
  28365. +cat confdefs.h >>conftest.$ac_ext
  28366. +cat >>conftest.$ac_ext <<_ACEOF
  28367. +/* end confdefs.h. */
  28368. +
  28369. +int
  28370. +main ()
  28371. +{
  28372. +
  28373. + ;
  28374. + return 0;
  28375. +}
  28376. +_ACEOF
  28377. +rm -f conftest.$ac_objext
  28378. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28379. + (eval $ac_compile) 2>conftest.er1
  28380. + ac_status=$?
  28381. + grep -v '^ *+' conftest.er1 >conftest.err
  28382. + rm -f conftest.er1
  28383. + cat conftest.err >&5
  28384. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28385. + (exit $ac_status); } &&
  28386. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  28387. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28388. + (eval $ac_try) 2>&5
  28389. + ac_status=$?
  28390. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28391. + (exit $ac_status); }; } &&
  28392. + { ac_try='test -s conftest.$ac_objext'
  28393. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28394. + (eval $ac_try) 2>&5
  28395. + ac_status=$?
  28396. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28397. + (exit $ac_status); }; }; then
  28398. ac_cv_prog_cc_g=yes
  28399. else
  28400. - ac_cv_prog_cc_g=no
  28401. -fi
  28402. -rm -f conftest*
  28403. + echo "$as_me: failed program was:" >&5
  28404. +sed 's/^/| /' conftest.$ac_ext >&5
  28405. +ac_cv_prog_cc_g=no
  28406. fi
  28407. -
  28408. -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  28409. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28410. +fi
  28411. +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  28412. +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  28413. if test "$ac_test_CFLAGS" = set; then
  28414. - CFLAGS="$ac_save_CFLAGS"
  28415. + CFLAGS=$ac_save_CFLAGS
  28416. elif test $ac_cv_prog_cc_g = yes; then
  28417. if test "$GCC" = yes; then
  28418. CFLAGS="-g -O2"
  28419. @@ -1961,35 +18838,343 @@
  28420. CFLAGS=
  28421. fi
  28422. fi
  28423. +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  28424. +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  28425. +if test "${ac_cv_prog_cc_stdc+set}" = set; then
  28426. + echo $ECHO_N "(cached) $ECHO_C" >&6
  28427. +else
  28428. + ac_cv_prog_cc_stdc=no
  28429. +ac_save_CC=$CC
  28430. +cat >conftest.$ac_ext <<_ACEOF
  28431. +/* confdefs.h. */
  28432. +_ACEOF
  28433. +cat confdefs.h >>conftest.$ac_ext
  28434. +cat >>conftest.$ac_ext <<_ACEOF
  28435. +/* end confdefs.h. */
  28436. +#include <stdarg.h>
  28437. +#include <stdio.h>
  28438. +#include <sys/types.h>
  28439. +#include <sys/stat.h>
  28440. +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  28441. +struct buf { int x; };
  28442. +FILE * (*rcsopen) (struct buf *, struct stat *, int);
  28443. +static char *e (p, i)
  28444. + char **p;
  28445. + int i;
  28446. +{
  28447. + return p[i];
  28448. +}
  28449. +static char *f (char * (*g) (char **, int), char **p, ...)
  28450. +{
  28451. + char *s;
  28452. + va_list v;
  28453. + va_start (v,p);
  28454. + s = g (p, va_arg (v,int));
  28455. + va_end (v);
  28456. + return s;
  28457. +}
  28458. -echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  28459. -echo "configure:1967: checking for POSIXized ISC" >&5
  28460. -if test -d /etc/conf/kconfig.d &&
  28461. - grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  28462. -then
  28463. - echo "$ac_t""yes" 1>&6
  28464. - ISC=yes # If later tests want to check for ISC.
  28465. - cat >> confdefs.h <<\EOF
  28466. -#define _POSIX_SOURCE 1
  28467. -EOF
  28468. +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  28469. + function prototypes and stuff, but not '\xHH' hex character constants.
  28470. + These don't provoke an error unfortunately, instead are silently treated
  28471. + as 'x'. The following induces an error, until -std1 is added to get
  28472. + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  28473. + array size at least. It's necessary to write '\x00'==0 to get something
  28474. + that's true only with -std1. */
  28475. +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  28476. +
  28477. +int test (int i, double x);
  28478. +struct s1 {int (*f) (int a);};
  28479. +struct s2 {int (*f) (double a);};
  28480. +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  28481. +int argc;
  28482. +char **argv;
  28483. +int
  28484. +main ()
  28485. +{
  28486. +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  28487. + ;
  28488. + return 0;
  28489. +}
  28490. +_ACEOF
  28491. +# Don't try gcc -ansi; that turns off useful extensions and
  28492. +# breaks some systems' header files.
  28493. +# AIX -qlanglvl=ansi
  28494. +# Ultrix and OSF/1 -std1
  28495. +# HP-UX 10.20 and later -Ae
  28496. +# HP-UX older versions -Aa -D_HPUX_SOURCE
  28497. +# SVR4 -Xc -D__EXTENSIONS__
  28498. +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  28499. +do
  28500. + CC="$ac_save_CC $ac_arg"
  28501. + rm -f conftest.$ac_objext
  28502. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28503. + (eval $ac_compile) 2>conftest.er1
  28504. + ac_status=$?
  28505. + grep -v '^ *+' conftest.er1 >conftest.err
  28506. + rm -f conftest.er1
  28507. + cat conftest.err >&5
  28508. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28509. + (exit $ac_status); } &&
  28510. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  28511. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28512. + (eval $ac_try) 2>&5
  28513. + ac_status=$?
  28514. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28515. + (exit $ac_status); }; } &&
  28516. + { ac_try='test -s conftest.$ac_objext'
  28517. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28518. + (eval $ac_try) 2>&5
  28519. + ac_status=$?
  28520. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28521. + (exit $ac_status); }; }; then
  28522. + ac_cv_prog_cc_stdc=$ac_arg
  28523. +break
  28524. +else
  28525. + echo "$as_me: failed program was:" >&5
  28526. +sed 's/^/| /' conftest.$ac_ext >&5
  28527. +
  28528. +fi
  28529. +rm -f conftest.err conftest.$ac_objext
  28530. +done
  28531. +rm -f conftest.$ac_ext conftest.$ac_objext
  28532. +CC=$ac_save_CC
  28533. +
  28534. +fi
  28535. +
  28536. +case "x$ac_cv_prog_cc_stdc" in
  28537. + x|xno)
  28538. + echo "$as_me:$LINENO: result: none needed" >&5
  28539. +echo "${ECHO_T}none needed" >&6 ;;
  28540. + *)
  28541. + echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  28542. +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  28543. + CC="$CC $ac_cv_prog_cc_stdc" ;;
  28544. +esac
  28545. +
  28546. +# Some people use a C++ compiler to compile C. Since we use `exit',
  28547. +# in C++ we need to declare it. In case someone uses the same compiler
  28548. +# for both compiling C and C++ we need to have the C++ compiler decide
  28549. +# the declaration of exit, since it's the most demanding environment.
  28550. +cat >conftest.$ac_ext <<_ACEOF
  28551. +#ifndef __cplusplus
  28552. + choke me
  28553. +#endif
  28554. +_ACEOF
  28555. +rm -f conftest.$ac_objext
  28556. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28557. + (eval $ac_compile) 2>conftest.er1
  28558. + ac_status=$?
  28559. + grep -v '^ *+' conftest.er1 >conftest.err
  28560. + rm -f conftest.er1
  28561. + cat conftest.err >&5
  28562. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28563. + (exit $ac_status); } &&
  28564. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  28565. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28566. + (eval $ac_try) 2>&5
  28567. + ac_status=$?
  28568. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28569. + (exit $ac_status); }; } &&
  28570. + { ac_try='test -s conftest.$ac_objext'
  28571. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28572. + (eval $ac_try) 2>&5
  28573. + ac_status=$?
  28574. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28575. + (exit $ac_status); }; }; then
  28576. + for ac_declaration in \
  28577. + '' \
  28578. + 'extern "C" void std::exit (int) throw (); using std::exit;' \
  28579. + 'extern "C" void std::exit (int); using std::exit;' \
  28580. + 'extern "C" void exit (int) throw ();' \
  28581. + 'extern "C" void exit (int);' \
  28582. + 'void exit (int);'
  28583. +do
  28584. + cat >conftest.$ac_ext <<_ACEOF
  28585. +/* confdefs.h. */
  28586. +_ACEOF
  28587. +cat confdefs.h >>conftest.$ac_ext
  28588. +cat >>conftest.$ac_ext <<_ACEOF
  28589. +/* end confdefs.h. */
  28590. +$ac_declaration
  28591. +#include <stdlib.h>
  28592. +int
  28593. +main ()
  28594. +{
  28595. +exit (42);
  28596. + ;
  28597. + return 0;
  28598. +}
  28599. +_ACEOF
  28600. +rm -f conftest.$ac_objext
  28601. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28602. + (eval $ac_compile) 2>conftest.er1
  28603. + ac_status=$?
  28604. + grep -v '^ *+' conftest.er1 >conftest.err
  28605. + rm -f conftest.er1
  28606. + cat conftest.err >&5
  28607. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28608. + (exit $ac_status); } &&
  28609. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  28610. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28611. + (eval $ac_try) 2>&5
  28612. + ac_status=$?
  28613. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28614. + (exit $ac_status); }; } &&
  28615. + { ac_try='test -s conftest.$ac_objext'
  28616. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28617. + (eval $ac_try) 2>&5
  28618. + ac_status=$?
  28619. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28620. + (exit $ac_status); }; }; then
  28621. + :
  28622. +else
  28623. + echo "$as_me: failed program was:" >&5
  28624. +sed 's/^/| /' conftest.$ac_ext >&5
  28625. +
  28626. +continue
  28627. +fi
  28628. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28629. + cat >conftest.$ac_ext <<_ACEOF
  28630. +/* confdefs.h. */
  28631. +_ACEOF
  28632. +cat confdefs.h >>conftest.$ac_ext
  28633. +cat >>conftest.$ac_ext <<_ACEOF
  28634. +/* end confdefs.h. */
  28635. +$ac_declaration
  28636. +int
  28637. +main ()
  28638. +{
  28639. +exit (42);
  28640. + ;
  28641. + return 0;
  28642. +}
  28643. +_ACEOF
  28644. +rm -f conftest.$ac_objext
  28645. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28646. + (eval $ac_compile) 2>conftest.er1
  28647. + ac_status=$?
  28648. + grep -v '^ *+' conftest.er1 >conftest.err
  28649. + rm -f conftest.er1
  28650. + cat conftest.err >&5
  28651. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28652. + (exit $ac_status); } &&
  28653. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  28654. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28655. + (eval $ac_try) 2>&5
  28656. + ac_status=$?
  28657. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28658. + (exit $ac_status); }; } &&
  28659. + { ac_try='test -s conftest.$ac_objext'
  28660. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28661. + (eval $ac_try) 2>&5
  28662. + ac_status=$?
  28663. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28664. + (exit $ac_status); }; }; then
  28665. + break
  28666. +else
  28667. + echo "$as_me: failed program was:" >&5
  28668. +sed 's/^/| /' conftest.$ac_ext >&5
  28669. +
  28670. +fi
  28671. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28672. +done
  28673. +rm -f conftest*
  28674. +if test -n "$ac_declaration"; then
  28675. + echo '#ifdef __cplusplus' >>confdefs.h
  28676. + echo $ac_declaration >>confdefs.h
  28677. + echo '#endif' >>confdefs.h
  28678. +fi
  28679. - if test "$GCC" = yes; then
  28680. - CC="$CC -posix"
  28681. - else
  28682. - CC="$CC -Xp"
  28683. - fi
  28684. else
  28685. - echo "$ac_t""no" 1>&6
  28686. - ISC=
  28687. + echo "$as_me: failed program was:" >&5
  28688. +sed 's/^/| /' conftest.$ac_ext >&5
  28689. +
  28690. +fi
  28691. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28692. +ac_ext=c
  28693. +ac_cpp='$CPP $CPPFLAGS'
  28694. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28695. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28696. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28697. +
  28698. +
  28699. + echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  28700. +echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
  28701. +if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  28702. + echo $ECHO_N "(cached) $ECHO_C" >&6
  28703. +else
  28704. + ac_check_lib_save_LIBS=$LIBS
  28705. +LIBS="-lcposix $LIBS"
  28706. +cat >conftest.$ac_ext <<_ACEOF
  28707. +/* confdefs.h. */
  28708. +_ACEOF
  28709. +cat confdefs.h >>conftest.$ac_ext
  28710. +cat >>conftest.$ac_ext <<_ACEOF
  28711. +/* end confdefs.h. */
  28712. +
  28713. +/* Override any gcc2 internal prototype to avoid an error. */
  28714. +#ifdef __cplusplus
  28715. +extern "C"
  28716. +#endif
  28717. +/* We use char because int might match the return type of a gcc2
  28718. + builtin and then its argument prototype would still apply. */
  28719. +char strerror ();
  28720. +int
  28721. +main ()
  28722. +{
  28723. +strerror ();
  28724. + ;
  28725. + return 0;
  28726. +}
  28727. +_ACEOF
  28728. +rm -f conftest.$ac_objext conftest$ac_exeext
  28729. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  28730. + (eval $ac_link) 2>conftest.er1
  28731. + ac_status=$?
  28732. + grep -v '^ *+' conftest.er1 >conftest.err
  28733. + rm -f conftest.er1
  28734. + cat conftest.err >&5
  28735. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28736. + (exit $ac_status); } &&
  28737. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  28738. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28739. + (eval $ac_try) 2>&5
  28740. + ac_status=$?
  28741. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28742. + (exit $ac_status); }; } &&
  28743. + { ac_try='test -s conftest$ac_exeext'
  28744. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28745. + (eval $ac_try) 2>&5
  28746. + ac_status=$?
  28747. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28748. + (exit $ac_status); }; }; then
  28749. + ac_cv_lib_cposix_strerror=yes
  28750. +else
  28751. + echo "$as_me: failed program was:" >&5
  28752. +sed 's/^/| /' conftest.$ac_ext >&5
  28753. +
  28754. +ac_cv_lib_cposix_strerror=no
  28755. +fi
  28756. +rm -f conftest.err conftest.$ac_objext \
  28757. + conftest$ac_exeext conftest.$ac_ext
  28758. +LIBS=$ac_check_lib_save_LIBS
  28759. +fi
  28760. +echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  28761. +echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
  28762. +if test $ac_cv_lib_cposix_strerror = yes; then
  28763. + LIBS="$LIBS -lcposix"
  28764. fi
  28765. -echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
  28766. -echo "configure:1991: checking for ${CC-cc} option to accept ANSI C" >&5
  28767. -if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
  28768. - echo $ac_n "(cached) $ac_c" 1>&6
  28769. +
  28770. +
  28771. +echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
  28772. +echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
  28773. +if test "${am_cv_prog_cc_stdc+set}" = set; then
  28774. + echo $ECHO_N "(cached) $ECHO_C" >&6
  28775. else
  28776. am_cv_prog_cc_stdc=no
  28777. ac_save_CC="$CC"
  28778. @@ -2002,9 +19187,12 @@
  28779. for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  28780. do
  28781. CC="$ac_save_CC $ac_arg"
  28782. - cat > conftest.$ac_ext <<EOF
  28783. -#line 2007 "configure"
  28784. -#include "confdefs.h"
  28785. + cat >conftest.$ac_ext <<_ACEOF
  28786. +/* confdefs.h. */
  28787. +_ACEOF
  28788. +cat confdefs.h >>conftest.$ac_ext
  28789. +cat >>conftest.$ac_ext <<_ACEOF
  28790. +/* end confdefs.h. */
  28791. #include <stdarg.h>
  28792. #include <stdio.h>
  28793. #include <sys/types.h>
  28794. @@ -2034,29 +19222,55 @@
  28795. int argc;
  28796. char **argv;
  28797. -int main() {
  28798. +int
  28799. +main ()
  28800. +{
  28801. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  28802. -; return 0; }
  28803. -EOF
  28804. -if { (eval echo configure:2044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  28805. - rm -rf conftest*
  28806. + ;
  28807. + return 0;
  28808. +}
  28809. +_ACEOF
  28810. +rm -f conftest.$ac_objext
  28811. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28812. + (eval $ac_compile) 2>conftest.er1
  28813. + ac_status=$?
  28814. + grep -v '^ *+' conftest.er1 >conftest.err
  28815. + rm -f conftest.er1
  28816. + cat conftest.err >&5
  28817. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28818. + (exit $ac_status); } &&
  28819. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  28820. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28821. + (eval $ac_try) 2>&5
  28822. + ac_status=$?
  28823. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28824. + (exit $ac_status); }; } &&
  28825. + { ac_try='test -s conftest.$ac_objext'
  28826. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28827. + (eval $ac_try) 2>&5
  28828. + ac_status=$?
  28829. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28830. + (exit $ac_status); }; }; then
  28831. am_cv_prog_cc_stdc="$ac_arg"; break
  28832. else
  28833. - echo "configure: failed program was:" >&5
  28834. - cat conftest.$ac_ext >&5
  28835. + echo "$as_me: failed program was:" >&5
  28836. +sed 's/^/| /' conftest.$ac_ext >&5
  28837. +
  28838. fi
  28839. -rm -f conftest*
  28840. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28841. done
  28842. CC="$ac_save_CC"
  28843. fi
  28844. if test -z "$am_cv_prog_cc_stdc"; then
  28845. - echo "$ac_t""none needed" 1>&6
  28846. + echo "$as_me:$LINENO: result: none needed" >&5
  28847. +echo "${ECHO_T}none needed" >&6
  28848. else
  28849. - echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
  28850. + echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
  28851. +echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
  28852. fi
  28853. case "x$am_cv_prog_cc_stdc" in
  28854. x|xno) ;;
  28855. @@ -2070,87 +19284,104 @@
  28856. # SunOS /usr/etc/install
  28857. # IRIX /sbin/install
  28858. # AIX /bin/install
  28859. +# AmigaOS /C/install, which installs bootblocks on floppy discs
  28860. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  28861. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  28862. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  28863. +# OS/2's system install, which has a completely different semantic
  28864. # ./install, which can be erroneously created by make from ./install.sh.
  28865. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  28866. -echo "configure:2079: checking for a BSD compatible install" >&5
  28867. +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  28868. +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  28869. if test -z "$INSTALL"; then
  28870. -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  28871. - echo $ac_n "(cached) $ac_c" 1>&6
  28872. +if test "${ac_cv_path_install+set}" = set; then
  28873. + echo $ECHO_N "(cached) $ECHO_C" >&6
  28874. else
  28875. - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  28876. - for ac_dir in $PATH; do
  28877. - # Account for people who put trailing slashes in PATH elements.
  28878. - case "$ac_dir/" in
  28879. - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  28880. - *)
  28881. - # OSF1 and SCO ODT 3.0 have their own names for install.
  28882. - # Don't use installbsd from OSF since it installs stuff as root
  28883. - # by default.
  28884. - for ac_prog in ginstall scoinst install; do
  28885. - if test -f $ac_dir/$ac_prog; then
  28886. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  28887. +for as_dir in $PATH
  28888. +do
  28889. + IFS=$as_save_IFS
  28890. + test -z "$as_dir" && as_dir=.
  28891. + # Account for people who put trailing slashes in PATH elements.
  28892. +case $as_dir/ in
  28893. + ./ | .// | /cC/* | \
  28894. + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  28895. + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  28896. + /usr/ucb/* ) ;;
  28897. + *)
  28898. + # OSF1 and SCO ODT 3.0 have their own names for install.
  28899. + # Don't use installbsd from OSF since it installs stuff as root
  28900. + # by default.
  28901. + for ac_prog in ginstall scoinst install; do
  28902. + for ac_exec_ext in '' $ac_executable_extensions; do
  28903. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  28904. if test $ac_prog = install &&
  28905. - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  28906. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  28907. # AIX install. It has an incompatible calling convention.
  28908. :
  28909. + elif test $ac_prog = install &&
  28910. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  28911. + # program-specific install script used by HP pwplus--don't use.
  28912. + :
  28913. else
  28914. - ac_cv_path_install="$ac_dir/$ac_prog -c"
  28915. - break 2
  28916. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  28917. + break 3
  28918. fi
  28919. fi
  28920. done
  28921. - ;;
  28922. - esac
  28923. - done
  28924. - IFS="$ac_save_IFS"
  28925. + done
  28926. + ;;
  28927. +esac
  28928. +done
  28929. +
  28930. fi
  28931. if test "${ac_cv_path_install+set}" = set; then
  28932. - INSTALL="$ac_cv_path_install"
  28933. + INSTALL=$ac_cv_path_install
  28934. else
  28935. # As a last resort, use the slow shell script. We don't cache a
  28936. # path for INSTALL within a source directory, because that will
  28937. # break other packages using the cache if that directory is
  28938. # removed, or if the path is relative.
  28939. - INSTALL="$ac_install_sh"
  28940. + INSTALL=$ac_install_sh
  28941. fi
  28942. fi
  28943. -echo "$ac_t""$INSTALL" 1>&6
  28944. +echo "$as_me:$LINENO: result: $INSTALL" >&5
  28945. +echo "${ECHO_T}$INSTALL" >&6
  28946. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  28947. # It thinks the first close brace ends the variable substitution.
  28948. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  28949. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  28950. +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  28951. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  28952. -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  28953. -echo "configure:2132: checking whether ${MAKE-make} sets \${MAKE}" >&5
  28954. -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  28955. -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  28956. - echo $ac_n "(cached) $ac_c" 1>&6
  28957. +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  28958. +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  28959. +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  28960. +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  28961. + echo $ECHO_N "(cached) $ECHO_C" >&6
  28962. else
  28963. - cat > conftestmake <<\EOF
  28964. + cat >conftest.make <<\_ACEOF
  28965. all:
  28966. - @echo 'ac_maketemp="${MAKE}"'
  28967. -EOF
  28968. + @echo 'ac_maketemp="$(MAKE)"'
  28969. +_ACEOF
  28970. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  28971. -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  28972. +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  28973. if test -n "$ac_maketemp"; then
  28974. eval ac_cv_prog_make_${ac_make}_set=yes
  28975. else
  28976. eval ac_cv_prog_make_${ac_make}_set=no
  28977. fi
  28978. -rm -f conftestmake
  28979. +rm -f conftest.make
  28980. fi
  28981. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  28982. - echo "$ac_t""yes" 1>&6
  28983. + echo "$as_me:$LINENO: result: yes" >&5
  28984. +echo "${ECHO_T}yes" >&6
  28985. SET_MAKE=
  28986. else
  28987. - echo "$ac_t""no" 1>&6
  28988. + echo "$as_me:$LINENO: result: no" >&5
  28989. +echo "${ECHO_T}no" >&6
  28990. SET_MAKE="MAKE=${MAKE-make}"
  28991. fi
  28992. @@ -2182,540 +19413,611 @@
  28993. for ac_prog in gawk mawk nawk awk
  28994. do
  28995. -# Extract the first word of "$ac_prog", so it can be a program name with args.
  28996. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  28997. set dummy $ac_prog; ac_word=$2
  28998. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  28999. -echo "configure:2189: checking for $ac_word" >&5
  29000. -if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
  29001. - echo $ac_n "(cached) $ac_c" 1>&6
  29002. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  29003. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  29004. +if test "${ac_cv_prog_AWK+set}" = set; then
  29005. + echo $ECHO_N "(cached) $ECHO_C" >&6
  29006. else
  29007. if test -n "$AWK"; then
  29008. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  29009. else
  29010. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  29011. - ac_dummy="$PATH"
  29012. - for ac_dir in $ac_dummy; do
  29013. - test -z "$ac_dir" && ac_dir=.
  29014. - if test -f $ac_dir/$ac_word; then
  29015. - ac_cv_prog_AWK="$ac_prog"
  29016. - break
  29017. - fi
  29018. - done
  29019. - IFS="$ac_save_ifs"
  29020. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  29021. +for as_dir in $PATH
  29022. +do
  29023. + IFS=$as_save_IFS
  29024. + test -z "$as_dir" && as_dir=.
  29025. + for ac_exec_ext in '' $ac_executable_extensions; do
  29026. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  29027. + ac_cv_prog_AWK="$ac_prog"
  29028. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  29029. + break 2
  29030. + fi
  29031. +done
  29032. +done
  29033. +
  29034. fi
  29035. fi
  29036. -AWK="$ac_cv_prog_AWK"
  29037. +AWK=$ac_cv_prog_AWK
  29038. if test -n "$AWK"; then
  29039. - echo "$ac_t""$AWK" 1>&6
  29040. + echo "$as_me:$LINENO: result: $AWK" >&5
  29041. +echo "${ECHO_T}$AWK" >&6
  29042. else
  29043. - echo "$ac_t""no" 1>&6
  29044. + echo "$as_me:$LINENO: result: no" >&5
  29045. +echo "${ECHO_T}no" >&6
  29046. fi
  29047. -test -n "$AWK" && break
  29048. + test -n "$AWK" && break
  29049. done
  29050. for ac_prog in perl5 perl
  29051. do
  29052. -# Extract the first word of "$ac_prog", so it can be a program name with args.
  29053. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  29054. set dummy $ac_prog; ac_word=$2
  29055. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  29056. -echo "configure:2223: checking for $ac_word" >&5
  29057. -if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
  29058. - echo $ac_n "(cached) $ac_c" 1>&6
  29059. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  29060. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  29061. +if test "${ac_cv_prog_PERL+set}" = set; then
  29062. + echo $ECHO_N "(cached) $ECHO_C" >&6
  29063. else
  29064. if test -n "$PERL"; then
  29065. ac_cv_prog_PERL="$PERL" # Let the user override the test.
  29066. else
  29067. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  29068. - ac_dummy="$PATH"
  29069. - for ac_dir in $ac_dummy; do
  29070. - test -z "$ac_dir" && ac_dir=.
  29071. - if test -f $ac_dir/$ac_word; then
  29072. - ac_cv_prog_PERL="$ac_prog"
  29073. - break
  29074. - fi
  29075. - done
  29076. - IFS="$ac_save_ifs"
  29077. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  29078. +for as_dir in $PATH
  29079. +do
  29080. + IFS=$as_save_IFS
  29081. + test -z "$as_dir" && as_dir=.
  29082. + for ac_exec_ext in '' $ac_executable_extensions; do
  29083. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  29084. + ac_cv_prog_PERL="$ac_prog"
  29085. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  29086. + break 2
  29087. + fi
  29088. +done
  29089. +done
  29090. +
  29091. fi
  29092. fi
  29093. -PERL="$ac_cv_prog_PERL"
  29094. +PERL=$ac_cv_prog_PERL
  29095. if test -n "$PERL"; then
  29096. - echo "$ac_t""$PERL" 1>&6
  29097. + echo "$as_me:$LINENO: result: $PERL" >&5
  29098. +echo "${ECHO_T}$PERL" >&6
  29099. else
  29100. - echo "$ac_t""no" 1>&6
  29101. + echo "$as_me:$LINENO: result: no" >&5
  29102. +echo "${ECHO_T}no" >&6
  29103. fi
  29104. -test -n "$PERL" && break
  29105. + test -n "$PERL" && break
  29106. done
  29107. # We would like indent, but don't require it.
  29108. # Extract the first word of "indent", so it can be a program name with args.
  29109. set dummy indent; ac_word=$2
  29110. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  29111. -echo "configure:2257: checking for $ac_word" >&5
  29112. -if eval "test \"`echo '$''{'ac_cv_prog_INDENT'+set}'`\" = set"; then
  29113. - echo $ac_n "(cached) $ac_c" 1>&6
  29114. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  29115. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  29116. +if test "${ac_cv_prog_INDENT+set}" = set; then
  29117. + echo $ECHO_N "(cached) $ECHO_C" >&6
  29118. else
  29119. if test -n "$INDENT"; then
  29120. ac_cv_prog_INDENT="$INDENT" # Let the user override the test.
  29121. else
  29122. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  29123. - ac_dummy="$PATH"
  29124. - for ac_dir in $ac_dummy; do
  29125. - test -z "$ac_dir" && ac_dir=.
  29126. - if test -f $ac_dir/$ac_word; then
  29127. - ac_cv_prog_INDENT="indent"
  29128. - break
  29129. - fi
  29130. - done
  29131. - IFS="$ac_save_ifs"
  29132. -fi
  29133. -fi
  29134. -INDENT="$ac_cv_prog_INDENT"
  29135. -if test -n "$INDENT"; then
  29136. - echo "$ac_t""$INDENT" 1>&6
  29137. -else
  29138. - echo "$ac_t""no" 1>&6
  29139. -fi
  29140. -
  29141. -
  29142. -REBUILD=\#
  29143. -if test "x$enable_rebuilds" = "xyes" && \
  29144. - test -n "$PERL" && \
  29145. - $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
  29146. - test -n "$AWK" ; then
  29147. - REBUILD=
  29148. -fi
  29149. -
  29150. -
  29151. -echo $ac_n "checking whether make is GNU Make""... $ac_c" 1>&6
  29152. -echo "configure:2294: checking whether make is GNU Make" >&5
  29153. -STRIP_BEGIN=
  29154. -STRIP_END=
  29155. -if $ac_make --version 2>/dev/null | grep '^GNU Make ' >/dev/null ; then
  29156. - STRIP_BEGIN='$(strip $(STRIP_DUMMY)'
  29157. - STRIP_END=')'
  29158. - echo "$ac_t""yes" 1>&6
  29159. -else
  29160. - echo "$ac_t""no" 1>&6
  29161. -fi
  29162. -STRIP_DUMMY=
  29163. -
  29164. -
  29165. -
  29166. -
  29167. -# i18n stuff
  29168. -ALL_LINGUAS="az ca cs da de el es et eu fi fr ga gl hr hu it ja ko lt nl no nn pl pt pt_BR ro ru sk sl sp sr sv tr uk vi wa zh_CN.GB2312 zh_TW.Big5"
  29169. -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  29170. -echo "configure:2312: checking how to run the C preprocessor" >&5
  29171. -# On Suns, sometimes $CPP names a directory.
  29172. -if test -n "$CPP" && test -d "$CPP"; then
  29173. - CPP=
  29174. -fi
  29175. -if test -z "$CPP"; then
  29176. -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  29177. - echo $ac_n "(cached) $ac_c" 1>&6
  29178. -else
  29179. - # This must be in double quotes, not single quotes, because CPP may get
  29180. - # substituted into the Makefile and "${CC-cc}" will confuse make.
  29181. - CPP="${CC-cc} -E"
  29182. - # On the NeXT, cc -E runs the code through the compiler's parser,
  29183. - # not just through cpp.
  29184. - cat > conftest.$ac_ext <<EOF
  29185. -#line 2327 "configure"
  29186. -#include "confdefs.h"
  29187. -#include <assert.h>
  29188. -Syntax Error
  29189. -EOF
  29190. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  29191. -{ (eval echo configure:2333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  29192. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  29193. -if test -z "$ac_err"; then
  29194. - :
  29195. -else
  29196. - echo "$ac_err" >&5
  29197. - echo "configure: failed program was:" >&5
  29198. - cat conftest.$ac_ext >&5
  29199. - rm -rf conftest*
  29200. - CPP="${CC-cc} -E -traditional-cpp"
  29201. - cat > conftest.$ac_ext <<EOF
  29202. -#line 2344 "configure"
  29203. -#include "confdefs.h"
  29204. -#include <assert.h>
  29205. -Syntax Error
  29206. -EOF
  29207. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  29208. -{ (eval echo configure:2350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  29209. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  29210. -if test -z "$ac_err"; then
  29211. - :
  29212. -else
  29213. - echo "$ac_err" >&5
  29214. - echo "configure: failed program was:" >&5
  29215. - cat conftest.$ac_ext >&5
  29216. - rm -rf conftest*
  29217. - CPP="${CC-cc} -nologo -E"
  29218. - cat > conftest.$ac_ext <<EOF
  29219. -#line 2361 "configure"
  29220. -#include "confdefs.h"
  29221. -#include <assert.h>
  29222. -Syntax Error
  29223. -EOF
  29224. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  29225. -{ (eval echo configure:2367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  29226. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  29227. -if test -z "$ac_err"; then
  29228. - :
  29229. -else
  29230. - echo "$ac_err" >&5
  29231. - echo "configure: failed program was:" >&5
  29232. - cat conftest.$ac_ext >&5
  29233. - rm -rf conftest*
  29234. - CPP=/lib/cpp
  29235. -fi
  29236. -rm -f conftest*
  29237. -fi
  29238. -rm -f conftest*
  29239. -fi
  29240. -rm -f conftest*
  29241. - ac_cv_prog_CPP="$CPP"
  29242. -fi
  29243. - CPP="$ac_cv_prog_CPP"
  29244. -else
  29245. - ac_cv_prog_CPP="$CPP"
  29246. -fi
  29247. -echo "$ac_t""$CPP" 1>&6
  29248. -
  29249. -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  29250. -echo "configure:2392: checking for ANSI C header files" >&5
  29251. -if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  29252. - echo $ac_n "(cached) $ac_c" 1>&6
  29253. -else
  29254. - cat > conftest.$ac_ext <<EOF
  29255. -#line 2397 "configure"
  29256. -#include "confdefs.h"
  29257. -#include <stdlib.h>
  29258. -#include <stdarg.h>
  29259. -#include <string.h>
  29260. -#include <float.h>
  29261. -EOF
  29262. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  29263. -{ (eval echo configure:2405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  29264. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  29265. -if test -z "$ac_err"; then
  29266. - rm -rf conftest*
  29267. - ac_cv_header_stdc=yes
  29268. -else
  29269. - echo "$ac_err" >&5
  29270. - echo "configure: failed program was:" >&5
  29271. - cat conftest.$ac_ext >&5
  29272. - rm -rf conftest*
  29273. - ac_cv_header_stdc=no
  29274. -fi
  29275. -rm -f conftest*
  29276. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  29277. +for as_dir in $PATH
  29278. +do
  29279. + IFS=$as_save_IFS
  29280. + test -z "$as_dir" && as_dir=.
  29281. + for ac_exec_ext in '' $ac_executable_extensions; do
  29282. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  29283. + ac_cv_prog_INDENT="indent"
  29284. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  29285. + break 2
  29286. + fi
  29287. +done
  29288. +done
  29289. -if test $ac_cv_header_stdc = yes; then
  29290. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  29291. -cat > conftest.$ac_ext <<EOF
  29292. -#line 2422 "configure"
  29293. -#include "confdefs.h"
  29294. -#include <string.h>
  29295. -EOF
  29296. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29297. - egrep "memchr" >/dev/null 2>&1; then
  29298. - :
  29299. +fi
  29300. +fi
  29301. +INDENT=$ac_cv_prog_INDENT
  29302. +if test -n "$INDENT"; then
  29303. + echo "$as_me:$LINENO: result: $INDENT" >&5
  29304. +echo "${ECHO_T}$INDENT" >&6
  29305. else
  29306. - rm -rf conftest*
  29307. - ac_cv_header_stdc=no
  29308. + echo "$as_me:$LINENO: result: no" >&5
  29309. +echo "${ECHO_T}no" >&6
  29310. fi
  29311. -rm -f conftest*
  29312. +
  29313. +REBUILD=\#
  29314. +if test "x$enable_rebuilds" = "xyes" && \
  29315. + test -n "$PERL" && \
  29316. + $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
  29317. + test -n "$AWK" ; then
  29318. + REBUILD=
  29319. fi
  29320. -if test $ac_cv_header_stdc = yes; then
  29321. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  29322. -cat > conftest.$ac_ext <<EOF
  29323. -#line 2440 "configure"
  29324. -#include "confdefs.h"
  29325. -#include <stdlib.h>
  29326. -EOF
  29327. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29328. - egrep "free" >/dev/null 2>&1; then
  29329. - :
  29330. +
  29331. +echo "$as_me:$LINENO: checking whether make is GNU Make" >&5
  29332. +echo $ECHO_N "checking whether make is GNU Make... $ECHO_C" >&6
  29333. +STRIP_BEGIN=
  29334. +STRIP_END=
  29335. +if $ac_make --version 2>/dev/null | grep '^GNU Make ' >/dev/null ; then
  29336. + STRIP_BEGIN='$(strip $(STRIP_DUMMY)'
  29337. + STRIP_END=')'
  29338. + echo "$as_me:$LINENO: result: yes" >&5
  29339. +echo "${ECHO_T}yes" >&6
  29340. else
  29341. - rm -rf conftest*
  29342. - ac_cv_header_stdc=no
  29343. + echo "$as_me:$LINENO: result: no" >&5
  29344. +echo "${ECHO_T}no" >&6
  29345. fi
  29346. -rm -f conftest*
  29347. +STRIP_DUMMY=
  29348. -fi
  29349. -if test $ac_cv_header_stdc = yes; then
  29350. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  29351. -if test "$cross_compiling" = yes; then
  29352. - :
  29353. +
  29354. +
  29355. +# i18n stuff
  29356. +ALL_LINGUAS="az ca cs da de el es et eu fi fr ga gl hr hu it ja ko lt nl no nn pl pt pt_BR ro ru sk sl sp sr sv tr uk vi wa zh_CN.GB2312 zh_TW.Big5"
  29357. +if test -n "$ac_tool_prefix"; then
  29358. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  29359. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  29360. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  29361. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  29362. +if test "${ac_cv_prog_RANLIB+set}" = set; then
  29363. + echo $ECHO_N "(cached) $ECHO_C" >&6
  29364. else
  29365. - cat > conftest.$ac_ext <<EOF
  29366. -#line 2461 "configure"
  29367. -#include "confdefs.h"
  29368. -#include <ctype.h>
  29369. -#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  29370. -#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  29371. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  29372. -int main () { int i; for (i = 0; i < 256; i++)
  29373. -if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  29374. -exit (0); }
  29375. + if test -n "$RANLIB"; then
  29376. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  29377. +else
  29378. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  29379. +for as_dir in $PATH
  29380. +do
  29381. + IFS=$as_save_IFS
  29382. + test -z "$as_dir" && as_dir=.
  29383. + for ac_exec_ext in '' $ac_executable_extensions; do
  29384. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  29385. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  29386. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  29387. + break 2
  29388. + fi
  29389. +done
  29390. +done
  29391. -EOF
  29392. -if { (eval echo configure:2472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  29393. -then
  29394. - :
  29395. +fi
  29396. +fi
  29397. +RANLIB=$ac_cv_prog_RANLIB
  29398. +if test -n "$RANLIB"; then
  29399. + echo "$as_me:$LINENO: result: $RANLIB" >&5
  29400. +echo "${ECHO_T}$RANLIB" >&6
  29401. else
  29402. - echo "configure: failed program was:" >&5
  29403. - cat conftest.$ac_ext >&5
  29404. - rm -fr conftest*
  29405. - ac_cv_header_stdc=no
  29406. + echo "$as_me:$LINENO: result: no" >&5
  29407. +echo "${ECHO_T}no" >&6
  29408. fi
  29409. -rm -fr conftest*
  29410. +
  29411. fi
  29412. +if test -z "$ac_cv_prog_RANLIB"; then
  29413. + ac_ct_RANLIB=$RANLIB
  29414. + # Extract the first word of "ranlib", so it can be a program name with args.
  29415. +set dummy ranlib; ac_word=$2
  29416. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  29417. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  29418. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  29419. + echo $ECHO_N "(cached) $ECHO_C" >&6
  29420. +else
  29421. + if test -n "$ac_ct_RANLIB"; then
  29422. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  29423. +else
  29424. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  29425. +for as_dir in $PATH
  29426. +do
  29427. + IFS=$as_save_IFS
  29428. + test -z "$as_dir" && as_dir=.
  29429. + for ac_exec_ext in '' $ac_executable_extensions; do
  29430. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  29431. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  29432. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  29433. + break 2
  29434. + fi
  29435. +done
  29436. +done
  29437. + test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  29438. fi
  29439. fi
  29440. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  29441. +if test -n "$ac_ct_RANLIB"; then
  29442. + echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  29443. +echo "${ECHO_T}$ac_ct_RANLIB" >&6
  29444. +else
  29445. + echo "$as_me:$LINENO: result: no" >&5
  29446. +echo "${ECHO_T}no" >&6
  29447. +fi
  29448. -echo "$ac_t""$ac_cv_header_stdc" 1>&6
  29449. -if test $ac_cv_header_stdc = yes; then
  29450. - cat >> confdefs.h <<\EOF
  29451. -#define STDC_HEADERS 1
  29452. -EOF
  29453. -
  29454. + RANLIB=$ac_ct_RANLIB
  29455. +else
  29456. + RANLIB="$ac_cv_prog_RANLIB"
  29457. fi
  29458. -echo $ac_n "checking for working const""... $ac_c" 1>&6
  29459. -echo "configure:2496: checking for working const" >&5
  29460. -if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  29461. - echo $ac_n "(cached) $ac_c" 1>&6
  29462. +echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  29463. +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  29464. +if test "${ac_cv_c_const+set}" = set; then
  29465. + echo $ECHO_N "(cached) $ECHO_C" >&6
  29466. else
  29467. - cat > conftest.$ac_ext <<EOF
  29468. -#line 2501 "configure"
  29469. -#include "confdefs.h"
  29470. + cat >conftest.$ac_ext <<_ACEOF
  29471. +/* confdefs.h. */
  29472. +_ACEOF
  29473. +cat confdefs.h >>conftest.$ac_ext
  29474. +cat >>conftest.$ac_ext <<_ACEOF
  29475. +/* end confdefs.h. */
  29476. -int main() {
  29477. +int
  29478. +main ()
  29479. +{
  29480. +/* FIXME: Include the comments suggested by Paul. */
  29481. +#ifndef __cplusplus
  29482. + /* Ultrix mips cc rejects this. */
  29483. + typedef int charset[2];
  29484. + const charset x;
  29485. + /* SunOS 4.1.1 cc rejects this. */
  29486. + char const *const *ccp;
  29487. + char **p;
  29488. + /* NEC SVR4.0.2 mips cc rejects this. */
  29489. + struct point {int x, y;};
  29490. + static struct point const zero = {0,0};
  29491. + /* AIX XL C 1.02.0.0 rejects this.
  29492. + It does not let you subtract one const X* pointer from another in
  29493. + an arm of an if-expression whose if-part is not a constant
  29494. + expression */
  29495. + const char *g = "string";
  29496. + ccp = &g + (g ? g-g : 0);
  29497. + /* HPUX 7.0 cc rejects these. */
  29498. + ++ccp;
  29499. + p = (char**) ccp;
  29500. + ccp = (char const *const *) p;
  29501. + { /* SCO 3.2v4 cc rejects this. */
  29502. + char *t;
  29503. + char const *s = 0 ? (char *) 0 : (char const *) 0;
  29504. -/* Ultrix mips cc rejects this. */
  29505. -typedef int charset[2]; const charset x;
  29506. -/* SunOS 4.1.1 cc rejects this. */
  29507. -char const *const *ccp;
  29508. -char **p;
  29509. -/* NEC SVR4.0.2 mips cc rejects this. */
  29510. -struct point {int x, y;};
  29511. -static struct point const zero = {0,0};
  29512. -/* AIX XL C 1.02.0.0 rejects this.
  29513. - It does not let you subtract one const X* pointer from another in an arm
  29514. - of an if-expression whose if-part is not a constant expression */
  29515. -const char *g = "string";
  29516. -ccp = &g + (g ? g-g : 0);
  29517. -/* HPUX 7.0 cc rejects these. */
  29518. -++ccp;
  29519. -p = (char**) ccp;
  29520. -ccp = (char const *const *) p;
  29521. -{ /* SCO 3.2v4 cc rejects this. */
  29522. - char *t;
  29523. - char const *s = 0 ? (char *) 0 : (char const *) 0;
  29524. -
  29525. - *t++ = 0;
  29526. -}
  29527. -{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  29528. - int x[] = {25, 17};
  29529. - const int *foo = &x[0];
  29530. - ++foo;
  29531. -}
  29532. -{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  29533. - typedef const int *iptr;
  29534. - iptr p = 0;
  29535. - ++p;
  29536. -}
  29537. -{ /* AIX XL C 1.02.0.0 rejects this saying
  29538. - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  29539. - struct s { int j; const int *ap[3]; };
  29540. - struct s *b; b->j = 5;
  29541. -}
  29542. -{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  29543. - const int foo = 10;
  29544. -}
  29545. + *t++ = 0;
  29546. + }
  29547. + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  29548. + int x[] = {25, 17};
  29549. + const int *foo = &x[0];
  29550. + ++foo;
  29551. + }
  29552. + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  29553. + typedef const int *iptr;
  29554. + iptr p = 0;
  29555. + ++p;
  29556. + }
  29557. + { /* AIX XL C 1.02.0.0 rejects this saying
  29558. + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  29559. + struct s { int j; const int *ap[3]; };
  29560. + struct s *b; b->j = 5;
  29561. + }
  29562. + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  29563. + const int foo = 10;
  29564. + }
  29565. +#endif
  29566. -; return 0; }
  29567. -EOF
  29568. -if { (eval echo configure:2550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  29569. - rm -rf conftest*
  29570. + ;
  29571. + return 0;
  29572. +}
  29573. +_ACEOF
  29574. +rm -f conftest.$ac_objext
  29575. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29576. + (eval $ac_compile) 2>conftest.er1
  29577. + ac_status=$?
  29578. + grep -v '^ *+' conftest.er1 >conftest.err
  29579. + rm -f conftest.er1
  29580. + cat conftest.err >&5
  29581. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29582. + (exit $ac_status); } &&
  29583. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  29584. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29585. + (eval $ac_try) 2>&5
  29586. + ac_status=$?
  29587. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29588. + (exit $ac_status); }; } &&
  29589. + { ac_try='test -s conftest.$ac_objext'
  29590. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29591. + (eval $ac_try) 2>&5
  29592. + ac_status=$?
  29593. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29594. + (exit $ac_status); }; }; then
  29595. ac_cv_c_const=yes
  29596. else
  29597. - echo "configure: failed program was:" >&5
  29598. - cat conftest.$ac_ext >&5
  29599. - rm -rf conftest*
  29600. - ac_cv_c_const=no
  29601. + echo "$as_me: failed program was:" >&5
  29602. +sed 's/^/| /' conftest.$ac_ext >&5
  29603. +
  29604. +ac_cv_c_const=no
  29605. fi
  29606. -rm -f conftest*
  29607. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29608. fi
  29609. -
  29610. -echo "$ac_t""$ac_cv_c_const" 1>&6
  29611. +echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  29612. +echo "${ECHO_T}$ac_cv_c_const" >&6
  29613. if test $ac_cv_c_const = no; then
  29614. - cat >> confdefs.h <<\EOF
  29615. -#define const
  29616. -EOF
  29617. +
  29618. +cat >>confdefs.h <<\_ACEOF
  29619. +#define const
  29620. +_ACEOF
  29621. fi
  29622. -echo $ac_n "checking for inline""... $ac_c" 1>&6
  29623. -echo "configure:2571: checking for inline" >&5
  29624. -if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  29625. - echo $ac_n "(cached) $ac_c" 1>&6
  29626. +echo "$as_me:$LINENO: checking for inline" >&5
  29627. +echo $ECHO_N "checking for inline... $ECHO_C" >&6
  29628. +if test "${ac_cv_c_inline+set}" = set; then
  29629. + echo $ECHO_N "(cached) $ECHO_C" >&6
  29630. else
  29631. ac_cv_c_inline=no
  29632. for ac_kw in inline __inline__ __inline; do
  29633. - cat > conftest.$ac_ext <<EOF
  29634. -#line 2578 "configure"
  29635. -#include "confdefs.h"
  29636. + cat >conftest.$ac_ext <<_ACEOF
  29637. +/* confdefs.h. */
  29638. +_ACEOF
  29639. +cat confdefs.h >>conftest.$ac_ext
  29640. +cat >>conftest.$ac_ext <<_ACEOF
  29641. +/* end confdefs.h. */
  29642. +#ifndef __cplusplus
  29643. +typedef int foo_t;
  29644. +static $ac_kw foo_t static_foo () {return 0; }
  29645. +$ac_kw foo_t foo () {return 0; }
  29646. +#endif
  29647. -int main() {
  29648. -} $ac_kw foo() {
  29649. -; return 0; }
  29650. -EOF
  29651. -if { (eval echo configure:2585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  29652. - rm -rf conftest*
  29653. +_ACEOF
  29654. +rm -f conftest.$ac_objext
  29655. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29656. + (eval $ac_compile) 2>conftest.er1
  29657. + ac_status=$?
  29658. + grep -v '^ *+' conftest.er1 >conftest.err
  29659. + rm -f conftest.er1
  29660. + cat conftest.err >&5
  29661. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29662. + (exit $ac_status); } &&
  29663. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  29664. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29665. + (eval $ac_try) 2>&5
  29666. + ac_status=$?
  29667. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29668. + (exit $ac_status); }; } &&
  29669. + { ac_try='test -s conftest.$ac_objext'
  29670. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29671. + (eval $ac_try) 2>&5
  29672. + ac_status=$?
  29673. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29674. + (exit $ac_status); }; }; then
  29675. ac_cv_c_inline=$ac_kw; break
  29676. else
  29677. - echo "configure: failed program was:" >&5
  29678. - cat conftest.$ac_ext >&5
  29679. + echo "$as_me: failed program was:" >&5
  29680. +sed 's/^/| /' conftest.$ac_ext >&5
  29681. +
  29682. fi
  29683. -rm -f conftest*
  29684. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29685. done
  29686. fi
  29687. +echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  29688. +echo "${ECHO_T}$ac_cv_c_inline" >&6
  29689. +
  29690. -echo "$ac_t""$ac_cv_c_inline" 1>&6
  29691. -case "$ac_cv_c_inline" in
  29692. +case $ac_cv_c_inline in
  29693. inline | yes) ;;
  29694. - no) cat >> confdefs.h <<\EOF
  29695. -#define inline
  29696. -EOF
  29697. - ;;
  29698. - *) cat >> confdefs.h <<EOF
  29699. -#define inline $ac_cv_c_inline
  29700. -EOF
  29701. - ;;
  29702. + *)
  29703. + case $ac_cv_c_inline in
  29704. + no) ac_val=;;
  29705. + *) ac_val=$ac_cv_c_inline;;
  29706. + esac
  29707. + cat >>confdefs.h <<_ACEOF
  29708. +#ifndef __cplusplus
  29709. +#define inline $ac_val
  29710. +#endif
  29711. +_ACEOF
  29712. + ;;
  29713. esac
  29714. -echo $ac_n "checking for off_t""... $ac_c" 1>&6
  29715. -echo "configure:2611: checking for off_t" >&5
  29716. -if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  29717. - echo $ac_n "(cached) $ac_c" 1>&6
  29718. -else
  29719. - cat > conftest.$ac_ext <<EOF
  29720. -#line 2616 "configure"
  29721. -#include "confdefs.h"
  29722. -#include <sys/types.h>
  29723. -#if STDC_HEADERS
  29724. -#include <stdlib.h>
  29725. -#include <stddef.h>
  29726. -#endif
  29727. -EOF
  29728. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29729. - egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  29730. - rm -rf conftest*
  29731. +echo "$as_me:$LINENO: checking for off_t" >&5
  29732. +echo $ECHO_N "checking for off_t... $ECHO_C" >&6
  29733. +if test "${ac_cv_type_off_t+set}" = set; then
  29734. + echo $ECHO_N "(cached) $ECHO_C" >&6
  29735. +else
  29736. + cat >conftest.$ac_ext <<_ACEOF
  29737. +/* confdefs.h. */
  29738. +_ACEOF
  29739. +cat confdefs.h >>conftest.$ac_ext
  29740. +cat >>conftest.$ac_ext <<_ACEOF
  29741. +/* end confdefs.h. */
  29742. +$ac_includes_default
  29743. +int
  29744. +main ()
  29745. +{
  29746. +if ((off_t *) 0)
  29747. + return 0;
  29748. +if (sizeof (off_t))
  29749. + return 0;
  29750. + ;
  29751. + return 0;
  29752. +}
  29753. +_ACEOF
  29754. +rm -f conftest.$ac_objext
  29755. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29756. + (eval $ac_compile) 2>conftest.er1
  29757. + ac_status=$?
  29758. + grep -v '^ *+' conftest.er1 >conftest.err
  29759. + rm -f conftest.er1
  29760. + cat conftest.err >&5
  29761. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29762. + (exit $ac_status); } &&
  29763. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  29764. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29765. + (eval $ac_try) 2>&5
  29766. + ac_status=$?
  29767. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29768. + (exit $ac_status); }; } &&
  29769. + { ac_try='test -s conftest.$ac_objext'
  29770. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29771. + (eval $ac_try) 2>&5
  29772. + ac_status=$?
  29773. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29774. + (exit $ac_status); }; }; then
  29775. ac_cv_type_off_t=yes
  29776. else
  29777. - rm -rf conftest*
  29778. - ac_cv_type_off_t=no
  29779. -fi
  29780. -rm -f conftest*
  29781. + echo "$as_me: failed program was:" >&5
  29782. +sed 's/^/| /' conftest.$ac_ext >&5
  29783. +ac_cv_type_off_t=no
  29784. +fi
  29785. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29786. fi
  29787. -echo "$ac_t""$ac_cv_type_off_t" 1>&6
  29788. -if test $ac_cv_type_off_t = no; then
  29789. - cat >> confdefs.h <<\EOF
  29790. +echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  29791. +echo "${ECHO_T}$ac_cv_type_off_t" >&6
  29792. +if test $ac_cv_type_off_t = yes; then
  29793. + :
  29794. +else
  29795. +
  29796. +cat >>confdefs.h <<_ACEOF
  29797. #define off_t long
  29798. -EOF
  29799. +_ACEOF
  29800. fi
  29801. -echo $ac_n "checking for size_t""... $ac_c" 1>&6
  29802. -echo "configure:2644: checking for size_t" >&5
  29803. -if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  29804. - echo $ac_n "(cached) $ac_c" 1>&6
  29805. -else
  29806. - cat > conftest.$ac_ext <<EOF
  29807. -#line 2649 "configure"
  29808. -#include "confdefs.h"
  29809. -#include <sys/types.h>
  29810. -#if STDC_HEADERS
  29811. -#include <stdlib.h>
  29812. -#include <stddef.h>
  29813. -#endif
  29814. -EOF
  29815. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29816. - egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  29817. - rm -rf conftest*
  29818. +echo "$as_me:$LINENO: checking for size_t" >&5
  29819. +echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  29820. +if test "${ac_cv_type_size_t+set}" = set; then
  29821. + echo $ECHO_N "(cached) $ECHO_C" >&6
  29822. +else
  29823. + cat >conftest.$ac_ext <<_ACEOF
  29824. +/* confdefs.h. */
  29825. +_ACEOF
  29826. +cat confdefs.h >>conftest.$ac_ext
  29827. +cat >>conftest.$ac_ext <<_ACEOF
  29828. +/* end confdefs.h. */
  29829. +$ac_includes_default
  29830. +int
  29831. +main ()
  29832. +{
  29833. +if ((size_t *) 0)
  29834. + return 0;
  29835. +if (sizeof (size_t))
  29836. + return 0;
  29837. + ;
  29838. + return 0;
  29839. +}
  29840. +_ACEOF
  29841. +rm -f conftest.$ac_objext
  29842. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29843. + (eval $ac_compile) 2>conftest.er1
  29844. + ac_status=$?
  29845. + grep -v '^ *+' conftest.er1 >conftest.err
  29846. + rm -f conftest.er1
  29847. + cat conftest.err >&5
  29848. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29849. + (exit $ac_status); } &&
  29850. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  29851. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29852. + (eval $ac_try) 2>&5
  29853. + ac_status=$?
  29854. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29855. + (exit $ac_status); }; } &&
  29856. + { ac_try='test -s conftest.$ac_objext'
  29857. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29858. + (eval $ac_try) 2>&5
  29859. + ac_status=$?
  29860. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29861. + (exit $ac_status); }; }; then
  29862. ac_cv_type_size_t=yes
  29863. else
  29864. - rm -rf conftest*
  29865. - ac_cv_type_size_t=no
  29866. -fi
  29867. -rm -f conftest*
  29868. + echo "$as_me: failed program was:" >&5
  29869. +sed 's/^/| /' conftest.$ac_ext >&5
  29870. +ac_cv_type_size_t=no
  29871. +fi
  29872. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29873. fi
  29874. -echo "$ac_t""$ac_cv_type_size_t" 1>&6
  29875. -if test $ac_cv_type_size_t = no; then
  29876. - cat >> confdefs.h <<\EOF
  29877. +echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  29878. +echo "${ECHO_T}$ac_cv_type_size_t" >&6
  29879. +if test $ac_cv_type_size_t = yes; then
  29880. + :
  29881. +else
  29882. +
  29883. +cat >>confdefs.h <<_ACEOF
  29884. #define size_t unsigned
  29885. -EOF
  29886. +_ACEOF
  29887. fi
  29888. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  29889. # for constant arguments. Useless!
  29890. -echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  29891. -echo "configure:2679: checking for working alloca.h" >&5
  29892. -if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  29893. - echo $ac_n "(cached) $ac_c" 1>&6
  29894. -else
  29895. - cat > conftest.$ac_ext <<EOF
  29896. -#line 2684 "configure"
  29897. -#include "confdefs.h"
  29898. +echo "$as_me:$LINENO: checking for working alloca.h" >&5
  29899. +echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
  29900. +if test "${ac_cv_working_alloca_h+set}" = set; then
  29901. + echo $ECHO_N "(cached) $ECHO_C" >&6
  29902. +else
  29903. + cat >conftest.$ac_ext <<_ACEOF
  29904. +/* confdefs.h. */
  29905. +_ACEOF
  29906. +cat confdefs.h >>conftest.$ac_ext
  29907. +cat >>conftest.$ac_ext <<_ACEOF
  29908. +/* end confdefs.h. */
  29909. #include <alloca.h>
  29910. -int main() {
  29911. -char *p = alloca(2 * sizeof(int));
  29912. -; return 0; }
  29913. -EOF
  29914. -if { (eval echo configure:2691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  29915. - rm -rf conftest*
  29916. - ac_cv_header_alloca_h=yes
  29917. -else
  29918. - echo "configure: failed program was:" >&5
  29919. - cat conftest.$ac_ext >&5
  29920. - rm -rf conftest*
  29921. - ac_cv_header_alloca_h=no
  29922. -fi
  29923. -rm -f conftest*
  29924. -fi
  29925. +int
  29926. +main ()
  29927. +{
  29928. +char *p = (char *) alloca (2 * sizeof (int));
  29929. + ;
  29930. + return 0;
  29931. +}
  29932. +_ACEOF
  29933. +rm -f conftest.$ac_objext conftest$ac_exeext
  29934. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29935. + (eval $ac_link) 2>conftest.er1
  29936. + ac_status=$?
  29937. + grep -v '^ *+' conftest.er1 >conftest.err
  29938. + rm -f conftest.er1
  29939. + cat conftest.err >&5
  29940. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29941. + (exit $ac_status); } &&
  29942. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  29943. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29944. + (eval $ac_try) 2>&5
  29945. + ac_status=$?
  29946. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29947. + (exit $ac_status); }; } &&
  29948. + { ac_try='test -s conftest$ac_exeext'
  29949. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29950. + (eval $ac_try) 2>&5
  29951. + ac_status=$?
  29952. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29953. + (exit $ac_status); }; }; then
  29954. + ac_cv_working_alloca_h=yes
  29955. +else
  29956. + echo "$as_me: failed program was:" >&5
  29957. +sed 's/^/| /' conftest.$ac_ext >&5
  29958. +
  29959. +ac_cv_working_alloca_h=no
  29960. +fi
  29961. +rm -f conftest.err conftest.$ac_objext \
  29962. + conftest$ac_exeext conftest.$ac_ext
  29963. +fi
  29964. +echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  29965. +echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
  29966. +if test $ac_cv_working_alloca_h = yes; then
  29967. -echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  29968. -if test $ac_cv_header_alloca_h = yes; then
  29969. - cat >> confdefs.h <<\EOF
  29970. +cat >>confdefs.h <<\_ACEOF
  29971. #define HAVE_ALLOCA_H 1
  29972. -EOF
  29973. +_ACEOF
  29974. fi
  29975. -echo $ac_n "checking for alloca""... $ac_c" 1>&6
  29976. -echo "configure:2712: checking for alloca" >&5
  29977. -if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
  29978. - echo $ac_n "(cached) $ac_c" 1>&6
  29979. +echo "$as_me:$LINENO: checking for alloca" >&5
  29980. +echo $ECHO_N "checking for alloca... $ECHO_C" >&6
  29981. +if test "${ac_cv_func_alloca_works+set}" = set; then
  29982. + echo $ECHO_N "(cached) $ECHO_C" >&6
  29983. else
  29984. - cat > conftest.$ac_ext <<EOF
  29985. -#line 2717 "configure"
  29986. -#include "confdefs.h"
  29987. -
  29988. + cat >conftest.$ac_ext <<_ACEOF
  29989. +/* confdefs.h. */
  29990. +_ACEOF
  29991. +cat confdefs.h >>conftest.$ac_ext
  29992. +cat >>conftest.$ac_ext <<_ACEOF
  29993. +/* end confdefs.h. */
  29994. #ifdef __GNUC__
  29995. # define alloca __builtin_alloca
  29996. #else
  29997. @@ -2737,137 +20039,215 @@
  29998. # endif
  29999. #endif
  30000. -int main() {
  30001. -char *p = (char *) alloca(1);
  30002. -; return 0; }
  30003. -EOF
  30004. -if { (eval echo configure:2745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  30005. - rm -rf conftest*
  30006. +int
  30007. +main ()
  30008. +{
  30009. +char *p = (char *) alloca (1);
  30010. + ;
  30011. + return 0;
  30012. +}
  30013. +_ACEOF
  30014. +rm -f conftest.$ac_objext conftest$ac_exeext
  30015. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  30016. + (eval $ac_link) 2>conftest.er1
  30017. + ac_status=$?
  30018. + grep -v '^ *+' conftest.er1 >conftest.err
  30019. + rm -f conftest.er1
  30020. + cat conftest.err >&5
  30021. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30022. + (exit $ac_status); } &&
  30023. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  30024. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30025. + (eval $ac_try) 2>&5
  30026. + ac_status=$?
  30027. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30028. + (exit $ac_status); }; } &&
  30029. + { ac_try='test -s conftest$ac_exeext'
  30030. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30031. + (eval $ac_try) 2>&5
  30032. + ac_status=$?
  30033. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30034. + (exit $ac_status); }; }; then
  30035. ac_cv_func_alloca_works=yes
  30036. else
  30037. - echo "configure: failed program was:" >&5
  30038. - cat conftest.$ac_ext >&5
  30039. - rm -rf conftest*
  30040. - ac_cv_func_alloca_works=no
  30041. + echo "$as_me: failed program was:" >&5
  30042. +sed 's/^/| /' conftest.$ac_ext >&5
  30043. +
  30044. +ac_cv_func_alloca_works=no
  30045. fi
  30046. -rm -f conftest*
  30047. +rm -f conftest.err conftest.$ac_objext \
  30048. + conftest$ac_exeext conftest.$ac_ext
  30049. fi
  30050. +echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  30051. +echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
  30052. -echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
  30053. if test $ac_cv_func_alloca_works = yes; then
  30054. - cat >> confdefs.h <<\EOF
  30055. -#define HAVE_ALLOCA 1
  30056. -EOF
  30057. -fi
  30058. +cat >>confdefs.h <<\_ACEOF
  30059. +#define HAVE_ALLOCA 1
  30060. +_ACEOF
  30061. -if test $ac_cv_func_alloca_works = no; then
  30062. +else
  30063. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  30064. - # that cause trouble. Some versions do not even contain alloca or
  30065. - # contain a buggy version. If you still want to use their alloca,
  30066. - # use ar to extract alloca.o from them instead of compiling alloca.c.
  30067. - ALLOCA=alloca.${ac_objext}
  30068. - cat >> confdefs.h <<\EOF
  30069. +# that cause trouble. Some versions do not even contain alloca or
  30070. +# contain a buggy version. If you still want to use their alloca,
  30071. +# use ar to extract alloca.o from them instead of compiling alloca.c.
  30072. +
  30073. +ALLOCA=alloca.$ac_objext
  30074. +
  30075. +cat >>confdefs.h <<\_ACEOF
  30076. #define C_ALLOCA 1
  30077. -EOF
  30078. +_ACEOF
  30079. -echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  30080. -echo "configure:2777: checking whether alloca needs Cray hooks" >&5
  30081. -if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  30082. - echo $ac_n "(cached) $ac_c" 1>&6
  30083. -else
  30084. - cat > conftest.$ac_ext <<EOF
  30085. -#line 2782 "configure"
  30086. -#include "confdefs.h"
  30087. +echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  30088. +echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
  30089. +if test "${ac_cv_os_cray+set}" = set; then
  30090. + echo $ECHO_N "(cached) $ECHO_C" >&6
  30091. +else
  30092. + cat >conftest.$ac_ext <<_ACEOF
  30093. +/* confdefs.h. */
  30094. +_ACEOF
  30095. +cat confdefs.h >>conftest.$ac_ext
  30096. +cat >>conftest.$ac_ext <<_ACEOF
  30097. +/* end confdefs.h. */
  30098. #if defined(CRAY) && ! defined(CRAY2)
  30099. webecray
  30100. #else
  30101. wenotbecray
  30102. #endif
  30103. -EOF
  30104. +_ACEOF
  30105. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30106. - egrep "webecray" >/dev/null 2>&1; then
  30107. - rm -rf conftest*
  30108. + $EGREP "webecray" >/dev/null 2>&1; then
  30109. ac_cv_os_cray=yes
  30110. else
  30111. - rm -rf conftest*
  30112. ac_cv_os_cray=no
  30113. fi
  30114. rm -f conftest*
  30115. fi
  30116. -
  30117. -echo "$ac_t""$ac_cv_os_cray" 1>&6
  30118. +echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  30119. +echo "${ECHO_T}$ac_cv_os_cray" >&6
  30120. if test $ac_cv_os_cray = yes; then
  30121. -for ac_func in _getb67 GETB67 getb67; do
  30122. - echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  30123. -echo "configure:2807: checking for $ac_func" >&5
  30124. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  30125. - echo $ac_n "(cached) $ac_c" 1>&6
  30126. -else
  30127. - cat > conftest.$ac_ext <<EOF
  30128. -#line 2812 "configure"
  30129. -#include "confdefs.h"
  30130. + for ac_func in _getb67 GETB67 getb67; do
  30131. + as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  30132. +echo "$as_me:$LINENO: checking for $ac_func" >&5
  30133. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  30134. +if eval "test \"\${$as_ac_var+set}\" = set"; then
  30135. + echo $ECHO_N "(cached) $ECHO_C" >&6
  30136. +else
  30137. + cat >conftest.$ac_ext <<_ACEOF
  30138. +/* confdefs.h. */
  30139. +_ACEOF
  30140. +cat confdefs.h >>conftest.$ac_ext
  30141. +cat >>conftest.$ac_ext <<_ACEOF
  30142. +/* end confdefs.h. */
  30143. +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  30144. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  30145. +#define $ac_func innocuous_$ac_func
  30146. +
  30147. /* System header to define __stub macros and hopefully few prototypes,
  30148. - which can conflict with char $ac_func(); below. */
  30149. -#include <assert.h>
  30150. -/* Override any gcc2 internal prototype to avoid an error. */
  30151. -/* We use char because int might match the return type of a gcc2
  30152. - builtin and then its argument prototype would still apply. */
  30153. -char $ac_func();
  30154. + which can conflict with char $ac_func (); below.
  30155. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  30156. + <limits.h> exists even on freestanding compilers. */
  30157. +
  30158. +#ifdef __STDC__
  30159. +# include <limits.h>
  30160. +#else
  30161. +# include <assert.h>
  30162. +#endif
  30163. -int main() {
  30164. +#undef $ac_func
  30165. +/* Override any gcc2 internal prototype to avoid an error. */
  30166. +#ifdef __cplusplus
  30167. +extern "C"
  30168. +{
  30169. +#endif
  30170. +/* We use char because int might match the return type of a gcc2
  30171. + builtin and then its argument prototype would still apply. */
  30172. +char $ac_func ();
  30173. /* The GNU C library defines this for functions which it implements
  30174. to always fail with ENOSYS. Some functions are actually named
  30175. something starting with __ and the normal name is an alias. */
  30176. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  30177. choke me
  30178. #else
  30179. -$ac_func();
  30180. +char (*f) () = $ac_func;
  30181. +#endif
  30182. +#ifdef __cplusplus
  30183. +}
  30184. #endif
  30185. -; return 0; }
  30186. -EOF
  30187. -if { (eval echo configure:2835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  30188. - rm -rf conftest*
  30189. - eval "ac_cv_func_$ac_func=yes"
  30190. -else
  30191. - echo "configure: failed program was:" >&5
  30192. - cat conftest.$ac_ext >&5
  30193. - rm -rf conftest*
  30194. - eval "ac_cv_func_$ac_func=no"
  30195. -fi
  30196. -rm -f conftest*
  30197. -fi
  30198. +int
  30199. +main ()
  30200. +{
  30201. +return f != $ac_func;
  30202. + ;
  30203. + return 0;
  30204. +}
  30205. +_ACEOF
  30206. +rm -f conftest.$ac_objext conftest$ac_exeext
  30207. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  30208. + (eval $ac_link) 2>conftest.er1
  30209. + ac_status=$?
  30210. + grep -v '^ *+' conftest.er1 >conftest.err
  30211. + rm -f conftest.er1
  30212. + cat conftest.err >&5
  30213. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30214. + (exit $ac_status); } &&
  30215. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  30216. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30217. + (eval $ac_try) 2>&5
  30218. + ac_status=$?
  30219. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30220. + (exit $ac_status); }; } &&
  30221. + { ac_try='test -s conftest$ac_exeext'
  30222. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30223. + (eval $ac_try) 2>&5
  30224. + ac_status=$?
  30225. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30226. + (exit $ac_status); }; }; then
  30227. + eval "$as_ac_var=yes"
  30228. +else
  30229. + echo "$as_me: failed program was:" >&5
  30230. +sed 's/^/| /' conftest.$ac_ext >&5
  30231. +
  30232. +eval "$as_ac_var=no"
  30233. +fi
  30234. +rm -f conftest.err conftest.$ac_objext \
  30235. + conftest$ac_exeext conftest.$ac_ext
  30236. +fi
  30237. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  30238. +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  30239. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  30240. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  30241. - echo "$ac_t""yes" 1>&6
  30242. - cat >> confdefs.h <<EOF
  30243. +cat >>confdefs.h <<_ACEOF
  30244. #define CRAY_STACKSEG_END $ac_func
  30245. -EOF
  30246. +_ACEOF
  30247. - break
  30248. -else
  30249. - echo "$ac_t""no" 1>&6
  30250. + break
  30251. fi
  30252. -done
  30253. + done
  30254. fi
  30255. -echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  30256. -echo "configure:2862: checking stack direction for C alloca" >&5
  30257. -if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  30258. - echo $ac_n "(cached) $ac_c" 1>&6
  30259. +echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  30260. +echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
  30261. +if test "${ac_cv_c_stack_direction+set}" = set; then
  30262. + echo $ECHO_N "(cached) $ECHO_C" >&6
  30263. else
  30264. if test "$cross_compiling" = yes; then
  30265. ac_cv_c_stack_direction=0
  30266. else
  30267. - cat > conftest.$ac_ext <<EOF
  30268. -#line 2870 "configure"
  30269. -#include "confdefs.h"
  30270. + cat >conftest.$ac_ext <<_ACEOF
  30271. +/* confdefs.h. */
  30272. +_ACEOF
  30273. +cat confdefs.h >>conftest.$ac_ext
  30274. +cat >>conftest.$ac_ext <<_ACEOF
  30275. +/* end confdefs.h. */
  30276. +int
  30277. find_stack_direction ()
  30278. {
  30279. static char *addr = 0;
  30280. @@ -2880,138 +20260,314 @@
  30281. else
  30282. return (&dummy > addr) ? 1 : -1;
  30283. }
  30284. +
  30285. +int
  30286. main ()
  30287. {
  30288. - exit (find_stack_direction() < 0);
  30289. + exit (find_stack_direction () < 0);
  30290. }
  30291. -EOF
  30292. -if { (eval echo configure:2889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  30293. -then
  30294. +_ACEOF
  30295. +rm -f conftest$ac_exeext
  30296. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  30297. + (eval $ac_link) 2>&5
  30298. + ac_status=$?
  30299. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30300. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  30301. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30302. + (eval $ac_try) 2>&5
  30303. + ac_status=$?
  30304. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30305. + (exit $ac_status); }; }; then
  30306. ac_cv_c_stack_direction=1
  30307. else
  30308. - echo "configure: failed program was:" >&5
  30309. - cat conftest.$ac_ext >&5
  30310. - rm -fr conftest*
  30311. - ac_cv_c_stack_direction=-1
  30312. + echo "$as_me: program exited with status $ac_status" >&5
  30313. +echo "$as_me: failed program was:" >&5
  30314. +sed 's/^/| /' conftest.$ac_ext >&5
  30315. +
  30316. +( exit $ac_status )
  30317. +ac_cv_c_stack_direction=-1
  30318. fi
  30319. -rm -fr conftest*
  30320. +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  30321. fi
  30322. -
  30323. fi
  30324. +echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  30325. +echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
  30326. -echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  30327. -cat >> confdefs.h <<EOF
  30328. +cat >>confdefs.h <<_ACEOF
  30329. #define STACK_DIRECTION $ac_cv_c_stack_direction
  30330. -EOF
  30331. +_ACEOF
  30332. +
  30333. fi
  30334. -for ac_hdr in unistd.h
  30335. +
  30336. +
  30337. +for ac_header in stdlib.h unistd.h
  30338. do
  30339. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  30340. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  30341. -echo "configure:2914: checking for $ac_hdr" >&5
  30342. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  30343. - echo $ac_n "(cached) $ac_c" 1>&6
  30344. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  30345. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  30346. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  30347. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  30348. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  30349. + echo $ECHO_N "(cached) $ECHO_C" >&6
  30350. +fi
  30351. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  30352. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  30353. +else
  30354. + # Is the header compilable?
  30355. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  30356. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  30357. +cat >conftest.$ac_ext <<_ACEOF
  30358. +/* confdefs.h. */
  30359. +_ACEOF
  30360. +cat confdefs.h >>conftest.$ac_ext
  30361. +cat >>conftest.$ac_ext <<_ACEOF
  30362. +/* end confdefs.h. */
  30363. +$ac_includes_default
  30364. +#include <$ac_header>
  30365. +_ACEOF
  30366. +rm -f conftest.$ac_objext
  30367. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  30368. + (eval $ac_compile) 2>conftest.er1
  30369. + ac_status=$?
  30370. + grep -v '^ *+' conftest.er1 >conftest.err
  30371. + rm -f conftest.er1
  30372. + cat conftest.err >&5
  30373. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30374. + (exit $ac_status); } &&
  30375. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  30376. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30377. + (eval $ac_try) 2>&5
  30378. + ac_status=$?
  30379. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30380. + (exit $ac_status); }; } &&
  30381. + { ac_try='test -s conftest.$ac_objext'
  30382. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30383. + (eval $ac_try) 2>&5
  30384. + ac_status=$?
  30385. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30386. + (exit $ac_status); }; }; then
  30387. + ac_header_compiler=yes
  30388. +else
  30389. + echo "$as_me: failed program was:" >&5
  30390. +sed 's/^/| /' conftest.$ac_ext >&5
  30391. +
  30392. +ac_header_compiler=no
  30393. +fi
  30394. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  30395. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  30396. +echo "${ECHO_T}$ac_header_compiler" >&6
  30397. +
  30398. +# Is the header present?
  30399. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  30400. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  30401. +cat >conftest.$ac_ext <<_ACEOF
  30402. +/* confdefs.h. */
  30403. +_ACEOF
  30404. +cat confdefs.h >>conftest.$ac_ext
  30405. +cat >>conftest.$ac_ext <<_ACEOF
  30406. +/* end confdefs.h. */
  30407. +#include <$ac_header>
  30408. +_ACEOF
  30409. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  30410. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  30411. + ac_status=$?
  30412. + grep -v '^ *+' conftest.er1 >conftest.err
  30413. + rm -f conftest.er1
  30414. + cat conftest.err >&5
  30415. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30416. + (exit $ac_status); } >/dev/null; then
  30417. + if test -s conftest.err; then
  30418. + ac_cpp_err=$ac_c_preproc_warn_flag
  30419. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  30420. + else
  30421. + ac_cpp_err=
  30422. + fi
  30423. +else
  30424. + ac_cpp_err=yes
  30425. +fi
  30426. +if test -z "$ac_cpp_err"; then
  30427. + ac_header_preproc=yes
  30428. else
  30429. - cat > conftest.$ac_ext <<EOF
  30430. -#line 2919 "configure"
  30431. -#include "confdefs.h"
  30432. -#include <$ac_hdr>
  30433. -EOF
  30434. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  30435. -{ (eval echo configure:2924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  30436. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  30437. -if test -z "$ac_err"; then
  30438. - rm -rf conftest*
  30439. - eval "ac_cv_header_$ac_safe=yes"
  30440. + echo "$as_me: failed program was:" >&5
  30441. +sed 's/^/| /' conftest.$ac_ext >&5
  30442. +
  30443. + ac_header_preproc=no
  30444. +fi
  30445. +rm -f conftest.err conftest.$ac_ext
  30446. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  30447. +echo "${ECHO_T}$ac_header_preproc" >&6
  30448. +
  30449. +# So? What about this header?
  30450. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  30451. + yes:no: )
  30452. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  30453. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  30454. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  30455. +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  30456. + ac_header_preproc=yes
  30457. + ;;
  30458. + no:yes:* )
  30459. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  30460. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  30461. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  30462. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  30463. + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  30464. +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  30465. + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  30466. +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  30467. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  30468. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  30469. + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  30470. +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  30471. + (
  30472. + cat <<\_ASBOX
  30473. +## ------------------------------------------ ##
  30474. +## Report this to the AC_PACKAGE_NAME lists. ##
  30475. +## ------------------------------------------ ##
  30476. +_ASBOX
  30477. + ) |
  30478. + sed "s/^/$as_me: WARNING: /" >&2
  30479. + ;;
  30480. +esac
  30481. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  30482. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  30483. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  30484. + echo $ECHO_N "(cached) $ECHO_C" >&6
  30485. else
  30486. - echo "$ac_err" >&5
  30487. - echo "configure: failed program was:" >&5
  30488. - cat conftest.$ac_ext >&5
  30489. - rm -rf conftest*
  30490. - eval "ac_cv_header_$ac_safe=no"
  30491. + eval "$as_ac_Header=\$ac_header_preproc"
  30492. fi
  30493. -rm -f conftest*
  30494. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  30495. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  30496. +
  30497. fi
  30498. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  30499. - echo "$ac_t""yes" 1>&6
  30500. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  30501. - cat >> confdefs.h <<EOF
  30502. -#define $ac_tr_hdr 1
  30503. -EOF
  30504. -
  30505. -else
  30506. - echo "$ac_t""no" 1>&6
  30507. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  30508. + cat >>confdefs.h <<_ACEOF
  30509. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  30510. +_ACEOF
  30511. +
  30512. fi
  30513. +
  30514. done
  30515. +
  30516. for ac_func in getpagesize
  30517. do
  30518. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  30519. -echo "configure:2953: checking for $ac_func" >&5
  30520. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  30521. - echo $ac_n "(cached) $ac_c" 1>&6
  30522. -else
  30523. - cat > conftest.$ac_ext <<EOF
  30524. -#line 2958 "configure"
  30525. -#include "confdefs.h"
  30526. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  30527. +echo "$as_me:$LINENO: checking for $ac_func" >&5
  30528. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  30529. +if eval "test \"\${$as_ac_var+set}\" = set"; then
  30530. + echo $ECHO_N "(cached) $ECHO_C" >&6
  30531. +else
  30532. + cat >conftest.$ac_ext <<_ACEOF
  30533. +/* confdefs.h. */
  30534. +_ACEOF
  30535. +cat confdefs.h >>conftest.$ac_ext
  30536. +cat >>conftest.$ac_ext <<_ACEOF
  30537. +/* end confdefs.h. */
  30538. +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  30539. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  30540. +#define $ac_func innocuous_$ac_func
  30541. +
  30542. /* System header to define __stub macros and hopefully few prototypes,
  30543. - which can conflict with char $ac_func(); below. */
  30544. -#include <assert.h>
  30545. -/* Override any gcc2 internal prototype to avoid an error. */
  30546. -/* We use char because int might match the return type of a gcc2
  30547. - builtin and then its argument prototype would still apply. */
  30548. -char $ac_func();
  30549. + which can conflict with char $ac_func (); below.
  30550. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  30551. + <limits.h> exists even on freestanding compilers. */
  30552. +
  30553. +#ifdef __STDC__
  30554. +# include <limits.h>
  30555. +#else
  30556. +# include <assert.h>
  30557. +#endif
  30558. -int main() {
  30559. +#undef $ac_func
  30560. +/* Override any gcc2 internal prototype to avoid an error. */
  30561. +#ifdef __cplusplus
  30562. +extern "C"
  30563. +{
  30564. +#endif
  30565. +/* We use char because int might match the return type of a gcc2
  30566. + builtin and then its argument prototype would still apply. */
  30567. +char $ac_func ();
  30568. /* The GNU C library defines this for functions which it implements
  30569. to always fail with ENOSYS. Some functions are actually named
  30570. something starting with __ and the normal name is an alias. */
  30571. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  30572. choke me
  30573. #else
  30574. -$ac_func();
  30575. +char (*f) () = $ac_func;
  30576. +#endif
  30577. +#ifdef __cplusplus
  30578. +}
  30579. #endif
  30580. -; return 0; }
  30581. -EOF
  30582. -if { (eval echo configure:2981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  30583. - rm -rf conftest*
  30584. - eval "ac_cv_func_$ac_func=yes"
  30585. -else
  30586. - echo "configure: failed program was:" >&5
  30587. - cat conftest.$ac_ext >&5
  30588. - rm -rf conftest*
  30589. - eval "ac_cv_func_$ac_func=no"
  30590. -fi
  30591. -rm -f conftest*
  30592. -fi
  30593. +int
  30594. +main ()
  30595. +{
  30596. +return f != $ac_func;
  30597. + ;
  30598. + return 0;
  30599. +}
  30600. +_ACEOF
  30601. +rm -f conftest.$ac_objext conftest$ac_exeext
  30602. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  30603. + (eval $ac_link) 2>conftest.er1
  30604. + ac_status=$?
  30605. + grep -v '^ *+' conftest.er1 >conftest.err
  30606. + rm -f conftest.er1
  30607. + cat conftest.err >&5
  30608. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30609. + (exit $ac_status); } &&
  30610. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  30611. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30612. + (eval $ac_try) 2>&5
  30613. + ac_status=$?
  30614. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30615. + (exit $ac_status); }; } &&
  30616. + { ac_try='test -s conftest$ac_exeext'
  30617. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30618. + (eval $ac_try) 2>&5
  30619. + ac_status=$?
  30620. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30621. + (exit $ac_status); }; }; then
  30622. + eval "$as_ac_var=yes"
  30623. +else
  30624. + echo "$as_me: failed program was:" >&5
  30625. +sed 's/^/| /' conftest.$ac_ext >&5
  30626. +
  30627. +eval "$as_ac_var=no"
  30628. +fi
  30629. +rm -f conftest.err conftest.$ac_objext \
  30630. + conftest$ac_exeext conftest.$ac_ext
  30631. +fi
  30632. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  30633. +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  30634. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  30635. + cat >>confdefs.h <<_ACEOF
  30636. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  30637. +_ACEOF
  30638. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  30639. - echo "$ac_t""yes" 1>&6
  30640. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  30641. - cat >> confdefs.h <<EOF
  30642. -#define $ac_tr_func 1
  30643. -EOF
  30644. -
  30645. -else
  30646. - echo "$ac_t""no" 1>&6
  30647. fi
  30648. done
  30649. -echo $ac_n "checking for working mmap""... $ac_c" 1>&6
  30650. -echo "configure:3006: checking for working mmap" >&5
  30651. -if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
  30652. - echo $ac_n "(cached) $ac_c" 1>&6
  30653. +echo "$as_me:$LINENO: checking for working mmap" >&5
  30654. +echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  30655. +if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  30656. + echo $ECHO_N "(cached) $ECHO_C" >&6
  30657. else
  30658. if test "$cross_compiling" = yes; then
  30659. ac_cv_func_mmap_fixed_mapped=no
  30660. else
  30661. - cat > conftest.$ac_ext <<EOF
  30662. -#line 3014 "configure"
  30663. -#include "confdefs.h"
  30664. + cat >conftest.$ac_ext <<_ACEOF
  30665. +/* confdefs.h. */
  30666. +_ACEOF
  30667. +cat confdefs.h >>conftest.$ac_ext
  30668. +cat >>conftest.$ac_ext <<_ACEOF
  30669. +/* end confdefs.h. */
  30670. +$ac_includes_default
  30671. +/* malloc might have been renamed as rpl_malloc. */
  30672. +#undef malloc
  30673. /* Thanks to Mike Haertel and Jim Avera for this test.
  30674. Here is a matrix of mmap possibilities:
  30675. @@ -3025,34 +20581,34 @@
  30676. back from the file, nor mmap's back from the file at a different
  30677. address. (There have been systems where private was not correctly
  30678. implemented like the infamous i386 svr4.0, and systems where the
  30679. - VM page cache was not coherent with the filesystem buffer cache
  30680. + VM page cache was not coherent with the file system buffer cache
  30681. like early versions of FreeBSD and possibly contemporary NetBSD.)
  30682. For shared mappings, we should conversely verify that changes get
  30683. - propogated back to all the places they're supposed to be.
  30684. + propagated back to all the places they're supposed to be.
  30685. Grep wants private fixed already mapped.
  30686. The main things grep needs to know about mmap are:
  30687. * does it exist and is it safe to write into the mmap'd area
  30688. * how to use it (BSD variants) */
  30689. -#include <sys/types.h>
  30690. +
  30691. #include <fcntl.h>
  30692. #include <sys/mman.h>
  30693. -/* This mess was copied from the GNU getpagesize.h. */
  30694. -#ifndef HAVE_GETPAGESIZE
  30695. -# ifdef HAVE_UNISTD_H
  30696. -# include <unistd.h>
  30697. -# endif
  30698. +#if !STDC_HEADERS && !HAVE_STDLIB_H
  30699. +char *malloc ();
  30700. +#endif
  30701. +/* This mess was copied from the GNU getpagesize.h. */
  30702. +#if !HAVE_GETPAGESIZE
  30703. /* Assume that all systems that can run configure have sys/param.h. */
  30704. -# ifndef HAVE_SYS_PARAM_H
  30705. +# if !HAVE_SYS_PARAM_H
  30706. # define HAVE_SYS_PARAM_H 1
  30707. # endif
  30708. # ifdef _SC_PAGESIZE
  30709. # define getpagesize() sysconf(_SC_PAGESIZE)
  30710. # else /* no _SC_PAGESIZE */
  30711. -# ifdef HAVE_SYS_PARAM_H
  30712. +# if HAVE_SYS_PARAM_H
  30713. # include <sys/param.h>
  30714. # ifdef EXEC_PAGESIZE
  30715. # define getpagesize() EXEC_PAGESIZE
  30716. @@ -3079,308 +20635,491 @@
  30717. #endif /* no HAVE_GETPAGESIZE */
  30718. -#ifdef __cplusplus
  30719. -extern "C" { void *malloc(unsigned); }
  30720. -#else
  30721. -char *malloc();
  30722. -#endif
  30723. -
  30724. int
  30725. -main()
  30726. +main ()
  30727. {
  30728. - char *data, *data2, *data3;
  30729. - int i, pagesize;
  30730. - int fd;
  30731. -
  30732. - pagesize = getpagesize();
  30733. -
  30734. - /*
  30735. - * First, make a file with some known garbage in it.
  30736. - */
  30737. - data = malloc(pagesize);
  30738. - if (!data)
  30739. - exit(1);
  30740. - for (i = 0; i < pagesize; ++i)
  30741. - *(data + i) = rand();
  30742. - umask(0);
  30743. - fd = creat("conftestmmap", 0600);
  30744. - if (fd < 0)
  30745. - exit(1);
  30746. - if (write(fd, data, pagesize) != pagesize)
  30747. - exit(1);
  30748. - close(fd);
  30749. -
  30750. - /*
  30751. - * Next, try to mmap the file at a fixed address which
  30752. - * already has something else allocated at it. If we can,
  30753. - * also make sure that we see the same garbage.
  30754. - */
  30755. - fd = open("conftestmmap", O_RDWR);
  30756. - if (fd < 0)
  30757. - exit(1);
  30758. - data2 = malloc(2 * pagesize);
  30759. - if (!data2)
  30760. - exit(1);
  30761. - data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
  30762. - if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
  30763. - MAP_PRIVATE | MAP_FIXED, fd, 0L))
  30764. - exit(1);
  30765. - for (i = 0; i < pagesize; ++i)
  30766. - if (*(data + i) != *(data2 + i))
  30767. - exit(1);
  30768. -
  30769. - /*
  30770. - * Finally, make sure that changes to the mapped area
  30771. - * do not percolate back to the file as seen by read().
  30772. - * (This is a bug on some variants of i386 svr4.0.)
  30773. - */
  30774. - for (i = 0; i < pagesize; ++i)
  30775. - *(data2 + i) = *(data2 + i) + 1;
  30776. - data3 = malloc(pagesize);
  30777. - if (!data3)
  30778. - exit(1);
  30779. - if (read(fd, data3, pagesize) != pagesize)
  30780. - exit(1);
  30781. - for (i = 0; i < pagesize; ++i)
  30782. - if (*(data + i) != *(data3 + i))
  30783. - exit(1);
  30784. - close(fd);
  30785. - unlink("conftestmmap");
  30786. - exit(0);
  30787. + char *data, *data2, *data3;
  30788. + int i, pagesize;
  30789. + int fd;
  30790. +
  30791. + pagesize = getpagesize ();
  30792. +
  30793. + /* First, make a file with some known garbage in it. */
  30794. + data = (char *) malloc (pagesize);
  30795. + if (!data)
  30796. + exit (1);
  30797. + for (i = 0; i < pagesize; ++i)
  30798. + *(data + i) = rand ();
  30799. + umask (0);
  30800. + fd = creat ("conftest.mmap", 0600);
  30801. + if (fd < 0)
  30802. + exit (1);
  30803. + if (write (fd, data, pagesize) != pagesize)
  30804. + exit (1);
  30805. + close (fd);
  30806. +
  30807. + /* Next, try to mmap the file at a fixed address which already has
  30808. + something else allocated at it. If we can, also make sure that
  30809. + we see the same garbage. */
  30810. + fd = open ("conftest.mmap", O_RDWR);
  30811. + if (fd < 0)
  30812. + exit (1);
  30813. + data2 = (char *) malloc (2 * pagesize);
  30814. + if (!data2)
  30815. + exit (1);
  30816. + data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  30817. + if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  30818. + MAP_PRIVATE | MAP_FIXED, fd, 0L))
  30819. + exit (1);
  30820. + for (i = 0; i < pagesize; ++i)
  30821. + if (*(data + i) != *(data2 + i))
  30822. + exit (1);
  30823. +
  30824. + /* Finally, make sure that changes to the mapped area do not
  30825. + percolate back to the file as seen by read(). (This is a bug on
  30826. + some variants of i386 svr4.0.) */
  30827. + for (i = 0; i < pagesize; ++i)
  30828. + *(data2 + i) = *(data2 + i) + 1;
  30829. + data3 = (char *) malloc (pagesize);
  30830. + if (!data3)
  30831. + exit (1);
  30832. + if (read (fd, data3, pagesize) != pagesize)
  30833. + exit (1);
  30834. + for (i = 0; i < pagesize; ++i)
  30835. + if (*(data + i) != *(data3 + i))
  30836. + exit (1);
  30837. + close (fd);
  30838. + exit (0);
  30839. }
  30840. -
  30841. -EOF
  30842. -if { (eval echo configure:3154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  30843. -then
  30844. +_ACEOF
  30845. +rm -f conftest$ac_exeext
  30846. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  30847. + (eval $ac_link) 2>&5
  30848. + ac_status=$?
  30849. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30850. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  30851. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30852. + (eval $ac_try) 2>&5
  30853. + ac_status=$?
  30854. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30855. + (exit $ac_status); }; }; then
  30856. ac_cv_func_mmap_fixed_mapped=yes
  30857. else
  30858. - echo "configure: failed program was:" >&5
  30859. - cat conftest.$ac_ext >&5
  30860. - rm -fr conftest*
  30861. - ac_cv_func_mmap_fixed_mapped=no
  30862. + echo "$as_me: program exited with status $ac_status" >&5
  30863. +echo "$as_me: failed program was:" >&5
  30864. +sed 's/^/| /' conftest.$ac_ext >&5
  30865. +
  30866. +( exit $ac_status )
  30867. +ac_cv_func_mmap_fixed_mapped=no
  30868. fi
  30869. -rm -fr conftest*
  30870. +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  30871. fi
  30872. -
  30873. fi
  30874. -
  30875. -echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
  30876. +echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  30877. +echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  30878. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  30879. - cat >> confdefs.h <<\EOF
  30880. +
  30881. +cat >>confdefs.h <<\_ACEOF
  30882. #define HAVE_MMAP 1
  30883. -EOF
  30884. +_ACEOF
  30885. fi
  30886. +rm -f conftest.mmap
  30887. +
  30888. +
  30889. +
  30890. -
  30891. - for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
  30892. +
  30893. +
  30894. +
  30895. +
  30896. +
  30897. +
  30898. +for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
  30899. unistd.h sys/param.h
  30900. do
  30901. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  30902. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  30903. -echo "configure:3182: checking for $ac_hdr" >&5
  30904. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  30905. - echo $ac_n "(cached) $ac_c" 1>&6
  30906. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  30907. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  30908. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  30909. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  30910. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  30911. + echo $ECHO_N "(cached) $ECHO_C" >&6
  30912. +fi
  30913. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  30914. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  30915. +else
  30916. + # Is the header compilable?
  30917. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  30918. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  30919. +cat >conftest.$ac_ext <<_ACEOF
  30920. +/* confdefs.h. */
  30921. +_ACEOF
  30922. +cat confdefs.h >>conftest.$ac_ext
  30923. +cat >>conftest.$ac_ext <<_ACEOF
  30924. +/* end confdefs.h. */
  30925. +$ac_includes_default
  30926. +#include <$ac_header>
  30927. +_ACEOF
  30928. +rm -f conftest.$ac_objext
  30929. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  30930. + (eval $ac_compile) 2>conftest.er1
  30931. + ac_status=$?
  30932. + grep -v '^ *+' conftest.er1 >conftest.err
  30933. + rm -f conftest.er1
  30934. + cat conftest.err >&5
  30935. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30936. + (exit $ac_status); } &&
  30937. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  30938. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30939. + (eval $ac_try) 2>&5
  30940. + ac_status=$?
  30941. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30942. + (exit $ac_status); }; } &&
  30943. + { ac_try='test -s conftest.$ac_objext'
  30944. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30945. + (eval $ac_try) 2>&5
  30946. + ac_status=$?
  30947. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30948. + (exit $ac_status); }; }; then
  30949. + ac_header_compiler=yes
  30950. +else
  30951. + echo "$as_me: failed program was:" >&5
  30952. +sed 's/^/| /' conftest.$ac_ext >&5
  30953. +
  30954. +ac_header_compiler=no
  30955. +fi
  30956. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  30957. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  30958. +echo "${ECHO_T}$ac_header_compiler" >&6
  30959. +
  30960. +# Is the header present?
  30961. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  30962. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  30963. +cat >conftest.$ac_ext <<_ACEOF
  30964. +/* confdefs.h. */
  30965. +_ACEOF
  30966. +cat confdefs.h >>conftest.$ac_ext
  30967. +cat >>conftest.$ac_ext <<_ACEOF
  30968. +/* end confdefs.h. */
  30969. +#include <$ac_header>
  30970. +_ACEOF
  30971. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  30972. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  30973. + ac_status=$?
  30974. + grep -v '^ *+' conftest.er1 >conftest.err
  30975. + rm -f conftest.er1
  30976. + cat conftest.err >&5
  30977. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30978. + (exit $ac_status); } >/dev/null; then
  30979. + if test -s conftest.err; then
  30980. + ac_cpp_err=$ac_c_preproc_warn_flag
  30981. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  30982. + else
  30983. + ac_cpp_err=
  30984. + fi
  30985. else
  30986. - cat > conftest.$ac_ext <<EOF
  30987. -#line 3187 "configure"
  30988. -#include "confdefs.h"
  30989. -#include <$ac_hdr>
  30990. -EOF
  30991. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  30992. -{ (eval echo configure:3192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  30993. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  30994. -if test -z "$ac_err"; then
  30995. - rm -rf conftest*
  30996. - eval "ac_cv_header_$ac_safe=yes"
  30997. + ac_cpp_err=yes
  30998. +fi
  30999. +if test -z "$ac_cpp_err"; then
  31000. + ac_header_preproc=yes
  31001. else
  31002. - echo "$ac_err" >&5
  31003. - echo "configure: failed program was:" >&5
  31004. - cat conftest.$ac_ext >&5
  31005. - rm -rf conftest*
  31006. - eval "ac_cv_header_$ac_safe=no"
  31007. + echo "$as_me: failed program was:" >&5
  31008. +sed 's/^/| /' conftest.$ac_ext >&5
  31009. +
  31010. + ac_header_preproc=no
  31011. +fi
  31012. +rm -f conftest.err conftest.$ac_ext
  31013. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  31014. +echo "${ECHO_T}$ac_header_preproc" >&6
  31015. +
  31016. +# So? What about this header?
  31017. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  31018. + yes:no: )
  31019. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  31020. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  31021. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  31022. +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  31023. + ac_header_preproc=yes
  31024. + ;;
  31025. + no:yes:* )
  31026. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  31027. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  31028. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  31029. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  31030. + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  31031. +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  31032. + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  31033. +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  31034. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  31035. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  31036. + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  31037. +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  31038. + (
  31039. + cat <<\_ASBOX
  31040. +## ------------------------------------------ ##
  31041. +## Report this to the AC_PACKAGE_NAME lists. ##
  31042. +## ------------------------------------------ ##
  31043. +_ASBOX
  31044. + ) |
  31045. + sed "s/^/$as_me: WARNING: /" >&2
  31046. + ;;
  31047. +esac
  31048. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  31049. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  31050. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  31051. + echo $ECHO_N "(cached) $ECHO_C" >&6
  31052. +else
  31053. + eval "$as_ac_Header=\$ac_header_preproc"
  31054. fi
  31055. -rm -f conftest*
  31056. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  31057. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  31058. +
  31059. fi
  31060. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  31061. - echo "$ac_t""yes" 1>&6
  31062. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  31063. - cat >> confdefs.h <<EOF
  31064. -#define $ac_tr_hdr 1
  31065. -EOF
  31066. -
  31067. -else
  31068. - echo "$ac_t""no" 1>&6
  31069. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  31070. + cat >>confdefs.h <<_ACEOF
  31071. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  31072. +_ACEOF
  31073. +
  31074. fi
  31075. +
  31076. done
  31077. - for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
  31078. +
  31079. +
  31080. +
  31081. +
  31082. +
  31083. +
  31084. +
  31085. +
  31086. +
  31087. +
  31088. +
  31089. +for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
  31090. strdup __argz_count __argz_stringify __argz_next
  31091. do
  31092. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  31093. -echo "configure:3222: checking for $ac_func" >&5
  31094. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  31095. - echo $ac_n "(cached) $ac_c" 1>&6
  31096. -else
  31097. - cat > conftest.$ac_ext <<EOF
  31098. -#line 3227 "configure"
  31099. -#include "confdefs.h"
  31100. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  31101. +echo "$as_me:$LINENO: checking for $ac_func" >&5
  31102. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  31103. +if eval "test \"\${$as_ac_var+set}\" = set"; then
  31104. + echo $ECHO_N "(cached) $ECHO_C" >&6
  31105. +else
  31106. + cat >conftest.$ac_ext <<_ACEOF
  31107. +/* confdefs.h. */
  31108. +_ACEOF
  31109. +cat confdefs.h >>conftest.$ac_ext
  31110. +cat >>conftest.$ac_ext <<_ACEOF
  31111. +/* end confdefs.h. */
  31112. +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  31113. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  31114. +#define $ac_func innocuous_$ac_func
  31115. +
  31116. /* System header to define __stub macros and hopefully few prototypes,
  31117. - which can conflict with char $ac_func(); below. */
  31118. -#include <assert.h>
  31119. -/* Override any gcc2 internal prototype to avoid an error. */
  31120. -/* We use char because int might match the return type of a gcc2
  31121. - builtin and then its argument prototype would still apply. */
  31122. -char $ac_func();
  31123. + which can conflict with char $ac_func (); below.
  31124. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  31125. + <limits.h> exists even on freestanding compilers. */
  31126. +
  31127. +#ifdef __STDC__
  31128. +# include <limits.h>
  31129. +#else
  31130. +# include <assert.h>
  31131. +#endif
  31132. -int main() {
  31133. +#undef $ac_func
  31134. +/* Override any gcc2 internal prototype to avoid an error. */
  31135. +#ifdef __cplusplus
  31136. +extern "C"
  31137. +{
  31138. +#endif
  31139. +/* We use char because int might match the return type of a gcc2
  31140. + builtin and then its argument prototype would still apply. */
  31141. +char $ac_func ();
  31142. /* The GNU C library defines this for functions which it implements
  31143. to always fail with ENOSYS. Some functions are actually named
  31144. something starting with __ and the normal name is an alias. */
  31145. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  31146. choke me
  31147. #else
  31148. -$ac_func();
  31149. +char (*f) () = $ac_func;
  31150. +#endif
  31151. +#ifdef __cplusplus
  31152. +}
  31153. #endif
  31154. -; return 0; }
  31155. -EOF
  31156. -if { (eval echo configure:3250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  31157. - rm -rf conftest*
  31158. - eval "ac_cv_func_$ac_func=yes"
  31159. -else
  31160. - echo "configure: failed program was:" >&5
  31161. - cat conftest.$ac_ext >&5
  31162. - rm -rf conftest*
  31163. - eval "ac_cv_func_$ac_func=no"
  31164. -fi
  31165. -rm -f conftest*
  31166. -fi
  31167. +int
  31168. +main ()
  31169. +{
  31170. +return f != $ac_func;
  31171. + ;
  31172. + return 0;
  31173. +}
  31174. +_ACEOF
  31175. +rm -f conftest.$ac_objext conftest$ac_exeext
  31176. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  31177. + (eval $ac_link) 2>conftest.er1
  31178. + ac_status=$?
  31179. + grep -v '^ *+' conftest.er1 >conftest.err
  31180. + rm -f conftest.er1
  31181. + cat conftest.err >&5
  31182. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31183. + (exit $ac_status); } &&
  31184. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  31185. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31186. + (eval $ac_try) 2>&5
  31187. + ac_status=$?
  31188. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31189. + (exit $ac_status); }; } &&
  31190. + { ac_try='test -s conftest$ac_exeext'
  31191. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31192. + (eval $ac_try) 2>&5
  31193. + ac_status=$?
  31194. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31195. + (exit $ac_status); }; }; then
  31196. + eval "$as_ac_var=yes"
  31197. +else
  31198. + echo "$as_me: failed program was:" >&5
  31199. +sed 's/^/| /' conftest.$ac_ext >&5
  31200. +
  31201. +eval "$as_ac_var=no"
  31202. +fi
  31203. +rm -f conftest.err conftest.$ac_objext \
  31204. + conftest$ac_exeext conftest.$ac_ext
  31205. +fi
  31206. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  31207. +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  31208. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  31209. + cat >>confdefs.h <<_ACEOF
  31210. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  31211. +_ACEOF
  31212. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  31213. - echo "$ac_t""yes" 1>&6
  31214. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  31215. - cat >> confdefs.h <<EOF
  31216. -#define $ac_tr_func 1
  31217. -EOF
  31218. -
  31219. -else
  31220. - echo "$ac_t""no" 1>&6
  31221. fi
  31222. done
  31223. if test "${ac_cv_func_stpcpy+set}" != "set"; then
  31224. - for ac_func in stpcpy
  31225. +
  31226. +for ac_func in stpcpy
  31227. do
  31228. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  31229. -echo "configure:3279: checking for $ac_func" >&5
  31230. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  31231. - echo $ac_n "(cached) $ac_c" 1>&6
  31232. -else
  31233. - cat > conftest.$ac_ext <<EOF
  31234. -#line 3284 "configure"
  31235. -#include "confdefs.h"
  31236. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  31237. +echo "$as_me:$LINENO: checking for $ac_func" >&5
  31238. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  31239. +if eval "test \"\${$as_ac_var+set}\" = set"; then
  31240. + echo $ECHO_N "(cached) $ECHO_C" >&6
  31241. +else
  31242. + cat >conftest.$ac_ext <<_ACEOF
  31243. +/* confdefs.h. */
  31244. +_ACEOF
  31245. +cat confdefs.h >>conftest.$ac_ext
  31246. +cat >>conftest.$ac_ext <<_ACEOF
  31247. +/* end confdefs.h. */
  31248. +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  31249. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  31250. +#define $ac_func innocuous_$ac_func
  31251. +
  31252. /* System header to define __stub macros and hopefully few prototypes,
  31253. - which can conflict with char $ac_func(); below. */
  31254. -#include <assert.h>
  31255. -/* Override any gcc2 internal prototype to avoid an error. */
  31256. -/* We use char because int might match the return type of a gcc2
  31257. - builtin and then its argument prototype would still apply. */
  31258. -char $ac_func();
  31259. + which can conflict with char $ac_func (); below.
  31260. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  31261. + <limits.h> exists even on freestanding compilers. */
  31262. +
  31263. +#ifdef __STDC__
  31264. +# include <limits.h>
  31265. +#else
  31266. +# include <assert.h>
  31267. +#endif
  31268. -int main() {
  31269. +#undef $ac_func
  31270. +/* Override any gcc2 internal prototype to avoid an error. */
  31271. +#ifdef __cplusplus
  31272. +extern "C"
  31273. +{
  31274. +#endif
  31275. +/* We use char because int might match the return type of a gcc2
  31276. + builtin and then its argument prototype would still apply. */
  31277. +char $ac_func ();
  31278. /* The GNU C library defines this for functions which it implements
  31279. to always fail with ENOSYS. Some functions are actually named
  31280. something starting with __ and the normal name is an alias. */
  31281. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  31282. choke me
  31283. #else
  31284. -$ac_func();
  31285. +char (*f) () = $ac_func;
  31286. +#endif
  31287. +#ifdef __cplusplus
  31288. +}
  31289. #endif
  31290. -; return 0; }
  31291. -EOF
  31292. -if { (eval echo configure:3307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  31293. - rm -rf conftest*
  31294. - eval "ac_cv_func_$ac_func=yes"
  31295. -else
  31296. - echo "configure: failed program was:" >&5
  31297. - cat conftest.$ac_ext >&5
  31298. - rm -rf conftest*
  31299. - eval "ac_cv_func_$ac_func=no"
  31300. -fi
  31301. -rm -f conftest*
  31302. -fi
  31303. +int
  31304. +main ()
  31305. +{
  31306. +return f != $ac_func;
  31307. + ;
  31308. + return 0;
  31309. +}
  31310. +_ACEOF
  31311. +rm -f conftest.$ac_objext conftest$ac_exeext
  31312. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  31313. + (eval $ac_link) 2>conftest.er1
  31314. + ac_status=$?
  31315. + grep -v '^ *+' conftest.er1 >conftest.err
  31316. + rm -f conftest.er1
  31317. + cat conftest.err >&5
  31318. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31319. + (exit $ac_status); } &&
  31320. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  31321. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31322. + (eval $ac_try) 2>&5
  31323. + ac_status=$?
  31324. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31325. + (exit $ac_status); }; } &&
  31326. + { ac_try='test -s conftest$ac_exeext'
  31327. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31328. + (eval $ac_try) 2>&5
  31329. + ac_status=$?
  31330. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31331. + (exit $ac_status); }; }; then
  31332. + eval "$as_ac_var=yes"
  31333. +else
  31334. + echo "$as_me: failed program was:" >&5
  31335. +sed 's/^/| /' conftest.$ac_ext >&5
  31336. +
  31337. +eval "$as_ac_var=no"
  31338. +fi
  31339. +rm -f conftest.err conftest.$ac_objext \
  31340. + conftest$ac_exeext conftest.$ac_ext
  31341. +fi
  31342. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  31343. +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  31344. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  31345. + cat >>confdefs.h <<_ACEOF
  31346. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  31347. +_ACEOF
  31348. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  31349. - echo "$ac_t""yes" 1>&6
  31350. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  31351. - cat >> confdefs.h <<EOF
  31352. -#define $ac_tr_func 1
  31353. -EOF
  31354. -
  31355. -else
  31356. - echo "$ac_t""no" 1>&6
  31357. fi
  31358. done
  31359. fi
  31360. if test "${ac_cv_func_stpcpy}" = "yes"; then
  31361. - cat >> confdefs.h <<\EOF
  31362. + cat >>confdefs.h <<\_ACEOF
  31363. #define HAVE_STPCPY 1
  31364. -EOF
  31365. +_ACEOF
  31366. fi
  31367. - if test $ac_cv_header_locale_h = yes; then
  31368. - echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
  31369. -echo "configure:3341: checking for LC_MESSAGES" >&5
  31370. -if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
  31371. - echo $ac_n "(cached) $ac_c" 1>&6
  31372. -else
  31373. - cat > conftest.$ac_ext <<EOF
  31374. -#line 3346 "configure"
  31375. -#include "confdefs.h"
  31376. -#include <locale.h>
  31377. -int main() {
  31378. -return LC_MESSAGES
  31379. -; return 0; }
  31380. -EOF
  31381. -if { (eval echo configure:3353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  31382. - rm -rf conftest*
  31383. - am_cv_val_LC_MESSAGES=yes
  31384. -else
  31385. - echo "configure: failed program was:" >&5
  31386. - cat conftest.$ac_ext >&5
  31387. - rm -rf conftest*
  31388. - am_cv_val_LC_MESSAGES=no
  31389. -fi
  31390. -rm -f conftest*
  31391. -fi
  31392. -
  31393. -echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
  31394. - if test $am_cv_val_LC_MESSAGES = yes; then
  31395. - cat >> confdefs.h <<\EOF
  31396. -#define HAVE_LC_MESSAGES 1
  31397. -EOF
  31398. - fi
  31399. - fi
  31400. - echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
  31401. -echo "configure:3374: checking whether NLS is requested" >&5
  31402. + echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  31403. +echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  31404. # Check whether --enable-nls or --disable-nls was given.
  31405. if test "${enable_nls+set}" = set; then
  31406. enableval="$enable_nls"
  31407. USE_NLS=$enableval
  31408. else
  31409. USE_NLS=yes
  31410. -fi
  31411. +fi;
  31412. + echo "$as_me:$LINENO: result: $USE_NLS" >&5
  31413. +echo "${ECHO_T}$USE_NLS" >&6
  31414. - echo "$ac_t""$USE_NLS" 1>&6
  31415. -
  31416. USE_INCLUDED_LIBINTL=no
  31417. @@ -3400,148 +21139,339 @@
  31418. nls_cv_header_libgt=
  31419. CATOBJEXT=NONE
  31420. - ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
  31421. -echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
  31422. -echo "configure:3406: checking for libintl.h" >&5
  31423. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  31424. - echo $ac_n "(cached) $ac_c" 1>&6
  31425. -else
  31426. - cat > conftest.$ac_ext <<EOF
  31427. -#line 3411 "configure"
  31428. -#include "confdefs.h"
  31429. + if test "${ac_cv_header_libintl_h+set}" = set; then
  31430. + echo "$as_me:$LINENO: checking for libintl.h" >&5
  31431. +echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
  31432. +if test "${ac_cv_header_libintl_h+set}" = set; then
  31433. + echo $ECHO_N "(cached) $ECHO_C" >&6
  31434. +fi
  31435. +echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
  31436. +echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
  31437. +else
  31438. + # Is the header compilable?
  31439. +echo "$as_me:$LINENO: checking libintl.h usability" >&5
  31440. +echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
  31441. +cat >conftest.$ac_ext <<_ACEOF
  31442. +/* confdefs.h. */
  31443. +_ACEOF
  31444. +cat confdefs.h >>conftest.$ac_ext
  31445. +cat >>conftest.$ac_ext <<_ACEOF
  31446. +/* end confdefs.h. */
  31447. +$ac_includes_default
  31448. #include <libintl.h>
  31449. -EOF
  31450. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  31451. -{ (eval echo configure:3416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  31452. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  31453. -if test -z "$ac_err"; then
  31454. - rm -rf conftest*
  31455. - eval "ac_cv_header_$ac_safe=yes"
  31456. +_ACEOF
  31457. +rm -f conftest.$ac_objext
  31458. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  31459. + (eval $ac_compile) 2>conftest.er1
  31460. + ac_status=$?
  31461. + grep -v '^ *+' conftest.er1 >conftest.err
  31462. + rm -f conftest.er1
  31463. + cat conftest.err >&5
  31464. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31465. + (exit $ac_status); } &&
  31466. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  31467. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31468. + (eval $ac_try) 2>&5
  31469. + ac_status=$?
  31470. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31471. + (exit $ac_status); }; } &&
  31472. + { ac_try='test -s conftest.$ac_objext'
  31473. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31474. + (eval $ac_try) 2>&5
  31475. + ac_status=$?
  31476. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31477. + (exit $ac_status); }; }; then
  31478. + ac_header_compiler=yes
  31479. +else
  31480. + echo "$as_me: failed program was:" >&5
  31481. +sed 's/^/| /' conftest.$ac_ext >&5
  31482. +
  31483. +ac_header_compiler=no
  31484. +fi
  31485. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  31486. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  31487. +echo "${ECHO_T}$ac_header_compiler" >&6
  31488. +
  31489. +# Is the header present?
  31490. +echo "$as_me:$LINENO: checking libintl.h presence" >&5
  31491. +echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
  31492. +cat >conftest.$ac_ext <<_ACEOF
  31493. +/* confdefs.h. */
  31494. +_ACEOF
  31495. +cat confdefs.h >>conftest.$ac_ext
  31496. +cat >>conftest.$ac_ext <<_ACEOF
  31497. +/* end confdefs.h. */
  31498. +#include <libintl.h>
  31499. +_ACEOF
  31500. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  31501. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  31502. + ac_status=$?
  31503. + grep -v '^ *+' conftest.er1 >conftest.err
  31504. + rm -f conftest.er1
  31505. + cat conftest.err >&5
  31506. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31507. + (exit $ac_status); } >/dev/null; then
  31508. + if test -s conftest.err; then
  31509. + ac_cpp_err=$ac_c_preproc_warn_flag
  31510. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  31511. + else
  31512. + ac_cpp_err=
  31513. + fi
  31514. else
  31515. - echo "$ac_err" >&5
  31516. - echo "configure: failed program was:" >&5
  31517. - cat conftest.$ac_ext >&5
  31518. - rm -rf conftest*
  31519. - eval "ac_cv_header_$ac_safe=no"
  31520. -fi
  31521. -rm -f conftest*
  31522. + ac_cpp_err=yes
  31523. fi
  31524. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  31525. - echo "$ac_t""yes" 1>&6
  31526. - echo $ac_n "checking for dgettext in libc""... $ac_c" 1>&6
  31527. -echo "configure:3433: checking for dgettext in libc" >&5
  31528. -if eval "test \"`echo '$''{'gt_cv_func_dgettext_libc'+set}'`\" = set"; then
  31529. - echo $ac_n "(cached) $ac_c" 1>&6
  31530. +if test -z "$ac_cpp_err"; then
  31531. + ac_header_preproc=yes
  31532. else
  31533. - cat > conftest.$ac_ext <<EOF
  31534. -#line 3438 "configure"
  31535. -#include "confdefs.h"
  31536. + echo "$as_me: failed program was:" >&5
  31537. +sed 's/^/| /' conftest.$ac_ext >&5
  31538. +
  31539. + ac_header_preproc=no
  31540. +fi
  31541. +rm -f conftest.err conftest.$ac_ext
  31542. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  31543. +echo "${ECHO_T}$ac_header_preproc" >&6
  31544. +
  31545. +# So? What about this header?
  31546. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  31547. + yes:no: )
  31548. + { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  31549. +echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  31550. + { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
  31551. +echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
  31552. + ac_header_preproc=yes
  31553. + ;;
  31554. + no:yes:* )
  31555. + { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
  31556. +echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
  31557. + { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
  31558. +echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
  31559. + { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
  31560. +echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
  31561. + { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
  31562. +echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
  31563. + { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
  31564. +echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
  31565. + { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
  31566. +echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
  31567. + (
  31568. + cat <<\_ASBOX
  31569. +## ------------------------------------------ ##
  31570. +## Report this to the AC_PACKAGE_NAME lists. ##
  31571. +## ------------------------------------------ ##
  31572. +_ASBOX
  31573. + ) |
  31574. + sed "s/^/$as_me: WARNING: /" >&2
  31575. + ;;
  31576. +esac
  31577. +echo "$as_me:$LINENO: checking for libintl.h" >&5
  31578. +echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
  31579. +if test "${ac_cv_header_libintl_h+set}" = set; then
  31580. + echo $ECHO_N "(cached) $ECHO_C" >&6
  31581. +else
  31582. + ac_cv_header_libintl_h=$ac_header_preproc
  31583. +fi
  31584. +echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
  31585. +echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
  31586. +
  31587. +fi
  31588. +if test $ac_cv_header_libintl_h = yes; then
  31589. + echo "$as_me:$LINENO: checking for dgettext in libc" >&5
  31590. +echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
  31591. +if test "${gt_cv_func_dgettext_libc+set}" = set; then
  31592. + echo $ECHO_N "(cached) $ECHO_C" >&6
  31593. +else
  31594. + cat >conftest.$ac_ext <<_ACEOF
  31595. +/* confdefs.h. */
  31596. +_ACEOF
  31597. +cat confdefs.h >>conftest.$ac_ext
  31598. +cat >>conftest.$ac_ext <<_ACEOF
  31599. +/* end confdefs.h. */
  31600. #include <libintl.h>
  31601. -int main() {
  31602. +int
  31603. +main ()
  31604. +{
  31605. return (int) dgettext ("","")
  31606. -; return 0; }
  31607. -EOF
  31608. -if { (eval echo configure:3445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  31609. - rm -rf conftest*
  31610. + ;
  31611. + return 0;
  31612. +}
  31613. +_ACEOF
  31614. +rm -f conftest.$ac_objext conftest$ac_exeext
  31615. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  31616. + (eval $ac_link) 2>conftest.er1
  31617. + ac_status=$?
  31618. + grep -v '^ *+' conftest.er1 >conftest.err
  31619. + rm -f conftest.er1
  31620. + cat conftest.err >&5
  31621. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31622. + (exit $ac_status); } &&
  31623. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  31624. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31625. + (eval $ac_try) 2>&5
  31626. + ac_status=$?
  31627. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31628. + (exit $ac_status); }; } &&
  31629. + { ac_try='test -s conftest$ac_exeext'
  31630. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31631. + (eval $ac_try) 2>&5
  31632. + ac_status=$?
  31633. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31634. + (exit $ac_status); }; }; then
  31635. gt_cv_func_dgettext_libc=yes
  31636. else
  31637. - echo "configure: failed program was:" >&5
  31638. - cat conftest.$ac_ext >&5
  31639. - rm -rf conftest*
  31640. - gt_cv_func_dgettext_libc=no
  31641. + echo "$as_me: failed program was:" >&5
  31642. +sed 's/^/| /' conftest.$ac_ext >&5
  31643. +
  31644. +gt_cv_func_dgettext_libc=no
  31645. fi
  31646. -rm -f conftest*
  31647. +rm -f conftest.err conftest.$ac_objext \
  31648. + conftest$ac_exeext conftest.$ac_ext
  31649. fi
  31650. -
  31651. -echo "$ac_t""$gt_cv_func_dgettext_libc" 1>&6
  31652. +echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
  31653. +echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
  31654. if test "$gt_cv_func_dgettext_libc" != "yes"; then
  31655. - echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
  31656. -echo "configure:3461: checking for bindtextdomain in -lintl" >&5
  31657. -ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
  31658. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  31659. - echo $ac_n "(cached) $ac_c" 1>&6
  31660. + echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
  31661. +echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
  31662. +if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
  31663. + echo $ECHO_N "(cached) $ECHO_C" >&6
  31664. else
  31665. - ac_save_LIBS="$LIBS"
  31666. + ac_check_lib_save_LIBS=$LIBS
  31667. LIBS="-lintl $LIBS"
  31668. -cat > conftest.$ac_ext <<EOF
  31669. -#line 3469 "configure"
  31670. -#include "confdefs.h"
  31671. +cat >conftest.$ac_ext <<_ACEOF
  31672. +/* confdefs.h. */
  31673. +_ACEOF
  31674. +cat confdefs.h >>conftest.$ac_ext
  31675. +cat >>conftest.$ac_ext <<_ACEOF
  31676. +/* end confdefs.h. */
  31677. +
  31678. /* Override any gcc2 internal prototype to avoid an error. */
  31679. +#ifdef __cplusplus
  31680. +extern "C"
  31681. +#endif
  31682. /* We use char because int might match the return type of a gcc2
  31683. - builtin and then its argument prototype would still apply. */
  31684. -char bindtextdomain();
  31685. -
  31686. -int main() {
  31687. -bindtextdomain()
  31688. -; return 0; }
  31689. -EOF
  31690. -if { (eval echo configure:3480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  31691. - rm -rf conftest*
  31692. - eval "ac_cv_lib_$ac_lib_var=yes"
  31693. -else
  31694. - echo "configure: failed program was:" >&5
  31695. - cat conftest.$ac_ext >&5
  31696. - rm -rf conftest*
  31697. - eval "ac_cv_lib_$ac_lib_var=no"
  31698. -fi
  31699. -rm -f conftest*
  31700. -LIBS="$ac_save_LIBS"
  31701. -
  31702. -fi
  31703. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  31704. - echo "$ac_t""yes" 1>&6
  31705. - echo $ac_n "checking for dgettext in libintl""... $ac_c" 1>&6
  31706. -echo "configure:3496: checking for dgettext in libintl" >&5
  31707. -if eval "test \"`echo '$''{'gt_cv_func_dgettext_libintl'+set}'`\" = set"; then
  31708. - echo $ac_n "(cached) $ac_c" 1>&6
  31709. -else
  31710. - echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
  31711. -echo "configure:3501: checking for dgettext in -lintl" >&5
  31712. -ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
  31713. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  31714. - echo $ac_n "(cached) $ac_c" 1>&6
  31715. + builtin and then its argument prototype would still apply. */
  31716. +char bindtextdomain ();
  31717. +int
  31718. +main ()
  31719. +{
  31720. +bindtextdomain ();
  31721. + ;
  31722. + return 0;
  31723. +}
  31724. +_ACEOF
  31725. +rm -f conftest.$ac_objext conftest$ac_exeext
  31726. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  31727. + (eval $ac_link) 2>conftest.er1
  31728. + ac_status=$?
  31729. + grep -v '^ *+' conftest.er1 >conftest.err
  31730. + rm -f conftest.er1
  31731. + cat conftest.err >&5
  31732. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31733. + (exit $ac_status); } &&
  31734. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  31735. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31736. + (eval $ac_try) 2>&5
  31737. + ac_status=$?
  31738. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31739. + (exit $ac_status); }; } &&
  31740. + { ac_try='test -s conftest$ac_exeext'
  31741. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31742. + (eval $ac_try) 2>&5
  31743. + ac_status=$?
  31744. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31745. + (exit $ac_status); }; }; then
  31746. + ac_cv_lib_intl_bindtextdomain=yes
  31747. +else
  31748. + echo "$as_me: failed program was:" >&5
  31749. +sed 's/^/| /' conftest.$ac_ext >&5
  31750. +
  31751. +ac_cv_lib_intl_bindtextdomain=no
  31752. +fi
  31753. +rm -f conftest.err conftest.$ac_objext \
  31754. + conftest$ac_exeext conftest.$ac_ext
  31755. +LIBS=$ac_check_lib_save_LIBS
  31756. +fi
  31757. +echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
  31758. +echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
  31759. +if test $ac_cv_lib_intl_bindtextdomain = yes; then
  31760. + echo "$as_me:$LINENO: checking for dgettext in libintl" >&5
  31761. +echo $ECHO_N "checking for dgettext in libintl... $ECHO_C" >&6
  31762. +if test "${gt_cv_func_dgettext_libintl+set}" = set; then
  31763. + echo $ECHO_N "(cached) $ECHO_C" >&6
  31764. +else
  31765. + echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
  31766. +echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
  31767. +if test "${ac_cv_lib_intl_dgettext+set}" = set; then
  31768. + echo $ECHO_N "(cached) $ECHO_C" >&6
  31769. else
  31770. - ac_save_LIBS="$LIBS"
  31771. + ac_check_lib_save_LIBS=$LIBS
  31772. LIBS="-lintl $LIBS"
  31773. -cat > conftest.$ac_ext <<EOF
  31774. -#line 3509 "configure"
  31775. -#include "confdefs.h"
  31776. +cat >conftest.$ac_ext <<_ACEOF
  31777. +/* confdefs.h. */
  31778. +_ACEOF
  31779. +cat confdefs.h >>conftest.$ac_ext
  31780. +cat >>conftest.$ac_ext <<_ACEOF
  31781. +/* end confdefs.h. */
  31782. +
  31783. /* Override any gcc2 internal prototype to avoid an error. */
  31784. +#ifdef __cplusplus
  31785. +extern "C"
  31786. +#endif
  31787. /* We use char because int might match the return type of a gcc2
  31788. - builtin and then its argument prototype would still apply. */
  31789. -char dgettext();
  31790. -
  31791. -int main() {
  31792. -dgettext()
  31793. -; return 0; }
  31794. -EOF
  31795. -if { (eval echo configure:3520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  31796. - rm -rf conftest*
  31797. - eval "ac_cv_lib_$ac_lib_var=yes"
  31798. -else
  31799. - echo "configure: failed program was:" >&5
  31800. - cat conftest.$ac_ext >&5
  31801. - rm -rf conftest*
  31802. - eval "ac_cv_lib_$ac_lib_var=no"
  31803. -fi
  31804. -rm -f conftest*
  31805. -LIBS="$ac_save_LIBS"
  31806. -
  31807. -fi
  31808. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  31809. - echo "$ac_t""yes" 1>&6
  31810. + builtin and then its argument prototype would still apply. */
  31811. +char dgettext ();
  31812. +int
  31813. +main ()
  31814. +{
  31815. +dgettext ();
  31816. + ;
  31817. + return 0;
  31818. +}
  31819. +_ACEOF
  31820. +rm -f conftest.$ac_objext conftest$ac_exeext
  31821. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  31822. + (eval $ac_link) 2>conftest.er1
  31823. + ac_status=$?
  31824. + grep -v '^ *+' conftest.er1 >conftest.err
  31825. + rm -f conftest.er1
  31826. + cat conftest.err >&5
  31827. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31828. + (exit $ac_status); } &&
  31829. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  31830. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31831. + (eval $ac_try) 2>&5
  31832. + ac_status=$?
  31833. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31834. + (exit $ac_status); }; } &&
  31835. + { ac_try='test -s conftest$ac_exeext'
  31836. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31837. + (eval $ac_try) 2>&5
  31838. + ac_status=$?
  31839. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31840. + (exit $ac_status); }; }; then
  31841. + ac_cv_lib_intl_dgettext=yes
  31842. +else
  31843. + echo "$as_me: failed program was:" >&5
  31844. +sed 's/^/| /' conftest.$ac_ext >&5
  31845. +
  31846. +ac_cv_lib_intl_dgettext=no
  31847. +fi
  31848. +rm -f conftest.err conftest.$ac_objext \
  31849. + conftest$ac_exeext conftest.$ac_ext
  31850. +LIBS=$ac_check_lib_save_LIBS
  31851. +fi
  31852. +echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
  31853. +echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
  31854. +if test $ac_cv_lib_intl_dgettext = yes; then
  31855. gt_cv_func_dgettext_libintl=yes
  31856. else
  31857. - echo "$ac_t""no" 1>&6
  31858. -gt_cv_func_dgettext_libintl=no
  31859. + gt_cv_func_dgettext_libintl=no
  31860. fi
  31861. fi
  31862. -
  31863. -echo "$ac_t""$gt_cv_func_dgettext_libintl" 1>&6
  31864. -else
  31865. - echo "$ac_t""no" 1>&6
  31866. +echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libintl" >&5
  31867. +echo "${ECHO_T}$gt_cv_func_dgettext_libintl" >&6
  31868. fi
  31869. fi
  31870. @@ -3552,190 +21482,337 @@
  31871. if test "$gt_cv_func_dgettext_libc" = "yes" \
  31872. || test "$gt_cv_func_dgettext_libintl" = "yes"; then
  31873. - cat >> confdefs.h <<\EOF
  31874. + cat >>confdefs.h <<\_ACEOF
  31875. #define HAVE_GETTEXT 1
  31876. -EOF
  31877. +_ACEOF
  31878. +
  31879. +
  31880. +# Prepare PATH_SEPARATOR.
  31881. +# The user is always right.
  31882. +if test "${PATH_SEPARATOR+set}" != set; then
  31883. + echo "#! /bin/sh" >conf$$.sh
  31884. + echo "exit 0" >>conf$$.sh
  31885. + chmod +x conf$$.sh
  31886. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  31887. + PATH_SEPARATOR=';'
  31888. + else
  31889. + PATH_SEPARATOR=:
  31890. + fi
  31891. + rm -f conf$$.sh
  31892. +fi
  31893. +
  31894. +# Find out how to test for executable files. Don't use a zero-byte file,
  31895. +# as systems may use methods other than mode bits to determine executability.
  31896. +cat >conf$$.file <<_ASEOF
  31897. +#! /bin/sh
  31898. +exit 0
  31899. +_ASEOF
  31900. +chmod +x conf$$.file
  31901. +if test -x conf$$.file >/dev/null 2>&1; then
  31902. + ac_executable_p="test -x"
  31903. +else
  31904. + ac_executable_p="test -f"
  31905. +fi
  31906. +rm -f conf$$.file
  31907. - # Extract the first word of "msgfmt", so it can be a program name with args.
  31908. +# Extract the first word of "msgfmt", so it can be a program name with args.
  31909. set dummy msgfmt; ac_word=$2
  31910. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  31911. -echo "configure:3563: checking for $ac_word" >&5
  31912. -if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
  31913. - echo $ac_n "(cached) $ac_c" 1>&6
  31914. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  31915. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  31916. +if test "${ac_cv_path_MSGFMT+set}" = set; then
  31917. + echo $ECHO_N "(cached) $ECHO_C" >&6
  31918. else
  31919. case "$MSGFMT" in
  31920. - /*)
  31921. - ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  31922. - ;;
  31923. + [\\/]* | ?:[\\/]*)
  31924. + ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  31925. + ;;
  31926. *)
  31927. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  31928. - for ac_dir in $PATH; do
  31929. - test -z "$ac_dir" && ac_dir=.
  31930. - if test -f $ac_dir/$ac_word; then
  31931. - if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  31932. - ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  31933. - break
  31934. - fi
  31935. - fi
  31936. - done
  31937. - IFS="$ac_save_ifs"
  31938. + ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  31939. + for ac_dir in $PATH; do
  31940. + IFS="$ac_save_IFS"
  31941. + test -z "$ac_dir" && ac_dir=.
  31942. + for ac_exec_ext in '' $ac_executable_extensions; do
  31943. + if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  31944. + echo "$as_me: trying $ac_dir/$ac_word..." >&5
  31945. + if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  31946. + ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  31947. + break 2
  31948. + fi
  31949. + fi
  31950. + done
  31951. + done
  31952. + IFS="$ac_save_IFS"
  31953. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
  31954. - ;;
  31955. + ;;
  31956. esac
  31957. fi
  31958. MSGFMT="$ac_cv_path_MSGFMT"
  31959. -if test -n "$MSGFMT"; then
  31960. - echo "$ac_t""$MSGFMT" 1>&6
  31961. +if test "$MSGFMT" != "no"; then
  31962. + echo "$as_me:$LINENO: result: $MSGFMT" >&5
  31963. +echo "${ECHO_T}$MSGFMT" >&6
  31964. else
  31965. - echo "$ac_t""no" 1>&6
  31966. + echo "$as_me:$LINENO: result: no" >&5
  31967. +echo "${ECHO_T}no" >&6
  31968. fi
  31969. if test "$MSGFMT" != "no"; then
  31970. - for ac_func in dcgettext
  31971. +
  31972. +for ac_func in dcgettext
  31973. do
  31974. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  31975. -echo "configure:3597: checking for $ac_func" >&5
  31976. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  31977. - echo $ac_n "(cached) $ac_c" 1>&6
  31978. -else
  31979. - cat > conftest.$ac_ext <<EOF
  31980. -#line 3602 "configure"
  31981. -#include "confdefs.h"
  31982. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  31983. +echo "$as_me:$LINENO: checking for $ac_func" >&5
  31984. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  31985. +if eval "test \"\${$as_ac_var+set}\" = set"; then
  31986. + echo $ECHO_N "(cached) $ECHO_C" >&6
  31987. +else
  31988. + cat >conftest.$ac_ext <<_ACEOF
  31989. +/* confdefs.h. */
  31990. +_ACEOF
  31991. +cat confdefs.h >>conftest.$ac_ext
  31992. +cat >>conftest.$ac_ext <<_ACEOF
  31993. +/* end confdefs.h. */
  31994. +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  31995. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  31996. +#define $ac_func innocuous_$ac_func
  31997. +
  31998. /* System header to define __stub macros and hopefully few prototypes,
  31999. - which can conflict with char $ac_func(); below. */
  32000. -#include <assert.h>
  32001. -/* Override any gcc2 internal prototype to avoid an error. */
  32002. -/* We use char because int might match the return type of a gcc2
  32003. - builtin and then its argument prototype would still apply. */
  32004. -char $ac_func();
  32005. + which can conflict with char $ac_func (); below.
  32006. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  32007. + <limits.h> exists even on freestanding compilers. */
  32008. +
  32009. +#ifdef __STDC__
  32010. +# include <limits.h>
  32011. +#else
  32012. +# include <assert.h>
  32013. +#endif
  32014. -int main() {
  32015. +#undef $ac_func
  32016. +/* Override any gcc2 internal prototype to avoid an error. */
  32017. +#ifdef __cplusplus
  32018. +extern "C"
  32019. +{
  32020. +#endif
  32021. +/* We use char because int might match the return type of a gcc2
  32022. + builtin and then its argument prototype would still apply. */
  32023. +char $ac_func ();
  32024. /* The GNU C library defines this for functions which it implements
  32025. to always fail with ENOSYS. Some functions are actually named
  32026. something starting with __ and the normal name is an alias. */
  32027. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  32028. choke me
  32029. #else
  32030. -$ac_func();
  32031. +char (*f) () = $ac_func;
  32032. +#endif
  32033. +#ifdef __cplusplus
  32034. +}
  32035. #endif
  32036. -; return 0; }
  32037. -EOF
  32038. -if { (eval echo configure:3625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  32039. - rm -rf conftest*
  32040. - eval "ac_cv_func_$ac_func=yes"
  32041. -else
  32042. - echo "configure: failed program was:" >&5
  32043. - cat conftest.$ac_ext >&5
  32044. - rm -rf conftest*
  32045. - eval "ac_cv_func_$ac_func=no"
  32046. -fi
  32047. -rm -f conftest*
  32048. -fi
  32049. +int
  32050. +main ()
  32051. +{
  32052. +return f != $ac_func;
  32053. + ;
  32054. + return 0;
  32055. +}
  32056. +_ACEOF
  32057. +rm -f conftest.$ac_objext conftest$ac_exeext
  32058. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  32059. + (eval $ac_link) 2>conftest.er1
  32060. + ac_status=$?
  32061. + grep -v '^ *+' conftest.er1 >conftest.err
  32062. + rm -f conftest.er1
  32063. + cat conftest.err >&5
  32064. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32065. + (exit $ac_status); } &&
  32066. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  32067. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32068. + (eval $ac_try) 2>&5
  32069. + ac_status=$?
  32070. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32071. + (exit $ac_status); }; } &&
  32072. + { ac_try='test -s conftest$ac_exeext'
  32073. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32074. + (eval $ac_try) 2>&5
  32075. + ac_status=$?
  32076. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32077. + (exit $ac_status); }; }; then
  32078. + eval "$as_ac_var=yes"
  32079. +else
  32080. + echo "$as_me: failed program was:" >&5
  32081. +sed 's/^/| /' conftest.$ac_ext >&5
  32082. +
  32083. +eval "$as_ac_var=no"
  32084. +fi
  32085. +rm -f conftest.err conftest.$ac_objext \
  32086. + conftest$ac_exeext conftest.$ac_ext
  32087. +fi
  32088. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  32089. +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  32090. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  32091. + cat >>confdefs.h <<_ACEOF
  32092. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  32093. +_ACEOF
  32094. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  32095. - echo "$ac_t""yes" 1>&6
  32096. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  32097. - cat >> confdefs.h <<EOF
  32098. -#define $ac_tr_func 1
  32099. -EOF
  32100. -
  32101. -else
  32102. - echo "$ac_t""no" 1>&6
  32103. fi
  32104. done
  32105. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  32106. set dummy gmsgfmt; ac_word=$2
  32107. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  32108. -echo "configure:3652: checking for $ac_word" >&5
  32109. -if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  32110. - echo $ac_n "(cached) $ac_c" 1>&6
  32111. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  32112. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  32113. +if test "${ac_cv_path_GMSGFMT+set}" = set; then
  32114. + echo $ECHO_N "(cached) $ECHO_C" >&6
  32115. else
  32116. - case "$GMSGFMT" in
  32117. - /*)
  32118. + case $GMSGFMT in
  32119. + [\\/]* | ?:[\\/]*)
  32120. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  32121. ;;
  32122. - ?:/*)
  32123. - ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
  32124. - ;;
  32125. *)
  32126. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  32127. - ac_dummy="$PATH"
  32128. - for ac_dir in $ac_dummy; do
  32129. - test -z "$ac_dir" && ac_dir=.
  32130. - if test -f $ac_dir/$ac_word; then
  32131. - ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  32132. - break
  32133. - fi
  32134. - done
  32135. - IFS="$ac_save_ifs"
  32136. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  32137. +for as_dir in $PATH
  32138. +do
  32139. + IFS=$as_save_IFS
  32140. + test -z "$as_dir" && as_dir=.
  32141. + for ac_exec_ext in '' $ac_executable_extensions; do
  32142. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  32143. + ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  32144. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  32145. + break 2
  32146. + fi
  32147. +done
  32148. +done
  32149. +
  32150. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  32151. ;;
  32152. esac
  32153. fi
  32154. -GMSGFMT="$ac_cv_path_GMSGFMT"
  32155. +GMSGFMT=$ac_cv_path_GMSGFMT
  32156. +
  32157. if test -n "$GMSGFMT"; then
  32158. - echo "$ac_t""$GMSGFMT" 1>&6
  32159. + echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  32160. +echo "${ECHO_T}$GMSGFMT" >&6
  32161. +else
  32162. + echo "$as_me:$LINENO: result: no" >&5
  32163. +echo "${ECHO_T}no" >&6
  32164. +fi
  32165. +
  32166. +
  32167. +# Prepare PATH_SEPARATOR.
  32168. +# The user is always right.
  32169. +if test "${PATH_SEPARATOR+set}" != set; then
  32170. + echo "#! /bin/sh" >conf$$.sh
  32171. + echo "exit 0" >>conf$$.sh
  32172. + chmod +x conf$$.sh
  32173. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  32174. + PATH_SEPARATOR=';'
  32175. + else
  32176. + PATH_SEPARATOR=:
  32177. + fi
  32178. + rm -f conf$$.sh
  32179. +fi
  32180. +
  32181. +# Find out how to test for executable files. Don't use a zero-byte file,
  32182. +# as systems may use methods other than mode bits to determine executability.
  32183. +cat >conf$$.file <<_ASEOF
  32184. +#! /bin/sh
  32185. +exit 0
  32186. +_ASEOF
  32187. +chmod +x conf$$.file
  32188. +if test -x conf$$.file >/dev/null 2>&1; then
  32189. + ac_executable_p="test -x"
  32190. else
  32191. - echo "$ac_t""no" 1>&6
  32192. + ac_executable_p="test -f"
  32193. fi
  32194. +rm -f conf$$.file
  32195. - # Extract the first word of "xgettext", so it can be a program name with args.
  32196. +# Extract the first word of "xgettext", so it can be a program name with args.
  32197. set dummy xgettext; ac_word=$2
  32198. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  32199. -echo "configure:3688: checking for $ac_word" >&5
  32200. -if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  32201. - echo $ac_n "(cached) $ac_c" 1>&6
  32202. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  32203. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  32204. +if test "${ac_cv_path_XGETTEXT+set}" = set; then
  32205. + echo $ECHO_N "(cached) $ECHO_C" >&6
  32206. else
  32207. case "$XGETTEXT" in
  32208. - /*)
  32209. - ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  32210. - ;;
  32211. + [\\/]* | ?:[\\/]*)
  32212. + ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  32213. + ;;
  32214. *)
  32215. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  32216. - for ac_dir in $PATH; do
  32217. - test -z "$ac_dir" && ac_dir=.
  32218. - if test -f $ac_dir/$ac_word; then
  32219. - if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  32220. - ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  32221. - break
  32222. - fi
  32223. - fi
  32224. - done
  32225. - IFS="$ac_save_ifs"
  32226. + ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  32227. + for ac_dir in $PATH; do
  32228. + IFS="$ac_save_IFS"
  32229. + test -z "$ac_dir" && ac_dir=.
  32230. + for ac_exec_ext in '' $ac_executable_extensions; do
  32231. + if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  32232. + echo "$as_me: trying $ac_dir/$ac_word..." >&5
  32233. + if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  32234. + ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  32235. + break 2
  32236. + fi
  32237. + fi
  32238. + done
  32239. + done
  32240. + IFS="$ac_save_IFS"
  32241. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  32242. - ;;
  32243. + ;;
  32244. esac
  32245. fi
  32246. XGETTEXT="$ac_cv_path_XGETTEXT"
  32247. -if test -n "$XGETTEXT"; then
  32248. - echo "$ac_t""$XGETTEXT" 1>&6
  32249. -else
  32250. - echo "$ac_t""no" 1>&6
  32251. +if test "$XGETTEXT" != ":"; then
  32252. + echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  32253. +echo "${ECHO_T}$XGETTEXT" >&6
  32254. +else
  32255. + echo "$as_me:$LINENO: result: no" >&5
  32256. +echo "${ECHO_T}no" >&6
  32257. fi
  32258. - cat > conftest.$ac_ext <<EOF
  32259. -#line 3720 "configure"
  32260. -#include "confdefs.h"
  32261. + cat >conftest.$ac_ext <<_ACEOF
  32262. +/* confdefs.h. */
  32263. +_ACEOF
  32264. +cat confdefs.h >>conftest.$ac_ext
  32265. +cat >>conftest.$ac_ext <<_ACEOF
  32266. +/* end confdefs.h. */
  32267. -int main() {
  32268. +int
  32269. +main ()
  32270. +{
  32271. extern int _nl_msg_cat_cntr;
  32272. return _nl_msg_cat_cntr
  32273. -; return 0; }
  32274. -EOF
  32275. -if { (eval echo configure:3728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  32276. - rm -rf conftest*
  32277. + ;
  32278. + return 0;
  32279. +}
  32280. +_ACEOF
  32281. +rm -f conftest.$ac_objext conftest$ac_exeext
  32282. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  32283. + (eval $ac_link) 2>conftest.er1
  32284. + ac_status=$?
  32285. + grep -v '^ *+' conftest.er1 >conftest.err
  32286. + rm -f conftest.er1
  32287. + cat conftest.err >&5
  32288. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32289. + (exit $ac_status); } &&
  32290. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  32291. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32292. + (eval $ac_try) 2>&5
  32293. + ac_status=$?
  32294. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32295. + (exit $ac_status); }; } &&
  32296. + { ac_try='test -s conftest$ac_exeext'
  32297. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32298. + (eval $ac_try) 2>&5
  32299. + ac_status=$?
  32300. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32301. + (exit $ac_status); }; }; then
  32302. CATOBJEXT=.gmo
  32303. DATADIRNAME=share
  32304. else
  32305. - echo "configure: failed program was:" >&5
  32306. - cat conftest.$ac_ext >&5
  32307. - rm -rf conftest*
  32308. - CATOBJEXT=.mo
  32309. + echo "$as_me: failed program was:" >&5
  32310. +sed 's/^/| /' conftest.$ac_ext >&5
  32311. +
  32312. +CATOBJEXT=.mo
  32313. DATADIRNAME=lib
  32314. fi
  32315. -rm -f conftest*
  32316. +rm -f conftest.err conftest.$ac_objext \
  32317. + conftest$ac_exeext conftest.$ac_ext
  32318. INSTOBJEXT=.mo
  32319. fi
  32320. fi
  32321. @@ -3746,151 +21823,226 @@
  32322. INTLLIBS=-lintl
  32323. LIBS=`echo $LIBS | sed -e 's/-lintl//'`
  32324. fi
  32325. -
  32326. -else
  32327. - echo "$ac_t""no" 1>&6
  32328. +
  32329. fi
  32330. +
  32331. if test "$CATOBJEXT" = "NONE"; then
  32332. - echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
  32333. -echo "configure:3758: checking whether catgets can be used" >&5
  32334. - # Check whether --with-catgets or --without-catgets was given.
  32335. + echo "$as_me:$LINENO: checking whether catgets can be used" >&5
  32336. +echo $ECHO_N "checking whether catgets can be used... $ECHO_C" >&6
  32337. +
  32338. +# Check whether --with-catgets or --without-catgets was given.
  32339. if test "${with_catgets+set}" = set; then
  32340. withval="$with_catgets"
  32341. nls_cv_use_catgets=$withval
  32342. else
  32343. nls_cv_use_catgets=no
  32344. -fi
  32345. -
  32346. - echo "$ac_t""$nls_cv_use_catgets" 1>&6
  32347. +fi;
  32348. + echo "$as_me:$LINENO: result: $nls_cv_use_catgets" >&5
  32349. +echo "${ECHO_T}$nls_cv_use_catgets" >&6
  32350. if test "$nls_cv_use_catgets" = "yes"; then
  32351. - echo $ac_n "checking for main in -li""... $ac_c" 1>&6
  32352. -echo "configure:3771: checking for main in -li" >&5
  32353. -ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
  32354. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  32355. - echo $ac_n "(cached) $ac_c" 1>&6
  32356. +
  32357. +echo "$as_me:$LINENO: checking for main in -li" >&5
  32358. +echo $ECHO_N "checking for main in -li... $ECHO_C" >&6
  32359. +if test "${ac_cv_lib_i_main+set}" = set; then
  32360. + echo $ECHO_N "(cached) $ECHO_C" >&6
  32361. else
  32362. - ac_save_LIBS="$LIBS"
  32363. + ac_check_lib_save_LIBS=$LIBS
  32364. LIBS="-li $LIBS"
  32365. -cat > conftest.$ac_ext <<EOF
  32366. -#line 3779 "configure"
  32367. -#include "confdefs.h"
  32368. +cat >conftest.$ac_ext <<_ACEOF
  32369. +/* confdefs.h. */
  32370. +_ACEOF
  32371. +cat confdefs.h >>conftest.$ac_ext
  32372. +cat >>conftest.$ac_ext <<_ACEOF
  32373. +/* end confdefs.h. */
  32374. -int main() {
  32375. -main()
  32376. -; return 0; }
  32377. -EOF
  32378. -if { (eval echo configure:3786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  32379. - rm -rf conftest*
  32380. - eval "ac_cv_lib_$ac_lib_var=yes"
  32381. -else
  32382. - echo "configure: failed program was:" >&5
  32383. - cat conftest.$ac_ext >&5
  32384. - rm -rf conftest*
  32385. - eval "ac_cv_lib_$ac_lib_var=no"
  32386. -fi
  32387. -rm -f conftest*
  32388. -LIBS="$ac_save_LIBS"
  32389. -fi
  32390. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  32391. - echo "$ac_t""yes" 1>&6
  32392. - ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  32393. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  32394. - cat >> confdefs.h <<EOF
  32395. -#define $ac_tr_lib 1
  32396. -EOF
  32397. +int
  32398. +main ()
  32399. +{
  32400. +main ();
  32401. + ;
  32402. + return 0;
  32403. +}
  32404. +_ACEOF
  32405. +rm -f conftest.$ac_objext conftest$ac_exeext
  32406. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  32407. + (eval $ac_link) 2>conftest.er1
  32408. + ac_status=$?
  32409. + grep -v '^ *+' conftest.er1 >conftest.err
  32410. + rm -f conftest.er1
  32411. + cat conftest.err >&5
  32412. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32413. + (exit $ac_status); } &&
  32414. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  32415. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32416. + (eval $ac_try) 2>&5
  32417. + ac_status=$?
  32418. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32419. + (exit $ac_status); }; } &&
  32420. + { ac_try='test -s conftest$ac_exeext'
  32421. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32422. + (eval $ac_try) 2>&5
  32423. + ac_status=$?
  32424. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32425. + (exit $ac_status); }; }; then
  32426. + ac_cv_lib_i_main=yes
  32427. +else
  32428. + echo "$as_me: failed program was:" >&5
  32429. +sed 's/^/| /' conftest.$ac_ext >&5
  32430. +
  32431. +ac_cv_lib_i_main=no
  32432. +fi
  32433. +rm -f conftest.err conftest.$ac_objext \
  32434. + conftest$ac_exeext conftest.$ac_ext
  32435. +LIBS=$ac_check_lib_save_LIBS
  32436. +fi
  32437. +echo "$as_me:$LINENO: result: $ac_cv_lib_i_main" >&5
  32438. +echo "${ECHO_T}$ac_cv_lib_i_main" >&6
  32439. +if test $ac_cv_lib_i_main = yes; then
  32440. + cat >>confdefs.h <<_ACEOF
  32441. +#define HAVE_LIBI 1
  32442. +_ACEOF
  32443. LIBS="-li $LIBS"
  32444. -else
  32445. - echo "$ac_t""no" 1>&6
  32446. fi
  32447. - echo $ac_n "checking for catgets""... $ac_c" 1>&6
  32448. -echo "configure:3814: checking for catgets" >&5
  32449. -if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
  32450. - echo $ac_n "(cached) $ac_c" 1>&6
  32451. -else
  32452. - cat > conftest.$ac_ext <<EOF
  32453. -#line 3819 "configure"
  32454. -#include "confdefs.h"
  32455. + echo "$as_me:$LINENO: checking for catgets" >&5
  32456. +echo $ECHO_N "checking for catgets... $ECHO_C" >&6
  32457. +if test "${ac_cv_func_catgets+set}" = set; then
  32458. + echo $ECHO_N "(cached) $ECHO_C" >&6
  32459. +else
  32460. + cat >conftest.$ac_ext <<_ACEOF
  32461. +/* confdefs.h. */
  32462. +_ACEOF
  32463. +cat confdefs.h >>conftest.$ac_ext
  32464. +cat >>conftest.$ac_ext <<_ACEOF
  32465. +/* end confdefs.h. */
  32466. +/* Define catgets to an innocuous variant, in case <limits.h> declares catgets.
  32467. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  32468. +#define catgets innocuous_catgets
  32469. +
  32470. /* System header to define __stub macros and hopefully few prototypes,
  32471. - which can conflict with char catgets(); below. */
  32472. -#include <assert.h>
  32473. -/* Override any gcc2 internal prototype to avoid an error. */
  32474. -/* We use char because int might match the return type of a gcc2
  32475. - builtin and then its argument prototype would still apply. */
  32476. -char catgets();
  32477. + which can conflict with char catgets (); below.
  32478. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  32479. + <limits.h> exists even on freestanding compilers. */
  32480. +
  32481. +#ifdef __STDC__
  32482. +# include <limits.h>
  32483. +#else
  32484. +# include <assert.h>
  32485. +#endif
  32486. -int main() {
  32487. +#undef catgets
  32488. +/* Override any gcc2 internal prototype to avoid an error. */
  32489. +#ifdef __cplusplus
  32490. +extern "C"
  32491. +{
  32492. +#endif
  32493. +/* We use char because int might match the return type of a gcc2
  32494. + builtin and then its argument prototype would still apply. */
  32495. +char catgets ();
  32496. /* The GNU C library defines this for functions which it implements
  32497. to always fail with ENOSYS. Some functions are actually named
  32498. something starting with __ and the normal name is an alias. */
  32499. #if defined (__stub_catgets) || defined (__stub___catgets)
  32500. choke me
  32501. #else
  32502. -catgets();
  32503. +char (*f) () = catgets;
  32504. +#endif
  32505. +#ifdef __cplusplus
  32506. +}
  32507. #endif
  32508. -; return 0; }
  32509. -EOF
  32510. -if { (eval echo configure:3842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  32511. - rm -rf conftest*
  32512. - eval "ac_cv_func_catgets=yes"
  32513. -else
  32514. - echo "configure: failed program was:" >&5
  32515. - cat conftest.$ac_ext >&5
  32516. - rm -rf conftest*
  32517. - eval "ac_cv_func_catgets=no"
  32518. -fi
  32519. -rm -f conftest*
  32520. -fi
  32521. -
  32522. -if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
  32523. - echo "$ac_t""yes" 1>&6
  32524. - cat >> confdefs.h <<\EOF
  32525. +int
  32526. +main ()
  32527. +{
  32528. +return f != catgets;
  32529. + ;
  32530. + return 0;
  32531. +}
  32532. +_ACEOF
  32533. +rm -f conftest.$ac_objext conftest$ac_exeext
  32534. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  32535. + (eval $ac_link) 2>conftest.er1
  32536. + ac_status=$?
  32537. + grep -v '^ *+' conftest.er1 >conftest.err
  32538. + rm -f conftest.er1
  32539. + cat conftest.err >&5
  32540. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32541. + (exit $ac_status); } &&
  32542. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  32543. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32544. + (eval $ac_try) 2>&5
  32545. + ac_status=$?
  32546. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32547. + (exit $ac_status); }; } &&
  32548. + { ac_try='test -s conftest$ac_exeext'
  32549. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32550. + (eval $ac_try) 2>&5
  32551. + ac_status=$?
  32552. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32553. + (exit $ac_status); }; }; then
  32554. + ac_cv_func_catgets=yes
  32555. +else
  32556. + echo "$as_me: failed program was:" >&5
  32557. +sed 's/^/| /' conftest.$ac_ext >&5
  32558. +
  32559. +ac_cv_func_catgets=no
  32560. +fi
  32561. +rm -f conftest.err conftest.$ac_objext \
  32562. + conftest$ac_exeext conftest.$ac_ext
  32563. +fi
  32564. +echo "$as_me:$LINENO: result: $ac_cv_func_catgets" >&5
  32565. +echo "${ECHO_T}$ac_cv_func_catgets" >&6
  32566. +if test $ac_cv_func_catgets = yes; then
  32567. + cat >>confdefs.h <<\_ACEOF
  32568. #define HAVE_CATGETS 1
  32569. -EOF
  32570. +_ACEOF
  32571. INTLOBJS="\$(CATOBJS)"
  32572. # Extract the first word of "gencat", so it can be a program name with args.
  32573. set dummy gencat; ac_word=$2
  32574. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  32575. -echo "configure:3864: checking for $ac_word" >&5
  32576. -if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
  32577. - echo $ac_n "(cached) $ac_c" 1>&6
  32578. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  32579. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  32580. +if test "${ac_cv_path_GENCAT+set}" = set; then
  32581. + echo $ECHO_N "(cached) $ECHO_C" >&6
  32582. else
  32583. - case "$GENCAT" in
  32584. - /*)
  32585. + case $GENCAT in
  32586. + [\\/]* | ?:[\\/]*)
  32587. ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
  32588. ;;
  32589. - ?:/*)
  32590. - ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
  32591. - ;;
  32592. *)
  32593. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  32594. - ac_dummy="$PATH"
  32595. - for ac_dir in $ac_dummy; do
  32596. - test -z "$ac_dir" && ac_dir=.
  32597. - if test -f $ac_dir/$ac_word; then
  32598. - ac_cv_path_GENCAT="$ac_dir/$ac_word"
  32599. - break
  32600. - fi
  32601. - done
  32602. - IFS="$ac_save_ifs"
  32603. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  32604. +for as_dir in $PATH
  32605. +do
  32606. + IFS=$as_save_IFS
  32607. + test -z "$as_dir" && as_dir=.
  32608. + for ac_exec_ext in '' $ac_executable_extensions; do
  32609. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  32610. + ac_cv_path_GENCAT="$as_dir/$ac_word$ac_exec_ext"
  32611. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  32612. + break 2
  32613. + fi
  32614. +done
  32615. +done
  32616. +
  32617. test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
  32618. ;;
  32619. esac
  32620. fi
  32621. -GENCAT="$ac_cv_path_GENCAT"
  32622. +GENCAT=$ac_cv_path_GENCAT
  32623. +
  32624. if test -n "$GENCAT"; then
  32625. - echo "$ac_t""$GENCAT" 1>&6
  32626. + echo "$as_me:$LINENO: result: $GENCAT" >&5
  32627. +echo "${ECHO_T}$GENCAT" >&6
  32628. else
  32629. - echo "$ac_t""no" 1>&6
  32630. + echo "$as_me:$LINENO: result: no" >&5
  32631. +echo "${ECHO_T}no" >&6
  32632. fi
  32633. # if test "$GENCAT" != "no"; then
  32634. # AC_PATH_PROG(GMSGFMT, gmsgfmt, no)
  32635. @@ -3910,9 +22062,7 @@
  32636. # nls_cv_header_intl=intl/libintl.h
  32637. # nls_cv_header_libgt=intl/libgettext.h
  32638. # fi
  32639. -
  32640. -else
  32641. - echo "$ac_t""no" 1>&6
  32642. +
  32643. fi
  32644. fi
  32645. @@ -3924,9 +22074,9 @@
  32646. fi
  32647. if test "$nls_cv_use_gnu_gettext" != "yes"; then
  32648. - cat >> confdefs.h <<\EOF
  32649. + cat >>confdefs.h <<\_ACEOF
  32650. #define ENABLE_NLS 1
  32651. -EOF
  32652. +_ACEOF
  32653. else
  32654. # Unset this variable since we use the non-zero value as a flag.
  32655. @@ -3954,7 +22104,8 @@
  32656. if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
  32657. : ;
  32658. else
  32659. - echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
  32660. + echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  32661. +echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
  32662. XGETTEXT=":"
  32663. fi
  32664. fi
  32665. @@ -3966,8 +22117,17 @@
  32666. nls_cv_header_intl=intl/libintl.h
  32667. nls_cv_header_libgt=intl/libgettext.h
  32668. fi
  32669. -
  32670. -
  32671. + ac_sources="$nls_cv_header_libgt"
  32672. +ac_dests="$nls_cv_header_intl"
  32673. +while test -n "$ac_sources"; do
  32674. + set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  32675. + set $ac_sources; ac_source=$1; shift; ac_sources=$*
  32676. + ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
  32677. +done
  32678. + ac_config_links="$ac_config_links $ac_config_links_1"
  32679. +
  32680. + ac_config_commands="$ac_config_commands default-2"
  32681. +
  32682. # # If this is used in GNU gettext we have to set USE_NLS to `yes'
  32683. @@ -3982,25 +22142,25 @@
  32684. POFILES="$POFILES $lang.po"
  32685. done
  32686. -
  32687. -
  32688. -
  32689. -
  32690. -
  32691. -
  32692. -
  32693. -
  32694. -
  32695. -
  32696. -
  32697. -
  32698. +
  32699. +
  32700. +
  32701. +
  32702. +
  32703. +
  32704. +
  32705. +
  32706. +
  32707. +
  32708. +
  32709. +
  32710. if test "x$CATOBJEXT" != "x"; then
  32711. if test "x$ALL_LINGUAS" = "x"; then
  32712. LINGUAS=
  32713. else
  32714. - echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
  32715. -echo "configure:4004: checking for catalogs to be installed" >&5
  32716. + echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
  32717. +echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
  32718. NEW_LINGUAS=
  32719. for lang in ${LINGUAS=$ALL_LINGUAS}; do
  32720. case "$ALL_LINGUAS" in
  32721. @@ -4008,7 +22168,8 @@
  32722. esac
  32723. done
  32724. LINGUAS=$NEW_LINGUAS
  32725. - echo "$ac_t""$LINGUAS" 1>&6
  32726. + echo "$as_me:$LINENO: result: $LINGUAS" >&5
  32727. +echo "${ECHO_T}$LINGUAS" >&6
  32728. fi
  32729. if test -n "$LINGUAS"; then
  32730. @@ -4022,45 +22183,154 @@
  32731. INCLUDE_LOCALE_H="\
  32732. /* The system does not provide the header <locale.h>. Take care yourself. */"
  32733. fi
  32734. -
  32735. +
  32736. test -d intl || mkdir intl
  32737. if test "$CATOBJEXT" = ".cat"; then
  32738. - ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
  32739. -echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
  32740. -echo "configure:4032: checking for linux/version.h" >&5
  32741. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  32742. - echo $ac_n "(cached) $ac_c" 1>&6
  32743. -else
  32744. - cat > conftest.$ac_ext <<EOF
  32745. -#line 4037 "configure"
  32746. -#include "confdefs.h"
  32747. + if test "${ac_cv_header_linux_version_h+set}" = set; then
  32748. + echo "$as_me:$LINENO: checking for linux/version.h" >&5
  32749. +echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
  32750. +if test "${ac_cv_header_linux_version_h+set}" = set; then
  32751. + echo $ECHO_N "(cached) $ECHO_C" >&6
  32752. +fi
  32753. +echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
  32754. +echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
  32755. +else
  32756. + # Is the header compilable?
  32757. +echo "$as_me:$LINENO: checking linux/version.h usability" >&5
  32758. +echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
  32759. +cat >conftest.$ac_ext <<_ACEOF
  32760. +/* confdefs.h. */
  32761. +_ACEOF
  32762. +cat confdefs.h >>conftest.$ac_ext
  32763. +cat >>conftest.$ac_ext <<_ACEOF
  32764. +/* end confdefs.h. */
  32765. +$ac_includes_default
  32766. #include <linux/version.h>
  32767. -EOF
  32768. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  32769. -{ (eval echo configure:4042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  32770. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  32771. -if test -z "$ac_err"; then
  32772. - rm -rf conftest*
  32773. - eval "ac_cv_header_$ac_safe=yes"
  32774. +_ACEOF
  32775. +rm -f conftest.$ac_objext
  32776. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  32777. + (eval $ac_compile) 2>conftest.er1
  32778. + ac_status=$?
  32779. + grep -v '^ *+' conftest.er1 >conftest.err
  32780. + rm -f conftest.er1
  32781. + cat conftest.err >&5
  32782. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32783. + (exit $ac_status); } &&
  32784. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  32785. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32786. + (eval $ac_try) 2>&5
  32787. + ac_status=$?
  32788. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32789. + (exit $ac_status); }; } &&
  32790. + { ac_try='test -s conftest.$ac_objext'
  32791. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32792. + (eval $ac_try) 2>&5
  32793. + ac_status=$?
  32794. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32795. + (exit $ac_status); }; }; then
  32796. + ac_header_compiler=yes
  32797. +else
  32798. + echo "$as_me: failed program was:" >&5
  32799. +sed 's/^/| /' conftest.$ac_ext >&5
  32800. +
  32801. +ac_header_compiler=no
  32802. +fi
  32803. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  32804. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  32805. +echo "${ECHO_T}$ac_header_compiler" >&6
  32806. +
  32807. +# Is the header present?
  32808. +echo "$as_me:$LINENO: checking linux/version.h presence" >&5
  32809. +echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
  32810. +cat >conftest.$ac_ext <<_ACEOF
  32811. +/* confdefs.h. */
  32812. +_ACEOF
  32813. +cat confdefs.h >>conftest.$ac_ext
  32814. +cat >>conftest.$ac_ext <<_ACEOF
  32815. +/* end confdefs.h. */
  32816. +#include <linux/version.h>
  32817. +_ACEOF
  32818. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  32819. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  32820. + ac_status=$?
  32821. + grep -v '^ *+' conftest.er1 >conftest.err
  32822. + rm -f conftest.er1
  32823. + cat conftest.err >&5
  32824. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32825. + (exit $ac_status); } >/dev/null; then
  32826. + if test -s conftest.err; then
  32827. + ac_cpp_err=$ac_c_preproc_warn_flag
  32828. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  32829. + else
  32830. + ac_cpp_err=
  32831. + fi
  32832. else
  32833. - echo "$ac_err" >&5
  32834. - echo "configure: failed program was:" >&5
  32835. - cat conftest.$ac_ext >&5
  32836. - rm -rf conftest*
  32837. - eval "ac_cv_header_$ac_safe=no"
  32838. + ac_cpp_err=yes
  32839. fi
  32840. -rm -f conftest*
  32841. +if test -z "$ac_cpp_err"; then
  32842. + ac_header_preproc=yes
  32843. +else
  32844. + echo "$as_me: failed program was:" >&5
  32845. +sed 's/^/| /' conftest.$ac_ext >&5
  32846. +
  32847. + ac_header_preproc=no
  32848. +fi
  32849. +rm -f conftest.err conftest.$ac_ext
  32850. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  32851. +echo "${ECHO_T}$ac_header_preproc" >&6
  32852. +
  32853. +# So? What about this header?
  32854. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  32855. + yes:no: )
  32856. + { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
  32857. +echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  32858. + { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
  32859. +echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
  32860. + ac_header_preproc=yes
  32861. + ;;
  32862. + no:yes:* )
  32863. + { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
  32864. +echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
  32865. + { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
  32866. +echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
  32867. + { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
  32868. +echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
  32869. + { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
  32870. +echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
  32871. + { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
  32872. +echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
  32873. + { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
  32874. +echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
  32875. + (
  32876. + cat <<\_ASBOX
  32877. +## ------------------------------------------ ##
  32878. +## Report this to the AC_PACKAGE_NAME lists. ##
  32879. +## ------------------------------------------ ##
  32880. +_ASBOX
  32881. + ) |
  32882. + sed "s/^/$as_me: WARNING: /" >&2
  32883. + ;;
  32884. +esac
  32885. +echo "$as_me:$LINENO: checking for linux/version.h" >&5
  32886. +echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
  32887. +if test "${ac_cv_header_linux_version_h+set}" = set; then
  32888. + echo $ECHO_N "(cached) $ECHO_C" >&6
  32889. +else
  32890. + ac_cv_header_linux_version_h=$ac_header_preproc
  32891. +fi
  32892. +echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
  32893. +echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
  32894. +
  32895. fi
  32896. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  32897. - echo "$ac_t""yes" 1>&6
  32898. +if test $ac_cv_header_linux_version_h = yes; then
  32899. msgformat=linux
  32900. else
  32901. - echo "$ac_t""no" 1>&6
  32902. -msgformat=xopen
  32903. + msgformat=xopen
  32904. fi
  32905. +
  32906. sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
  32907. fi
  32908. sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
  32909. @@ -4073,8 +22343,8 @@
  32910. GT_NO=
  32911. GT_YES="#YES#"
  32912. fi
  32913. -
  32914. -
  32915. +
  32916. +
  32917. MKINSTALLDIRS=
  32918. if test -n "$ac_aux_dir"; then
  32919. @@ -4083,10 +22353,10 @@
  32920. if test -z "$MKINSTALLDIRS"; then
  32921. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  32922. fi
  32923. -
  32924. +
  32925. l=
  32926. -
  32927. +
  32928. test -d po || mkdir po
  32929. if test "x$srcdir" != "x."; then
  32930. @@ -4101,7 +22371,7 @@
  32931. rm -f po/POTFILES
  32932. sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
  32933. < $srcdir/po/POTFILES.in > po/POTFILES
  32934. -
  32935. +
  32936. LIBS="$LIBS $INTLLIBS"
  32937. # AM_GTK_GNU_GETTEXT above substs $DATADIRNAME
  32938. @@ -4109,117 +22379,208 @@
  32939. gtklocaledir='${prefix}/${DATADIRNAME}/locale'
  32940. -echo $ac_n "checking for extra flags to get ANSI library prototypes""... $ac_c" 1>&6
  32941. -echo "configure:4114: checking for extra flags to get ANSI library prototypes" >&5
  32942. +echo "$as_me:$LINENO: checking for extra flags to get ANSI library prototypes" >&5
  32943. +echo $ECHO_N "checking for extra flags to get ANSI library prototypes... $ECHO_C" >&6
  32944. gtk_save_LIBS=$LIBS
  32945. LIBS="$LIBS -lm"
  32946. if test "$cross_compiling" = yes; then
  32947. - echo "$ac_t""none needed" 1>&6
  32948. + echo "$as_me:$LINENO: result: none needed" >&5
  32949. +echo "${ECHO_T}none needed" >&6
  32950. else
  32951. - cat > conftest.$ac_ext <<EOF
  32952. -#line 4123 "configure"
  32953. -#include "confdefs.h"
  32954. + cat >conftest.$ac_ext <<_ACEOF
  32955. +/* confdefs.h. */
  32956. +_ACEOF
  32957. +cat confdefs.h >>conftest.$ac_ext
  32958. +cat >>conftest.$ac_ext <<_ACEOF
  32959. +/* end confdefs.h. */
  32960. #include <math.h>
  32961. int main (void) { return (log(1) != log(1.)); }
  32962. -EOF
  32963. -if { (eval echo configure:4128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  32964. -then
  32965. - echo "$ac_t""none needed" 1>&6
  32966. -else
  32967. - echo "configure: failed program was:" >&5
  32968. - cat conftest.$ac_ext >&5
  32969. - rm -fr conftest*
  32970. - gtk_save_CFLAGS=$CFLAGS
  32971. +_ACEOF
  32972. +rm -f conftest$ac_exeext
  32973. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  32974. + (eval $ac_link) 2>&5
  32975. + ac_status=$?
  32976. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32977. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  32978. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32979. + (eval $ac_try) 2>&5
  32980. + ac_status=$?
  32981. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32982. + (exit $ac_status); }; }; then
  32983. + echo "$as_me:$LINENO: result: none needed" >&5
  32984. +echo "${ECHO_T}none needed" >&6
  32985. +else
  32986. + echo "$as_me: program exited with status $ac_status" >&5
  32987. +echo "$as_me: failed program was:" >&5
  32988. +sed 's/^/| /' conftest.$ac_ext >&5
  32989. +
  32990. +( exit $ac_status )
  32991. +gtk_save_CFLAGS=$CFLAGS
  32992. CFLAGS="$CFLAGS -std1"
  32993. if test "$cross_compiling" = yes; then
  32994. true
  32995. -
  32996. +
  32997. else
  32998. - cat > conftest.$ac_ext <<EOF
  32999. -#line 4142 "configure"
  33000. -#include "confdefs.h"
  33001. + cat >conftest.$ac_ext <<_ACEOF
  33002. +/* confdefs.h. */
  33003. +_ACEOF
  33004. +cat confdefs.h >>conftest.$ac_ext
  33005. +cat >>conftest.$ac_ext <<_ACEOF
  33006. +/* end confdefs.h. */
  33007. #include <math.h>
  33008. int main (void) { return (log(1) != log(1.)); }
  33009. -EOF
  33010. -if { (eval echo configure:4147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  33011. -then
  33012. - echo "$ac_t""-std1" 1>&6
  33013. -else
  33014. - echo "configure: failed program was:" >&5
  33015. - cat conftest.$ac_ext >&5
  33016. - rm -fr conftest*
  33017. - echo "$ac_t""" 1>&6
  33018. +_ACEOF
  33019. +rm -f conftest$ac_exeext
  33020. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  33021. + (eval $ac_link) 2>&5
  33022. + ac_status=$?
  33023. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33024. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  33025. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  33026. + (eval $ac_try) 2>&5
  33027. + ac_status=$?
  33028. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33029. + (exit $ac_status); }; }; then
  33030. + echo "$as_me:$LINENO: result: -std1" >&5
  33031. +echo "${ECHO_T}-std1" >&6
  33032. +else
  33033. + echo "$as_me: program exited with status $ac_status" >&5
  33034. +echo "$as_me: failed program was:" >&5
  33035. +sed 's/^/| /' conftest.$ac_ext >&5
  33036. +
  33037. +( exit $ac_status )
  33038. +echo "$as_me:$LINENO: result: " >&5
  33039. +echo "${ECHO_T}" >&6
  33040. CFLAGS=$gtk_save_CFLAGS
  33041. - echo "configure: warning: No ANSI prototypes found in library. (-std1 didn't work.)" 1>&2
  33042. + { echo "$as_me:$LINENO: WARNING: No ANSI prototypes found in library. (-std1 didn't work.)" >&5
  33043. +echo "$as_me: WARNING: No ANSI prototypes found in library. (-std1 didn't work.)" >&2;}
  33044. fi
  33045. -rm -fr conftest*
  33046. +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  33047. fi
  33048. -
  33049. fi
  33050. -rm -fr conftest*
  33051. +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  33052. fi
  33053. -
  33054. LIBS=$gtk_save_LIBS
  33055. -echo $ac_n "checking for extra flags for POSIX compliance""... $ac_c" 1>&6
  33056. -echo "configure:4168: checking for extra flags for POSIX compliance" >&5
  33057. -cat > conftest.$ac_ext <<EOF
  33058. -#line 4170 "configure"
  33059. -#include "confdefs.h"
  33060. +echo "$as_me:$LINENO: checking for extra flags for POSIX compliance" >&5
  33061. +echo $ECHO_N "checking for extra flags for POSIX compliance... $ECHO_C" >&6
  33062. +cat >conftest.$ac_ext <<_ACEOF
  33063. +/* confdefs.h. */
  33064. +_ACEOF
  33065. +cat confdefs.h >>conftest.$ac_ext
  33066. +cat >>conftest.$ac_ext <<_ACEOF
  33067. +/* end confdefs.h. */
  33068. #include <dirent.h>
  33069. -int main() {
  33070. +int
  33071. +main ()
  33072. +{
  33073. DIR *dir;
  33074. -; return 0; }
  33075. -EOF
  33076. -if { (eval echo configure:4177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  33077. - rm -rf conftest*
  33078. - echo "$ac_t""none needed" 1>&6
  33079. + ;
  33080. + return 0;
  33081. +}
  33082. +_ACEOF
  33083. +rm -f conftest.$ac_objext
  33084. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  33085. + (eval $ac_compile) 2>conftest.er1
  33086. + ac_status=$?
  33087. + grep -v '^ *+' conftest.er1 >conftest.err
  33088. + rm -f conftest.er1
  33089. + cat conftest.err >&5
  33090. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33091. + (exit $ac_status); } &&
  33092. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  33093. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  33094. + (eval $ac_try) 2>&5
  33095. + ac_status=$?
  33096. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33097. + (exit $ac_status); }; } &&
  33098. + { ac_try='test -s conftest.$ac_objext'
  33099. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  33100. + (eval $ac_try) 2>&5
  33101. + ac_status=$?
  33102. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33103. + (exit $ac_status); }; }; then
  33104. + echo "$as_me:$LINENO: result: none needed" >&5
  33105. +echo "${ECHO_T}none needed" >&6
  33106. else
  33107. - echo "configure: failed program was:" >&5
  33108. - cat conftest.$ac_ext >&5
  33109. - rm -rf conftest*
  33110. - gtk_save_CFLAGS=$CFLAGS
  33111. + echo "$as_me: failed program was:" >&5
  33112. +sed 's/^/| /' conftest.$ac_ext >&5
  33113. +
  33114. +gtk_save_CFLAGS=$CFLAGS
  33115. CFLAGS="$CFLAGS -posix"
  33116. - cat > conftest.$ac_ext <<EOF
  33117. -#line 4187 "configure"
  33118. -#include "confdefs.h"
  33119. + cat >conftest.$ac_ext <<_ACEOF
  33120. +/* confdefs.h. */
  33121. +_ACEOF
  33122. +cat confdefs.h >>conftest.$ac_ext
  33123. +cat >>conftest.$ac_ext <<_ACEOF
  33124. +/* end confdefs.h. */
  33125. #include <dirent.h>
  33126. -int main() {
  33127. +int
  33128. +main ()
  33129. +{
  33130. DIR *dir;
  33131. -; return 0; }
  33132. -EOF
  33133. -if { (eval echo configure:4194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  33134. - rm -rf conftest*
  33135. - echo "$ac_t""-posix" 1>&6
  33136. + ;
  33137. + return 0;
  33138. +}
  33139. +_ACEOF
  33140. +rm -f conftest.$ac_objext
  33141. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  33142. + (eval $ac_compile) 2>conftest.er1
  33143. + ac_status=$?
  33144. + grep -v '^ *+' conftest.er1 >conftest.err
  33145. + rm -f conftest.er1
  33146. + cat conftest.err >&5
  33147. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33148. + (exit $ac_status); } &&
  33149. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  33150. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  33151. + (eval $ac_try) 2>&5
  33152. + ac_status=$?
  33153. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33154. + (exit $ac_status); }; } &&
  33155. + { ac_try='test -s conftest.$ac_objext'
  33156. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  33157. + (eval $ac_try) 2>&5
  33158. + ac_status=$?
  33159. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33160. + (exit $ac_status); }; }; then
  33161. + echo "$as_me:$LINENO: result: -posix" >&5
  33162. +echo "${ECHO_T}-posix" >&6
  33163. else
  33164. - echo "configure: failed program was:" >&5
  33165. - cat conftest.$ac_ext >&5
  33166. - rm -rf conftest*
  33167. - echo "$ac_t""" 1>&6
  33168. + echo "$as_me: failed program was:" >&5
  33169. +sed 's/^/| /' conftest.$ac_ext >&5
  33170. +
  33171. +echo "$as_me:$LINENO: result: " >&5
  33172. +echo "${ECHO_T}" >&6
  33173. CFLAGS=$gtk_save_CFLAGS
  33174. - echo "configure: warning: Could not determine POSIX flag. (-posix didn't work.)" 1>&2
  33175. + { echo "$as_me:$LINENO: WARNING: Could not determine POSIX flag. (-posix didn't work.)" >&5
  33176. +echo "$as_me: WARNING: Could not determine POSIX flag. (-posix didn't work.)" >&2;}
  33177. fi
  33178. -rm -f conftest*
  33179. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  33180. fi
  33181. -rm -f conftest*
  33182. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  33183. if test x$with_glib = xyes ; then
  33184. - { echo "configure: error:
  33185. -*** Directory must be specified for --with-glib" 1>&2; exit 1; }
  33186. + { { echo "$as_me:$LINENO: error:
  33187. +*** Directory must be specified for --with-glib" >&5
  33188. +echo "$as_me: error:
  33189. +*** Directory must be specified for --with-glib" >&2;}
  33190. + { (exit 1); exit 1; }; }
  33191. fi
  33192. -if test x$with_glib = x ; then
  33193. +if test x$with_glib = x ; then
  33194. # Look for separately installed glib
  33195. - # Check whether --with-glib-prefix or --without-glib-prefix was given.
  33196. +
  33197. +# Check whether --with-glib-prefix or --without-glib-prefix was given.
  33198. if test "${with_glib_prefix+set}" = set; then
  33199. withval="$with_glib_prefix"
  33200. glib_config_prefix="$withval"
  33201. else
  33202. glib_config_prefix=""
  33203. -fi
  33204. +fi;
  33205. # Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
  33206. if test "${with_glib_exec_prefix+set}" = set; then
  33207. @@ -4227,16 +22588,14 @@
  33208. glib_config_exec_prefix="$withval"
  33209. else
  33210. glib_config_exec_prefix=""
  33211. -fi
  33212. -
  33213. +fi;
  33214. # Check whether --enable-glibtest or --disable-glibtest was given.
  33215. if test "${enable_glibtest+set}" = set; then
  33216. enableval="$enable_glibtest"
  33217. - :
  33218. +
  33219. else
  33220. enable_glibtest=yes
  33221. -fi
  33222. -
  33223. +fi;
  33224. if test x$glib_config_exec_prefix != x ; then
  33225. glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
  33226. @@ -4254,10 +22613,10 @@
  33227. for module in . gmodule gthread
  33228. do
  33229. case "$module" in
  33230. - gmodule)
  33231. + gmodule)
  33232. glib_config_args="$glib_config_args gmodule"
  33233. ;;
  33234. - gthread)
  33235. + gthread)
  33236. glib_config_args="$glib_config_args gthread"
  33237. ;;
  33238. esac
  33239. @@ -4265,43 +22624,47 @@
  33240. # Extract the first word of "glib-config", so it can be a program name with args.
  33241. set dummy glib-config; ac_word=$2
  33242. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  33243. -echo "configure:4270: checking for $ac_word" >&5
  33244. -if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then
  33245. - echo $ac_n "(cached) $ac_c" 1>&6
  33246. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  33247. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  33248. +if test "${ac_cv_path_GLIB_CONFIG+set}" = set; then
  33249. + echo $ECHO_N "(cached) $ECHO_C" >&6
  33250. else
  33251. - case "$GLIB_CONFIG" in
  33252. - /*)
  33253. + case $GLIB_CONFIG in
  33254. + [\\/]* | ?:[\\/]*)
  33255. ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
  33256. - ;;
  33257. - ?:/*)
  33258. - ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a dos path.
  33259. - ;;
  33260. - *)
  33261. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  33262. - ac_dummy="$PATH"
  33263. - for ac_dir in $ac_dummy; do
  33264. - test -z "$ac_dir" && ac_dir=.
  33265. - if test -f $ac_dir/$ac_word; then
  33266. - ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word"
  33267. - break
  33268. - fi
  33269. - done
  33270. - IFS="$ac_save_ifs"
  33271. + ;;
  33272. + *)
  33273. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  33274. +for as_dir in $PATH
  33275. +do
  33276. + IFS=$as_save_IFS
  33277. + test -z "$as_dir" && as_dir=.
  33278. + for ac_exec_ext in '' $ac_executable_extensions; do
  33279. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  33280. + ac_cv_path_GLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  33281. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  33282. + break 2
  33283. + fi
  33284. +done
  33285. +done
  33286. +
  33287. test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
  33288. ;;
  33289. esac
  33290. fi
  33291. -GLIB_CONFIG="$ac_cv_path_GLIB_CONFIG"
  33292. +GLIB_CONFIG=$ac_cv_path_GLIB_CONFIG
  33293. +
  33294. if test -n "$GLIB_CONFIG"; then
  33295. - echo "$ac_t""$GLIB_CONFIG" 1>&6
  33296. + echo "$as_me:$LINENO: result: $GLIB_CONFIG" >&5
  33297. +echo "${ECHO_T}$GLIB_CONFIG" >&6
  33298. else
  33299. - echo "$ac_t""no" 1>&6
  33300. + echo "$as_me:$LINENO: result: no" >&5
  33301. +echo "${ECHO_T}no" >&6
  33302. fi
  33303. min_glib_version=1.2.8
  33304. - echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
  33305. -echo "configure:4305: checking for GLIB - version >= $min_glib_version" >&5
  33306. + echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
  33307. +echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6
  33308. no_glib=""
  33309. if test "$GLIB_CONFIG" = "no" ; then
  33310. no_glib=yes
  33311. @@ -4323,15 +22686,18 @@
  33312. if test "$cross_compiling" = yes; then
  33313. echo $ac_n "cross compiling; assumed OK... $ac_c"
  33314. else
  33315. - cat > conftest.$ac_ext <<EOF
  33316. -#line 4328 "configure"
  33317. -#include "confdefs.h"
  33318. + cat >conftest.$ac_ext <<_ACEOF
  33319. +/* confdefs.h. */
  33320. +_ACEOF
  33321. +cat confdefs.h >>conftest.$ac_ext
  33322. +cat >>conftest.$ac_ext <<_ACEOF
  33323. +/* end confdefs.h. */
  33324. #include <glib.h>
  33325. #include <stdio.h>
  33326. #include <stdlib.h>
  33327. -int
  33328. +int
  33329. main ()
  33330. {
  33331. int major, minor, micro;
  33332. @@ -4350,7 +22716,7 @@
  33333. (glib_minor_version != $glib_config_minor_version) ||
  33334. (glib_micro_version != $glib_config_micro_version))
  33335. {
  33336. - printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
  33337. + printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
  33338. $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
  33339. glib_major_version, glib_minor_version, glib_micro_version);
  33340. printf ("*** was found! If glib-config was correct, then it is best\n");
  33341. @@ -4361,7 +22727,7 @@
  33342. printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
  33343. printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
  33344. printf("*** before re-running configure\n");
  33345. - }
  33346. + }
  33347. else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
  33348. (glib_minor_version != GLIB_MINOR_VERSION) ||
  33349. (glib_micro_version != GLIB_MICRO_VERSION))
  33350. @@ -4399,28 +22765,40 @@
  33351. return 1;
  33352. }
  33353. -EOF
  33354. -if { (eval echo configure:4404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  33355. -then
  33356. +_ACEOF
  33357. +rm -f conftest$ac_exeext
  33358. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  33359. + (eval $ac_link) 2>&5
  33360. + ac_status=$?
  33361. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33362. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  33363. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  33364. + (eval $ac_try) 2>&5
  33365. + ac_status=$?
  33366. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33367. + (exit $ac_status); }; }; then
  33368. :
  33369. else
  33370. - echo "configure: failed program was:" >&5
  33371. - cat conftest.$ac_ext >&5
  33372. - rm -fr conftest*
  33373. - no_glib=yes
  33374. + echo "$as_me: program exited with status $ac_status" >&5
  33375. +echo "$as_me: failed program was:" >&5
  33376. +sed 's/^/| /' conftest.$ac_ext >&5
  33377. +
  33378. +( exit $ac_status )
  33379. +no_glib=yes
  33380. fi
  33381. -rm -fr conftest*
  33382. +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  33383. fi
  33384. -
  33385. CFLAGS="$ac_save_CFLAGS"
  33386. LIBS="$ac_save_LIBS"
  33387. fi
  33388. fi
  33389. if test "x$no_glib" = x ; then
  33390. - echo "$ac_t""yes" 1>&6
  33391. - :
  33392. + echo "$as_me:$LINENO: result: yes" >&5
  33393. +echo "${ECHO_T}yes" >&6
  33394. + :
  33395. else
  33396. - echo "$ac_t""no" 1>&6
  33397. + echo "$as_me:$LINENO: result: no" >&5
  33398. +echo "${ECHO_T}no" >&6
  33399. if test "$GLIB_CONFIG" = "no" ; then
  33400. echo "*** The glib-config script installed by GLIB could not be found"
  33401. echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
  33402. @@ -4433,19 +22811,45 @@
  33403. echo "*** Could not run GLIB test program, checking why..."
  33404. CFLAGS="$CFLAGS $GLIB_CFLAGS"
  33405. LIBS="$LIBS $GLIB_LIBS"
  33406. - cat > conftest.$ac_ext <<EOF
  33407. -#line 4438 "configure"
  33408. -#include "confdefs.h"
  33409. + cat >conftest.$ac_ext <<_ACEOF
  33410. +/* confdefs.h. */
  33411. +_ACEOF
  33412. +cat confdefs.h >>conftest.$ac_ext
  33413. +cat >>conftest.$ac_ext <<_ACEOF
  33414. +/* end confdefs.h. */
  33415. #include <glib.h>
  33416. #include <stdio.h>
  33417. -int main() {
  33418. - return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
  33419. -; return 0; }
  33420. -EOF
  33421. -if { (eval echo configure:4448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  33422. - rm -rf conftest*
  33423. +int
  33424. +main ()
  33425. +{
  33426. + return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
  33427. + ;
  33428. + return 0;
  33429. +}
  33430. +_ACEOF
  33431. +rm -f conftest.$ac_objext conftest$ac_exeext
  33432. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  33433. + (eval $ac_link) 2>conftest.er1
  33434. + ac_status=$?
  33435. + grep -v '^ *+' conftest.er1 >conftest.err
  33436. + rm -f conftest.er1
  33437. + cat conftest.err >&5
  33438. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33439. + (exit $ac_status); } &&
  33440. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  33441. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  33442. + (eval $ac_try) 2>&5
  33443. + ac_status=$?
  33444. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33445. + (exit $ac_status); }; } &&
  33446. + { ac_try='test -s conftest$ac_exeext'
  33447. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  33448. + (eval $ac_try) 2>&5
  33449. + ac_status=$?
  33450. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33451. + (exit $ac_status); }; }; then
  33452. echo "*** The test program compiled, but did not run. This usually means"
  33453. echo "*** that the run-time linker is not finding GLIB or finding the wrong"
  33454. echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
  33455. @@ -4459,29 +22863,34 @@
  33456. echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
  33457. echo "*** came with the system with the command"
  33458. echo "***"
  33459. - echo "*** rpm --erase --nodeps gtk gtk-devel"
  33460. + echo "*** rpm --erase --nodeps gtk gtk-devel"
  33461. else
  33462. - echo "configure: failed program was:" >&5
  33463. - cat conftest.$ac_ext >&5
  33464. - rm -rf conftest*
  33465. - echo "*** The test program failed to compile or link. See the file config.log for the"
  33466. + echo "$as_me: failed program was:" >&5
  33467. +sed 's/^/| /' conftest.$ac_ext >&5
  33468. +
  33469. + echo "*** The test program failed to compile or link. See the file config.log for the"
  33470. echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
  33471. echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
  33472. - echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
  33473. + echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
  33474. fi
  33475. -rm -f conftest*
  33476. +rm -f conftest.err conftest.$ac_objext \
  33477. + conftest$ac_exeext conftest.$ac_ext
  33478. CFLAGS="$ac_save_CFLAGS"
  33479. LIBS="$ac_save_LIBS"
  33480. fi
  33481. fi
  33482. GLIB_CFLAGS=""
  33483. GLIB_LIBS=""
  33484. - { echo "configure: error:
  33485. + { { echo "$as_me:$LINENO: error:
  33486. +*** GLIB 1.2.8 or better is required. The latest version of GLIB
  33487. +*** is always available from ftp://ftp.gtk.org/." >&5
  33488. +echo "$as_me: error:
  33489. *** GLIB 1.2.8 or better is required. The latest version of GLIB
  33490. -*** is always available from ftp://ftp.gtk.org/." 1>&2; exit 1; }
  33491. +*** is always available from ftp://ftp.gtk.org/." >&2;}
  33492. + { (exit 1); exit 1; }; }
  33493. fi
  33494. -
  33495. -
  33496. +
  33497. +
  33498. rm -f conf.glibtest
  33499. @@ -4496,10 +22905,12 @@
  33500. # Use uninstalled glib (assume they got the version right)
  33501. GLIB_CONFIG=$with_glib/glib-config
  33502. - if test -x $GLIB_CONFIG ; then
  33503. + if test -x $GLIB_CONFIG ; then
  33504. :
  33505. else
  33506. - { echo "configure: error: GLIB directory ($with_glib) not present or not configured" 1>&2; exit 1; }
  33507. + { { echo "$as_me:$LINENO: error: GLIB directory ($with_glib) not present or not configured" >&5
  33508. +echo "$as_me: error: GLIB directory ($with_glib) not present or not configured" >&2;}
  33509. + { (exit 1); exit 1; }; }
  33510. fi
  33511. # For use in gtk-config
  33512. @@ -4511,7 +22922,7 @@
  33513. glib_release=`$GLIB_CONFIG --version | sed 's%\\.[0-9]*$%%'`
  33514. # canonicalize relative paths
  33515. - case $with_glib in
  33516. + case $with_glib in
  33517. /*)
  33518. glib_dir=$with_glib
  33519. ;;
  33520. @@ -4524,8 +22935,8 @@
  33521. GLIB_LIBS="$glib_dir/libglib.la $glib_dir/gmodule/libgmodule.la"
  33522. GLIB_DEPLIBS=
  33523. -
  33524. -
  33525. +
  33526. +
  33527. fi
  33528. @@ -4535,19 +22946,18 @@
  33529. # Find the X11 include and library directories
  33530. -# If we find X, set shell vars x_includes and x_libraries to the
  33531. -# paths, otherwise set no_x=yes.
  33532. -# Uses ac_ vars as temps to allow command line to override cache and checks.
  33533. -# --without-x overrides everything else, but does not touch the cache.
  33534. -echo $ac_n "checking for X""... $ac_c" 1>&6
  33535. -echo "configure:4544: checking for X" >&5
  33536. +
  33537. +if test "x$ac_path_x_has_been_run" != xyes; then
  33538. + echo "$as_me:$LINENO: checking for X" >&5
  33539. +echo $ECHO_N "checking for X... $ECHO_C" >&6
  33540. +
  33541. +ac_path_x_has_been_run=yes
  33542. # Check whether --with-x or --without-x was given.
  33543. if test "${with_x+set}" = set; then
  33544. withval="$with_x"
  33545. - :
  33546. -fi
  33547. +fi;
  33548. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  33549. if test "x$with_x" = xno; then
  33550. # The user explicitly disabled X.
  33551. @@ -4557,207 +22967,209 @@
  33552. # Both variables are already set.
  33553. have_x=yes
  33554. else
  33555. -if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
  33556. - echo $ac_n "(cached) $ac_c" 1>&6
  33557. + if test "${ac_cv_have_x+set}" = set; then
  33558. + echo $ECHO_N "(cached) $ECHO_C" >&6
  33559. else
  33560. # One or both of the vars are not set, and there is no cached value.
  33561. -ac_x_includes=NO ac_x_libraries=NO
  33562. -rm -fr conftestdir
  33563. -if mkdir conftestdir; then
  33564. - cd conftestdir
  33565. +ac_x_includes=no ac_x_libraries=no
  33566. +rm -fr conftest.dir
  33567. +if mkdir conftest.dir; then
  33568. + cd conftest.dir
  33569. # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  33570. - cat > Imakefile <<'EOF'
  33571. + cat >Imakefile <<'_ACEOF'
  33572. acfindx:
  33573. @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  33574. -EOF
  33575. +_ACEOF
  33576. if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  33577. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  33578. eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  33579. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  33580. for ac_extension in a so sl; do
  33581. if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  33582. - test -f $ac_im_libdir/libX11.$ac_extension; then
  33583. - ac_im_usrlibdir=$ac_im_libdir; break
  33584. + test -f $ac_im_libdir/libX11.$ac_extension; then
  33585. + ac_im_usrlibdir=$ac_im_libdir; break
  33586. fi
  33587. done
  33588. # Screen out bogus values from the imake configuration. They are
  33589. # bogus both because they are the default anyway, and because
  33590. # using them would break gcc on systems where it needs fixed includes.
  33591. - case "$ac_im_incroot" in
  33592. + case $ac_im_incroot in
  33593. /usr/include) ;;
  33594. - *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  33595. + *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  33596. esac
  33597. - case "$ac_im_usrlibdir" in
  33598. + case $ac_im_usrlibdir in
  33599. /usr/lib | /lib) ;;
  33600. - *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  33601. + *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  33602. esac
  33603. fi
  33604. cd ..
  33605. - rm -fr conftestdir
  33606. + rm -fr conftest.dir
  33607. fi
  33608. -if test "$ac_x_includes" = NO; then
  33609. - # Guess where to find include files, by looking for this one X11 .h file.
  33610. - test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  33611. +# Standard set of common directories for X headers.
  33612. +# Check X11 before X11Rn because it is often a symlink to the current release.
  33613. +ac_x_header_dirs='
  33614. +/usr/X11/include
  33615. +/usr/X11R6/include
  33616. +/usr/X11R5/include
  33617. +/usr/X11R4/include
  33618. +
  33619. +/usr/include/X11
  33620. +/usr/include/X11R6
  33621. +/usr/include/X11R5
  33622. +/usr/include/X11R4
  33623. +
  33624. +/usr/local/X11/include
  33625. +/usr/local/X11R6/include
  33626. +/usr/local/X11R5/include
  33627. +/usr/local/X11R4/include
  33628. +
  33629. +/usr/local/include/X11
  33630. +/usr/local/include/X11R6
  33631. +/usr/local/include/X11R5
  33632. +/usr/local/include/X11R4
  33633. +
  33634. +/usr/X386/include
  33635. +/usr/x386/include
  33636. +/usr/XFree86/include/X11
  33637. +
  33638. +/usr/include
  33639. +/usr/local/include
  33640. +/usr/unsupported/include
  33641. +/usr/athena/include
  33642. +/usr/local/x11r5/include
  33643. +/usr/lpp/Xamples/include
  33644. +
  33645. +/usr/openwin/include
  33646. +/usr/openwin/share/include'
  33647. +if test "$ac_x_includes" = no; then
  33648. + # Guess where to find include files, by looking for a specified header file.
  33649. # First, try using that file with no special directory specified.
  33650. -cat > conftest.$ac_ext <<EOF
  33651. -#line 4606 "configure"
  33652. -#include "confdefs.h"
  33653. -#include <$x_direct_test_include>
  33654. -EOF
  33655. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  33656. -{ (eval echo configure:4611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  33657. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  33658. -if test -z "$ac_err"; then
  33659. - rm -rf conftest*
  33660. + cat >conftest.$ac_ext <<_ACEOF
  33661. +/* confdefs.h. */
  33662. +_ACEOF
  33663. +cat confdefs.h >>conftest.$ac_ext
  33664. +cat >>conftest.$ac_ext <<_ACEOF
  33665. +/* end confdefs.h. */
  33666. +#include <X11/Xlib.h>
  33667. +_ACEOF
  33668. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  33669. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  33670. + ac_status=$?
  33671. + grep -v '^ *+' conftest.er1 >conftest.err
  33672. + rm -f conftest.er1
  33673. + cat conftest.err >&5
  33674. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33675. + (exit $ac_status); } >/dev/null; then
  33676. + if test -s conftest.err; then
  33677. + ac_cpp_err=$ac_c_preproc_warn_flag
  33678. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  33679. + else
  33680. + ac_cpp_err=
  33681. + fi
  33682. +else
  33683. + ac_cpp_err=yes
  33684. +fi
  33685. +if test -z "$ac_cpp_err"; then
  33686. # We can compile using X headers with no special include directory.
  33687. ac_x_includes=
  33688. else
  33689. - echo "$ac_err" >&5
  33690. - echo "configure: failed program was:" >&5
  33691. - cat conftest.$ac_ext >&5
  33692. - rm -rf conftest*
  33693. - # Look for the header file in a standard set of common directories.
  33694. -# Check X11 before X11Rn because it is often a symlink to the current release.
  33695. - for ac_dir in \
  33696. - /usr/X11/include \
  33697. - /usr/X11R6/include \
  33698. - /usr/X11R5/include \
  33699. - /usr/X11R4/include \
  33700. - \
  33701. - /usr/include/X11 \
  33702. - /usr/include/X11R6 \
  33703. - /usr/include/X11R5 \
  33704. - /usr/include/X11R4 \
  33705. - \
  33706. - /usr/local/X11/include \
  33707. - /usr/local/X11R6/include \
  33708. - /usr/local/X11R5/include \
  33709. - /usr/local/X11R4/include \
  33710. - \
  33711. - /usr/local/include/X11 \
  33712. - /usr/local/include/X11R6 \
  33713. - /usr/local/include/X11R5 \
  33714. - /usr/local/include/X11R4 \
  33715. - \
  33716. - /usr/X386/include \
  33717. - /usr/x386/include \
  33718. - /usr/XFree86/include/X11 \
  33719. - \
  33720. - /usr/include \
  33721. - /usr/local/include \
  33722. - /usr/unsupported/include \
  33723. - /usr/athena/include \
  33724. - /usr/local/x11r5/include \
  33725. - /usr/lpp/Xamples/include \
  33726. - \
  33727. - /usr/openwin/include \
  33728. - /usr/openwin/share/include \
  33729. - ; \
  33730. - do
  33731. - if test -r "$ac_dir/$x_direct_test_include"; then
  33732. - ac_x_includes=$ac_dir
  33733. - break
  33734. - fi
  33735. - done
  33736. + echo "$as_me: failed program was:" >&5
  33737. +sed 's/^/| /' conftest.$ac_ext >&5
  33738. +
  33739. + for ac_dir in $ac_x_header_dirs; do
  33740. + if test -r "$ac_dir/X11/Xlib.h"; then
  33741. + ac_x_includes=$ac_dir
  33742. + break
  33743. + fi
  33744. +done
  33745. fi
  33746. -rm -f conftest*
  33747. -fi # $ac_x_includes = NO
  33748. +rm -f conftest.err conftest.$ac_ext
  33749. +fi # $ac_x_includes = no
  33750. -if test "$ac_x_libraries" = NO; then
  33751. +if test "$ac_x_libraries" = no; then
  33752. # Check for the libraries.
  33753. -
  33754. - test -z "$x_direct_test_library" && x_direct_test_library=Xt
  33755. - test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  33756. -
  33757. # See if we find them without any special options.
  33758. # Don't add to $LIBS permanently.
  33759. - ac_save_LIBS="$LIBS"
  33760. - LIBS="-l$x_direct_test_library $LIBS"
  33761. -cat > conftest.$ac_ext <<EOF
  33762. -#line 4680 "configure"
  33763. -#include "confdefs.h"
  33764. -
  33765. -int main() {
  33766. -${x_direct_test_function}()
  33767. -; return 0; }
  33768. -EOF
  33769. -if { (eval echo configure:4687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  33770. - rm -rf conftest*
  33771. - LIBS="$ac_save_LIBS"
  33772. + ac_save_LIBS=$LIBS
  33773. + LIBS="-lX11 $LIBS"
  33774. + cat >conftest.$ac_ext <<_ACEOF
  33775. +/* confdefs.h. */
  33776. +_ACEOF
  33777. +cat confdefs.h >>conftest.$ac_ext
  33778. +cat >>conftest.$ac_ext <<_ACEOF
  33779. +/* end confdefs.h. */
  33780. +#include <X11/Xlib.h>
  33781. +int
  33782. +main ()
  33783. +{
  33784. +XrmInitialize ()
  33785. + ;
  33786. + return 0;
  33787. +}
  33788. +_ACEOF
  33789. +rm -f conftest.$ac_objext conftest$ac_exeext
  33790. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  33791. + (eval $ac_link) 2>conftest.er1
  33792. + ac_status=$?
  33793. + grep -v '^ *+' conftest.er1 >conftest.err
  33794. + rm -f conftest.er1
  33795. + cat conftest.err >&5
  33796. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33797. + (exit $ac_status); } &&
  33798. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  33799. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  33800. + (eval $ac_try) 2>&5
  33801. + ac_status=$?
  33802. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33803. + (exit $ac_status); }; } &&
  33804. + { ac_try='test -s conftest$ac_exeext'
  33805. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  33806. + (eval $ac_try) 2>&5
  33807. + ac_status=$?
  33808. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33809. + (exit $ac_status); }; }; then
  33810. + LIBS=$ac_save_LIBS
  33811. # We can link X programs with no special library path.
  33812. ac_x_libraries=
  33813. else
  33814. - echo "configure: failed program was:" >&5
  33815. - cat conftest.$ac_ext >&5
  33816. - rm -rf conftest*
  33817. - LIBS="$ac_save_LIBS"
  33818. -# First see if replacing the include by lib works.
  33819. -# Check X11 before X11Rn because it is often a symlink to the current release.
  33820. -for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  33821. - /usr/X11/lib \
  33822. - /usr/X11R6/lib \
  33823. - /usr/X11R5/lib \
  33824. - /usr/X11R4/lib \
  33825. - \
  33826. - /usr/lib/X11 \
  33827. - /usr/lib/X11R6 \
  33828. - /usr/lib/X11R5 \
  33829. - /usr/lib/X11R4 \
  33830. - \
  33831. - /usr/local/X11/lib \
  33832. - /usr/local/X11R6/lib \
  33833. - /usr/local/X11R5/lib \
  33834. - /usr/local/X11R4/lib \
  33835. - \
  33836. - /usr/local/lib/X11 \
  33837. - /usr/local/lib/X11R6 \
  33838. - /usr/local/lib/X11R5 \
  33839. - /usr/local/lib/X11R4 \
  33840. - \
  33841. - /usr/X386/lib \
  33842. - /usr/x386/lib \
  33843. - /usr/XFree86/lib/X11 \
  33844. - \
  33845. - /usr/lib \
  33846. - /usr/local/lib \
  33847. - /usr/unsupported/lib \
  33848. - /usr/athena/lib \
  33849. - /usr/local/x11r5/lib \
  33850. - /usr/lpp/Xamples/lib \
  33851. - /lib/usr/lib/X11 \
  33852. - \
  33853. - /usr/openwin/lib \
  33854. - /usr/openwin/share/lib \
  33855. - ; \
  33856. + echo "$as_me: failed program was:" >&5
  33857. +sed 's/^/| /' conftest.$ac_ext >&5
  33858. +
  33859. +LIBS=$ac_save_LIBS
  33860. +for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  33861. do
  33862. + # Don't even attempt the hair of trying to link an X program!
  33863. for ac_extension in a so sl; do
  33864. - if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  33865. + if test -r $ac_dir/libX11.$ac_extension; then
  33866. ac_x_libraries=$ac_dir
  33867. break 2
  33868. fi
  33869. done
  33870. done
  33871. fi
  33872. -rm -f conftest*
  33873. -fi # $ac_x_libraries = NO
  33874. +rm -f conftest.err conftest.$ac_objext \
  33875. + conftest$ac_exeext conftest.$ac_ext
  33876. +fi # $ac_x_libraries = no
  33877. -if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  33878. +if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
  33879. # Didn't find X anywhere. Cache the known absence of X.
  33880. ac_cv_have_x="have_x=no"
  33881. else
  33882. # Record where we found X for the cache.
  33883. ac_cv_have_x="have_x=yes \
  33884. - ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  33885. + ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  33886. fi
  33887. fi
  33888. +
  33889. fi
  33890. eval "$ac_cv_have_x"
  33891. fi # $with_x != no
  33892. if test "$have_x" != yes; then
  33893. - echo "$ac_t""$have_x" 1>&6
  33894. + echo "$as_me:$LINENO: result: $have_x" >&5
  33895. +echo "${ECHO_T}$have_x" >&6
  33896. no_x=yes
  33897. else
  33898. # If each of the values was on the command line, it overrides each guess.
  33899. @@ -4766,14 +23178,21 @@
  33900. # Update the cache value to reflect the command line values.
  33901. ac_cv_have_x="have_x=yes \
  33902. ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  33903. - echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  33904. + # It might be that x_includes is empty (headers are found in the
  33905. + # standard search path. Then output the corresponding message
  33906. + ac_out_x_includes=$x_includes
  33907. + test "x$x_includes" = x && ac_out_x_includes="in standard search path"
  33908. + echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
  33909. +echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
  33910. fi
  33911. +fi
  33912. if test "$no_x" = yes; then
  33913. # Not all programs may use this symbol, but it does not hurt to define it.
  33914. - cat >> confdefs.h <<\EOF
  33915. +
  33916. +cat >>confdefs.h <<\_ACEOF
  33917. #define X_DISPLAY_MISSING 1
  33918. -EOF
  33919. +_ACEOF
  33920. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  33921. else
  33922. @@ -4786,60 +23205,117 @@
  33923. X_LIBS="$X_LIBS -L$x_libraries"
  33924. # For Solaris; some versions of Sun CC require a space after -R and
  33925. # others require no space. Words are not sufficient . . . .
  33926. - case "`(uname -sr) 2>/dev/null`" in
  33927. + case `(uname -sr) 2>/dev/null` in
  33928. "SunOS 5"*)
  33929. - echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
  33930. -echo "configure:4793: checking whether -R must be followed by a space" >&5
  33931. - ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
  33932. - cat > conftest.$ac_ext <<EOF
  33933. -#line 4796 "configure"
  33934. -#include "confdefs.h"
  33935. + echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
  33936. +echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
  33937. + ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  33938. + cat >conftest.$ac_ext <<_ACEOF
  33939. +/* confdefs.h. */
  33940. +_ACEOF
  33941. +cat confdefs.h >>conftest.$ac_ext
  33942. +cat >>conftest.$ac_ext <<_ACEOF
  33943. +/* end confdefs.h. */
  33944. -int main() {
  33945. +int
  33946. +main ()
  33947. +{
  33948. -; return 0; }
  33949. -EOF
  33950. -if { (eval echo configure:4803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  33951. - rm -rf conftest*
  33952. + ;
  33953. + return 0;
  33954. +}
  33955. +_ACEOF
  33956. +rm -f conftest.$ac_objext conftest$ac_exeext
  33957. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  33958. + (eval $ac_link) 2>conftest.er1
  33959. + ac_status=$?
  33960. + grep -v '^ *+' conftest.er1 >conftest.err
  33961. + rm -f conftest.er1
  33962. + cat conftest.err >&5
  33963. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33964. + (exit $ac_status); } &&
  33965. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  33966. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  33967. + (eval $ac_try) 2>&5
  33968. + ac_status=$?
  33969. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33970. + (exit $ac_status); }; } &&
  33971. + { ac_try='test -s conftest$ac_exeext'
  33972. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  33973. + (eval $ac_try) 2>&5
  33974. + ac_status=$?
  33975. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33976. + (exit $ac_status); }; }; then
  33977. ac_R_nospace=yes
  33978. else
  33979. - echo "configure: failed program was:" >&5
  33980. - cat conftest.$ac_ext >&5
  33981. - rm -rf conftest*
  33982. - ac_R_nospace=no
  33983. + echo "$as_me: failed program was:" >&5
  33984. +sed 's/^/| /' conftest.$ac_ext >&5
  33985. +
  33986. +ac_R_nospace=no
  33987. fi
  33988. -rm -f conftest*
  33989. +rm -f conftest.err conftest.$ac_objext \
  33990. + conftest$ac_exeext conftest.$ac_ext
  33991. if test $ac_R_nospace = yes; then
  33992. - echo "$ac_t""no" 1>&6
  33993. + echo "$as_me:$LINENO: result: no" >&5
  33994. +echo "${ECHO_T}no" >&6
  33995. X_LIBS="$X_LIBS -R$x_libraries"
  33996. else
  33997. LIBS="$ac_xsave_LIBS -R $x_libraries"
  33998. - cat > conftest.$ac_ext <<EOF
  33999. -#line 4819 "configure"
  34000. -#include "confdefs.h"
  34001. + cat >conftest.$ac_ext <<_ACEOF
  34002. +/* confdefs.h. */
  34003. +_ACEOF
  34004. +cat confdefs.h >>conftest.$ac_ext
  34005. +cat >>conftest.$ac_ext <<_ACEOF
  34006. +/* end confdefs.h. */
  34007. -int main() {
  34008. +int
  34009. +main ()
  34010. +{
  34011. -; return 0; }
  34012. -EOF
  34013. -if { (eval echo configure:4826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  34014. - rm -rf conftest*
  34015. + ;
  34016. + return 0;
  34017. +}
  34018. +_ACEOF
  34019. +rm -f conftest.$ac_objext conftest$ac_exeext
  34020. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  34021. + (eval $ac_link) 2>conftest.er1
  34022. + ac_status=$?
  34023. + grep -v '^ *+' conftest.er1 >conftest.err
  34024. + rm -f conftest.er1
  34025. + cat conftest.err >&5
  34026. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34027. + (exit $ac_status); } &&
  34028. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  34029. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34030. + (eval $ac_try) 2>&5
  34031. + ac_status=$?
  34032. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34033. + (exit $ac_status); }; } &&
  34034. + { ac_try='test -s conftest$ac_exeext'
  34035. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34036. + (eval $ac_try) 2>&5
  34037. + ac_status=$?
  34038. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34039. + (exit $ac_status); }; }; then
  34040. ac_R_space=yes
  34041. else
  34042. - echo "configure: failed program was:" >&5
  34043. - cat conftest.$ac_ext >&5
  34044. - rm -rf conftest*
  34045. - ac_R_space=no
  34046. + echo "$as_me: failed program was:" >&5
  34047. +sed 's/^/| /' conftest.$ac_ext >&5
  34048. +
  34049. +ac_R_space=no
  34050. fi
  34051. -rm -f conftest*
  34052. +rm -f conftest.err conftest.$ac_objext \
  34053. + conftest$ac_exeext conftest.$ac_ext
  34054. if test $ac_R_space = yes; then
  34055. - echo "$ac_t""yes" 1>&6
  34056. + echo "$as_me:$LINENO: result: yes" >&5
  34057. +echo "${ECHO_T}yes" >&6
  34058. X_LIBS="$X_LIBS -R $x_libraries"
  34059. else
  34060. - echo "$ac_t""neither works" 1>&6
  34061. + echo "$as_me:$LINENO: result: neither works" >&5
  34062. +echo "${ECHO_T}neither works" >&6
  34063. fi
  34064. fi
  34065. - LIBS="$ac_xsave_LIBS"
  34066. + LIBS=$ac_xsave_LIBS
  34067. esac
  34068. fi
  34069. @@ -4850,528 +23326,1222 @@
  34070. if test "$ISC" = yes; then
  34071. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  34072. else
  34073. - # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  34074. - # libraries were built with DECnet support. And karl@cs.umb.edu says
  34075. + # Martyn Johnson says this is needed for Ultrix, if the X
  34076. + # libraries were built with DECnet support. And Karl Berry says
  34077. # the Alpha needs dnet_stub (dnet does not exist).
  34078. - echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
  34079. -echo "configure:4858: checking for dnet_ntoa in -ldnet" >&5
  34080. -ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  34081. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  34082. - echo $ac_n "(cached) $ac_c" 1>&6
  34083. -else
  34084. - ac_save_LIBS="$LIBS"
  34085. -LIBS="-ldnet $LIBS"
  34086. -cat > conftest.$ac_ext <<EOF
  34087. -#line 4866 "configure"
  34088. -#include "confdefs.h"
  34089. + ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  34090. + cat >conftest.$ac_ext <<_ACEOF
  34091. +/* confdefs.h. */
  34092. +_ACEOF
  34093. +cat confdefs.h >>conftest.$ac_ext
  34094. +cat >>conftest.$ac_ext <<_ACEOF
  34095. +/* end confdefs.h. */
  34096. +
  34097. /* Override any gcc2 internal prototype to avoid an error. */
  34098. +#ifdef __cplusplus
  34099. +extern "C"
  34100. +#endif
  34101. /* We use char because int might match the return type of a gcc2
  34102. - builtin and then its argument prototype would still apply. */
  34103. -char dnet_ntoa();
  34104. + builtin and then its argument prototype would still apply. */
  34105. +char XOpenDisplay ();
  34106. +int
  34107. +main ()
  34108. +{
  34109. +XOpenDisplay ();
  34110. + ;
  34111. + return 0;
  34112. +}
  34113. +_ACEOF
  34114. +rm -f conftest.$ac_objext conftest$ac_exeext
  34115. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  34116. + (eval $ac_link) 2>conftest.er1
  34117. + ac_status=$?
  34118. + grep -v '^ *+' conftest.er1 >conftest.err
  34119. + rm -f conftest.er1
  34120. + cat conftest.err >&5
  34121. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34122. + (exit $ac_status); } &&
  34123. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  34124. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34125. + (eval $ac_try) 2>&5
  34126. + ac_status=$?
  34127. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34128. + (exit $ac_status); }; } &&
  34129. + { ac_try='test -s conftest$ac_exeext'
  34130. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34131. + (eval $ac_try) 2>&5
  34132. + ac_status=$?
  34133. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34134. + (exit $ac_status); }; }; then
  34135. + :
  34136. +else
  34137. + echo "$as_me: failed program was:" >&5
  34138. +sed 's/^/| /' conftest.$ac_ext >&5
  34139. -int main() {
  34140. -dnet_ntoa()
  34141. -; return 0; }
  34142. -EOF
  34143. -if { (eval echo configure:4877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  34144. - rm -rf conftest*
  34145. - eval "ac_cv_lib_$ac_lib_var=yes"
  34146. +echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
  34147. +echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
  34148. +if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
  34149. + echo $ECHO_N "(cached) $ECHO_C" >&6
  34150. else
  34151. - echo "configure: failed program was:" >&5
  34152. - cat conftest.$ac_ext >&5
  34153. - rm -rf conftest*
  34154. - eval "ac_cv_lib_$ac_lib_var=no"
  34155. -fi
  34156. -rm -f conftest*
  34157. -LIBS="$ac_save_LIBS"
  34158. + ac_check_lib_save_LIBS=$LIBS
  34159. +LIBS="-ldnet $LIBS"
  34160. +cat >conftest.$ac_ext <<_ACEOF
  34161. +/* confdefs.h. */
  34162. +_ACEOF
  34163. +cat confdefs.h >>conftest.$ac_ext
  34164. +cat >>conftest.$ac_ext <<_ACEOF
  34165. +/* end confdefs.h. */
  34166. -fi
  34167. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  34168. - echo "$ac_t""yes" 1>&6
  34169. +/* Override any gcc2 internal prototype to avoid an error. */
  34170. +#ifdef __cplusplus
  34171. +extern "C"
  34172. +#endif
  34173. +/* We use char because int might match the return type of a gcc2
  34174. + builtin and then its argument prototype would still apply. */
  34175. +char dnet_ntoa ();
  34176. +int
  34177. +main ()
  34178. +{
  34179. +dnet_ntoa ();
  34180. + ;
  34181. + return 0;
  34182. +}
  34183. +_ACEOF
  34184. +rm -f conftest.$ac_objext conftest$ac_exeext
  34185. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  34186. + (eval $ac_link) 2>conftest.er1
  34187. + ac_status=$?
  34188. + grep -v '^ *+' conftest.er1 >conftest.err
  34189. + rm -f conftest.er1
  34190. + cat conftest.err >&5
  34191. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34192. + (exit $ac_status); } &&
  34193. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  34194. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34195. + (eval $ac_try) 2>&5
  34196. + ac_status=$?
  34197. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34198. + (exit $ac_status); }; } &&
  34199. + { ac_try='test -s conftest$ac_exeext'
  34200. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34201. + (eval $ac_try) 2>&5
  34202. + ac_status=$?
  34203. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34204. + (exit $ac_status); }; }; then
  34205. + ac_cv_lib_dnet_dnet_ntoa=yes
  34206. +else
  34207. + echo "$as_me: failed program was:" >&5
  34208. +sed 's/^/| /' conftest.$ac_ext >&5
  34209. +
  34210. +ac_cv_lib_dnet_dnet_ntoa=no
  34211. +fi
  34212. +rm -f conftest.err conftest.$ac_objext \
  34213. + conftest$ac_exeext conftest.$ac_ext
  34214. +LIBS=$ac_check_lib_save_LIBS
  34215. +fi
  34216. +echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  34217. +echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
  34218. +if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
  34219. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  34220. -else
  34221. - echo "$ac_t""no" 1>&6
  34222. fi
  34223. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  34224. - echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
  34225. -echo "configure:4899: checking for dnet_ntoa in -ldnet_stub" >&5
  34226. -ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  34227. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  34228. - echo $ac_n "(cached) $ac_c" 1>&6
  34229. + echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
  34230. +echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
  34231. +if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
  34232. + echo $ECHO_N "(cached) $ECHO_C" >&6
  34233. else
  34234. - ac_save_LIBS="$LIBS"
  34235. + ac_check_lib_save_LIBS=$LIBS
  34236. LIBS="-ldnet_stub $LIBS"
  34237. -cat > conftest.$ac_ext <<EOF
  34238. -#line 4907 "configure"
  34239. -#include "confdefs.h"
  34240. +cat >conftest.$ac_ext <<_ACEOF
  34241. +/* confdefs.h. */
  34242. +_ACEOF
  34243. +cat confdefs.h >>conftest.$ac_ext
  34244. +cat >>conftest.$ac_ext <<_ACEOF
  34245. +/* end confdefs.h. */
  34246. +
  34247. /* Override any gcc2 internal prototype to avoid an error. */
  34248. +#ifdef __cplusplus
  34249. +extern "C"
  34250. +#endif
  34251. /* We use char because int might match the return type of a gcc2
  34252. - builtin and then its argument prototype would still apply. */
  34253. -char dnet_ntoa();
  34254. -
  34255. -int main() {
  34256. -dnet_ntoa()
  34257. -; return 0; }
  34258. -EOF
  34259. -if { (eval echo configure:4918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  34260. - rm -rf conftest*
  34261. - eval "ac_cv_lib_$ac_lib_var=yes"
  34262. -else
  34263. - echo "configure: failed program was:" >&5
  34264. - cat conftest.$ac_ext >&5
  34265. - rm -rf conftest*
  34266. - eval "ac_cv_lib_$ac_lib_var=no"
  34267. -fi
  34268. -rm -f conftest*
  34269. -LIBS="$ac_save_LIBS"
  34270. -
  34271. -fi
  34272. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  34273. - echo "$ac_t""yes" 1>&6
  34274. + builtin and then its argument prototype would still apply. */
  34275. +char dnet_ntoa ();
  34276. +int
  34277. +main ()
  34278. +{
  34279. +dnet_ntoa ();
  34280. + ;
  34281. + return 0;
  34282. +}
  34283. +_ACEOF
  34284. +rm -f conftest.$ac_objext conftest$ac_exeext
  34285. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  34286. + (eval $ac_link) 2>conftest.er1
  34287. + ac_status=$?
  34288. + grep -v '^ *+' conftest.er1 >conftest.err
  34289. + rm -f conftest.er1
  34290. + cat conftest.err >&5
  34291. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34292. + (exit $ac_status); } &&
  34293. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  34294. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34295. + (eval $ac_try) 2>&5
  34296. + ac_status=$?
  34297. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34298. + (exit $ac_status); }; } &&
  34299. + { ac_try='test -s conftest$ac_exeext'
  34300. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34301. + (eval $ac_try) 2>&5
  34302. + ac_status=$?
  34303. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34304. + (exit $ac_status); }; }; then
  34305. + ac_cv_lib_dnet_stub_dnet_ntoa=yes
  34306. +else
  34307. + echo "$as_me: failed program was:" >&5
  34308. +sed 's/^/| /' conftest.$ac_ext >&5
  34309. +
  34310. +ac_cv_lib_dnet_stub_dnet_ntoa=no
  34311. +fi
  34312. +rm -f conftest.err conftest.$ac_objext \
  34313. + conftest$ac_exeext conftest.$ac_ext
  34314. +LIBS=$ac_check_lib_save_LIBS
  34315. +fi
  34316. +echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  34317. +echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
  34318. +if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
  34319. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  34320. -else
  34321. - echo "$ac_t""no" 1>&6
  34322. fi
  34323. fi
  34324. +fi
  34325. +rm -f conftest.err conftest.$ac_objext \
  34326. + conftest$ac_exeext conftest.$ac_ext
  34327. + LIBS="$ac_xsave_LIBS"
  34328. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  34329. # to get the SysV transport functions.
  34330. - # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
  34331. + # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  34332. # needs -lnsl.
  34333. # The nsl library prevents programs from opening the X display
  34334. - # on Irix 5.2, according to dickey@clark.net.
  34335. - echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  34336. -echo "configure:4947: checking for gethostbyname" >&5
  34337. -if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  34338. - echo $ac_n "(cached) $ac_c" 1>&6
  34339. -else
  34340. - cat > conftest.$ac_ext <<EOF
  34341. -#line 4952 "configure"
  34342. -#include "confdefs.h"
  34343. + # on Irix 5.2, according to T.E. Dickey.
  34344. + # The functions gethostbyname, getservbyname, and inet_addr are
  34345. + # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  34346. + echo "$as_me:$LINENO: checking for gethostbyname" >&5
  34347. +echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
  34348. +if test "${ac_cv_func_gethostbyname+set}" = set; then
  34349. + echo $ECHO_N "(cached) $ECHO_C" >&6
  34350. +else
  34351. + cat >conftest.$ac_ext <<_ACEOF
  34352. +/* confdefs.h. */
  34353. +_ACEOF
  34354. +cat confdefs.h >>conftest.$ac_ext
  34355. +cat >>conftest.$ac_ext <<_ACEOF
  34356. +/* end confdefs.h. */
  34357. +/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
  34358. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  34359. +#define gethostbyname innocuous_gethostbyname
  34360. +
  34361. /* System header to define __stub macros and hopefully few prototypes,
  34362. - which can conflict with char gethostbyname(); below. */
  34363. -#include <assert.h>
  34364. -/* Override any gcc2 internal prototype to avoid an error. */
  34365. -/* We use char because int might match the return type of a gcc2
  34366. - builtin and then its argument prototype would still apply. */
  34367. -char gethostbyname();
  34368. + which can conflict with char gethostbyname (); below.
  34369. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  34370. + <limits.h> exists even on freestanding compilers. */
  34371. -int main() {
  34372. +#ifdef __STDC__
  34373. +# include <limits.h>
  34374. +#else
  34375. +# include <assert.h>
  34376. +#endif
  34377. +#undef gethostbyname
  34378. +
  34379. +/* Override any gcc2 internal prototype to avoid an error. */
  34380. +#ifdef __cplusplus
  34381. +extern "C"
  34382. +{
  34383. +#endif
  34384. +/* We use char because int might match the return type of a gcc2
  34385. + builtin and then its argument prototype would still apply. */
  34386. +char gethostbyname ();
  34387. /* The GNU C library defines this for functions which it implements
  34388. to always fail with ENOSYS. Some functions are actually named
  34389. something starting with __ and the normal name is an alias. */
  34390. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  34391. choke me
  34392. #else
  34393. -gethostbyname();
  34394. +char (*f) () = gethostbyname;
  34395. +#endif
  34396. +#ifdef __cplusplus
  34397. +}
  34398. #endif
  34399. -; return 0; }
  34400. -EOF
  34401. -if { (eval echo configure:4975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  34402. - rm -rf conftest*
  34403. - eval "ac_cv_func_gethostbyname=yes"
  34404. -else
  34405. - echo "configure: failed program was:" >&5
  34406. - cat conftest.$ac_ext >&5
  34407. - rm -rf conftest*
  34408. - eval "ac_cv_func_gethostbyname=no"
  34409. -fi
  34410. -rm -f conftest*
  34411. -fi
  34412. +int
  34413. +main ()
  34414. +{
  34415. +return f != gethostbyname;
  34416. + ;
  34417. + return 0;
  34418. +}
  34419. +_ACEOF
  34420. +rm -f conftest.$ac_objext conftest$ac_exeext
  34421. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  34422. + (eval $ac_link) 2>conftest.er1
  34423. + ac_status=$?
  34424. + grep -v '^ *+' conftest.er1 >conftest.err
  34425. + rm -f conftest.er1
  34426. + cat conftest.err >&5
  34427. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34428. + (exit $ac_status); } &&
  34429. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  34430. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34431. + (eval $ac_try) 2>&5
  34432. + ac_status=$?
  34433. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34434. + (exit $ac_status); }; } &&
  34435. + { ac_try='test -s conftest$ac_exeext'
  34436. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34437. + (eval $ac_try) 2>&5
  34438. + ac_status=$?
  34439. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34440. + (exit $ac_status); }; }; then
  34441. + ac_cv_func_gethostbyname=yes
  34442. +else
  34443. + echo "$as_me: failed program was:" >&5
  34444. +sed 's/^/| /' conftest.$ac_ext >&5
  34445. -if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  34446. - echo "$ac_t""yes" 1>&6
  34447. - :
  34448. -else
  34449. - echo "$ac_t""no" 1>&6
  34450. +ac_cv_func_gethostbyname=no
  34451. fi
  34452. +rm -f conftest.err conftest.$ac_objext \
  34453. + conftest$ac_exeext conftest.$ac_ext
  34454. +fi
  34455. +echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
  34456. +echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
  34457. if test $ac_cv_func_gethostbyname = no; then
  34458. - echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  34459. -echo "configure:4996: checking for gethostbyname in -lnsl" >&5
  34460. -ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  34461. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  34462. - echo $ac_n "(cached) $ac_c" 1>&6
  34463. + echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  34464. +echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
  34465. +if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  34466. + echo $ECHO_N "(cached) $ECHO_C" >&6
  34467. else
  34468. - ac_save_LIBS="$LIBS"
  34469. + ac_check_lib_save_LIBS=$LIBS
  34470. LIBS="-lnsl $LIBS"
  34471. -cat > conftest.$ac_ext <<EOF
  34472. -#line 5004 "configure"
  34473. -#include "confdefs.h"
  34474. +cat >conftest.$ac_ext <<_ACEOF
  34475. +/* confdefs.h. */
  34476. +_ACEOF
  34477. +cat confdefs.h >>conftest.$ac_ext
  34478. +cat >>conftest.$ac_ext <<_ACEOF
  34479. +/* end confdefs.h. */
  34480. +
  34481. /* Override any gcc2 internal prototype to avoid an error. */
  34482. +#ifdef __cplusplus
  34483. +extern "C"
  34484. +#endif
  34485. /* We use char because int might match the return type of a gcc2
  34486. - builtin and then its argument prototype would still apply. */
  34487. -char gethostbyname();
  34488. -
  34489. -int main() {
  34490. -gethostbyname()
  34491. -; return 0; }
  34492. -EOF
  34493. -if { (eval echo configure:5015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  34494. - rm -rf conftest*
  34495. - eval "ac_cv_lib_$ac_lib_var=yes"
  34496. -else
  34497. - echo "configure: failed program was:" >&5
  34498. - cat conftest.$ac_ext >&5
  34499. - rm -rf conftest*
  34500. - eval "ac_cv_lib_$ac_lib_var=no"
  34501. + builtin and then its argument prototype would still apply. */
  34502. +char gethostbyname ();
  34503. +int
  34504. +main ()
  34505. +{
  34506. +gethostbyname ();
  34507. + ;
  34508. + return 0;
  34509. +}
  34510. +_ACEOF
  34511. +rm -f conftest.$ac_objext conftest$ac_exeext
  34512. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  34513. + (eval $ac_link) 2>conftest.er1
  34514. + ac_status=$?
  34515. + grep -v '^ *+' conftest.er1 >conftest.err
  34516. + rm -f conftest.er1
  34517. + cat conftest.err >&5
  34518. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34519. + (exit $ac_status); } &&
  34520. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  34521. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34522. + (eval $ac_try) 2>&5
  34523. + ac_status=$?
  34524. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34525. + (exit $ac_status); }; } &&
  34526. + { ac_try='test -s conftest$ac_exeext'
  34527. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34528. + (eval $ac_try) 2>&5
  34529. + ac_status=$?
  34530. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34531. + (exit $ac_status); }; }; then
  34532. + ac_cv_lib_nsl_gethostbyname=yes
  34533. +else
  34534. + echo "$as_me: failed program was:" >&5
  34535. +sed 's/^/| /' conftest.$ac_ext >&5
  34536. +
  34537. +ac_cv_lib_nsl_gethostbyname=no
  34538. +fi
  34539. +rm -f conftest.err conftest.$ac_objext \
  34540. + conftest$ac_exeext conftest.$ac_ext
  34541. +LIBS=$ac_check_lib_save_LIBS
  34542. +fi
  34543. +echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  34544. +echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
  34545. +if test $ac_cv_lib_nsl_gethostbyname = yes; then
  34546. + X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  34547. fi
  34548. -rm -f conftest*
  34549. -LIBS="$ac_save_LIBS"
  34550. -fi
  34551. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  34552. - echo "$ac_t""yes" 1>&6
  34553. - X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  34554. -else
  34555. - echo "$ac_t""no" 1>&6
  34556. + if test $ac_cv_lib_nsl_gethostbyname = no; then
  34557. + echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
  34558. +echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
  34559. +if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
  34560. + echo $ECHO_N "(cached) $ECHO_C" >&6
  34561. +else
  34562. + ac_check_lib_save_LIBS=$LIBS
  34563. +LIBS="-lbsd $LIBS"
  34564. +cat >conftest.$ac_ext <<_ACEOF
  34565. +/* confdefs.h. */
  34566. +_ACEOF
  34567. +cat confdefs.h >>conftest.$ac_ext
  34568. +cat >>conftest.$ac_ext <<_ACEOF
  34569. +/* end confdefs.h. */
  34570. +
  34571. +/* Override any gcc2 internal prototype to avoid an error. */
  34572. +#ifdef __cplusplus
  34573. +extern "C"
  34574. +#endif
  34575. +/* We use char because int might match the return type of a gcc2
  34576. + builtin and then its argument prototype would still apply. */
  34577. +char gethostbyname ();
  34578. +int
  34579. +main ()
  34580. +{
  34581. +gethostbyname ();
  34582. + ;
  34583. + return 0;
  34584. +}
  34585. +_ACEOF
  34586. +rm -f conftest.$ac_objext conftest$ac_exeext
  34587. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  34588. + (eval $ac_link) 2>conftest.er1
  34589. + ac_status=$?
  34590. + grep -v '^ *+' conftest.er1 >conftest.err
  34591. + rm -f conftest.er1
  34592. + cat conftest.err >&5
  34593. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34594. + (exit $ac_status); } &&
  34595. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  34596. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34597. + (eval $ac_try) 2>&5
  34598. + ac_status=$?
  34599. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34600. + (exit $ac_status); }; } &&
  34601. + { ac_try='test -s conftest$ac_exeext'
  34602. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34603. + (eval $ac_try) 2>&5
  34604. + ac_status=$?
  34605. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34606. + (exit $ac_status); }; }; then
  34607. + ac_cv_lib_bsd_gethostbyname=yes
  34608. +else
  34609. + echo "$as_me: failed program was:" >&5
  34610. +sed 's/^/| /' conftest.$ac_ext >&5
  34611. +
  34612. +ac_cv_lib_bsd_gethostbyname=no
  34613. +fi
  34614. +rm -f conftest.err conftest.$ac_objext \
  34615. + conftest$ac_exeext conftest.$ac_ext
  34616. +LIBS=$ac_check_lib_save_LIBS
  34617. +fi
  34618. +echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
  34619. +echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
  34620. +if test $ac_cv_lib_bsd_gethostbyname = yes; then
  34621. + X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  34622. fi
  34623. + fi
  34624. fi
  34625. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  34626. # socket/setsockopt and other routines are undefined under SCO ODT
  34627. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  34628. - # on later versions), says simon@lia.di.epfl.ch: it contains
  34629. - # gethostby* variants that don't use the nameserver (or something).
  34630. - # -lsocket must be given before -lnsl if both are needed.
  34631. - # We assume that if connect needs -lnsl, so does gethostbyname.
  34632. - echo $ac_n "checking for connect""... $ac_c" 1>&6
  34633. -echo "configure:5045: checking for connect" >&5
  34634. -if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  34635. - echo $ac_n "(cached) $ac_c" 1>&6
  34636. -else
  34637. - cat > conftest.$ac_ext <<EOF
  34638. -#line 5050 "configure"
  34639. -#include "confdefs.h"
  34640. + # on later versions), says Simon Leinen: it contains gethostby*
  34641. + # variants that don't use the name server (or something). -lsocket
  34642. + # must be given before -lnsl if both are needed. We assume that
  34643. + # if connect needs -lnsl, so does gethostbyname.
  34644. + echo "$as_me:$LINENO: checking for connect" >&5
  34645. +echo $ECHO_N "checking for connect... $ECHO_C" >&6
  34646. +if test "${ac_cv_func_connect+set}" = set; then
  34647. + echo $ECHO_N "(cached) $ECHO_C" >&6
  34648. +else
  34649. + cat >conftest.$ac_ext <<_ACEOF
  34650. +/* confdefs.h. */
  34651. +_ACEOF
  34652. +cat confdefs.h >>conftest.$ac_ext
  34653. +cat >>conftest.$ac_ext <<_ACEOF
  34654. +/* end confdefs.h. */
  34655. +/* Define connect to an innocuous variant, in case <limits.h> declares connect.
  34656. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  34657. +#define connect innocuous_connect
  34658. +
  34659. /* System header to define __stub macros and hopefully few prototypes,
  34660. - which can conflict with char connect(); below. */
  34661. -#include <assert.h>
  34662. -/* Override any gcc2 internal prototype to avoid an error. */
  34663. -/* We use char because int might match the return type of a gcc2
  34664. - builtin and then its argument prototype would still apply. */
  34665. -char connect();
  34666. + which can conflict with char connect (); below.
  34667. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  34668. + <limits.h> exists even on freestanding compilers. */
  34669. -int main() {
  34670. +#ifdef __STDC__
  34671. +# include <limits.h>
  34672. +#else
  34673. +# include <assert.h>
  34674. +#endif
  34675. +#undef connect
  34676. +
  34677. +/* Override any gcc2 internal prototype to avoid an error. */
  34678. +#ifdef __cplusplus
  34679. +extern "C"
  34680. +{
  34681. +#endif
  34682. +/* We use char because int might match the return type of a gcc2
  34683. + builtin and then its argument prototype would still apply. */
  34684. +char connect ();
  34685. /* The GNU C library defines this for functions which it implements
  34686. to always fail with ENOSYS. Some functions are actually named
  34687. something starting with __ and the normal name is an alias. */
  34688. #if defined (__stub_connect) || defined (__stub___connect)
  34689. choke me
  34690. #else
  34691. -connect();
  34692. +char (*f) () = connect;
  34693. +#endif
  34694. +#ifdef __cplusplus
  34695. +}
  34696. #endif
  34697. -; return 0; }
  34698. -EOF
  34699. -if { (eval echo configure:5073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  34700. - rm -rf conftest*
  34701. - eval "ac_cv_func_connect=yes"
  34702. -else
  34703. - echo "configure: failed program was:" >&5
  34704. - cat conftest.$ac_ext >&5
  34705. - rm -rf conftest*
  34706. - eval "ac_cv_func_connect=no"
  34707. -fi
  34708. -rm -f conftest*
  34709. -fi
  34710. +int
  34711. +main ()
  34712. +{
  34713. +return f != connect;
  34714. + ;
  34715. + return 0;
  34716. +}
  34717. +_ACEOF
  34718. +rm -f conftest.$ac_objext conftest$ac_exeext
  34719. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  34720. + (eval $ac_link) 2>conftest.er1
  34721. + ac_status=$?
  34722. + grep -v '^ *+' conftest.er1 >conftest.err
  34723. + rm -f conftest.er1
  34724. + cat conftest.err >&5
  34725. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34726. + (exit $ac_status); } &&
  34727. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  34728. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34729. + (eval $ac_try) 2>&5
  34730. + ac_status=$?
  34731. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34732. + (exit $ac_status); }; } &&
  34733. + { ac_try='test -s conftest$ac_exeext'
  34734. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34735. + (eval $ac_try) 2>&5
  34736. + ac_status=$?
  34737. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34738. + (exit $ac_status); }; }; then
  34739. + ac_cv_func_connect=yes
  34740. +else
  34741. + echo "$as_me: failed program was:" >&5
  34742. +sed 's/^/| /' conftest.$ac_ext >&5
  34743. -if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  34744. - echo "$ac_t""yes" 1>&6
  34745. - :
  34746. -else
  34747. - echo "$ac_t""no" 1>&6
  34748. +ac_cv_func_connect=no
  34749. fi
  34750. +rm -f conftest.err conftest.$ac_objext \
  34751. + conftest$ac_exeext conftest.$ac_ext
  34752. +fi
  34753. +echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
  34754. +echo "${ECHO_T}$ac_cv_func_connect" >&6
  34755. if test $ac_cv_func_connect = no; then
  34756. - echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  34757. -echo "configure:5094: checking for connect in -lsocket" >&5
  34758. -ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  34759. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  34760. - echo $ac_n "(cached) $ac_c" 1>&6
  34761. + echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
  34762. +echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
  34763. +if test "${ac_cv_lib_socket_connect+set}" = set; then
  34764. + echo $ECHO_N "(cached) $ECHO_C" >&6
  34765. else
  34766. - ac_save_LIBS="$LIBS"
  34767. + ac_check_lib_save_LIBS=$LIBS
  34768. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  34769. -cat > conftest.$ac_ext <<EOF
  34770. -#line 5102 "configure"
  34771. -#include "confdefs.h"
  34772. +cat >conftest.$ac_ext <<_ACEOF
  34773. +/* confdefs.h. */
  34774. +_ACEOF
  34775. +cat confdefs.h >>conftest.$ac_ext
  34776. +cat >>conftest.$ac_ext <<_ACEOF
  34777. +/* end confdefs.h. */
  34778. +
  34779. /* Override any gcc2 internal prototype to avoid an error. */
  34780. +#ifdef __cplusplus
  34781. +extern "C"
  34782. +#endif
  34783. /* We use char because int might match the return type of a gcc2
  34784. - builtin and then its argument prototype would still apply. */
  34785. -char connect();
  34786. -
  34787. -int main() {
  34788. -connect()
  34789. -; return 0; }
  34790. -EOF
  34791. -if { (eval echo configure:5113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  34792. - rm -rf conftest*
  34793. - eval "ac_cv_lib_$ac_lib_var=yes"
  34794. -else
  34795. - echo "configure: failed program was:" >&5
  34796. - cat conftest.$ac_ext >&5
  34797. - rm -rf conftest*
  34798. - eval "ac_cv_lib_$ac_lib_var=no"
  34799. -fi
  34800. -rm -f conftest*
  34801. -LIBS="$ac_save_LIBS"
  34802. -
  34803. -fi
  34804. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  34805. - echo "$ac_t""yes" 1>&6
  34806. + builtin and then its argument prototype would still apply. */
  34807. +char connect ();
  34808. +int
  34809. +main ()
  34810. +{
  34811. +connect ();
  34812. + ;
  34813. + return 0;
  34814. +}
  34815. +_ACEOF
  34816. +rm -f conftest.$ac_objext conftest$ac_exeext
  34817. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  34818. + (eval $ac_link) 2>conftest.er1
  34819. + ac_status=$?
  34820. + grep -v '^ *+' conftest.er1 >conftest.err
  34821. + rm -f conftest.er1
  34822. + cat conftest.err >&5
  34823. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34824. + (exit $ac_status); } &&
  34825. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  34826. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34827. + (eval $ac_try) 2>&5
  34828. + ac_status=$?
  34829. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34830. + (exit $ac_status); }; } &&
  34831. + { ac_try='test -s conftest$ac_exeext'
  34832. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34833. + (eval $ac_try) 2>&5
  34834. + ac_status=$?
  34835. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34836. + (exit $ac_status); }; }; then
  34837. + ac_cv_lib_socket_connect=yes
  34838. +else
  34839. + echo "$as_me: failed program was:" >&5
  34840. +sed 's/^/| /' conftest.$ac_ext >&5
  34841. +
  34842. +ac_cv_lib_socket_connect=no
  34843. +fi
  34844. +rm -f conftest.err conftest.$ac_objext \
  34845. + conftest$ac_exeext conftest.$ac_ext
  34846. +LIBS=$ac_check_lib_save_LIBS
  34847. +fi
  34848. +echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
  34849. +echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
  34850. +if test $ac_cv_lib_socket_connect = yes; then
  34851. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  34852. -else
  34853. - echo "$ac_t""no" 1>&6
  34854. fi
  34855. fi
  34856. - # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
  34857. - echo $ac_n "checking for remove""... $ac_c" 1>&6
  34858. -echo "configure:5137: checking for remove" >&5
  34859. -if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
  34860. - echo $ac_n "(cached) $ac_c" 1>&6
  34861. -else
  34862. - cat > conftest.$ac_ext <<EOF
  34863. -#line 5142 "configure"
  34864. -#include "confdefs.h"
  34865. + # Guillermo Gomez says -lposix is necessary on A/UX.
  34866. + echo "$as_me:$LINENO: checking for remove" >&5
  34867. +echo $ECHO_N "checking for remove... $ECHO_C" >&6
  34868. +if test "${ac_cv_func_remove+set}" = set; then
  34869. + echo $ECHO_N "(cached) $ECHO_C" >&6
  34870. +else
  34871. + cat >conftest.$ac_ext <<_ACEOF
  34872. +/* confdefs.h. */
  34873. +_ACEOF
  34874. +cat confdefs.h >>conftest.$ac_ext
  34875. +cat >>conftest.$ac_ext <<_ACEOF
  34876. +/* end confdefs.h. */
  34877. +/* Define remove to an innocuous variant, in case <limits.h> declares remove.
  34878. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  34879. +#define remove innocuous_remove
  34880. +
  34881. /* System header to define __stub macros and hopefully few prototypes,
  34882. - which can conflict with char remove(); below. */
  34883. -#include <assert.h>
  34884. -/* Override any gcc2 internal prototype to avoid an error. */
  34885. -/* We use char because int might match the return type of a gcc2
  34886. - builtin and then its argument prototype would still apply. */
  34887. -char remove();
  34888. + which can conflict with char remove (); below.
  34889. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  34890. + <limits.h> exists even on freestanding compilers. */
  34891. +
  34892. +#ifdef __STDC__
  34893. +# include <limits.h>
  34894. +#else
  34895. +# include <assert.h>
  34896. +#endif
  34897. -int main() {
  34898. +#undef remove
  34899. +/* Override any gcc2 internal prototype to avoid an error. */
  34900. +#ifdef __cplusplus
  34901. +extern "C"
  34902. +{
  34903. +#endif
  34904. +/* We use char because int might match the return type of a gcc2
  34905. + builtin and then its argument prototype would still apply. */
  34906. +char remove ();
  34907. /* The GNU C library defines this for functions which it implements
  34908. to always fail with ENOSYS. Some functions are actually named
  34909. something starting with __ and the normal name is an alias. */
  34910. #if defined (__stub_remove) || defined (__stub___remove)
  34911. choke me
  34912. #else
  34913. -remove();
  34914. +char (*f) () = remove;
  34915. +#endif
  34916. +#ifdef __cplusplus
  34917. +}
  34918. #endif
  34919. -; return 0; }
  34920. -EOF
  34921. -if { (eval echo configure:5165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  34922. - rm -rf conftest*
  34923. - eval "ac_cv_func_remove=yes"
  34924. -else
  34925. - echo "configure: failed program was:" >&5
  34926. - cat conftest.$ac_ext >&5
  34927. - rm -rf conftest*
  34928. - eval "ac_cv_func_remove=no"
  34929. -fi
  34930. -rm -f conftest*
  34931. -fi
  34932. +int
  34933. +main ()
  34934. +{
  34935. +return f != remove;
  34936. + ;
  34937. + return 0;
  34938. +}
  34939. +_ACEOF
  34940. +rm -f conftest.$ac_objext conftest$ac_exeext
  34941. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  34942. + (eval $ac_link) 2>conftest.er1
  34943. + ac_status=$?
  34944. + grep -v '^ *+' conftest.er1 >conftest.err
  34945. + rm -f conftest.er1
  34946. + cat conftest.err >&5
  34947. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34948. + (exit $ac_status); } &&
  34949. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  34950. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34951. + (eval $ac_try) 2>&5
  34952. + ac_status=$?
  34953. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34954. + (exit $ac_status); }; } &&
  34955. + { ac_try='test -s conftest$ac_exeext'
  34956. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34957. + (eval $ac_try) 2>&5
  34958. + ac_status=$?
  34959. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34960. + (exit $ac_status); }; }; then
  34961. + ac_cv_func_remove=yes
  34962. +else
  34963. + echo "$as_me: failed program was:" >&5
  34964. +sed 's/^/| /' conftest.$ac_ext >&5
  34965. -if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  34966. - echo "$ac_t""yes" 1>&6
  34967. - :
  34968. -else
  34969. - echo "$ac_t""no" 1>&6
  34970. +ac_cv_func_remove=no
  34971. fi
  34972. +rm -f conftest.err conftest.$ac_objext \
  34973. + conftest$ac_exeext conftest.$ac_ext
  34974. +fi
  34975. +echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
  34976. +echo "${ECHO_T}$ac_cv_func_remove" >&6
  34977. if test $ac_cv_func_remove = no; then
  34978. - echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
  34979. -echo "configure:5186: checking for remove in -lposix" >&5
  34980. -ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
  34981. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  34982. - echo $ac_n "(cached) $ac_c" 1>&6
  34983. + echo "$as_me:$LINENO: checking for remove in -lposix" >&5
  34984. +echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
  34985. +if test "${ac_cv_lib_posix_remove+set}" = set; then
  34986. + echo $ECHO_N "(cached) $ECHO_C" >&6
  34987. else
  34988. - ac_save_LIBS="$LIBS"
  34989. + ac_check_lib_save_LIBS=$LIBS
  34990. LIBS="-lposix $LIBS"
  34991. -cat > conftest.$ac_ext <<EOF
  34992. -#line 5194 "configure"
  34993. -#include "confdefs.h"
  34994. +cat >conftest.$ac_ext <<_ACEOF
  34995. +/* confdefs.h. */
  34996. +_ACEOF
  34997. +cat confdefs.h >>conftest.$ac_ext
  34998. +cat >>conftest.$ac_ext <<_ACEOF
  34999. +/* end confdefs.h. */
  35000. +
  35001. /* Override any gcc2 internal prototype to avoid an error. */
  35002. +#ifdef __cplusplus
  35003. +extern "C"
  35004. +#endif
  35005. /* We use char because int might match the return type of a gcc2
  35006. - builtin and then its argument prototype would still apply. */
  35007. -char remove();
  35008. -
  35009. -int main() {
  35010. -remove()
  35011. -; return 0; }
  35012. -EOF
  35013. -if { (eval echo configure:5205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  35014. - rm -rf conftest*
  35015. - eval "ac_cv_lib_$ac_lib_var=yes"
  35016. -else
  35017. - echo "configure: failed program was:" >&5
  35018. - cat conftest.$ac_ext >&5
  35019. - rm -rf conftest*
  35020. - eval "ac_cv_lib_$ac_lib_var=no"
  35021. -fi
  35022. -rm -f conftest*
  35023. -LIBS="$ac_save_LIBS"
  35024. -
  35025. -fi
  35026. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  35027. - echo "$ac_t""yes" 1>&6
  35028. + builtin and then its argument prototype would still apply. */
  35029. +char remove ();
  35030. +int
  35031. +main ()
  35032. +{
  35033. +remove ();
  35034. + ;
  35035. + return 0;
  35036. +}
  35037. +_ACEOF
  35038. +rm -f conftest.$ac_objext conftest$ac_exeext
  35039. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  35040. + (eval $ac_link) 2>conftest.er1
  35041. + ac_status=$?
  35042. + grep -v '^ *+' conftest.er1 >conftest.err
  35043. + rm -f conftest.er1
  35044. + cat conftest.err >&5
  35045. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35046. + (exit $ac_status); } &&
  35047. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  35048. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  35049. + (eval $ac_try) 2>&5
  35050. + ac_status=$?
  35051. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35052. + (exit $ac_status); }; } &&
  35053. + { ac_try='test -s conftest$ac_exeext'
  35054. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  35055. + (eval $ac_try) 2>&5
  35056. + ac_status=$?
  35057. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35058. + (exit $ac_status); }; }; then
  35059. + ac_cv_lib_posix_remove=yes
  35060. +else
  35061. + echo "$as_me: failed program was:" >&5
  35062. +sed 's/^/| /' conftest.$ac_ext >&5
  35063. +
  35064. +ac_cv_lib_posix_remove=no
  35065. +fi
  35066. +rm -f conftest.err conftest.$ac_objext \
  35067. + conftest$ac_exeext conftest.$ac_ext
  35068. +LIBS=$ac_check_lib_save_LIBS
  35069. +fi
  35070. +echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
  35071. +echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
  35072. +if test $ac_cv_lib_posix_remove = yes; then
  35073. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  35074. -else
  35075. - echo "$ac_t""no" 1>&6
  35076. fi
  35077. fi
  35078. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  35079. - echo $ac_n "checking for shmat""... $ac_c" 1>&6
  35080. -echo "configure:5229: checking for shmat" >&5
  35081. -if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
  35082. - echo $ac_n "(cached) $ac_c" 1>&6
  35083. -else
  35084. - cat > conftest.$ac_ext <<EOF
  35085. -#line 5234 "configure"
  35086. -#include "confdefs.h"
  35087. + echo "$as_me:$LINENO: checking for shmat" >&5
  35088. +echo $ECHO_N "checking for shmat... $ECHO_C" >&6
  35089. +if test "${ac_cv_func_shmat+set}" = set; then
  35090. + echo $ECHO_N "(cached) $ECHO_C" >&6
  35091. +else
  35092. + cat >conftest.$ac_ext <<_ACEOF
  35093. +/* confdefs.h. */
  35094. +_ACEOF
  35095. +cat confdefs.h >>conftest.$ac_ext
  35096. +cat >>conftest.$ac_ext <<_ACEOF
  35097. +/* end confdefs.h. */
  35098. +/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
  35099. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  35100. +#define shmat innocuous_shmat
  35101. +
  35102. /* System header to define __stub macros and hopefully few prototypes,
  35103. - which can conflict with char shmat(); below. */
  35104. -#include <assert.h>
  35105. -/* Override any gcc2 internal prototype to avoid an error. */
  35106. -/* We use char because int might match the return type of a gcc2
  35107. - builtin and then its argument prototype would still apply. */
  35108. -char shmat();
  35109. + which can conflict with char shmat (); below.
  35110. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  35111. + <limits.h> exists even on freestanding compilers. */
  35112. -int main() {
  35113. +#ifdef __STDC__
  35114. +# include <limits.h>
  35115. +#else
  35116. +# include <assert.h>
  35117. +#endif
  35118. +#undef shmat
  35119. +
  35120. +/* Override any gcc2 internal prototype to avoid an error. */
  35121. +#ifdef __cplusplus
  35122. +extern "C"
  35123. +{
  35124. +#endif
  35125. +/* We use char because int might match the return type of a gcc2
  35126. + builtin and then its argument prototype would still apply. */
  35127. +char shmat ();
  35128. /* The GNU C library defines this for functions which it implements
  35129. to always fail with ENOSYS. Some functions are actually named
  35130. something starting with __ and the normal name is an alias. */
  35131. #if defined (__stub_shmat) || defined (__stub___shmat)
  35132. choke me
  35133. #else
  35134. -shmat();
  35135. +char (*f) () = shmat;
  35136. +#endif
  35137. +#ifdef __cplusplus
  35138. +}
  35139. #endif
  35140. -; return 0; }
  35141. -EOF
  35142. -if { (eval echo configure:5257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  35143. - rm -rf conftest*
  35144. - eval "ac_cv_func_shmat=yes"
  35145. -else
  35146. - echo "configure: failed program was:" >&5
  35147. - cat conftest.$ac_ext >&5
  35148. - rm -rf conftest*
  35149. - eval "ac_cv_func_shmat=no"
  35150. -fi
  35151. -rm -f conftest*
  35152. -fi
  35153. +int
  35154. +main ()
  35155. +{
  35156. +return f != shmat;
  35157. + ;
  35158. + return 0;
  35159. +}
  35160. +_ACEOF
  35161. +rm -f conftest.$ac_objext conftest$ac_exeext
  35162. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  35163. + (eval $ac_link) 2>conftest.er1
  35164. + ac_status=$?
  35165. + grep -v '^ *+' conftest.er1 >conftest.err
  35166. + rm -f conftest.er1
  35167. + cat conftest.err >&5
  35168. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35169. + (exit $ac_status); } &&
  35170. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  35171. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  35172. + (eval $ac_try) 2>&5
  35173. + ac_status=$?
  35174. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35175. + (exit $ac_status); }; } &&
  35176. + { ac_try='test -s conftest$ac_exeext'
  35177. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  35178. + (eval $ac_try) 2>&5
  35179. + ac_status=$?
  35180. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35181. + (exit $ac_status); }; }; then
  35182. + ac_cv_func_shmat=yes
  35183. +else
  35184. + echo "$as_me: failed program was:" >&5
  35185. +sed 's/^/| /' conftest.$ac_ext >&5
  35186. -if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  35187. - echo "$ac_t""yes" 1>&6
  35188. - :
  35189. -else
  35190. - echo "$ac_t""no" 1>&6
  35191. +ac_cv_func_shmat=no
  35192. fi
  35193. +rm -f conftest.err conftest.$ac_objext \
  35194. + conftest$ac_exeext conftest.$ac_ext
  35195. +fi
  35196. +echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
  35197. +echo "${ECHO_T}$ac_cv_func_shmat" >&6
  35198. if test $ac_cv_func_shmat = no; then
  35199. - echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
  35200. -echo "configure:5278: checking for shmat in -lipc" >&5
  35201. -ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
  35202. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  35203. - echo $ac_n "(cached) $ac_c" 1>&6
  35204. + echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
  35205. +echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
  35206. +if test "${ac_cv_lib_ipc_shmat+set}" = set; then
  35207. + echo $ECHO_N "(cached) $ECHO_C" >&6
  35208. else
  35209. - ac_save_LIBS="$LIBS"
  35210. + ac_check_lib_save_LIBS=$LIBS
  35211. LIBS="-lipc $LIBS"
  35212. -cat > conftest.$ac_ext <<EOF
  35213. -#line 5286 "configure"
  35214. -#include "confdefs.h"
  35215. +cat >conftest.$ac_ext <<_ACEOF
  35216. +/* confdefs.h. */
  35217. +_ACEOF
  35218. +cat confdefs.h >>conftest.$ac_ext
  35219. +cat >>conftest.$ac_ext <<_ACEOF
  35220. +/* end confdefs.h. */
  35221. +
  35222. /* Override any gcc2 internal prototype to avoid an error. */
  35223. +#ifdef __cplusplus
  35224. +extern "C"
  35225. +#endif
  35226. /* We use char because int might match the return type of a gcc2
  35227. - builtin and then its argument prototype would still apply. */
  35228. -char shmat();
  35229. -
  35230. -int main() {
  35231. -shmat()
  35232. -; return 0; }
  35233. -EOF
  35234. -if { (eval echo configure:5297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  35235. - rm -rf conftest*
  35236. - eval "ac_cv_lib_$ac_lib_var=yes"
  35237. -else
  35238. - echo "configure: failed program was:" >&5
  35239. - cat conftest.$ac_ext >&5
  35240. - rm -rf conftest*
  35241. - eval "ac_cv_lib_$ac_lib_var=no"
  35242. -fi
  35243. -rm -f conftest*
  35244. -LIBS="$ac_save_LIBS"
  35245. -
  35246. -fi
  35247. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  35248. - echo "$ac_t""yes" 1>&6
  35249. + builtin and then its argument prototype would still apply. */
  35250. +char shmat ();
  35251. +int
  35252. +main ()
  35253. +{
  35254. +shmat ();
  35255. + ;
  35256. + return 0;
  35257. +}
  35258. +_ACEOF
  35259. +rm -f conftest.$ac_objext conftest$ac_exeext
  35260. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  35261. + (eval $ac_link) 2>conftest.er1
  35262. + ac_status=$?
  35263. + grep -v '^ *+' conftest.er1 >conftest.err
  35264. + rm -f conftest.er1
  35265. + cat conftest.err >&5
  35266. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35267. + (exit $ac_status); } &&
  35268. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  35269. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  35270. + (eval $ac_try) 2>&5
  35271. + ac_status=$?
  35272. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35273. + (exit $ac_status); }; } &&
  35274. + { ac_try='test -s conftest$ac_exeext'
  35275. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  35276. + (eval $ac_try) 2>&5
  35277. + ac_status=$?
  35278. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35279. + (exit $ac_status); }; }; then
  35280. + ac_cv_lib_ipc_shmat=yes
  35281. +else
  35282. + echo "$as_me: failed program was:" >&5
  35283. +sed 's/^/| /' conftest.$ac_ext >&5
  35284. +
  35285. +ac_cv_lib_ipc_shmat=no
  35286. +fi
  35287. +rm -f conftest.err conftest.$ac_objext \
  35288. + conftest$ac_exeext conftest.$ac_ext
  35289. +LIBS=$ac_check_lib_save_LIBS
  35290. +fi
  35291. +echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
  35292. +echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
  35293. +if test $ac_cv_lib_ipc_shmat = yes; then
  35294. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  35295. -else
  35296. - echo "$ac_t""no" 1>&6
  35297. fi
  35298. fi
  35299. fi
  35300. # Check for libraries that X11R6 Xt/Xaw programs need.
  35301. - ac_save_LDFLAGS="$LDFLAGS"
  35302. + ac_save_LDFLAGS=$LDFLAGS
  35303. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  35304. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  35305. # check for ICE first), but we must link in the order -lSM -lICE or
  35306. # we get undefined symbols. So assume we have SM if we have ICE.
  35307. # These have to be linked with before -lX11, unlike the other
  35308. # libraries we check for below, so use a different variable.
  35309. - # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  35310. - echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
  35311. -echo "configure:5330: checking for IceConnectionNumber in -lICE" >&5
  35312. -ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
  35313. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  35314. - echo $ac_n "(cached) $ac_c" 1>&6
  35315. + # John Interrante, Karl Berry
  35316. + echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
  35317. +echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
  35318. +if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
  35319. + echo $ECHO_N "(cached) $ECHO_C" >&6
  35320. else
  35321. - ac_save_LIBS="$LIBS"
  35322. + ac_check_lib_save_LIBS=$LIBS
  35323. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  35324. -cat > conftest.$ac_ext <<EOF
  35325. -#line 5338 "configure"
  35326. -#include "confdefs.h"
  35327. +cat >conftest.$ac_ext <<_ACEOF
  35328. +/* confdefs.h. */
  35329. +_ACEOF
  35330. +cat confdefs.h >>conftest.$ac_ext
  35331. +cat >>conftest.$ac_ext <<_ACEOF
  35332. +/* end confdefs.h. */
  35333. +
  35334. /* Override any gcc2 internal prototype to avoid an error. */
  35335. +#ifdef __cplusplus
  35336. +extern "C"
  35337. +#endif
  35338. /* We use char because int might match the return type of a gcc2
  35339. - builtin and then its argument prototype would still apply. */
  35340. -char IceConnectionNumber();
  35341. + builtin and then its argument prototype would still apply. */
  35342. +char IceConnectionNumber ();
  35343. +int
  35344. +main ()
  35345. +{
  35346. +IceConnectionNumber ();
  35347. + ;
  35348. + return 0;
  35349. +}
  35350. +_ACEOF
  35351. +rm -f conftest.$ac_objext conftest$ac_exeext
  35352. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  35353. + (eval $ac_link) 2>conftest.er1
  35354. + ac_status=$?
  35355. + grep -v '^ *+' conftest.er1 >conftest.err
  35356. + rm -f conftest.er1
  35357. + cat conftest.err >&5
  35358. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35359. + (exit $ac_status); } &&
  35360. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  35361. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  35362. + (eval $ac_try) 2>&5
  35363. + ac_status=$?
  35364. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35365. + (exit $ac_status); }; } &&
  35366. + { ac_try='test -s conftest$ac_exeext'
  35367. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  35368. + (eval $ac_try) 2>&5
  35369. + ac_status=$?
  35370. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35371. + (exit $ac_status); }; }; then
  35372. + ac_cv_lib_ICE_IceConnectionNumber=yes
  35373. +else
  35374. + echo "$as_me: failed program was:" >&5
  35375. +sed 's/^/| /' conftest.$ac_ext >&5
  35376. +
  35377. +ac_cv_lib_ICE_IceConnectionNumber=no
  35378. +fi
  35379. +rm -f conftest.err conftest.$ac_objext \
  35380. + conftest$ac_exeext conftest.$ac_ext
  35381. +LIBS=$ac_check_lib_save_LIBS
  35382. +fi
  35383. +echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  35384. +echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
  35385. +if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
  35386. + X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  35387. +fi
  35388. -int main() {
  35389. -IceConnectionNumber()
  35390. -; return 0; }
  35391. -EOF
  35392. -if { (eval echo configure:5349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  35393. - rm -rf conftest*
  35394. - eval "ac_cv_lib_$ac_lib_var=yes"
  35395. + LDFLAGS=$ac_save_LDFLAGS
  35396. +
  35397. +fi
  35398. +
  35399. +
  35400. +
  35401. +
  35402. +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  35403. + if test -n "$ac_tool_prefix"; then
  35404. + # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  35405. +set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  35406. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  35407. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  35408. +if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  35409. + echo $ECHO_N "(cached) $ECHO_C" >&6
  35410. else
  35411. - echo "configure: failed program was:" >&5
  35412. - cat conftest.$ac_ext >&5
  35413. - rm -rf conftest*
  35414. - eval "ac_cv_lib_$ac_lib_var=no"
  35415. + case $PKG_CONFIG in
  35416. + [\\/]* | ?:[\\/]*)
  35417. + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  35418. + ;;
  35419. + *)
  35420. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  35421. +for as_dir in $PATH
  35422. +do
  35423. + IFS=$as_save_IFS
  35424. + test -z "$as_dir" && as_dir=.
  35425. + for ac_exec_ext in '' $ac_executable_extensions; do
  35426. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  35427. + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  35428. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  35429. + break 2
  35430. + fi
  35431. +done
  35432. +done
  35433. +
  35434. + ;;
  35435. +esac
  35436. fi
  35437. -rm -f conftest*
  35438. -LIBS="$ac_save_LIBS"
  35439. +PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  35440. +if test -n "$PKG_CONFIG"; then
  35441. + echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  35442. +echo "${ECHO_T}$PKG_CONFIG" >&6
  35443. +else
  35444. + echo "$as_me:$LINENO: result: no" >&5
  35445. +echo "${ECHO_T}no" >&6
  35446. fi
  35447. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  35448. - echo "$ac_t""yes" 1>&6
  35449. - X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  35450. +
  35451. +fi
  35452. +if test -z "$ac_cv_path_PKG_CONFIG"; then
  35453. + ac_pt_PKG_CONFIG=$PKG_CONFIG
  35454. + # Extract the first word of "pkg-config", so it can be a program name with args.
  35455. +set dummy pkg-config; ac_word=$2
  35456. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  35457. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  35458. +if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  35459. + echo $ECHO_N "(cached) $ECHO_C" >&6
  35460. +else
  35461. + case $ac_pt_PKG_CONFIG in
  35462. + [\\/]* | ?:[\\/]*)
  35463. + ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  35464. + ;;
  35465. + *)
  35466. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  35467. +for as_dir in $PATH
  35468. +do
  35469. + IFS=$as_save_IFS
  35470. + test -z "$as_dir" && as_dir=.
  35471. + for ac_exec_ext in '' $ac_executable_extensions; do
  35472. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  35473. + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  35474. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  35475. + break 2
  35476. + fi
  35477. +done
  35478. +done
  35479. +
  35480. + ;;
  35481. +esac
  35482. +fi
  35483. +ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  35484. +
  35485. +if test -n "$ac_pt_PKG_CONFIG"; then
  35486. + echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  35487. +echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
  35488. +else
  35489. + echo "$as_me:$LINENO: result: no" >&5
  35490. +echo "${ECHO_T}no" >&6
  35491. +fi
  35492. +
  35493. + PKG_CONFIG=$ac_pt_PKG_CONFIG
  35494. +else
  35495. + PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  35496. +fi
  35497. +
  35498. +fi
  35499. +if test -n "$PKG_CONFIG"; then
  35500. + _pkg_min_version=0.9.0
  35501. + echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  35502. +echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
  35503. + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  35504. + echo "$as_me:$LINENO: result: yes" >&5
  35505. +echo "${ECHO_T}yes" >&6
  35506. + else
  35507. + echo "$as_me:$LINENO: result: no" >&5
  35508. +echo "${ECHO_T}no" >&6
  35509. + PKG_CONFIG=""
  35510. + fi
  35511. +
  35512. +fi
  35513. +
  35514. +pkg_failed=no
  35515. +echo "$as_me:$LINENO: checking for X" >&5
  35516. +echo $ECHO_N "checking for X... $ECHO_C" >&6
  35517. +
  35518. +if test -n "$PKG_CONFIG"; then
  35519. + if test -n "$X_CFLAGS"; then
  35520. + pkg_cv_X_CFLAGS="$X_CFLAGS"
  35521. + else
  35522. + if test -n "$PKG_CONFIG" && \
  35523. + { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xau\"") >&5
  35524. + ($PKG_CONFIG --exists --print-errors "x11 xau") 2>&5
  35525. + ac_status=$?
  35526. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35527. + (exit $ac_status); }; then
  35528. + pkg_cv_X_CFLAGS=`$PKG_CONFIG --cflags "x11 xau" 2>/dev/null`
  35529. +else
  35530. + pkg_failed=yes
  35531. +fi
  35532. + fi
  35533. +else
  35534. + pkg_failed=untried
  35535. +fi
  35536. +if test -n "$PKG_CONFIG"; then
  35537. + if test -n "$X_LIBS"; then
  35538. + pkg_cv_X_LIBS="$X_LIBS"
  35539. + else
  35540. + if test -n "$PKG_CONFIG" && \
  35541. + { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xau\"") >&5
  35542. + ($PKG_CONFIG --exists --print-errors "x11 xau") 2>&5
  35543. + ac_status=$?
  35544. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35545. + (exit $ac_status); }; then
  35546. + pkg_cv_X_LIBS=`$PKG_CONFIG --libs "x11 xau" 2>/dev/null`
  35547. +else
  35548. + pkg_failed=yes
  35549. +fi
  35550. + fi
  35551. else
  35552. - echo "$ac_t""no" 1>&6
  35553. + pkg_failed=untried
  35554. fi
  35555. - LDFLAGS="$ac_save_LDFLAGS"
  35556. +
  35557. +if test $pkg_failed = yes; then
  35558. +
  35559. +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  35560. + _pkg_short_errors_supported=yes
  35561. +else
  35562. + _pkg_short_errors_supported=no
  35563. fi
  35564. + if test $_pkg_short_errors_supported = yes; then
  35565. + X_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11 xau"`
  35566. + else
  35567. + X_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 xau"`
  35568. + fi
  35569. + # Put the nasty error message in config.log where it belongs
  35570. + echo "$X_PKG_ERRORS" >&5
  35571. + { { echo "$as_me:$LINENO: error: Package requirements (x11 xau) were not met:
  35572. -if test "x$x_includes" = "x"; then
  35573. - x_includes="/usr/include"
  35574. +$X_PKG_ERRORS
  35575. +
  35576. +Consider adjusting the PKG_CONFIG_PATH environment variable if you
  35577. +installed software in a non-standard prefix.
  35578. +
  35579. +Alternatively, you may set the environment variables X_CFLAGS
  35580. +and X_LIBS to avoid the need to call pkg-config.
  35581. +See the pkg-config man page for more details.
  35582. +" >&5
  35583. +echo "$as_me: error: Package requirements (x11 xau) were not met:
  35584. +
  35585. +$X_PKG_ERRORS
  35586. +
  35587. +Consider adjusting the PKG_CONFIG_PATH environment variable if you
  35588. +installed software in a non-standard prefix.
  35589. +
  35590. +Alternatively, you may set the environment variables X_CFLAGS
  35591. +and X_LIBS to avoid the need to call pkg-config.
  35592. +See the pkg-config man page for more details.
  35593. +" >&2;}
  35594. + { (exit 1); exit 1; }; }
  35595. +elif test $pkg_failed = untried; then
  35596. + { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
  35597. +is in your PATH or set the PKG_CONFIG environment variable to the full
  35598. +path to pkg-config.
  35599. +
  35600. +Alternatively, you may set the environment variables X_CFLAGS
  35601. +and X_LIBS to avoid the need to call pkg-config.
  35602. +See the pkg-config man page for more details.
  35603. +
  35604. +To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  35605. +See \`config.log' for more details." >&5
  35606. +echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
  35607. +is in your PATH or set the PKG_CONFIG environment variable to the full
  35608. +path to pkg-config.
  35609. +
  35610. +Alternatively, you may set the environment variables X_CFLAGS
  35611. +and X_LIBS to avoid the need to call pkg-config.
  35612. +See the pkg-config man page for more details.
  35613. +
  35614. +To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  35615. +See \`config.log' for more details." >&2;}
  35616. + { (exit 1); exit 1; }; }
  35617. +else
  35618. + X_CFLAGS=$pkg_cv_X_CFLAGS
  35619. + X_LIBS=$pkg_cv_X_LIBS
  35620. + echo "$as_me:$LINENO: result: yes" >&5
  35621. +echo "${ECHO_T}yes" >&6
  35622. + :
  35623. fi
  35624. saved_cflags="$CFLAGS"
  35625. @@ -5380,136 +24550,226 @@
  35626. CFLAGS="$CFLAGS $X_CFLAGS"
  35627. LDFLAGS="$LDFLAGS $X_LDFLAGS $X_LIBS"
  35628. -if test "x$no_x" = "xyes"; then
  35629. - { echo "configure: error:
  35630. -*** X libraries or include files not found. Check 'config.log' for
  35631. -*** more details." 1>&2; exit 1; }
  35632. +if test "x$no_x" = "xyes"; then
  35633. + { { echo "$as_me:$LINENO: error:
  35634. +*** X libraries or include files not found. Check 'config.log' for
  35635. +*** more details." >&5
  35636. +echo "$as_me: error:
  35637. +*** X libraries or include files not found. Check 'config.log' for
  35638. +*** more details." >&2;}
  35639. + { (exit 1); exit 1; }; }
  35640. fi
  35641. # Checks for libraries.
  35642. # Check for the X11 library
  35643. -echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
  35644. -echo "configure:5393: checking for XOpenDisplay in -lX11" >&5
  35645. -ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
  35646. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  35647. - echo $ac_n "(cached) $ac_c" 1>&6
  35648. +echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
  35649. +echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
  35650. +if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
  35651. + echo $ECHO_N "(cached) $ECHO_C" >&6
  35652. else
  35653. - ac_save_LIBS="$LIBS"
  35654. + ac_check_lib_save_LIBS=$LIBS
  35655. LIBS="-lX11 $X_EXTRA_LIBS $LIBS"
  35656. -cat > conftest.$ac_ext <<EOF
  35657. -#line 5401 "configure"
  35658. -#include "confdefs.h"
  35659. +cat >conftest.$ac_ext <<_ACEOF
  35660. +/* confdefs.h. */
  35661. +_ACEOF
  35662. +cat confdefs.h >>conftest.$ac_ext
  35663. +cat >>conftest.$ac_ext <<_ACEOF
  35664. +/* end confdefs.h. */
  35665. +
  35666. /* Override any gcc2 internal prototype to avoid an error. */
  35667. +#ifdef __cplusplus
  35668. +extern "C"
  35669. +#endif
  35670. /* We use char because int might match the return type of a gcc2
  35671. - builtin and then its argument prototype would still apply. */
  35672. -char XOpenDisplay();
  35673. -
  35674. -int main() {
  35675. -XOpenDisplay()
  35676. -; return 0; }
  35677. -EOF
  35678. -if { (eval echo configure:5412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  35679. - rm -rf conftest*
  35680. - eval "ac_cv_lib_$ac_lib_var=yes"
  35681. -else
  35682. - echo "configure: failed program was:" >&5
  35683. - cat conftest.$ac_ext >&5
  35684. - rm -rf conftest*
  35685. - eval "ac_cv_lib_$ac_lib_var=no"
  35686. -fi
  35687. -rm -f conftest*
  35688. -LIBS="$ac_save_LIBS"
  35689. -
  35690. -fi
  35691. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  35692. - echo "$ac_t""yes" 1>&6
  35693. + builtin and then its argument prototype would still apply. */
  35694. +char XOpenDisplay ();
  35695. +int
  35696. +main ()
  35697. +{
  35698. +XOpenDisplay ();
  35699. + ;
  35700. + return 0;
  35701. +}
  35702. +_ACEOF
  35703. +rm -f conftest.$ac_objext conftest$ac_exeext
  35704. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  35705. + (eval $ac_link) 2>conftest.er1
  35706. + ac_status=$?
  35707. + grep -v '^ *+' conftest.er1 >conftest.err
  35708. + rm -f conftest.er1
  35709. + cat conftest.err >&5
  35710. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35711. + (exit $ac_status); } &&
  35712. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  35713. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  35714. + (eval $ac_try) 2>&5
  35715. + ac_status=$?
  35716. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35717. + (exit $ac_status); }; } &&
  35718. + { ac_try='test -s conftest$ac_exeext'
  35719. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  35720. + (eval $ac_try) 2>&5
  35721. + ac_status=$?
  35722. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35723. + (exit $ac_status); }; }; then
  35724. + ac_cv_lib_X11_XOpenDisplay=yes
  35725. +else
  35726. + echo "$as_me: failed program was:" >&5
  35727. +sed 's/^/| /' conftest.$ac_ext >&5
  35728. +
  35729. +ac_cv_lib_X11_XOpenDisplay=no
  35730. +fi
  35731. +rm -f conftest.err conftest.$ac_objext \
  35732. + conftest$ac_exeext conftest.$ac_ext
  35733. +LIBS=$ac_check_lib_save_LIBS
  35734. +fi
  35735. +echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
  35736. +echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
  35737. +if test $ac_cv_lib_X11_XOpenDisplay = yes; then
  35738. x_libs="-lX11 $X_EXTRA_LIBS"
  35739. else
  35740. - echo "$ac_t""no" 1>&6
  35741. -{ echo "configure: error: *** libX11 not found. Check 'config.log' for more details." 1>&2; exit 1; }
  35742. + { { echo "$as_me:$LINENO: error: *** libX11 not found. Check 'config.log' for more details." >&5
  35743. +echo "$as_me: error: *** libX11 not found. Check 'config.log' for more details." >&2;}
  35744. + { (exit 1); exit 1; }; }
  35745. fi
  35746. if test "x$enable_shm" = "xyes"; then
  35747. # Check for the Xext library (needed for XShm extention)
  35748. - echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
  35749. -echo "configure:5437: checking for XShmAttach in -lXext" >&5
  35750. -ac_lib_var=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
  35751. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  35752. - echo $ac_n "(cached) $ac_c" 1>&6
  35753. + echo "$as_me:$LINENO: checking for XShmAttach in -lXext" >&5
  35754. +echo $ECHO_N "checking for XShmAttach in -lXext... $ECHO_C" >&6
  35755. +if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then
  35756. + echo $ECHO_N "(cached) $ECHO_C" >&6
  35757. else
  35758. - ac_save_LIBS="$LIBS"
  35759. + ac_check_lib_save_LIBS=$LIBS
  35760. LIBS="-lXext $x_libs $LIBS"
  35761. -cat > conftest.$ac_ext <<EOF
  35762. -#line 5445 "configure"
  35763. -#include "confdefs.h"
  35764. +cat >conftest.$ac_ext <<_ACEOF
  35765. +/* confdefs.h. */
  35766. +_ACEOF
  35767. +cat confdefs.h >>conftest.$ac_ext
  35768. +cat >>conftest.$ac_ext <<_ACEOF
  35769. +/* end confdefs.h. */
  35770. +
  35771. /* Override any gcc2 internal prototype to avoid an error. */
  35772. +#ifdef __cplusplus
  35773. +extern "C"
  35774. +#endif
  35775. /* We use char because int might match the return type of a gcc2
  35776. - builtin and then its argument prototype would still apply. */
  35777. -char XShmAttach();
  35778. -
  35779. -int main() {
  35780. -XShmAttach()
  35781. -; return 0; }
  35782. -EOF
  35783. -if { (eval echo configure:5456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  35784. - rm -rf conftest*
  35785. - eval "ac_cv_lib_$ac_lib_var=yes"
  35786. -else
  35787. - echo "configure: failed program was:" >&5
  35788. - cat conftest.$ac_ext >&5
  35789. - rm -rf conftest*
  35790. - eval "ac_cv_lib_$ac_lib_var=no"
  35791. -fi
  35792. -rm -f conftest*
  35793. -LIBS="$ac_save_LIBS"
  35794. -
  35795. -fi
  35796. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  35797. - echo "$ac_t""yes" 1>&6
  35798. + builtin and then its argument prototype would still apply. */
  35799. +char XShmAttach ();
  35800. +int
  35801. +main ()
  35802. +{
  35803. +XShmAttach ();
  35804. + ;
  35805. + return 0;
  35806. +}
  35807. +_ACEOF
  35808. +rm -f conftest.$ac_objext conftest$ac_exeext
  35809. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  35810. + (eval $ac_link) 2>conftest.er1
  35811. + ac_status=$?
  35812. + grep -v '^ *+' conftest.er1 >conftest.err
  35813. + rm -f conftest.er1
  35814. + cat conftest.err >&5
  35815. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35816. + (exit $ac_status); } &&
  35817. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  35818. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  35819. + (eval $ac_try) 2>&5
  35820. + ac_status=$?
  35821. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35822. + (exit $ac_status); }; } &&
  35823. + { ac_try='test -s conftest$ac_exeext'
  35824. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  35825. + (eval $ac_try) 2>&5
  35826. + ac_status=$?
  35827. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35828. + (exit $ac_status); }; }; then
  35829. + ac_cv_lib_Xext_XShmAttach=yes
  35830. +else
  35831. + echo "$as_me: failed program was:" >&5
  35832. +sed 's/^/| /' conftest.$ac_ext >&5
  35833. +
  35834. +ac_cv_lib_Xext_XShmAttach=no
  35835. +fi
  35836. +rm -f conftest.err conftest.$ac_objext \
  35837. + conftest$ac_exeext conftest.$ac_ext
  35838. +LIBS=$ac_check_lib_save_LIBS
  35839. +fi
  35840. +echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmAttach" >&5
  35841. +echo "${ECHO_T}$ac_cv_lib_Xext_XShmAttach" >&6
  35842. +if test $ac_cv_lib_Xext_XShmAttach = yes; then
  35843. x_libs="-lXext $x_libs"
  35844. else
  35845. - echo "$ac_t""no" 1>&6
  35846. -# On AIX, it is in XextSam instead, but we still need -lXext
  35847. - echo $ac_n "checking for XShmAttach in -lXextSam""... $ac_c" 1>&6
  35848. -echo "configure:5476: checking for XShmAttach in -lXextSam" >&5
  35849. -ac_lib_var=`echo XextSam'_'XShmAttach | sed 'y%./+-%__p_%'`
  35850. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  35851. - echo $ac_n "(cached) $ac_c" 1>&6
  35852. + # On AIX, it is in XextSam instead, but we still need -lXext
  35853. + echo "$as_me:$LINENO: checking for XShmAttach in -lXextSam" >&5
  35854. +echo $ECHO_N "checking for XShmAttach in -lXextSam... $ECHO_C" >&6
  35855. +if test "${ac_cv_lib_XextSam_XShmAttach+set}" = set; then
  35856. + echo $ECHO_N "(cached) $ECHO_C" >&6
  35857. else
  35858. - ac_save_LIBS="$LIBS"
  35859. + ac_check_lib_save_LIBS=$LIBS
  35860. LIBS="-lXextSam $x_libs $LIBS"
  35861. -cat > conftest.$ac_ext <<EOF
  35862. -#line 5484 "configure"
  35863. -#include "confdefs.h"
  35864. +cat >conftest.$ac_ext <<_ACEOF
  35865. +/* confdefs.h. */
  35866. +_ACEOF
  35867. +cat confdefs.h >>conftest.$ac_ext
  35868. +cat >>conftest.$ac_ext <<_ACEOF
  35869. +/* end confdefs.h. */
  35870. +
  35871. /* Override any gcc2 internal prototype to avoid an error. */
  35872. +#ifdef __cplusplus
  35873. +extern "C"
  35874. +#endif
  35875. /* We use char because int might match the return type of a gcc2
  35876. - builtin and then its argument prototype would still apply. */
  35877. -char XShmAttach();
  35878. -
  35879. -int main() {
  35880. -XShmAttach()
  35881. -; return 0; }
  35882. -EOF
  35883. -if { (eval echo configure:5495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  35884. - rm -rf conftest*
  35885. - eval "ac_cv_lib_$ac_lib_var=yes"
  35886. -else
  35887. - echo "configure: failed program was:" >&5
  35888. - cat conftest.$ac_ext >&5
  35889. - rm -rf conftest*
  35890. - eval "ac_cv_lib_$ac_lib_var=no"
  35891. -fi
  35892. -rm -f conftest*
  35893. -LIBS="$ac_save_LIBS"
  35894. -
  35895. -fi
  35896. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  35897. - echo "$ac_t""yes" 1>&6
  35898. + builtin and then its argument prototype would still apply. */
  35899. +char XShmAttach ();
  35900. +int
  35901. +main ()
  35902. +{
  35903. +XShmAttach ();
  35904. + ;
  35905. + return 0;
  35906. +}
  35907. +_ACEOF
  35908. +rm -f conftest.$ac_objext conftest$ac_exeext
  35909. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  35910. + (eval $ac_link) 2>conftest.er1
  35911. + ac_status=$?
  35912. + grep -v '^ *+' conftest.er1 >conftest.err
  35913. + rm -f conftest.er1
  35914. + cat conftest.err >&5
  35915. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35916. + (exit $ac_status); } &&
  35917. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  35918. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  35919. + (eval $ac_try) 2>&5
  35920. + ac_status=$?
  35921. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35922. + (exit $ac_status); }; } &&
  35923. + { ac_try='test -s conftest$ac_exeext'
  35924. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  35925. + (eval $ac_try) 2>&5
  35926. + ac_status=$?
  35927. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35928. + (exit $ac_status); }; }; then
  35929. + ac_cv_lib_XextSam_XShmAttach=yes
  35930. +else
  35931. + echo "$as_me: failed program was:" >&5
  35932. +sed 's/^/| /' conftest.$ac_ext >&5
  35933. +
  35934. +ac_cv_lib_XextSam_XShmAttach=no
  35935. +fi
  35936. +rm -f conftest.err conftest.$ac_objext \
  35937. + conftest$ac_exeext conftest.$ac_ext
  35938. +LIBS=$ac_check_lib_save_LIBS
  35939. +fi
  35940. +echo "$as_me:$LINENO: result: $ac_cv_lib_XextSam_XShmAttach" >&5
  35941. +echo "${ECHO_T}$ac_cv_lib_XextSam_XShmAttach" >&6
  35942. +if test $ac_cv_lib_XextSam_XShmAttach = yes; then
  35943. x_libs="-lXextSam -lXext $x_libs"
  35944. else
  35945. - echo "$ac_t""no" 1>&6
  35946. -no_xext_lib=yes
  35947. + no_xext_lib=yes
  35948. fi
  35949. fi
  35950. @@ -5518,140 +24778,222 @@
  35951. # Check for shaped window extension
  35952. -echo $ac_n "checking for XShapeCombineMask in -lXext""... $ac_c" 1>&6
  35953. -echo "configure:5523: checking for XShapeCombineMask in -lXext" >&5
  35954. -ac_lib_var=`echo Xext'_'XShapeCombineMask | sed 'y%./+-%__p_%'`
  35955. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  35956. - echo $ac_n "(cached) $ac_c" 1>&6
  35957. +echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
  35958. +echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
  35959. +if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
  35960. + echo $ECHO_N "(cached) $ECHO_C" >&6
  35961. else
  35962. - ac_save_LIBS="$LIBS"
  35963. + ac_check_lib_save_LIBS=$LIBS
  35964. LIBS="-lXext $x_libs $LIBS"
  35965. -cat > conftest.$ac_ext <<EOF
  35966. -#line 5531 "configure"
  35967. -#include "confdefs.h"
  35968. +cat >conftest.$ac_ext <<_ACEOF
  35969. +/* confdefs.h. */
  35970. +_ACEOF
  35971. +cat confdefs.h >>conftest.$ac_ext
  35972. +cat >>conftest.$ac_ext <<_ACEOF
  35973. +/* end confdefs.h. */
  35974. +
  35975. /* Override any gcc2 internal prototype to avoid an error. */
  35976. +#ifdef __cplusplus
  35977. +extern "C"
  35978. +#endif
  35979. /* We use char because int might match the return type of a gcc2
  35980. - builtin and then its argument prototype would still apply. */
  35981. -char XShapeCombineMask();
  35982. -
  35983. -int main() {
  35984. -XShapeCombineMask()
  35985. -; return 0; }
  35986. -EOF
  35987. -if { (eval echo configure:5542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  35988. - rm -rf conftest*
  35989. - eval "ac_cv_lib_$ac_lib_var=yes"
  35990. -else
  35991. - echo "configure: failed program was:" >&5
  35992. - cat conftest.$ac_ext >&5
  35993. - rm -rf conftest*
  35994. - eval "ac_cv_lib_$ac_lib_var=no"
  35995. -fi
  35996. -rm -f conftest*
  35997. -LIBS="$ac_save_LIBS"
  35998. -
  35999. -fi
  36000. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  36001. - echo "$ac_t""yes" 1>&6
  36002. + builtin and then its argument prototype would still apply. */
  36003. +char XShapeCombineMask ();
  36004. +int
  36005. +main ()
  36006. +{
  36007. +XShapeCombineMask ();
  36008. + ;
  36009. + return 0;
  36010. +}
  36011. +_ACEOF
  36012. +rm -f conftest.$ac_objext conftest$ac_exeext
  36013. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  36014. + (eval $ac_link) 2>conftest.er1
  36015. + ac_status=$?
  36016. + grep -v '^ *+' conftest.er1 >conftest.err
  36017. + rm -f conftest.er1
  36018. + cat conftest.err >&5
  36019. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36020. + (exit $ac_status); } &&
  36021. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  36022. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36023. + (eval $ac_try) 2>&5
  36024. + ac_status=$?
  36025. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36026. + (exit $ac_status); }; } &&
  36027. + { ac_try='test -s conftest$ac_exeext'
  36028. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36029. + (eval $ac_try) 2>&5
  36030. + ac_status=$?
  36031. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36032. + (exit $ac_status); }; }; then
  36033. + ac_cv_lib_Xext_XShapeCombineMask=yes
  36034. +else
  36035. + echo "$as_me: failed program was:" >&5
  36036. +sed 's/^/| /' conftest.$ac_ext >&5
  36037. +
  36038. +ac_cv_lib_Xext_XShapeCombineMask=no
  36039. +fi
  36040. +rm -f conftest.err conftest.$ac_objext \
  36041. + conftest$ac_exeext conftest.$ac_ext
  36042. +LIBS=$ac_check_lib_save_LIBS
  36043. +fi
  36044. +echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
  36045. +echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
  36046. +if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
  36047. if test -z "`echo $x_libs | grep "\-lXext" 2> /dev/null`"; then
  36048. x_libs="-lXext $x_libs"
  36049. fi
  36050. - cat >> confdefs.h <<\EOF
  36051. + cat >>confdefs.h <<\_ACEOF
  36052. #define HAVE_SHAPE_EXT 1
  36053. -EOF
  36054. +_ACEOF
  36055. -else
  36056. - echo "$ac_t""no" 1>&6
  36057. fi
  36058. # Check for XConvertCase (X11R6 specific)
  36059. -echo $ac_n "checking for XConvertCase in -lX11""... $ac_c" 1>&6
  36060. -echo "configure:5572: checking for XConvertCase in -lX11" >&5
  36061. -ac_lib_var=`echo X11'_'XConvertCase | sed 'y%./+-%__p_%'`
  36062. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  36063. - echo $ac_n "(cached) $ac_c" 1>&6
  36064. -else
  36065. - ac_save_LIBS="$LIBS"
  36066. -LIBS="-lX11 $x_libs $LIBS"
  36067. -cat > conftest.$ac_ext <<EOF
  36068. -#line 5580 "configure"
  36069. -#include "confdefs.h"
  36070. -/* Override any gcc2 internal prototype to avoid an error. */
  36071. -/* We use char because int might match the return type of a gcc2
  36072. - builtin and then its argument prototype would still apply. */
  36073. -char XConvertCase();
  36074. -
  36075. -int main() {
  36076. -XConvertCase()
  36077. -; return 0; }
  36078. -EOF
  36079. -if { (eval echo configure:5591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  36080. - rm -rf conftest*
  36081. - eval "ac_cv_lib_$ac_lib_var=yes"
  36082. +echo "$as_me:$LINENO: checking for XConvertCase in -lX11" >&5
  36083. +echo $ECHO_N "checking for XConvertCase in -lX11... $ECHO_C" >&6
  36084. +if test "${ac_cv_lib_X11_XConvertCase+set}" = set; then
  36085. + echo $ECHO_N "(cached) $ECHO_C" >&6
  36086. else
  36087. - echo "configure: failed program was:" >&5
  36088. - cat conftest.$ac_ext >&5
  36089. - rm -rf conftest*
  36090. - eval "ac_cv_lib_$ac_lib_var=no"
  36091. -fi
  36092. -rm -f conftest*
  36093. -LIBS="$ac_save_LIBS"
  36094. + ac_check_lib_save_LIBS=$LIBS
  36095. +LIBS="-lX11 $x_libs $LIBS"
  36096. +cat >conftest.$ac_ext <<_ACEOF
  36097. +/* confdefs.h. */
  36098. +_ACEOF
  36099. +cat confdefs.h >>conftest.$ac_ext
  36100. +cat >>conftest.$ac_ext <<_ACEOF
  36101. +/* end confdefs.h. */
  36102. -fi
  36103. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  36104. - echo "$ac_t""yes" 1>&6
  36105. - cat >> confdefs.h <<\EOF
  36106. +/* Override any gcc2 internal prototype to avoid an error. */
  36107. +#ifdef __cplusplus
  36108. +extern "C"
  36109. +#endif
  36110. +/* We use char because int might match the return type of a gcc2
  36111. + builtin and then its argument prototype would still apply. */
  36112. +char XConvertCase ();
  36113. +int
  36114. +main ()
  36115. +{
  36116. +XConvertCase ();
  36117. + ;
  36118. + return 0;
  36119. +}
  36120. +_ACEOF
  36121. +rm -f conftest.$ac_objext conftest$ac_exeext
  36122. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  36123. + (eval $ac_link) 2>conftest.er1
  36124. + ac_status=$?
  36125. + grep -v '^ *+' conftest.er1 >conftest.err
  36126. + rm -f conftest.er1
  36127. + cat conftest.err >&5
  36128. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36129. + (exit $ac_status); } &&
  36130. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  36131. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36132. + (eval $ac_try) 2>&5
  36133. + ac_status=$?
  36134. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36135. + (exit $ac_status); }; } &&
  36136. + { ac_try='test -s conftest$ac_exeext'
  36137. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36138. + (eval $ac_try) 2>&5
  36139. + ac_status=$?
  36140. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36141. + (exit $ac_status); }; }; then
  36142. + ac_cv_lib_X11_XConvertCase=yes
  36143. +else
  36144. + echo "$as_me: failed program was:" >&5
  36145. +sed 's/^/| /' conftest.$ac_ext >&5
  36146. +
  36147. +ac_cv_lib_X11_XConvertCase=no
  36148. +fi
  36149. +rm -f conftest.err conftest.$ac_objext \
  36150. + conftest$ac_exeext conftest.$ac_ext
  36151. +LIBS=$ac_check_lib_save_LIBS
  36152. +fi
  36153. +echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XConvertCase" >&5
  36154. +echo "${ECHO_T}$ac_cv_lib_X11_XConvertCase" >&6
  36155. +if test $ac_cv_lib_X11_XConvertCase = yes; then
  36156. + cat >>confdefs.h <<\_ACEOF
  36157. #define HAVE_XCONVERTCASE 1
  36158. -EOF
  36159. +_ACEOF
  36160. -else
  36161. - echo "$ac_t""no" 1>&6
  36162. fi
  36163. # Check for XIM support.
  36164. -echo $ac_n "checking for XUnregisterIMInstantiateCallback in -lX11""... $ac_c" 1>&6
  36165. -echo "configure:5618: checking for XUnregisterIMInstantiateCallback in -lX11" >&5
  36166. -ac_lib_var=`echo X11'_'XUnregisterIMInstantiateCallback | sed 'y%./+-%__p_%'`
  36167. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  36168. - echo $ac_n "(cached) $ac_c" 1>&6
  36169. +echo "$as_me:$LINENO: checking for XUnregisterIMInstantiateCallback in -lX11" >&5
  36170. +echo $ECHO_N "checking for XUnregisterIMInstantiateCallback in -lX11... $ECHO_C" >&6
  36171. +if test "${ac_cv_lib_X11_XUnregisterIMInstantiateCallback+set}" = set; then
  36172. + echo $ECHO_N "(cached) $ECHO_C" >&6
  36173. else
  36174. - ac_save_LIBS="$LIBS"
  36175. + ac_check_lib_save_LIBS=$LIBS
  36176. LIBS="-lX11 $x_libs $LIBS"
  36177. -cat > conftest.$ac_ext <<EOF
  36178. -#line 5626 "configure"
  36179. -#include "confdefs.h"
  36180. +cat >conftest.$ac_ext <<_ACEOF
  36181. +/* confdefs.h. */
  36182. +_ACEOF
  36183. +cat confdefs.h >>conftest.$ac_ext
  36184. +cat >>conftest.$ac_ext <<_ACEOF
  36185. +/* end confdefs.h. */
  36186. +
  36187. /* Override any gcc2 internal prototype to avoid an error. */
  36188. +#ifdef __cplusplus
  36189. +extern "C"
  36190. +#endif
  36191. /* We use char because int might match the return type of a gcc2
  36192. - builtin and then its argument prototype would still apply. */
  36193. -char XUnregisterIMInstantiateCallback();
  36194. -
  36195. -int main() {
  36196. -XUnregisterIMInstantiateCallback()
  36197. -; return 0; }
  36198. -EOF
  36199. -if { (eval echo configure:5637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  36200. - rm -rf conftest*
  36201. - eval "ac_cv_lib_$ac_lib_var=yes"
  36202. -else
  36203. - echo "configure: failed program was:" >&5
  36204. - cat conftest.$ac_ext >&5
  36205. - rm -rf conftest*
  36206. - eval "ac_cv_lib_$ac_lib_var=no"
  36207. -fi
  36208. -rm -f conftest*
  36209. -LIBS="$ac_save_LIBS"
  36210. -
  36211. -fi
  36212. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  36213. - echo "$ac_t""yes" 1>&6
  36214. - :
  36215. + builtin and then its argument prototype would still apply. */
  36216. +char XUnregisterIMInstantiateCallback ();
  36217. +int
  36218. +main ()
  36219. +{
  36220. +XUnregisterIMInstantiateCallback ();
  36221. + ;
  36222. + return 0;
  36223. +}
  36224. +_ACEOF
  36225. +rm -f conftest.$ac_objext conftest$ac_exeext
  36226. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  36227. + (eval $ac_link) 2>conftest.er1
  36228. + ac_status=$?
  36229. + grep -v '^ *+' conftest.er1 >conftest.err
  36230. + rm -f conftest.er1
  36231. + cat conftest.err >&5
  36232. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36233. + (exit $ac_status); } &&
  36234. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  36235. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36236. + (eval $ac_try) 2>&5
  36237. + ac_status=$?
  36238. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36239. + (exit $ac_status); }; } &&
  36240. + { ac_try='test -s conftest$ac_exeext'
  36241. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36242. + (eval $ac_try) 2>&5
  36243. + ac_status=$?
  36244. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36245. + (exit $ac_status); }; }; then
  36246. + ac_cv_lib_X11_XUnregisterIMInstantiateCallback=yes
  36247. +else
  36248. + echo "$as_me: failed program was:" >&5
  36249. +sed 's/^/| /' conftest.$ac_ext >&5
  36250. +
  36251. +ac_cv_lib_X11_XUnregisterIMInstantiateCallback=no
  36252. +fi
  36253. +rm -f conftest.err conftest.$ac_objext \
  36254. + conftest$ac_exeext conftest.$ac_ext
  36255. +LIBS=$ac_check_lib_save_LIBS
  36256. +fi
  36257. +echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XUnregisterIMInstantiateCallback" >&5
  36258. +echo "${ECHO_T}$ac_cv_lib_X11_XUnregisterIMInstantiateCallback" >&6
  36259. +if test $ac_cv_lib_X11_XUnregisterIMInstantiateCallback = yes; then
  36260. + :
  36261. else
  36262. - echo "$ac_t""no" 1>&6
  36263. -enable_xim_inst="no"
  36264. + enable_xim_inst="no"
  36265. fi
  36266. @@ -5673,9 +25015,9 @@
  36267. if test "x$enable_xim" = "xyes"; then
  36268. GTK_XIM_FLAGS="-DUSE_XIM"
  36269. if test "x$enable_xim_inst" = "xyes"; then
  36270. - cat >> confdefs.h <<\EOF
  36271. + cat >>confdefs.h <<\_ACEOF
  36272. #define USE_X11R6_XIM 1
  36273. -EOF
  36274. +_ACEOF
  36275. fi
  36276. fi
  36277. @@ -5686,25 +25028,28 @@
  36278. # set up things for XInput
  36279. if test "x$with_xinput" = "xgxi"; then
  36280. - echo "configure: warning:
  36281. + { echo "$as_me:$LINENO: WARNING:
  36282. +*** The generic XInput support has not been tested for several years
  36283. +*** and is not known to work with any currently available X servers" >&5
  36284. +echo "$as_me: WARNING:
  36285. *** The generic XInput support has not been tested for several years
  36286. -*** and is not known to work with any currently available X servers" 1>&2
  36287. - cat >> confdefs.h <<\EOF
  36288. +*** and is not known to work with any currently available X servers" >&2;}
  36289. + cat >>confdefs.h <<\_ACEOF
  36290. #define XINPUT_GXI 1
  36291. -EOF
  36292. +_ACEOF
  36293. xinput_progs=gxid
  36294. x_libs="-lXi $x_libs"
  36295. elif test "x$with_xinput" = "xxfree" || test "x$with_xinput" = "xyes"; then
  36296. - cat >> confdefs.h <<\EOF
  36297. + cat >>confdefs.h <<\_ACEOF
  36298. #define XINPUT_XFREE 1
  36299. -EOF
  36300. +_ACEOF
  36301. x_libs="-lXi $x_libs"
  36302. else
  36303. - cat >> confdefs.h <<\EOF
  36304. + cat >>confdefs.h <<\_ACEOF
  36305. #define XINPUT_NONE 1
  36306. -EOF
  36307. +_ACEOF
  36308. fi
  36309. @@ -5719,96 +25064,317 @@
  36310. if test "x$enable_shm" = "xyes"; then
  36311. # Check for shared memory
  36312. - ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
  36313. -echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
  36314. -echo "configure:5725: checking for sys/ipc.h" >&5
  36315. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  36316. - echo $ac_n "(cached) $ac_c" 1>&6
  36317. -else
  36318. - cat > conftest.$ac_ext <<EOF
  36319. -#line 5730 "configure"
  36320. -#include "confdefs.h"
  36321. + if test "${ac_cv_header_sys_ipc_h+set}" = set; then
  36322. + echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
  36323. +echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
  36324. +if test "${ac_cv_header_sys_ipc_h+set}" = set; then
  36325. + echo $ECHO_N "(cached) $ECHO_C" >&6
  36326. +fi
  36327. +echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
  36328. +echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
  36329. +else
  36330. + # Is the header compilable?
  36331. +echo "$as_me:$LINENO: checking sys/ipc.h usability" >&5
  36332. +echo $ECHO_N "checking sys/ipc.h usability... $ECHO_C" >&6
  36333. +cat >conftest.$ac_ext <<_ACEOF
  36334. +/* confdefs.h. */
  36335. +_ACEOF
  36336. +cat confdefs.h >>conftest.$ac_ext
  36337. +cat >>conftest.$ac_ext <<_ACEOF
  36338. +/* end confdefs.h. */
  36339. +$ac_includes_default
  36340. #include <sys/ipc.h>
  36341. -EOF
  36342. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  36343. -{ (eval echo configure:5735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  36344. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  36345. -if test -z "$ac_err"; then
  36346. - rm -rf conftest*
  36347. - eval "ac_cv_header_$ac_safe=yes"
  36348. +_ACEOF
  36349. +rm -f conftest.$ac_objext
  36350. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  36351. + (eval $ac_compile) 2>conftest.er1
  36352. + ac_status=$?
  36353. + grep -v '^ *+' conftest.er1 >conftest.err
  36354. + rm -f conftest.er1
  36355. + cat conftest.err >&5
  36356. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36357. + (exit $ac_status); } &&
  36358. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  36359. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36360. + (eval $ac_try) 2>&5
  36361. + ac_status=$?
  36362. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36363. + (exit $ac_status); }; } &&
  36364. + { ac_try='test -s conftest.$ac_objext'
  36365. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36366. + (eval $ac_try) 2>&5
  36367. + ac_status=$?
  36368. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36369. + (exit $ac_status); }; }; then
  36370. + ac_header_compiler=yes
  36371. +else
  36372. + echo "$as_me: failed program was:" >&5
  36373. +sed 's/^/| /' conftest.$ac_ext >&5
  36374. +
  36375. +ac_header_compiler=no
  36376. +fi
  36377. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  36378. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  36379. +echo "${ECHO_T}$ac_header_compiler" >&6
  36380. +
  36381. +# Is the header present?
  36382. +echo "$as_me:$LINENO: checking sys/ipc.h presence" >&5
  36383. +echo $ECHO_N "checking sys/ipc.h presence... $ECHO_C" >&6
  36384. +cat >conftest.$ac_ext <<_ACEOF
  36385. +/* confdefs.h. */
  36386. +_ACEOF
  36387. +cat confdefs.h >>conftest.$ac_ext
  36388. +cat >>conftest.$ac_ext <<_ACEOF
  36389. +/* end confdefs.h. */
  36390. +#include <sys/ipc.h>
  36391. +_ACEOF
  36392. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  36393. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  36394. + ac_status=$?
  36395. + grep -v '^ *+' conftest.er1 >conftest.err
  36396. + rm -f conftest.er1
  36397. + cat conftest.err >&5
  36398. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36399. + (exit $ac_status); } >/dev/null; then
  36400. + if test -s conftest.err; then
  36401. + ac_cpp_err=$ac_c_preproc_warn_flag
  36402. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  36403. + else
  36404. + ac_cpp_err=
  36405. + fi
  36406. else
  36407. - echo "$ac_err" >&5
  36408. - echo "configure: failed program was:" >&5
  36409. - cat conftest.$ac_ext >&5
  36410. - rm -rf conftest*
  36411. - eval "ac_cv_header_$ac_safe=no"
  36412. + ac_cpp_err=yes
  36413. fi
  36414. -rm -f conftest*
  36415. +if test -z "$ac_cpp_err"; then
  36416. + ac_header_preproc=yes
  36417. +else
  36418. + echo "$as_me: failed program was:" >&5
  36419. +sed 's/^/| /' conftest.$ac_ext >&5
  36420. +
  36421. + ac_header_preproc=no
  36422. +fi
  36423. +rm -f conftest.err conftest.$ac_ext
  36424. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  36425. +echo "${ECHO_T}$ac_header_preproc" >&6
  36426. +
  36427. +# So? What about this header?
  36428. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  36429. + yes:no: )
  36430. + { echo "$as_me:$LINENO: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&5
  36431. +echo "$as_me: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  36432. + { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the compiler's result" >&5
  36433. +echo "$as_me: WARNING: sys/ipc.h: proceeding with the compiler's result" >&2;}
  36434. + ac_header_preproc=yes
  36435. + ;;
  36436. + no:yes:* )
  36437. + { echo "$as_me:$LINENO: WARNING: sys/ipc.h: present but cannot be compiled" >&5
  36438. +echo "$as_me: WARNING: sys/ipc.h: present but cannot be compiled" >&2;}
  36439. + { echo "$as_me:$LINENO: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&5
  36440. +echo "$as_me: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&2;}
  36441. + { echo "$as_me:$LINENO: WARNING: sys/ipc.h: see the Autoconf documentation" >&5
  36442. +echo "$as_me: WARNING: sys/ipc.h: see the Autoconf documentation" >&2;}
  36443. + { echo "$as_me:$LINENO: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&5
  36444. +echo "$as_me: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&2;}
  36445. + { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
  36446. +echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;}
  36447. + { echo "$as_me:$LINENO: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&5
  36448. +echo "$as_me: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&2;}
  36449. + (
  36450. + cat <<\_ASBOX
  36451. +## ------------------------------------------ ##
  36452. +## Report this to the AC_PACKAGE_NAME lists. ##
  36453. +## ------------------------------------------ ##
  36454. +_ASBOX
  36455. + ) |
  36456. + sed "s/^/$as_me: WARNING: /" >&2
  36457. + ;;
  36458. +esac
  36459. +echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
  36460. +echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
  36461. +if test "${ac_cv_header_sys_ipc_h+set}" = set; then
  36462. + echo $ECHO_N "(cached) $ECHO_C" >&6
  36463. +else
  36464. + ac_cv_header_sys_ipc_h=$ac_header_preproc
  36465. +fi
  36466. +echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
  36467. +echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
  36468. +
  36469. fi
  36470. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  36471. - echo "$ac_t""yes" 1>&6
  36472. - cat >> confdefs.h <<\EOF
  36473. +if test $ac_cv_header_sys_ipc_h = yes; then
  36474. + cat >>confdefs.h <<\_ACEOF
  36475. #define HAVE_IPC_H 1
  36476. -EOF
  36477. +_ACEOF
  36478. else
  36479. - echo "$ac_t""no" 1>&6
  36480. -no_sys_ipc=yes
  36481. + no_sys_ipc=yes
  36482. fi
  36483. - ac_safe=`echo "sys/shm.h" | sed 'y%./+-%__p_%'`
  36484. -echo $ac_n "checking for sys/shm.h""... $ac_c" 1>&6
  36485. -echo "configure:5762: checking for sys/shm.h" >&5
  36486. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  36487. - echo $ac_n "(cached) $ac_c" 1>&6
  36488. +
  36489. + if test "${ac_cv_header_sys_shm_h+set}" = set; then
  36490. + echo "$as_me:$LINENO: checking for sys/shm.h" >&5
  36491. +echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
  36492. +if test "${ac_cv_header_sys_shm_h+set}" = set; then
  36493. + echo $ECHO_N "(cached) $ECHO_C" >&6
  36494. +fi
  36495. +echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
  36496. +echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
  36497. else
  36498. - cat > conftest.$ac_ext <<EOF
  36499. -#line 5767 "configure"
  36500. -#include "confdefs.h"
  36501. + # Is the header compilable?
  36502. +echo "$as_me:$LINENO: checking sys/shm.h usability" >&5
  36503. +echo $ECHO_N "checking sys/shm.h usability... $ECHO_C" >&6
  36504. +cat >conftest.$ac_ext <<_ACEOF
  36505. +/* confdefs.h. */
  36506. +_ACEOF
  36507. +cat confdefs.h >>conftest.$ac_ext
  36508. +cat >>conftest.$ac_ext <<_ACEOF
  36509. +/* end confdefs.h. */
  36510. +$ac_includes_default
  36511. #include <sys/shm.h>
  36512. -EOF
  36513. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  36514. -{ (eval echo configure:5772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  36515. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  36516. -if test -z "$ac_err"; then
  36517. - rm -rf conftest*
  36518. - eval "ac_cv_header_$ac_safe=yes"
  36519. +_ACEOF
  36520. +rm -f conftest.$ac_objext
  36521. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  36522. + (eval $ac_compile) 2>conftest.er1
  36523. + ac_status=$?
  36524. + grep -v '^ *+' conftest.er1 >conftest.err
  36525. + rm -f conftest.er1
  36526. + cat conftest.err >&5
  36527. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36528. + (exit $ac_status); } &&
  36529. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  36530. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36531. + (eval $ac_try) 2>&5
  36532. + ac_status=$?
  36533. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36534. + (exit $ac_status); }; } &&
  36535. + { ac_try='test -s conftest.$ac_objext'
  36536. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36537. + (eval $ac_try) 2>&5
  36538. + ac_status=$?
  36539. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36540. + (exit $ac_status); }; }; then
  36541. + ac_header_compiler=yes
  36542. +else
  36543. + echo "$as_me: failed program was:" >&5
  36544. +sed 's/^/| /' conftest.$ac_ext >&5
  36545. +
  36546. +ac_header_compiler=no
  36547. +fi
  36548. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  36549. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  36550. +echo "${ECHO_T}$ac_header_compiler" >&6
  36551. +
  36552. +# Is the header present?
  36553. +echo "$as_me:$LINENO: checking sys/shm.h presence" >&5
  36554. +echo $ECHO_N "checking sys/shm.h presence... $ECHO_C" >&6
  36555. +cat >conftest.$ac_ext <<_ACEOF
  36556. +/* confdefs.h. */
  36557. +_ACEOF
  36558. +cat confdefs.h >>conftest.$ac_ext
  36559. +cat >>conftest.$ac_ext <<_ACEOF
  36560. +/* end confdefs.h. */
  36561. +#include <sys/shm.h>
  36562. +_ACEOF
  36563. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  36564. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  36565. + ac_status=$?
  36566. + grep -v '^ *+' conftest.er1 >conftest.err
  36567. + rm -f conftest.er1
  36568. + cat conftest.err >&5
  36569. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36570. + (exit $ac_status); } >/dev/null; then
  36571. + if test -s conftest.err; then
  36572. + ac_cpp_err=$ac_c_preproc_warn_flag
  36573. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  36574. + else
  36575. + ac_cpp_err=
  36576. + fi
  36577. else
  36578. - echo "$ac_err" >&5
  36579. - echo "configure: failed program was:" >&5
  36580. - cat conftest.$ac_ext >&5
  36581. - rm -rf conftest*
  36582. - eval "ac_cv_header_$ac_safe=no"
  36583. + ac_cpp_err=yes
  36584. fi
  36585. -rm -f conftest*
  36586. +if test -z "$ac_cpp_err"; then
  36587. + ac_header_preproc=yes
  36588. +else
  36589. + echo "$as_me: failed program was:" >&5
  36590. +sed 's/^/| /' conftest.$ac_ext >&5
  36591. +
  36592. + ac_header_preproc=no
  36593. +fi
  36594. +rm -f conftest.err conftest.$ac_ext
  36595. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  36596. +echo "${ECHO_T}$ac_header_preproc" >&6
  36597. +
  36598. +# So? What about this header?
  36599. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  36600. + yes:no: )
  36601. + { echo "$as_me:$LINENO: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&5
  36602. +echo "$as_me: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  36603. + { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the compiler's result" >&5
  36604. +echo "$as_me: WARNING: sys/shm.h: proceeding with the compiler's result" >&2;}
  36605. + ac_header_preproc=yes
  36606. + ;;
  36607. + no:yes:* )
  36608. + { echo "$as_me:$LINENO: WARNING: sys/shm.h: present but cannot be compiled" >&5
  36609. +echo "$as_me: WARNING: sys/shm.h: present but cannot be compiled" >&2;}
  36610. + { echo "$as_me:$LINENO: WARNING: sys/shm.h: check for missing prerequisite headers?" >&5
  36611. +echo "$as_me: WARNING: sys/shm.h: check for missing prerequisite headers?" >&2;}
  36612. + { echo "$as_me:$LINENO: WARNING: sys/shm.h: see the Autoconf documentation" >&5
  36613. +echo "$as_me: WARNING: sys/shm.h: see the Autoconf documentation" >&2;}
  36614. + { echo "$as_me:$LINENO: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&5
  36615. +echo "$as_me: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&2;}
  36616. + { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
  36617. +echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;}
  36618. + { echo "$as_me:$LINENO: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&5
  36619. +echo "$as_me: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&2;}
  36620. + (
  36621. + cat <<\_ASBOX
  36622. +## ------------------------------------------ ##
  36623. +## Report this to the AC_PACKAGE_NAME lists. ##
  36624. +## ------------------------------------------ ##
  36625. +_ASBOX
  36626. + ) |
  36627. + sed "s/^/$as_me: WARNING: /" >&2
  36628. + ;;
  36629. +esac
  36630. +echo "$as_me:$LINENO: checking for sys/shm.h" >&5
  36631. +echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
  36632. +if test "${ac_cv_header_sys_shm_h+set}" = set; then
  36633. + echo $ECHO_N "(cached) $ECHO_C" >&6
  36634. +else
  36635. + ac_cv_header_sys_shm_h=$ac_header_preproc
  36636. +fi
  36637. +echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
  36638. +echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
  36639. +
  36640. fi
  36641. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  36642. - echo "$ac_t""yes" 1>&6
  36643. - cat >> confdefs.h <<\EOF
  36644. +if test $ac_cv_header_sys_shm_h = yes; then
  36645. + cat >>confdefs.h <<\_ACEOF
  36646. #define HAVE_SHM_H 1
  36647. -EOF
  36648. +_ACEOF
  36649. else
  36650. - echo "$ac_t""no" 1>&6
  36651. -no_sys_shm=yes
  36652. + no_sys_shm=yes
  36653. fi
  36654. +
  36655. # Check for the X shared memory extension header file
  36656. - echo $ac_n "checking X11/extensions/XShm.h""... $ac_c" 1>&6
  36657. -echo "configure:5800: checking X11/extensions/XShm.h" >&5
  36658. + echo "$as_me:$LINENO: checking X11/extensions/XShm.h" >&5
  36659. +echo $ECHO_N "checking X11/extensions/XShm.h... $ECHO_C" >&6
  36660. if test "x$no_xext_lib" = "xyes"; then
  36661. - echo "$ac_t""no" 1>&6
  36662. + echo "$as_me:$LINENO: result: no" >&5
  36663. +echo "${ECHO_T}no" >&6
  36664. no_xshm=yes
  36665. else
  36666. if test -f "$x_includes/X11/extensions/XShm.h"; then
  36667. - echo "$ac_t""yes" 1>&6
  36668. - cat >> confdefs.h <<\EOF
  36669. + echo "$as_me:$LINENO: result: yes" >&5
  36670. +echo "${ECHO_T}yes" >&6
  36671. + cat >>confdefs.h <<\_ACEOF
  36672. #define HAVE_XSHM_H 1
  36673. -EOF
  36674. +_ACEOF
  36675. else
  36676. - echo "$ac_t""no" 1>&6
  36677. + echo "$as_me:$LINENO: result: no" >&5
  36678. +echo "${ECHO_T}no" >&6
  36679. no_xshm=yes
  36680. fi
  36681. fi
  36682. @@ -5816,15 +25382,18 @@
  36683. # Check if X_LOCALE definition is necessary
  36684. -echo $ac_n "checking need -DX_LOCALE""... $ac_c" 1>&6
  36685. -echo "configure:5821: checking need -DX_LOCALE" >&5
  36686. +echo "$as_me:$LINENO: checking need -DX_LOCALE" >&5
  36687. +echo $ECHO_N "checking need -DX_LOCALE... $ECHO_C" >&6
  36688. if test "$cross_compiling" = yes; then
  36689. need_x_locale=no
  36690. else
  36691. - cat > conftest.$ac_ext <<EOF
  36692. -#line 5827 "configure"
  36693. -#include "confdefs.h"
  36694. + cat >conftest.$ac_ext <<_ACEOF
  36695. +/* confdefs.h. */
  36696. +_ACEOF
  36697. +cat confdefs.h >>conftest.$ac_ext
  36698. +cat >>conftest.$ac_ext <<_ACEOF
  36699. +/* end confdefs.h. */
  36700. #include <stdio.h>
  36701. #include <locale.h>
  36702. @@ -5834,65 +25403,107 @@
  36703. {
  36704. return setlocale (LC_ALL, "${with_locale}") == NULL;
  36705. }
  36706. -EOF
  36707. -if { (eval echo configure:5839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  36708. -then
  36709. +_ACEOF
  36710. +rm -f conftest$ac_exeext
  36711. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  36712. + (eval $ac_link) 2>&5
  36713. + ac_status=$?
  36714. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36715. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  36716. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36717. + (eval $ac_try) 2>&5
  36718. + ac_status=$?
  36719. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36720. + (exit $ac_status); }; }; then
  36721. need_x_locale=no
  36722. else
  36723. - echo "configure: failed program was:" >&5
  36724. - cat conftest.$ac_ext >&5
  36725. - rm -fr conftest*
  36726. - need_x_locale=yes
  36727. + echo "$as_me: program exited with status $ac_status" >&5
  36728. +echo "$as_me: failed program was:" >&5
  36729. +sed 's/^/| /' conftest.$ac_ext >&5
  36730. +
  36731. +( exit $ac_status )
  36732. +need_x_locale=yes
  36733. fi
  36734. -rm -fr conftest*
  36735. +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  36736. fi
  36737. -
  36738. -echo "$ac_t""$need_x_locale" 1>&6
  36739. +echo "$as_me:$LINENO: result: $need_x_locale" >&5
  36740. +echo "${ECHO_T}$need_x_locale" >&6
  36741. use_native_locale=no
  36742. if test $need_x_locale = yes; then
  36743. GTK_LOCALE_FLAGS="-DX_LOCALE"
  36744. else
  36745. if test x$with_native_locale = xyes ; then
  36746. - echo $ac_n "checking functioning locale support""... $ac_c" 1>&6
  36747. -echo "configure:5859: checking functioning locale support" >&5
  36748. -
  36749. - cat > conftest.$ac_ext <<EOF
  36750. -#line 5862 "configure"
  36751. -#include "confdefs.h"
  36752. + echo "$as_me:$LINENO: checking functioning locale support" >&5
  36753. +echo $ECHO_N "checking functioning locale support... $ECHO_C" >&6
  36754. +
  36755. + cat >conftest.$ac_ext <<_ACEOF
  36756. +/* confdefs.h. */
  36757. +_ACEOF
  36758. +cat confdefs.h >>conftest.$ac_ext
  36759. +cat >>conftest.$ac_ext <<_ACEOF
  36760. +/* end confdefs.h. */
  36761. #include <stdlib.h>
  36762. -int main() {
  36763. +int
  36764. +main ()
  36765. +{
  36766. char c;
  36767. if (MB_CUR_MAX == 1) {
  36768. wctomb(&c, 42);
  36769. }
  36770. -
  36771. -; return 0; }
  36772. -EOF
  36773. -if { (eval echo configure:5874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  36774. - rm -rf conftest*
  36775. +
  36776. + ;
  36777. + return 0;
  36778. +}
  36779. +_ACEOF
  36780. +rm -f conftest.$ac_objext
  36781. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  36782. + (eval $ac_compile) 2>conftest.er1
  36783. + ac_status=$?
  36784. + grep -v '^ *+' conftest.er1 >conftest.err
  36785. + rm -f conftest.er1
  36786. + cat conftest.err >&5
  36787. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36788. + (exit $ac_status); } &&
  36789. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  36790. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36791. + (eval $ac_try) 2>&5
  36792. + ac_status=$?
  36793. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36794. + (exit $ac_status); }; } &&
  36795. + { ac_try='test -s conftest.$ac_objext'
  36796. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36797. + (eval $ac_try) 2>&5
  36798. + ac_status=$?
  36799. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36800. + (exit $ac_status); }; }; then
  36801. use_native_locale=yes
  36802. else
  36803. - echo "configure: failed program was:" >&5
  36804. - cat conftest.$ac_ext >&5
  36805. + echo "$as_me: failed program was:" >&5
  36806. +sed 's/^/| /' conftest.$ac_ext >&5
  36807. +
  36808. fi
  36809. -rm -f conftest*
  36810. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  36811. - echo "$ac_t""$use_native_locale" 1>&6
  36812. + echo "$as_me:$LINENO: result: $use_native_locale" >&5
  36813. +echo "${ECHO_T}$use_native_locale" >&6
  36814. fi
  36815. fi
  36816. if test x$use_native_locale = xyes ; then
  36817. - echo $ac_n "checking if sizeof(wchar_t) == 4""... $ac_c" 1>&6
  36818. -echo "configure:5889: checking if sizeof(wchar_t) == 4" >&5
  36819. + echo "$as_me:$LINENO: checking if sizeof(wchar_t) == 4" >&5
  36820. +echo $ECHO_N "checking if sizeof(wchar_t) == 4... $ECHO_C" >&6
  36821. if test "$cross_compiling" = yes; then
  36822. :
  36823. else
  36824. - cat > conftest.$ac_ext <<EOF
  36825. -#line 5895 "configure"
  36826. -#include "confdefs.h"
  36827. + cat >conftest.$ac_ext <<_ACEOF
  36828. +/* confdefs.h. */
  36829. +_ACEOF
  36830. +cat confdefs.h >>conftest.$ac_ext
  36831. +cat >>conftest.$ac_ext <<_ACEOF
  36832. +/* end confdefs.h. */
  36833. #include <stdlib.h>
  36834. @@ -5901,70 +25512,110 @@
  36835. {
  36836. return (sizeof(wchar_t) == 4) ? 0 : 1;
  36837. }
  36838. -EOF
  36839. -if { (eval echo configure:5906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  36840. -then
  36841. +_ACEOF
  36842. +rm -f conftest$ac_exeext
  36843. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  36844. + (eval $ac_link) 2>&5
  36845. + ac_status=$?
  36846. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36847. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  36848. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36849. + (eval $ac_try) 2>&5
  36850. + ac_status=$?
  36851. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36852. + (exit $ac_status); }; }; then
  36853. :
  36854. else
  36855. - echo "configure: failed program was:" >&5
  36856. - cat conftest.$ac_ext >&5
  36857. - rm -fr conftest*
  36858. - use_native_locale=no
  36859. + echo "$as_me: program exited with status $ac_status" >&5
  36860. +echo "$as_me: failed program was:" >&5
  36861. +sed 's/^/| /' conftest.$ac_ext >&5
  36862. +
  36863. +( exit $ac_status )
  36864. +use_native_locale=no
  36865. fi
  36866. -rm -fr conftest*
  36867. +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  36868. fi
  36869. -
  36870. - echo "$ac_t""$use_native_locale" 1>&6
  36871. + echo "$as_me:$LINENO: result: $use_native_locale" >&5
  36872. +echo "${ECHO_T}$use_native_locale" >&6
  36873. fi
  36874. -if test $use_native_locale = yes ; then
  36875. - cat >> confdefs.h <<\EOF
  36876. +if test $use_native_locale = yes ; then
  36877. + cat >>confdefs.h <<\_ACEOF
  36878. #define USE_NATIVE_LOCALE 1
  36879. -EOF
  36880. +_ACEOF
  36881. fi
  36882. # Checks for header files.
  36883. -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  36884. -echo "configure:5930: checking for ANSI C header files" >&5
  36885. -if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  36886. - echo $ac_n "(cached) $ac_c" 1>&6
  36887. -else
  36888. - cat > conftest.$ac_ext <<EOF
  36889. -#line 5935 "configure"
  36890. -#include "confdefs.h"
  36891. +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  36892. +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  36893. +if test "${ac_cv_header_stdc+set}" = set; then
  36894. + echo $ECHO_N "(cached) $ECHO_C" >&6
  36895. +else
  36896. + cat >conftest.$ac_ext <<_ACEOF
  36897. +/* confdefs.h. */
  36898. +_ACEOF
  36899. +cat confdefs.h >>conftest.$ac_ext
  36900. +cat >>conftest.$ac_ext <<_ACEOF
  36901. +/* end confdefs.h. */
  36902. #include <stdlib.h>
  36903. #include <stdarg.h>
  36904. #include <string.h>
  36905. #include <float.h>
  36906. -EOF
  36907. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  36908. -{ (eval echo configure:5943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  36909. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  36910. -if test -z "$ac_err"; then
  36911. - rm -rf conftest*
  36912. +
  36913. +int
  36914. +main ()
  36915. +{
  36916. +
  36917. + ;
  36918. + return 0;
  36919. +}
  36920. +_ACEOF
  36921. +rm -f conftest.$ac_objext
  36922. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  36923. + (eval $ac_compile) 2>conftest.er1
  36924. + ac_status=$?
  36925. + grep -v '^ *+' conftest.er1 >conftest.err
  36926. + rm -f conftest.er1
  36927. + cat conftest.err >&5
  36928. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36929. + (exit $ac_status); } &&
  36930. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  36931. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36932. + (eval $ac_try) 2>&5
  36933. + ac_status=$?
  36934. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36935. + (exit $ac_status); }; } &&
  36936. + { ac_try='test -s conftest.$ac_objext'
  36937. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36938. + (eval $ac_try) 2>&5
  36939. + ac_status=$?
  36940. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36941. + (exit $ac_status); }; }; then
  36942. ac_cv_header_stdc=yes
  36943. else
  36944. - echo "$ac_err" >&5
  36945. - echo "configure: failed program was:" >&5
  36946. - cat conftest.$ac_ext >&5
  36947. - rm -rf conftest*
  36948. - ac_cv_header_stdc=no
  36949. + echo "$as_me: failed program was:" >&5
  36950. +sed 's/^/| /' conftest.$ac_ext >&5
  36951. +
  36952. +ac_cv_header_stdc=no
  36953. fi
  36954. -rm -f conftest*
  36955. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  36956. if test $ac_cv_header_stdc = yes; then
  36957. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  36958. -cat > conftest.$ac_ext <<EOF
  36959. -#line 5960 "configure"
  36960. -#include "confdefs.h"
  36961. + cat >conftest.$ac_ext <<_ACEOF
  36962. +/* confdefs.h. */
  36963. +_ACEOF
  36964. +cat confdefs.h >>conftest.$ac_ext
  36965. +cat >>conftest.$ac_ext <<_ACEOF
  36966. +/* end confdefs.h. */
  36967. #include <string.h>
  36968. -EOF
  36969. +
  36970. +_ACEOF
  36971. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  36972. - egrep "memchr" >/dev/null 2>&1; then
  36973. + $EGREP "memchr" >/dev/null 2>&1; then
  36974. :
  36975. else
  36976. - rm -rf conftest*
  36977. ac_cv_header_stdc=no
  36978. fi
  36979. rm -f conftest*
  36980. @@ -5973,16 +25624,19 @@
  36981. if test $ac_cv_header_stdc = yes; then
  36982. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  36983. -cat > conftest.$ac_ext <<EOF
  36984. -#line 5978 "configure"
  36985. -#include "confdefs.h"
  36986. + cat >conftest.$ac_ext <<_ACEOF
  36987. +/* confdefs.h. */
  36988. +_ACEOF
  36989. +cat confdefs.h >>conftest.$ac_ext
  36990. +cat >>conftest.$ac_ext <<_ACEOF
  36991. +/* end confdefs.h. */
  36992. #include <stdlib.h>
  36993. -EOF
  36994. +
  36995. +_ACEOF
  36996. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  36997. - egrep "free" >/dev/null 2>&1; then
  36998. + $EGREP "free" >/dev/null 2>&1; then
  36999. :
  37000. else
  37001. - rm -rf conftest*
  37002. ac_cv_header_stdc=no
  37003. fi
  37004. rm -f conftest*
  37005. @@ -5991,135 +25645,198 @@
  37006. if test $ac_cv_header_stdc = yes; then
  37007. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  37008. -if test "$cross_compiling" = yes; then
  37009. + if test "$cross_compiling" = yes; then
  37010. :
  37011. else
  37012. - cat > conftest.$ac_ext <<EOF
  37013. -#line 5999 "configure"
  37014. -#include "confdefs.h"
  37015. + cat >conftest.$ac_ext <<_ACEOF
  37016. +/* confdefs.h. */
  37017. +_ACEOF
  37018. +cat confdefs.h >>conftest.$ac_ext
  37019. +cat >>conftest.$ac_ext <<_ACEOF
  37020. +/* end confdefs.h. */
  37021. #include <ctype.h>
  37022. -#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  37023. -#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  37024. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  37025. -int main () { int i; for (i = 0; i < 256; i++)
  37026. -if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  37027. -exit (0); }
  37028. +#if ((' ' & 0x0FF) == 0x020)
  37029. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  37030. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  37031. +#else
  37032. +# define ISLOWER(c) \
  37033. + (('a' <= (c) && (c) <= 'i') \
  37034. + || ('j' <= (c) && (c) <= 'r') \
  37035. + || ('s' <= (c) && (c) <= 'z'))
  37036. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  37037. +#endif
  37038. -EOF
  37039. -if { (eval echo configure:6010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  37040. -then
  37041. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  37042. +int
  37043. +main ()
  37044. +{
  37045. + int i;
  37046. + for (i = 0; i < 256; i++)
  37047. + if (XOR (islower (i), ISLOWER (i))
  37048. + || toupper (i) != TOUPPER (i))
  37049. + exit(2);
  37050. + exit (0);
  37051. +}
  37052. +_ACEOF
  37053. +rm -f conftest$ac_exeext
  37054. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  37055. + (eval $ac_link) 2>&5
  37056. + ac_status=$?
  37057. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37058. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  37059. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  37060. + (eval $ac_try) 2>&5
  37061. + ac_status=$?
  37062. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37063. + (exit $ac_status); }; }; then
  37064. :
  37065. else
  37066. - echo "configure: failed program was:" >&5
  37067. - cat conftest.$ac_ext >&5
  37068. - rm -fr conftest*
  37069. - ac_cv_header_stdc=no
  37070. + echo "$as_me: program exited with status $ac_status" >&5
  37071. +echo "$as_me: failed program was:" >&5
  37072. +sed 's/^/| /' conftest.$ac_ext >&5
  37073. +
  37074. +( exit $ac_status )
  37075. +ac_cv_header_stdc=no
  37076. fi
  37077. -rm -fr conftest*
  37078. +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  37079. fi
  37080. -
  37081. fi
  37082. fi
  37083. -
  37084. -echo "$ac_t""$ac_cv_header_stdc" 1>&6
  37085. +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  37086. +echo "${ECHO_T}$ac_cv_header_stdc" >&6
  37087. if test $ac_cv_header_stdc = yes; then
  37088. - cat >> confdefs.h <<\EOF
  37089. +
  37090. +cat >>confdefs.h <<\_ACEOF
  37091. #define STDC_HEADERS 1
  37092. -EOF
  37093. +_ACEOF
  37094. fi
  37095. # Checks for typedefs, structures, and compiler characteristics.
  37096. -echo $ac_n "checking for working const""... $ac_c" 1>&6
  37097. -echo "configure:6036: checking for working const" >&5
  37098. -if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  37099. - echo $ac_n "(cached) $ac_c" 1>&6
  37100. -else
  37101. - cat > conftest.$ac_ext <<EOF
  37102. -#line 6041 "configure"
  37103. -#include "confdefs.h"
  37104. +echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  37105. +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  37106. +if test "${ac_cv_c_const+set}" = set; then
  37107. + echo $ECHO_N "(cached) $ECHO_C" >&6
  37108. +else
  37109. + cat >conftest.$ac_ext <<_ACEOF
  37110. +/* confdefs.h. */
  37111. +_ACEOF
  37112. +cat confdefs.h >>conftest.$ac_ext
  37113. +cat >>conftest.$ac_ext <<_ACEOF
  37114. +/* end confdefs.h. */
  37115. -int main() {
  37116. +int
  37117. +main ()
  37118. +{
  37119. +/* FIXME: Include the comments suggested by Paul. */
  37120. +#ifndef __cplusplus
  37121. + /* Ultrix mips cc rejects this. */
  37122. + typedef int charset[2];
  37123. + const charset x;
  37124. + /* SunOS 4.1.1 cc rejects this. */
  37125. + char const *const *ccp;
  37126. + char **p;
  37127. + /* NEC SVR4.0.2 mips cc rejects this. */
  37128. + struct point {int x, y;};
  37129. + static struct point const zero = {0,0};
  37130. + /* AIX XL C 1.02.0.0 rejects this.
  37131. + It does not let you subtract one const X* pointer from another in
  37132. + an arm of an if-expression whose if-part is not a constant
  37133. + expression */
  37134. + const char *g = "string";
  37135. + ccp = &g + (g ? g-g : 0);
  37136. + /* HPUX 7.0 cc rejects these. */
  37137. + ++ccp;
  37138. + p = (char**) ccp;
  37139. + ccp = (char const *const *) p;
  37140. + { /* SCO 3.2v4 cc rejects this. */
  37141. + char *t;
  37142. + char const *s = 0 ? (char *) 0 : (char const *) 0;
  37143. -/* Ultrix mips cc rejects this. */
  37144. -typedef int charset[2]; const charset x;
  37145. -/* SunOS 4.1.1 cc rejects this. */
  37146. -char const *const *ccp;
  37147. -char **p;
  37148. -/* NEC SVR4.0.2 mips cc rejects this. */
  37149. -struct point {int x, y;};
  37150. -static struct point const zero = {0,0};
  37151. -/* AIX XL C 1.02.0.0 rejects this.
  37152. - It does not let you subtract one const X* pointer from another in an arm
  37153. - of an if-expression whose if-part is not a constant expression */
  37154. -const char *g = "string";
  37155. -ccp = &g + (g ? g-g : 0);
  37156. -/* HPUX 7.0 cc rejects these. */
  37157. -++ccp;
  37158. -p = (char**) ccp;
  37159. -ccp = (char const *const *) p;
  37160. -{ /* SCO 3.2v4 cc rejects this. */
  37161. - char *t;
  37162. - char const *s = 0 ? (char *) 0 : (char const *) 0;
  37163. -
  37164. - *t++ = 0;
  37165. -}
  37166. -{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  37167. - int x[] = {25, 17};
  37168. - const int *foo = &x[0];
  37169. - ++foo;
  37170. -}
  37171. -{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  37172. - typedef const int *iptr;
  37173. - iptr p = 0;
  37174. - ++p;
  37175. -}
  37176. -{ /* AIX XL C 1.02.0.0 rejects this saying
  37177. - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  37178. - struct s { int j; const int *ap[3]; };
  37179. - struct s *b; b->j = 5;
  37180. -}
  37181. -{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  37182. - const int foo = 10;
  37183. -}
  37184. + *t++ = 0;
  37185. + }
  37186. + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  37187. + int x[] = {25, 17};
  37188. + const int *foo = &x[0];
  37189. + ++foo;
  37190. + }
  37191. + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  37192. + typedef const int *iptr;
  37193. + iptr p = 0;
  37194. + ++p;
  37195. + }
  37196. + { /* AIX XL C 1.02.0.0 rejects this saying
  37197. + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  37198. + struct s { int j; const int *ap[3]; };
  37199. + struct s *b; b->j = 5;
  37200. + }
  37201. + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  37202. + const int foo = 10;
  37203. + }
  37204. +#endif
  37205. -; return 0; }
  37206. -EOF
  37207. -if { (eval echo configure:6090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  37208. - rm -rf conftest*
  37209. + ;
  37210. + return 0;
  37211. +}
  37212. +_ACEOF
  37213. +rm -f conftest.$ac_objext
  37214. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  37215. + (eval $ac_compile) 2>conftest.er1
  37216. + ac_status=$?
  37217. + grep -v '^ *+' conftest.er1 >conftest.err
  37218. + rm -f conftest.er1
  37219. + cat conftest.err >&5
  37220. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37221. + (exit $ac_status); } &&
  37222. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  37223. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  37224. + (eval $ac_try) 2>&5
  37225. + ac_status=$?
  37226. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37227. + (exit $ac_status); }; } &&
  37228. + { ac_try='test -s conftest.$ac_objext'
  37229. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  37230. + (eval $ac_try) 2>&5
  37231. + ac_status=$?
  37232. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37233. + (exit $ac_status); }; }; then
  37234. ac_cv_c_const=yes
  37235. else
  37236. - echo "configure: failed program was:" >&5
  37237. - cat conftest.$ac_ext >&5
  37238. - rm -rf conftest*
  37239. - ac_cv_c_const=no
  37240. + echo "$as_me: failed program was:" >&5
  37241. +sed 's/^/| /' conftest.$ac_ext >&5
  37242. +
  37243. +ac_cv_c_const=no
  37244. fi
  37245. -rm -f conftest*
  37246. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  37247. fi
  37248. -
  37249. -echo "$ac_t""$ac_cv_c_const" 1>&6
  37250. +echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  37251. +echo "${ECHO_T}$ac_cv_c_const" >&6
  37252. if test $ac_cv_c_const = no; then
  37253. - cat >> confdefs.h <<\EOF
  37254. -#define const
  37255. -EOF
  37256. +
  37257. +cat >>confdefs.h <<\_ACEOF
  37258. +#define const
  37259. +_ACEOF
  37260. fi
  37261. # Checks for library functions.
  37262. -echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  37263. -echo "configure:6113: checking return type of signal handlers" >&5
  37264. -if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  37265. - echo $ac_n "(cached) $ac_c" 1>&6
  37266. -else
  37267. - cat > conftest.$ac_ext <<EOF
  37268. -#line 6118 "configure"
  37269. -#include "confdefs.h"
  37270. +echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  37271. +echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  37272. +if test "${ac_cv_type_signal+set}" = set; then
  37273. + echo $ECHO_N "(cached) $ECHO_C" >&6
  37274. +else
  37275. + cat >conftest.$ac_ext <<_ACEOF
  37276. +/* confdefs.h. */
  37277. +_ACEOF
  37278. +cat confdefs.h >>conftest.$ac_ext
  37279. +cat >>conftest.$ac_ext <<_ACEOF
  37280. +/* end confdefs.h. */
  37281. #include <sys/types.h>
  37282. #include <signal.h>
  37283. #ifdef signal
  37284. -#undef signal
  37285. +# undef signal
  37286. #endif
  37287. #ifdef __cplusplus
  37288. extern "C" void (*signal (int, void (*)(int)))(int);
  37289. @@ -6127,134 +25844,320 @@
  37290. void (*signal ()) ();
  37291. #endif
  37292. -int main() {
  37293. +int
  37294. +main ()
  37295. +{
  37296. int i;
  37297. -; return 0; }
  37298. -EOF
  37299. -if { (eval echo configure:6135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  37300. - rm -rf conftest*
  37301. + ;
  37302. + return 0;
  37303. +}
  37304. +_ACEOF
  37305. +rm -f conftest.$ac_objext
  37306. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  37307. + (eval $ac_compile) 2>conftest.er1
  37308. + ac_status=$?
  37309. + grep -v '^ *+' conftest.er1 >conftest.err
  37310. + rm -f conftest.er1
  37311. + cat conftest.err >&5
  37312. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37313. + (exit $ac_status); } &&
  37314. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  37315. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  37316. + (eval $ac_try) 2>&5
  37317. + ac_status=$?
  37318. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37319. + (exit $ac_status); }; } &&
  37320. + { ac_try='test -s conftest.$ac_objext'
  37321. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  37322. + (eval $ac_try) 2>&5
  37323. + ac_status=$?
  37324. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37325. + (exit $ac_status); }; }; then
  37326. ac_cv_type_signal=void
  37327. else
  37328. - echo "configure: failed program was:" >&5
  37329. - cat conftest.$ac_ext >&5
  37330. - rm -rf conftest*
  37331. - ac_cv_type_signal=int
  37332. + echo "$as_me: failed program was:" >&5
  37333. +sed 's/^/| /' conftest.$ac_ext >&5
  37334. +
  37335. +ac_cv_type_signal=int
  37336. fi
  37337. -rm -f conftest*
  37338. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  37339. fi
  37340. +echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  37341. +echo "${ECHO_T}$ac_cv_type_signal" >&6
  37342. -echo "$ac_t""$ac_cv_type_signal" 1>&6
  37343. -cat >> confdefs.h <<EOF
  37344. +cat >>confdefs.h <<_ACEOF
  37345. #define RETSIGTYPE $ac_cv_type_signal
  37346. -EOF
  37347. +_ACEOF
  37348. +
  37349. -for ac_hdr in unistd.h
  37350. +
  37351. +for ac_header in stdlib.h unistd.h
  37352. do
  37353. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  37354. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  37355. -echo "configure:6157: checking for $ac_hdr" >&5
  37356. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  37357. - echo $ac_n "(cached) $ac_c" 1>&6
  37358. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  37359. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  37360. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  37361. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  37362. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  37363. + echo $ECHO_N "(cached) $ECHO_C" >&6
  37364. +fi
  37365. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  37366. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  37367. +else
  37368. + # Is the header compilable?
  37369. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  37370. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  37371. +cat >conftest.$ac_ext <<_ACEOF
  37372. +/* confdefs.h. */
  37373. +_ACEOF
  37374. +cat confdefs.h >>conftest.$ac_ext
  37375. +cat >>conftest.$ac_ext <<_ACEOF
  37376. +/* end confdefs.h. */
  37377. +$ac_includes_default
  37378. +#include <$ac_header>
  37379. +_ACEOF
  37380. +rm -f conftest.$ac_objext
  37381. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  37382. + (eval $ac_compile) 2>conftest.er1
  37383. + ac_status=$?
  37384. + grep -v '^ *+' conftest.er1 >conftest.err
  37385. + rm -f conftest.er1
  37386. + cat conftest.err >&5
  37387. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37388. + (exit $ac_status); } &&
  37389. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  37390. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  37391. + (eval $ac_try) 2>&5
  37392. + ac_status=$?
  37393. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37394. + (exit $ac_status); }; } &&
  37395. + { ac_try='test -s conftest.$ac_objext'
  37396. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  37397. + (eval $ac_try) 2>&5
  37398. + ac_status=$?
  37399. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37400. + (exit $ac_status); }; }; then
  37401. + ac_header_compiler=yes
  37402. +else
  37403. + echo "$as_me: failed program was:" >&5
  37404. +sed 's/^/| /' conftest.$ac_ext >&5
  37405. +
  37406. +ac_header_compiler=no
  37407. +fi
  37408. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  37409. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  37410. +echo "${ECHO_T}$ac_header_compiler" >&6
  37411. +
  37412. +# Is the header present?
  37413. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  37414. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  37415. +cat >conftest.$ac_ext <<_ACEOF
  37416. +/* confdefs.h. */
  37417. +_ACEOF
  37418. +cat confdefs.h >>conftest.$ac_ext
  37419. +cat >>conftest.$ac_ext <<_ACEOF
  37420. +/* end confdefs.h. */
  37421. +#include <$ac_header>
  37422. +_ACEOF
  37423. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  37424. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  37425. + ac_status=$?
  37426. + grep -v '^ *+' conftest.er1 >conftest.err
  37427. + rm -f conftest.er1
  37428. + cat conftest.err >&5
  37429. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37430. + (exit $ac_status); } >/dev/null; then
  37431. + if test -s conftest.err; then
  37432. + ac_cpp_err=$ac_c_preproc_warn_flag
  37433. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  37434. + else
  37435. + ac_cpp_err=
  37436. + fi
  37437. else
  37438. - cat > conftest.$ac_ext <<EOF
  37439. -#line 6162 "configure"
  37440. -#include "confdefs.h"
  37441. -#include <$ac_hdr>
  37442. -EOF
  37443. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  37444. -{ (eval echo configure:6167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  37445. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  37446. -if test -z "$ac_err"; then
  37447. - rm -rf conftest*
  37448. - eval "ac_cv_header_$ac_safe=yes"
  37449. + ac_cpp_err=yes
  37450. +fi
  37451. +if test -z "$ac_cpp_err"; then
  37452. + ac_header_preproc=yes
  37453. else
  37454. - echo "$ac_err" >&5
  37455. - echo "configure: failed program was:" >&5
  37456. - cat conftest.$ac_ext >&5
  37457. - rm -rf conftest*
  37458. - eval "ac_cv_header_$ac_safe=no"
  37459. + echo "$as_me: failed program was:" >&5
  37460. +sed 's/^/| /' conftest.$ac_ext >&5
  37461. +
  37462. + ac_header_preproc=no
  37463. +fi
  37464. +rm -f conftest.err conftest.$ac_ext
  37465. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  37466. +echo "${ECHO_T}$ac_header_preproc" >&6
  37467. +
  37468. +# So? What about this header?
  37469. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  37470. + yes:no: )
  37471. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  37472. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  37473. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  37474. +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  37475. + ac_header_preproc=yes
  37476. + ;;
  37477. + no:yes:* )
  37478. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  37479. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  37480. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  37481. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  37482. + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  37483. +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  37484. + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  37485. +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  37486. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  37487. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  37488. + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  37489. +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  37490. + (
  37491. + cat <<\_ASBOX
  37492. +## ------------------------------------------ ##
  37493. +## Report this to the AC_PACKAGE_NAME lists. ##
  37494. +## ------------------------------------------ ##
  37495. +_ASBOX
  37496. + ) |
  37497. + sed "s/^/$as_me: WARNING: /" >&2
  37498. + ;;
  37499. +esac
  37500. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  37501. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  37502. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  37503. + echo $ECHO_N "(cached) $ECHO_C" >&6
  37504. +else
  37505. + eval "$as_ac_Header=\$ac_header_preproc"
  37506. fi
  37507. -rm -f conftest*
  37508. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  37509. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  37510. +
  37511. fi
  37512. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  37513. - echo "$ac_t""yes" 1>&6
  37514. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  37515. - cat >> confdefs.h <<EOF
  37516. -#define $ac_tr_hdr 1
  37517. -EOF
  37518. -
  37519. -else
  37520. - echo "$ac_t""no" 1>&6
  37521. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  37522. + cat >>confdefs.h <<_ACEOF
  37523. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  37524. +_ACEOF
  37525. +
  37526. fi
  37527. +
  37528. done
  37529. +
  37530. for ac_func in getpagesize
  37531. do
  37532. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  37533. -echo "configure:6196: checking for $ac_func" >&5
  37534. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  37535. - echo $ac_n "(cached) $ac_c" 1>&6
  37536. -else
  37537. - cat > conftest.$ac_ext <<EOF
  37538. -#line 6201 "configure"
  37539. -#include "confdefs.h"
  37540. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  37541. +echo "$as_me:$LINENO: checking for $ac_func" >&5
  37542. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  37543. +if eval "test \"\${$as_ac_var+set}\" = set"; then
  37544. + echo $ECHO_N "(cached) $ECHO_C" >&6
  37545. +else
  37546. + cat >conftest.$ac_ext <<_ACEOF
  37547. +/* confdefs.h. */
  37548. +_ACEOF
  37549. +cat confdefs.h >>conftest.$ac_ext
  37550. +cat >>conftest.$ac_ext <<_ACEOF
  37551. +/* end confdefs.h. */
  37552. +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  37553. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  37554. +#define $ac_func innocuous_$ac_func
  37555. +
  37556. /* System header to define __stub macros and hopefully few prototypes,
  37557. - which can conflict with char $ac_func(); below. */
  37558. -#include <assert.h>
  37559. -/* Override any gcc2 internal prototype to avoid an error. */
  37560. -/* We use char because int might match the return type of a gcc2
  37561. - builtin and then its argument prototype would still apply. */
  37562. -char $ac_func();
  37563. + which can conflict with char $ac_func (); below.
  37564. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  37565. + <limits.h> exists even on freestanding compilers. */
  37566. +
  37567. +#ifdef __STDC__
  37568. +# include <limits.h>
  37569. +#else
  37570. +# include <assert.h>
  37571. +#endif
  37572. -int main() {
  37573. +#undef $ac_func
  37574. +/* Override any gcc2 internal prototype to avoid an error. */
  37575. +#ifdef __cplusplus
  37576. +extern "C"
  37577. +{
  37578. +#endif
  37579. +/* We use char because int might match the return type of a gcc2
  37580. + builtin and then its argument prototype would still apply. */
  37581. +char $ac_func ();
  37582. /* The GNU C library defines this for functions which it implements
  37583. to always fail with ENOSYS. Some functions are actually named
  37584. something starting with __ and the normal name is an alias. */
  37585. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  37586. choke me
  37587. #else
  37588. -$ac_func();
  37589. +char (*f) () = $ac_func;
  37590. +#endif
  37591. +#ifdef __cplusplus
  37592. +}
  37593. #endif
  37594. -; return 0; }
  37595. -EOF
  37596. -if { (eval echo configure:6224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  37597. - rm -rf conftest*
  37598. - eval "ac_cv_func_$ac_func=yes"
  37599. -else
  37600. - echo "configure: failed program was:" >&5
  37601. - cat conftest.$ac_ext >&5
  37602. - rm -rf conftest*
  37603. - eval "ac_cv_func_$ac_func=no"
  37604. -fi
  37605. -rm -f conftest*
  37606. -fi
  37607. +int
  37608. +main ()
  37609. +{
  37610. +return f != $ac_func;
  37611. + ;
  37612. + return 0;
  37613. +}
  37614. +_ACEOF
  37615. +rm -f conftest.$ac_objext conftest$ac_exeext
  37616. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  37617. + (eval $ac_link) 2>conftest.er1
  37618. + ac_status=$?
  37619. + grep -v '^ *+' conftest.er1 >conftest.err
  37620. + rm -f conftest.er1
  37621. + cat conftest.err >&5
  37622. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37623. + (exit $ac_status); } &&
  37624. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  37625. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  37626. + (eval $ac_try) 2>&5
  37627. + ac_status=$?
  37628. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37629. + (exit $ac_status); }; } &&
  37630. + { ac_try='test -s conftest$ac_exeext'
  37631. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  37632. + (eval $ac_try) 2>&5
  37633. + ac_status=$?
  37634. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37635. + (exit $ac_status); }; }; then
  37636. + eval "$as_ac_var=yes"
  37637. +else
  37638. + echo "$as_me: failed program was:" >&5
  37639. +sed 's/^/| /' conftest.$ac_ext >&5
  37640. +
  37641. +eval "$as_ac_var=no"
  37642. +fi
  37643. +rm -f conftest.err conftest.$ac_objext \
  37644. + conftest$ac_exeext conftest.$ac_ext
  37645. +fi
  37646. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  37647. +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  37648. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  37649. + cat >>confdefs.h <<_ACEOF
  37650. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  37651. +_ACEOF
  37652. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  37653. - echo "$ac_t""yes" 1>&6
  37654. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  37655. - cat >> confdefs.h <<EOF
  37656. -#define $ac_tr_func 1
  37657. -EOF
  37658. -
  37659. -else
  37660. - echo "$ac_t""no" 1>&6
  37661. fi
  37662. done
  37663. -echo $ac_n "checking for working mmap""... $ac_c" 1>&6
  37664. -echo "configure:6249: checking for working mmap" >&5
  37665. -if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
  37666. - echo $ac_n "(cached) $ac_c" 1>&6
  37667. +echo "$as_me:$LINENO: checking for working mmap" >&5
  37668. +echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  37669. +if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  37670. + echo $ECHO_N "(cached) $ECHO_C" >&6
  37671. else
  37672. if test "$cross_compiling" = yes; then
  37673. ac_cv_func_mmap_fixed_mapped=no
  37674. else
  37675. - cat > conftest.$ac_ext <<EOF
  37676. -#line 6257 "configure"
  37677. -#include "confdefs.h"
  37678. + cat >conftest.$ac_ext <<_ACEOF
  37679. +/* confdefs.h. */
  37680. +_ACEOF
  37681. +cat confdefs.h >>conftest.$ac_ext
  37682. +cat >>conftest.$ac_ext <<_ACEOF
  37683. +/* end confdefs.h. */
  37684. +$ac_includes_default
  37685. +/* malloc might have been renamed as rpl_malloc. */
  37686. +#undef malloc
  37687. /* Thanks to Mike Haertel and Jim Avera for this test.
  37688. Here is a matrix of mmap possibilities:
  37689. @@ -6268,34 +26171,34 @@
  37690. back from the file, nor mmap's back from the file at a different
  37691. address. (There have been systems where private was not correctly
  37692. implemented like the infamous i386 svr4.0, and systems where the
  37693. - VM page cache was not coherent with the filesystem buffer cache
  37694. + VM page cache was not coherent with the file system buffer cache
  37695. like early versions of FreeBSD and possibly contemporary NetBSD.)
  37696. For shared mappings, we should conversely verify that changes get
  37697. - propogated back to all the places they're supposed to be.
  37698. + propagated back to all the places they're supposed to be.
  37699. Grep wants private fixed already mapped.
  37700. The main things grep needs to know about mmap are:
  37701. * does it exist and is it safe to write into the mmap'd area
  37702. * how to use it (BSD variants) */
  37703. -#include <sys/types.h>
  37704. +
  37705. #include <fcntl.h>
  37706. #include <sys/mman.h>
  37707. -/* This mess was copied from the GNU getpagesize.h. */
  37708. -#ifndef HAVE_GETPAGESIZE
  37709. -# ifdef HAVE_UNISTD_H
  37710. -# include <unistd.h>
  37711. -# endif
  37712. +#if !STDC_HEADERS && !HAVE_STDLIB_H
  37713. +char *malloc ();
  37714. +#endif
  37715. +/* This mess was copied from the GNU getpagesize.h. */
  37716. +#if !HAVE_GETPAGESIZE
  37717. /* Assume that all systems that can run configure have sys/param.h. */
  37718. -# ifndef HAVE_SYS_PARAM_H
  37719. +# if !HAVE_SYS_PARAM_H
  37720. # define HAVE_SYS_PARAM_H 1
  37721. # endif
  37722. # ifdef _SC_PAGESIZE
  37723. # define getpagesize() sysconf(_SC_PAGESIZE)
  37724. # else /* no _SC_PAGESIZE */
  37725. -# ifdef HAVE_SYS_PARAM_H
  37726. +# if HAVE_SYS_PARAM_H
  37727. # include <sys/param.h>
  37728. # ifdef EXEC_PAGESIZE
  37729. # define getpagesize() EXEC_PAGESIZE
  37730. @@ -6318,962 +26221,2169 @@
  37731. # else /* no HAVE_SYS_PARAM_H */
  37732. # define getpagesize() 8192 /* punt totally */
  37733. # endif /* no HAVE_SYS_PARAM_H */
  37734. -# endif /* no _SC_PAGESIZE */
  37735. -
  37736. -#endif /* no HAVE_GETPAGESIZE */
  37737. -
  37738. -#ifdef __cplusplus
  37739. -extern "C" { void *malloc(unsigned); }
  37740. -#else
  37741. -char *malloc();
  37742. -#endif
  37743. +# endif /* no _SC_PAGESIZE */
  37744. +
  37745. +#endif /* no HAVE_GETPAGESIZE */
  37746. int
  37747. -main()
  37748. +main ()
  37749. {
  37750. - char *data, *data2, *data3;
  37751. - int i, pagesize;
  37752. - int fd;
  37753. -
  37754. - pagesize = getpagesize();
  37755. -
  37756. - /*
  37757. - * First, make a file with some known garbage in it.
  37758. - */
  37759. - data = malloc(pagesize);
  37760. - if (!data)
  37761. - exit(1);
  37762. - for (i = 0; i < pagesize; ++i)
  37763. - *(data + i) = rand();
  37764. - umask(0);
  37765. - fd = creat("conftestmmap", 0600);
  37766. - if (fd < 0)
  37767. - exit(1);
  37768. - if (write(fd, data, pagesize) != pagesize)
  37769. - exit(1);
  37770. - close(fd);
  37771. -
  37772. - /*
  37773. - * Next, try to mmap the file at a fixed address which
  37774. - * already has something else allocated at it. If we can,
  37775. - * also make sure that we see the same garbage.
  37776. - */
  37777. - fd = open("conftestmmap", O_RDWR);
  37778. - if (fd < 0)
  37779. - exit(1);
  37780. - data2 = malloc(2 * pagesize);
  37781. - if (!data2)
  37782. - exit(1);
  37783. - data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
  37784. - if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
  37785. - MAP_PRIVATE | MAP_FIXED, fd, 0L))
  37786. - exit(1);
  37787. - for (i = 0; i < pagesize; ++i)
  37788. - if (*(data + i) != *(data2 + i))
  37789. - exit(1);
  37790. -
  37791. - /*
  37792. - * Finally, make sure that changes to the mapped area
  37793. - * do not percolate back to the file as seen by read().
  37794. - * (This is a bug on some variants of i386 svr4.0.)
  37795. - */
  37796. - for (i = 0; i < pagesize; ++i)
  37797. - *(data2 + i) = *(data2 + i) + 1;
  37798. - data3 = malloc(pagesize);
  37799. - if (!data3)
  37800. - exit(1);
  37801. - if (read(fd, data3, pagesize) != pagesize)
  37802. - exit(1);
  37803. - for (i = 0; i < pagesize; ++i)
  37804. - if (*(data + i) != *(data3 + i))
  37805. - exit(1);
  37806. - close(fd);
  37807. - unlink("conftestmmap");
  37808. - exit(0);
  37809. + char *data, *data2, *data3;
  37810. + int i, pagesize;
  37811. + int fd;
  37812. +
  37813. + pagesize = getpagesize ();
  37814. +
  37815. + /* First, make a file with some known garbage in it. */
  37816. + data = (char *) malloc (pagesize);
  37817. + if (!data)
  37818. + exit (1);
  37819. + for (i = 0; i < pagesize; ++i)
  37820. + *(data + i) = rand ();
  37821. + umask (0);
  37822. + fd = creat ("conftest.mmap", 0600);
  37823. + if (fd < 0)
  37824. + exit (1);
  37825. + if (write (fd, data, pagesize) != pagesize)
  37826. + exit (1);
  37827. + close (fd);
  37828. +
  37829. + /* Next, try to mmap the file at a fixed address which already has
  37830. + something else allocated at it. If we can, also make sure that
  37831. + we see the same garbage. */
  37832. + fd = open ("conftest.mmap", O_RDWR);
  37833. + if (fd < 0)
  37834. + exit (1);
  37835. + data2 = (char *) malloc (2 * pagesize);
  37836. + if (!data2)
  37837. + exit (1);
  37838. + data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  37839. + if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  37840. + MAP_PRIVATE | MAP_FIXED, fd, 0L))
  37841. + exit (1);
  37842. + for (i = 0; i < pagesize; ++i)
  37843. + if (*(data + i) != *(data2 + i))
  37844. + exit (1);
  37845. +
  37846. + /* Finally, make sure that changes to the mapped area do not
  37847. + percolate back to the file as seen by read(). (This is a bug on
  37848. + some variants of i386 svr4.0.) */
  37849. + for (i = 0; i < pagesize; ++i)
  37850. + *(data2 + i) = *(data2 + i) + 1;
  37851. + data3 = (char *) malloc (pagesize);
  37852. + if (!data3)
  37853. + exit (1);
  37854. + if (read (fd, data3, pagesize) != pagesize)
  37855. + exit (1);
  37856. + for (i = 0; i < pagesize; ++i)
  37857. + if (*(data + i) != *(data3 + i))
  37858. + exit (1);
  37859. + close (fd);
  37860. + exit (0);
  37861. }
  37862. -
  37863. -EOF
  37864. -if { (eval echo configure:6397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  37865. -then
  37866. +_ACEOF
  37867. +rm -f conftest$ac_exeext
  37868. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  37869. + (eval $ac_link) 2>&5
  37870. + ac_status=$?
  37871. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37872. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  37873. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  37874. + (eval $ac_try) 2>&5
  37875. + ac_status=$?
  37876. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37877. + (exit $ac_status); }; }; then
  37878. ac_cv_func_mmap_fixed_mapped=yes
  37879. else
  37880. - echo "configure: failed program was:" >&5
  37881. - cat conftest.$ac_ext >&5
  37882. - rm -fr conftest*
  37883. - ac_cv_func_mmap_fixed_mapped=no
  37884. + echo "$as_me: program exited with status $ac_status" >&5
  37885. +echo "$as_me: failed program was:" >&5
  37886. +sed 's/^/| /' conftest.$ac_ext >&5
  37887. +
  37888. +( exit $ac_status )
  37889. +ac_cv_func_mmap_fixed_mapped=no
  37890. fi
  37891. -rm -fr conftest*
  37892. +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  37893. fi
  37894. -
  37895. fi
  37896. -
  37897. -echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
  37898. +echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  37899. +echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  37900. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  37901. - cat >> confdefs.h <<\EOF
  37902. +
  37903. +cat >>confdefs.h <<\_ACEOF
  37904. #define HAVE_MMAP 1
  37905. -EOF
  37906. +_ACEOF
  37907. fi
  37908. +rm -f conftest.mmap
  37909. +
  37910. for ac_func in getresuid
  37911. do
  37912. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  37913. -echo "configure:6423: checking for $ac_func" >&5
  37914. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  37915. - echo $ac_n "(cached) $ac_c" 1>&6
  37916. -else
  37917. - cat > conftest.$ac_ext <<EOF
  37918. -#line 6428 "configure"
  37919. -#include "confdefs.h"
  37920. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  37921. +echo "$as_me:$LINENO: checking for $ac_func" >&5
  37922. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  37923. +if eval "test \"\${$as_ac_var+set}\" = set"; then
  37924. + echo $ECHO_N "(cached) $ECHO_C" >&6
  37925. +else
  37926. + cat >conftest.$ac_ext <<_ACEOF
  37927. +/* confdefs.h. */
  37928. +_ACEOF
  37929. +cat confdefs.h >>conftest.$ac_ext
  37930. +cat >>conftest.$ac_ext <<_ACEOF
  37931. +/* end confdefs.h. */
  37932. +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  37933. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  37934. +#define $ac_func innocuous_$ac_func
  37935. +
  37936. /* System header to define __stub macros and hopefully few prototypes,
  37937. - which can conflict with char $ac_func(); below. */
  37938. -#include <assert.h>
  37939. -/* Override any gcc2 internal prototype to avoid an error. */
  37940. -/* We use char because int might match the return type of a gcc2
  37941. - builtin and then its argument prototype would still apply. */
  37942. -char $ac_func();
  37943. + which can conflict with char $ac_func (); below.
  37944. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  37945. + <limits.h> exists even on freestanding compilers. */
  37946. +
  37947. +#ifdef __STDC__
  37948. +# include <limits.h>
  37949. +#else
  37950. +# include <assert.h>
  37951. +#endif
  37952. -int main() {
  37953. +#undef $ac_func
  37954. +/* Override any gcc2 internal prototype to avoid an error. */
  37955. +#ifdef __cplusplus
  37956. +extern "C"
  37957. +{
  37958. +#endif
  37959. +/* We use char because int might match the return type of a gcc2
  37960. + builtin and then its argument prototype would still apply. */
  37961. +char $ac_func ();
  37962. /* The GNU C library defines this for functions which it implements
  37963. to always fail with ENOSYS. Some functions are actually named
  37964. something starting with __ and the normal name is an alias. */
  37965. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  37966. choke me
  37967. #else
  37968. -$ac_func();
  37969. +char (*f) () = $ac_func;
  37970. +#endif
  37971. +#ifdef __cplusplus
  37972. +}
  37973. #endif
  37974. -; return 0; }
  37975. -EOF
  37976. -if { (eval echo configure:6451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  37977. - rm -rf conftest*
  37978. - eval "ac_cv_func_$ac_func=yes"
  37979. -else
  37980. - echo "configure: failed program was:" >&5
  37981. - cat conftest.$ac_ext >&5
  37982. - rm -rf conftest*
  37983. - eval "ac_cv_func_$ac_func=no"
  37984. -fi
  37985. -rm -f conftest*
  37986. -fi
  37987. +int
  37988. +main ()
  37989. +{
  37990. +return f != $ac_func;
  37991. + ;
  37992. + return 0;
  37993. +}
  37994. +_ACEOF
  37995. +rm -f conftest.$ac_objext conftest$ac_exeext
  37996. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  37997. + (eval $ac_link) 2>conftest.er1
  37998. + ac_status=$?
  37999. + grep -v '^ *+' conftest.er1 >conftest.err
  38000. + rm -f conftest.er1
  38001. + cat conftest.err >&5
  38002. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38003. + (exit $ac_status); } &&
  38004. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  38005. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38006. + (eval $ac_try) 2>&5
  38007. + ac_status=$?
  38008. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38009. + (exit $ac_status); }; } &&
  38010. + { ac_try='test -s conftest$ac_exeext'
  38011. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38012. + (eval $ac_try) 2>&5
  38013. + ac_status=$?
  38014. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38015. + (exit $ac_status); }; }; then
  38016. + eval "$as_ac_var=yes"
  38017. +else
  38018. + echo "$as_me: failed program was:" >&5
  38019. +sed 's/^/| /' conftest.$ac_ext >&5
  38020. +
  38021. +eval "$as_ac_var=no"
  38022. +fi
  38023. +rm -f conftest.err conftest.$ac_objext \
  38024. + conftest$ac_exeext conftest.$ac_ext
  38025. +fi
  38026. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  38027. +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  38028. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  38029. + cat >>confdefs.h <<_ACEOF
  38030. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  38031. +_ACEOF
  38032. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  38033. - echo "$ac_t""yes" 1>&6
  38034. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  38035. - cat >> confdefs.h <<EOF
  38036. -#define $ac_tr_func 1
  38037. -EOF
  38038. -
  38039. -else
  38040. - echo "$ac_t""no" 1>&6
  38041. fi
  38042. done
  38043. -echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  38044. -echo "configure:6476: checking for uid_t in sys/types.h" >&5
  38045. -if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  38046. - echo $ac_n "(cached) $ac_c" 1>&6
  38047. -else
  38048. - cat > conftest.$ac_ext <<EOF
  38049. -#line 6481 "configure"
  38050. -#include "confdefs.h"
  38051. +echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  38052. +echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  38053. +if test "${ac_cv_type_uid_t+set}" = set; then
  38054. + echo $ECHO_N "(cached) $ECHO_C" >&6
  38055. +else
  38056. + cat >conftest.$ac_ext <<_ACEOF
  38057. +/* confdefs.h. */
  38058. +_ACEOF
  38059. +cat confdefs.h >>conftest.$ac_ext
  38060. +cat >>conftest.$ac_ext <<_ACEOF
  38061. +/* end confdefs.h. */
  38062. #include <sys/types.h>
  38063. -EOF
  38064. +
  38065. +_ACEOF
  38066. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  38067. - egrep "uid_t" >/dev/null 2>&1; then
  38068. - rm -rf conftest*
  38069. + $EGREP "uid_t" >/dev/null 2>&1; then
  38070. ac_cv_type_uid_t=yes
  38071. else
  38072. - rm -rf conftest*
  38073. ac_cv_type_uid_t=no
  38074. fi
  38075. rm -f conftest*
  38076. fi
  38077. -
  38078. -echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  38079. +echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  38080. +echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  38081. if test $ac_cv_type_uid_t = no; then
  38082. - cat >> confdefs.h <<\EOF
  38083. +
  38084. +cat >>confdefs.h <<\_ACEOF
  38085. #define uid_t int
  38086. -EOF
  38087. +_ACEOF
  38088. +
  38089. - cat >> confdefs.h <<\EOF
  38090. +cat >>confdefs.h <<\_ACEOF
  38091. #define gid_t int
  38092. -EOF
  38093. +_ACEOF
  38094. fi
  38095. # Check if <sys/select.h> needs to be included for fd_set
  38096. -echo $ac_n "checking for fd_set""... $ac_c" 1>&6
  38097. -echo "configure:6512: checking for fd_set" >&5
  38098. -cat > conftest.$ac_ext <<EOF
  38099. -#line 6514 "configure"
  38100. -#include "confdefs.h"
  38101. +echo "$as_me:$LINENO: checking for fd_set" >&5
  38102. +echo $ECHO_N "checking for fd_set... $ECHO_C" >&6
  38103. +cat >conftest.$ac_ext <<_ACEOF
  38104. +/* confdefs.h. */
  38105. +_ACEOF
  38106. +cat confdefs.h >>conftest.$ac_ext
  38107. +cat >>conftest.$ac_ext <<_ACEOF
  38108. +/* end confdefs.h. */
  38109. #include <sys/types.h>
  38110. -int main() {
  38111. +int
  38112. +main ()
  38113. +{
  38114. fd_set readMask, writeMask;
  38115. -; return 0; }
  38116. -EOF
  38117. -if { (eval echo configure:6521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  38118. - rm -rf conftest*
  38119. + ;
  38120. + return 0;
  38121. +}
  38122. +_ACEOF
  38123. +rm -f conftest.$ac_objext
  38124. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  38125. + (eval $ac_compile) 2>conftest.er1
  38126. + ac_status=$?
  38127. + grep -v '^ *+' conftest.er1 >conftest.err
  38128. + rm -f conftest.er1
  38129. + cat conftest.err >&5
  38130. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38131. + (exit $ac_status); } &&
  38132. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  38133. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38134. + (eval $ac_try) 2>&5
  38135. + ac_status=$?
  38136. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38137. + (exit $ac_status); }; } &&
  38138. + { ac_try='test -s conftest.$ac_objext'
  38139. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38140. + (eval $ac_try) 2>&5
  38141. + ac_status=$?
  38142. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38143. + (exit $ac_status); }; }; then
  38144. gtk_ok=yes
  38145. else
  38146. - echo "configure: failed program was:" >&5
  38147. - cat conftest.$ac_ext >&5
  38148. - rm -rf conftest*
  38149. - gtk_ok=no
  38150. + echo "$as_me: failed program was:" >&5
  38151. +sed 's/^/| /' conftest.$ac_ext >&5
  38152. +
  38153. +gtk_ok=no
  38154. fi
  38155. -rm -f conftest*
  38156. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  38157. if test $gtk_ok = yes; then
  38158. - echo "$ac_t""yes, found in sys/types.h" 1>&6
  38159. + echo "$as_me:$LINENO: result: yes, found in sys/types.h" >&5
  38160. +echo "${ECHO_T}yes, found in sys/types.h" >&6
  38161. else
  38162. - cat > conftest.$ac_ext <<EOF
  38163. -#line 6535 "configure"
  38164. -#include "confdefs.h"
  38165. + cat >conftest.$ac_ext <<_ACEOF
  38166. +/* confdefs.h. */
  38167. +_ACEOF
  38168. +cat confdefs.h >>conftest.$ac_ext
  38169. +cat >>conftest.$ac_ext <<_ACEOF
  38170. +/* end confdefs.h. */
  38171. #include <sys/select.h>
  38172. -EOF
  38173. +
  38174. +_ACEOF
  38175. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  38176. - egrep "fd_mask" >/dev/null 2>&1; then
  38177. - rm -rf conftest*
  38178. + $EGREP "fd_mask" >/dev/null 2>&1; then
  38179. gtk_ok=yes
  38180. fi
  38181. rm -f conftest*
  38182. if test $gtk_ok = yes; then
  38183. - cat >> confdefs.h <<\EOF
  38184. + cat >>confdefs.h <<\_ACEOF
  38185. #define HAVE_SYS_SELECT_H 1
  38186. -EOF
  38187. +_ACEOF
  38188. - echo "$ac_t""yes, found in sys/select.h" 1>&6
  38189. + echo "$as_me:$LINENO: result: yes, found in sys/select.h" >&5
  38190. +echo "${ECHO_T}yes, found in sys/select.h" >&6
  38191. else
  38192. - cat >> confdefs.h <<\EOF
  38193. + cat >>confdefs.h <<\_ACEOF
  38194. #define NO_FD_SET 1
  38195. -EOF
  38196. +_ACEOF
  38197. - echo "$ac_t""no" 1>&6
  38198. + echo "$as_me:$LINENO: result: no" >&5
  38199. +echo "${ECHO_T}no" >&6
  38200. fi
  38201. fi
  38202. # Duplicate `widechar' tests from `glib'.
  38203. # Check for wchar.h
  38204. -echo $ac_n "checking for wchar.h""... $ac_c" 1>&6
  38205. -echo "configure:6564: checking for wchar.h" >&5
  38206. -cat > conftest.$ac_ext <<EOF
  38207. -#line 6566 "configure"
  38208. -#include "confdefs.h"
  38209. +echo "$as_me:$LINENO: checking for wchar.h" >&5
  38210. +echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
  38211. +cat >conftest.$ac_ext <<_ACEOF
  38212. +/* confdefs.h. */
  38213. +_ACEOF
  38214. +cat confdefs.h >>conftest.$ac_ext
  38215. +cat >>conftest.$ac_ext <<_ACEOF
  38216. +/* end confdefs.h. */
  38217. #include <wchar.h>
  38218. -EOF
  38219. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  38220. -{ (eval echo configure:6571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  38221. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  38222. -if test -z "$ac_err"; then
  38223. - rm -rf conftest*
  38224. +_ACEOF
  38225. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  38226. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  38227. + ac_status=$?
  38228. + grep -v '^ *+' conftest.er1 >conftest.err
  38229. + rm -f conftest.er1
  38230. + cat conftest.err >&5
  38231. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38232. + (exit $ac_status); } >/dev/null; then
  38233. + if test -s conftest.err; then
  38234. + ac_cpp_err=$ac_c_preproc_warn_flag
  38235. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  38236. + else
  38237. + ac_cpp_err=
  38238. + fi
  38239. +else
  38240. + ac_cpp_err=yes
  38241. +fi
  38242. +if test -z "$ac_cpp_err"; then
  38243. gtk_ok=yes
  38244. else
  38245. - echo "$ac_err" >&5
  38246. - echo "configure: failed program was:" >&5
  38247. - cat conftest.$ac_ext >&5
  38248. - rm -rf conftest*
  38249. + echo "$as_me: failed program was:" >&5
  38250. +sed 's/^/| /' conftest.$ac_ext >&5
  38251. +
  38252. gtk_ok=no
  38253. fi
  38254. -rm -f conftest*
  38255. +rm -f conftest.err conftest.$ac_ext
  38256. if test $gtk_ok = yes; then
  38257. - cat >> confdefs.h <<\EOF
  38258. +
  38259. +cat >>confdefs.h <<\_ACEOF
  38260. #define HAVE_WCHAR_H 1
  38261. -EOF
  38262. +_ACEOF
  38263. fi
  38264. -echo "$ac_t""$gtk_ok" 1>&6
  38265. +echo "$as_me:$LINENO: result: $gtk_ok" >&5
  38266. +echo "${ECHO_T}$gtk_ok" >&6
  38267. # Check for wctype.h (for iswalnum)
  38268. -echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
  38269. -echo "configure:6594: checking for wctype.h" >&5
  38270. -cat > conftest.$ac_ext <<EOF
  38271. -#line 6596 "configure"
  38272. -#include "confdefs.h"
  38273. +echo "$as_me:$LINENO: checking for wctype.h" >&5
  38274. +echo $ECHO_N "checking for wctype.h... $ECHO_C" >&6
  38275. +cat >conftest.$ac_ext <<_ACEOF
  38276. +/* confdefs.h. */
  38277. +_ACEOF
  38278. +cat confdefs.h >>conftest.$ac_ext
  38279. +cat >>conftest.$ac_ext <<_ACEOF
  38280. +/* end confdefs.h. */
  38281. #include <wctype.h>
  38282. -EOF
  38283. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  38284. -{ (eval echo configure:6601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  38285. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  38286. -if test -z "$ac_err"; then
  38287. - rm -rf conftest*
  38288. +_ACEOF
  38289. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  38290. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  38291. + ac_status=$?
  38292. + grep -v '^ *+' conftest.er1 >conftest.err
  38293. + rm -f conftest.er1
  38294. + cat conftest.err >&5
  38295. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38296. + (exit $ac_status); } >/dev/null; then
  38297. + if test -s conftest.err; then
  38298. + ac_cpp_err=$ac_c_preproc_warn_flag
  38299. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  38300. + else
  38301. + ac_cpp_err=
  38302. + fi
  38303. +else
  38304. + ac_cpp_err=yes
  38305. +fi
  38306. +if test -z "$ac_cpp_err"; then
  38307. gtk_ok=yes
  38308. else
  38309. - echo "$ac_err" >&5
  38310. - echo "configure: failed program was:" >&5
  38311. - cat conftest.$ac_ext >&5
  38312. - rm -rf conftest*
  38313. + echo "$as_me: failed program was:" >&5
  38314. +sed 's/^/| /' conftest.$ac_ext >&5
  38315. +
  38316. gtk_ok=no
  38317. fi
  38318. -rm -f conftest*
  38319. +rm -f conftest.err conftest.$ac_ext
  38320. if test $gtk_ok = yes; then
  38321. - cat >> confdefs.h <<\EOF
  38322. +
  38323. +cat >>confdefs.h <<\_ACEOF
  38324. #define HAVE_WCTYPE_H 1
  38325. -EOF
  38326. +_ACEOF
  38327. fi
  38328. -echo "$ac_t""$gtk_ok" 1>&6
  38329. +echo "$as_me:$LINENO: result: $gtk_ok" >&5
  38330. +echo "${ECHO_T}$gtk_ok" >&6
  38331. # in Solaris 2.5, `iswalnum' is in -lw
  38332. GDK_WLIBS=
  38333. -echo $ac_n "checking for iswalnum""... $ac_c" 1>&6
  38334. -echo "configure:6625: checking for iswalnum" >&5
  38335. -if eval "test \"`echo '$''{'ac_cv_func_iswalnum'+set}'`\" = set"; then
  38336. - echo $ac_n "(cached) $ac_c" 1>&6
  38337. -else
  38338. - cat > conftest.$ac_ext <<EOF
  38339. -#line 6630 "configure"
  38340. -#include "confdefs.h"
  38341. +echo "$as_me:$LINENO: checking for iswalnum" >&5
  38342. +echo $ECHO_N "checking for iswalnum... $ECHO_C" >&6
  38343. +if test "${ac_cv_func_iswalnum+set}" = set; then
  38344. + echo $ECHO_N "(cached) $ECHO_C" >&6
  38345. +else
  38346. + cat >conftest.$ac_ext <<_ACEOF
  38347. +/* confdefs.h. */
  38348. +_ACEOF
  38349. +cat confdefs.h >>conftest.$ac_ext
  38350. +cat >>conftest.$ac_ext <<_ACEOF
  38351. +/* end confdefs.h. */
  38352. +/* Define iswalnum to an innocuous variant, in case <limits.h> declares iswalnum.
  38353. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  38354. +#define iswalnum innocuous_iswalnum
  38355. +
  38356. /* System header to define __stub macros and hopefully few prototypes,
  38357. - which can conflict with char iswalnum(); below. */
  38358. -#include <assert.h>
  38359. -/* Override any gcc2 internal prototype to avoid an error. */
  38360. -/* We use char because int might match the return type of a gcc2
  38361. - builtin and then its argument prototype would still apply. */
  38362. -char iswalnum();
  38363. + which can conflict with char iswalnum (); below.
  38364. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  38365. + <limits.h> exists even on freestanding compilers. */
  38366. +
  38367. +#ifdef __STDC__
  38368. +# include <limits.h>
  38369. +#else
  38370. +# include <assert.h>
  38371. +#endif
  38372. -int main() {
  38373. +#undef iswalnum
  38374. +/* Override any gcc2 internal prototype to avoid an error. */
  38375. +#ifdef __cplusplus
  38376. +extern "C"
  38377. +{
  38378. +#endif
  38379. +/* We use char because int might match the return type of a gcc2
  38380. + builtin and then its argument prototype would still apply. */
  38381. +char iswalnum ();
  38382. /* The GNU C library defines this for functions which it implements
  38383. to always fail with ENOSYS. Some functions are actually named
  38384. something starting with __ and the normal name is an alias. */
  38385. #if defined (__stub_iswalnum) || defined (__stub___iswalnum)
  38386. choke me
  38387. #else
  38388. -iswalnum();
  38389. +char (*f) () = iswalnum;
  38390. +#endif
  38391. +#ifdef __cplusplus
  38392. +}
  38393. #endif
  38394. -; return 0; }
  38395. -EOF
  38396. -if { (eval echo configure:6653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  38397. - rm -rf conftest*
  38398. - eval "ac_cv_func_iswalnum=yes"
  38399. +int
  38400. +main ()
  38401. +{
  38402. +return f != iswalnum;
  38403. + ;
  38404. + return 0;
  38405. +}
  38406. +_ACEOF
  38407. +rm -f conftest.$ac_objext conftest$ac_exeext
  38408. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  38409. + (eval $ac_link) 2>conftest.er1
  38410. + ac_status=$?
  38411. + grep -v '^ *+' conftest.er1 >conftest.err
  38412. + rm -f conftest.er1
  38413. + cat conftest.err >&5
  38414. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38415. + (exit $ac_status); } &&
  38416. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  38417. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38418. + (eval $ac_try) 2>&5
  38419. + ac_status=$?
  38420. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38421. + (exit $ac_status); }; } &&
  38422. + { ac_try='test -s conftest$ac_exeext'
  38423. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38424. + (eval $ac_try) 2>&5
  38425. + ac_status=$?
  38426. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38427. + (exit $ac_status); }; }; then
  38428. + ac_cv_func_iswalnum=yes
  38429. +else
  38430. + echo "$as_me: failed program was:" >&5
  38431. +sed 's/^/| /' conftest.$ac_ext >&5
  38432. +
  38433. +ac_cv_func_iswalnum=no
  38434. +fi
  38435. +rm -f conftest.err conftest.$ac_objext \
  38436. + conftest$ac_exeext conftest.$ac_ext
  38437. +fi
  38438. +echo "$as_me:$LINENO: result: $ac_cv_func_iswalnum" >&5
  38439. +echo "${ECHO_T}$ac_cv_func_iswalnum" >&6
  38440. +if test $ac_cv_func_iswalnum = yes; then
  38441. + :
  38442. +else
  38443. + echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
  38444. +echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
  38445. +if test "${ac_cv_lib_w_iswalnum+set}" = set; then
  38446. + echo $ECHO_N "(cached) $ECHO_C" >&6
  38447. +else
  38448. + ac_check_lib_save_LIBS=$LIBS
  38449. +LIBS="-lw $LIBS"
  38450. +cat >conftest.$ac_ext <<_ACEOF
  38451. +/* confdefs.h. */
  38452. +_ACEOF
  38453. +cat confdefs.h >>conftest.$ac_ext
  38454. +cat >>conftest.$ac_ext <<_ACEOF
  38455. +/* end confdefs.h. */
  38456. +
  38457. +/* Override any gcc2 internal prototype to avoid an error. */
  38458. +#ifdef __cplusplus
  38459. +extern "C"
  38460. +#endif
  38461. +/* We use char because int might match the return type of a gcc2
  38462. + builtin and then its argument prototype would still apply. */
  38463. +char iswalnum ();
  38464. +int
  38465. +main ()
  38466. +{
  38467. +iswalnum ();
  38468. + ;
  38469. + return 0;
  38470. +}
  38471. +_ACEOF
  38472. +rm -f conftest.$ac_objext conftest$ac_exeext
  38473. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  38474. + (eval $ac_link) 2>conftest.er1
  38475. + ac_status=$?
  38476. + grep -v '^ *+' conftest.er1 >conftest.err
  38477. + rm -f conftest.er1
  38478. + cat conftest.err >&5
  38479. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38480. + (exit $ac_status); } &&
  38481. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  38482. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38483. + (eval $ac_try) 2>&5
  38484. + ac_status=$?
  38485. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38486. + (exit $ac_status); }; } &&
  38487. + { ac_try='test -s conftest$ac_exeext'
  38488. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38489. + (eval $ac_try) 2>&5
  38490. + ac_status=$?
  38491. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38492. + (exit $ac_status); }; }; then
  38493. + ac_cv_lib_w_iswalnum=yes
  38494. +else
  38495. + echo "$as_me: failed program was:" >&5
  38496. +sed 's/^/| /' conftest.$ac_ext >&5
  38497. +
  38498. +ac_cv_lib_w_iswalnum=no
  38499. +fi
  38500. +rm -f conftest.err conftest.$ac_objext \
  38501. + conftest$ac_exeext conftest.$ac_ext
  38502. +LIBS=$ac_check_lib_save_LIBS
  38503. +fi
  38504. +echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
  38505. +echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
  38506. +if test $ac_cv_lib_w_iswalnum = yes; then
  38507. + GDK_WLIBS=-lw
  38508. +fi
  38509. +
  38510. +fi
  38511. +
  38512. +
  38513. +# The following is necessary for Linux libc-5.4.38
  38514. +oLIBS="$LIBS"
  38515. +LIBS="$LIBS $GDK_WLIBS"
  38516. +echo "$as_me:$LINENO: checking if iswalnum() and friends are properly defined" >&5
  38517. +echo $ECHO_N "checking if iswalnum() and friends are properly defined... $ECHO_C" >&6
  38518. +cat >conftest.$ac_ext <<_ACEOF
  38519. +/* confdefs.h. */
  38520. +_ACEOF
  38521. +cat confdefs.h >>conftest.$ac_ext
  38522. +cat >>conftest.$ac_ext <<_ACEOF
  38523. +/* end confdefs.h. */
  38524. +#include <stdlib.h>
  38525. +int
  38526. +main ()
  38527. +{
  38528. +
  38529. +#if (defined(HAVE_WCTYPE_H) || defined(HAVE_WCHAR_H))
  38530. +# ifdef HAVE_WCTYPE_H
  38531. +# include <wctype.h>
  38532. +# else
  38533. +# ifdef HAVE_WCHAR_H
  38534. +# include <wchar.h>
  38535. +# endif
  38536. +# endif
  38537. +#else
  38538. +# define iswalnum(c) ((wchar_t)(c) <= 0xFF && isalnum(c))
  38539. +#endif
  38540. +iswalnum((wchar_t) 0);
  38541. +
  38542. + ;
  38543. + return 0;
  38544. +}
  38545. +_ACEOF
  38546. +rm -f conftest.$ac_objext conftest$ac_exeext
  38547. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  38548. + (eval $ac_link) 2>conftest.er1
  38549. + ac_status=$?
  38550. + grep -v '^ *+' conftest.er1 >conftest.err
  38551. + rm -f conftest.er1
  38552. + cat conftest.err >&5
  38553. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38554. + (exit $ac_status); } &&
  38555. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  38556. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38557. + (eval $ac_try) 2>&5
  38558. + ac_status=$?
  38559. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38560. + (exit $ac_status); }; } &&
  38561. + { ac_try='test -s conftest$ac_exeext'
  38562. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38563. + (eval $ac_try) 2>&5
  38564. + ac_status=$?
  38565. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38566. + (exit $ac_status); }; }; then
  38567. + gtk_ok=yes
  38568. +else
  38569. + echo "$as_me: failed program was:" >&5
  38570. +sed 's/^/| /' conftest.$ac_ext >&5
  38571. +
  38572. +gtk_ok=no
  38573. +fi
  38574. +rm -f conftest.err conftest.$ac_objext \
  38575. + conftest$ac_exeext conftest.$ac_ext
  38576. +LIBS="$oLIBS"
  38577. +
  38578. +if test $gtk_ok = no; then
  38579. +
  38580. +cat >>confdefs.h <<\_ACEOF
  38581. +#define HAVE_BROKEN_WCTYPE 1
  38582. +_ACEOF
  38583. +
  38584. + GDK_WLIBS=
  38585. +fi
  38586. +echo "$as_me:$LINENO: result: $gtk_ok" >&5
  38587. +echo "${ECHO_T}$gtk_ok" >&6
  38588. +
  38589. +
  38590. +
  38591. +
  38592. +
  38593. +
  38594. + ac_config_files="$ac_config_files gtk+.spec docs/gtk-config.1 Makefile gtk-config po/Makefile.in docs/Makefile gdk/Makefile gtk/Makefile gtk/gtkfeatures.h gdk.pc gtk+.pc"
  38595. + ac_config_commands="$ac_config_commands default"
  38596. +cat >confcache <<\_ACEOF
  38597. +# This file is a shell script that caches the results of configure
  38598. +# tests run on this system so they can be shared between configure
  38599. +# scripts and configure runs, see configure's option --config-cache.
  38600. +# It is not useful on other systems. If it contains results you don't
  38601. +# want to keep, you may remove or edit it.
  38602. +#
  38603. +# config.status only pays attention to the cache file if you give it
  38604. +# the --recheck option to rerun configure.
  38605. +#
  38606. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  38607. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  38608. +# following values.
  38609. +
  38610. +_ACEOF
  38611. +
  38612. +# The following way of writing the cache mishandles newlines in values,
  38613. +# but we know of no workaround that is simple, portable, and efficient.
  38614. +# So, don't put newlines in cache variables' values.
  38615. +# Ultrix sh set writes to stderr and can't be redirected directly,
  38616. +# and sets the high bit in the cache file unless we assign to the vars.
  38617. +{
  38618. + (set) 2>&1 |
  38619. + case `(ac_space=' '; set | grep ac_space) 2>&1` in
  38620. + *ac_space=\ *)
  38621. + # `set' does not quote correctly, so add quotes (double-quote
  38622. + # substitution turns \\\\ into \\, and sed turns \\ into \).
  38623. + sed -n \
  38624. + "s/'/'\\\\''/g;
  38625. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  38626. + ;;
  38627. + *)
  38628. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  38629. + sed -n \
  38630. + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  38631. + ;;
  38632. + esac;
  38633. +} |
  38634. + sed '
  38635. + t clear
  38636. + : clear
  38637. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  38638. + t end
  38639. + /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  38640. + : end' >>confcache
  38641. +if diff $cache_file confcache >/dev/null 2>&1; then :; else
  38642. + if test -w $cache_file; then
  38643. + test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  38644. + cat confcache >$cache_file
  38645. + else
  38646. + echo "not updating unwritable cache $cache_file"
  38647. + fi
  38648. +fi
  38649. +rm -f confcache
  38650. +
  38651. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  38652. +# Let make expand exec_prefix.
  38653. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  38654. +
  38655. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  38656. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  38657. +# trailing colons and then remove the whole line if VPATH becomes empty
  38658. +# (actually we leave an empty line to preserve line numbers).
  38659. +if test "x$srcdir" = x.; then
  38660. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  38661. +s/:*\$(srcdir):*/:/;
  38662. +s/:*\${srcdir}:*/:/;
  38663. +s/:*@srcdir@:*/:/;
  38664. +s/^\([^=]*=[ ]*\):*/\1/;
  38665. +s/:*$//;
  38666. +s/^[^=]*=[ ]*$//;
  38667. +}'
  38668. +fi
  38669. +
  38670. +DEFS=-DHAVE_CONFIG_H
  38671. +
  38672. +ac_libobjs=
  38673. +ac_ltlibobjs=
  38674. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  38675. + # 1. Remove the extension, and $U if already installed.
  38676. + ac_i=`echo "$ac_i" |
  38677. + sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  38678. + # 2. Add them.
  38679. + ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  38680. + ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  38681. +done
  38682. +LIBOBJS=$ac_libobjs
  38683. +
  38684. +LTLIBOBJS=$ac_ltlibobjs
  38685. +
  38686. +
  38687. +
  38688. +: ${CONFIG_STATUS=./config.status}
  38689. +ac_clean_files_save=$ac_clean_files
  38690. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  38691. +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  38692. +echo "$as_me: creating $CONFIG_STATUS" >&6;}
  38693. +cat >$CONFIG_STATUS <<_ACEOF
  38694. +#! $SHELL
  38695. +# Generated by $as_me.
  38696. +# Run this file to recreate the current configuration.
  38697. +# Compiler output produced by configure, useful for debugging
  38698. +# configure, is in config.log if it exists.
  38699. +
  38700. +debug=false
  38701. +ac_cs_recheck=false
  38702. +ac_cs_silent=false
  38703. +SHELL=\${CONFIG_SHELL-$SHELL}
  38704. +_ACEOF
  38705. +
  38706. +cat >>$CONFIG_STATUS <<\_ACEOF
  38707. +## --------------------- ##
  38708. +## M4sh Initialization. ##
  38709. +## --------------------- ##
  38710. +
  38711. +# Be Bourne compatible
  38712. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  38713. + emulate sh
  38714. + NULLCMD=:
  38715. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  38716. + # is contrary to our usage. Disable this feature.
  38717. + alias -g '${1+"$@"}'='"$@"'
  38718. +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  38719. + set -o posix
  38720. +fi
  38721. +DUALCASE=1; export DUALCASE # for MKS sh
  38722. +
  38723. +# Support unset when possible.
  38724. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  38725. + as_unset=unset
  38726. +else
  38727. + as_unset=false
  38728. +fi
  38729. +
  38730. +
  38731. +# Work around bugs in pre-3.0 UWIN ksh.
  38732. +$as_unset ENV MAIL MAILPATH
  38733. +PS1='$ '
  38734. +PS2='> '
  38735. +PS4='+ '
  38736. +
  38737. +# NLS nuisances.
  38738. +for as_var in \
  38739. + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  38740. + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  38741. + LC_TELEPHONE LC_TIME
  38742. +do
  38743. + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  38744. + eval $as_var=C; export $as_var
  38745. + else
  38746. + $as_unset $as_var
  38747. + fi
  38748. +done
  38749. +
  38750. +# Required to use basename.
  38751. +if expr a : '\(a\)' >/dev/null 2>&1; then
  38752. + as_expr=expr
  38753. +else
  38754. + as_expr=false
  38755. +fi
  38756. +
  38757. +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  38758. + as_basename=basename
  38759. +else
  38760. + as_basename=false
  38761. +fi
  38762. +
  38763. +
  38764. +# Name of the executable.
  38765. +as_me=`$as_basename "$0" ||
  38766. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  38767. + X"$0" : 'X\(//\)$' \| \
  38768. + X"$0" : 'X\(/\)$' \| \
  38769. + . : '\(.\)' 2>/dev/null ||
  38770. +echo X/"$0" |
  38771. + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  38772. + /^X\/\(\/\/\)$/{ s//\1/; q; }
  38773. + /^X\/\(\/\).*/{ s//\1/; q; }
  38774. + s/.*/./; q'`
  38775. +
  38776. +
  38777. +# PATH needs CR, and LINENO needs CR and PATH.
  38778. +# Avoid depending upon Character Ranges.
  38779. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  38780. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  38781. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  38782. +as_cr_digits='0123456789'
  38783. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  38784. +
  38785. +# The user is always right.
  38786. +if test "${PATH_SEPARATOR+set}" != set; then
  38787. + echo "#! /bin/sh" >conf$$.sh
  38788. + echo "exit 0" >>conf$$.sh
  38789. + chmod +x conf$$.sh
  38790. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  38791. + PATH_SEPARATOR=';'
  38792. + else
  38793. + PATH_SEPARATOR=:
  38794. + fi
  38795. + rm -f conf$$.sh
  38796. +fi
  38797. +
  38798. +
  38799. + as_lineno_1=$LINENO
  38800. + as_lineno_2=$LINENO
  38801. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  38802. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  38803. + test "x$as_lineno_3" = "x$as_lineno_2" || {
  38804. + # Find who we are. Look in the path if we contain no path at all
  38805. + # relative or not.
  38806. + case $0 in
  38807. + *[\\/]* ) as_myself=$0 ;;
  38808. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  38809. +for as_dir in $PATH
  38810. +do
  38811. + IFS=$as_save_IFS
  38812. + test -z "$as_dir" && as_dir=.
  38813. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  38814. +done
  38815. +
  38816. + ;;
  38817. + esac
  38818. + # We did not find ourselves, most probably we were run as `sh COMMAND'
  38819. + # in which case we are not to be found in the path.
  38820. + if test "x$as_myself" = x; then
  38821. + as_myself=$0
  38822. + fi
  38823. + if test ! -f "$as_myself"; then
  38824. + { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  38825. +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  38826. + { (exit 1); exit 1; }; }
  38827. + fi
  38828. + case $CONFIG_SHELL in
  38829. + '')
  38830. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  38831. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  38832. +do
  38833. + IFS=$as_save_IFS
  38834. + test -z "$as_dir" && as_dir=.
  38835. + for as_base in sh bash ksh sh5; do
  38836. + case $as_dir in
  38837. + /*)
  38838. + if ("$as_dir/$as_base" -c '
  38839. + as_lineno_1=$LINENO
  38840. + as_lineno_2=$LINENO
  38841. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  38842. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  38843. + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  38844. + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  38845. + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  38846. + CONFIG_SHELL=$as_dir/$as_base
  38847. + export CONFIG_SHELL
  38848. + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  38849. + fi;;
  38850. + esac
  38851. + done
  38852. +done
  38853. +;;
  38854. + esac
  38855. +
  38856. + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  38857. + # uniformly replaced by the line number. The first 'sed' inserts a
  38858. + # line-number line before each line; the second 'sed' does the real
  38859. + # work. The second script uses 'N' to pair each line-number line
  38860. + # with the numbered line, and appends trailing '-' during
  38861. + # substitution so that $LINENO is not a special case at line end.
  38862. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  38863. + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  38864. + sed '=' <$as_myself |
  38865. + sed '
  38866. + N
  38867. + s,$,-,
  38868. + : loop
  38869. + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  38870. + t loop
  38871. + s,-$,,
  38872. + s,^['$as_cr_digits']*\n,,
  38873. + ' >$as_me.lineno &&
  38874. + chmod +x $as_me.lineno ||
  38875. + { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  38876. +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  38877. + { (exit 1); exit 1; }; }
  38878. +
  38879. + # Don't try to exec as it changes $[0], causing all sort of problems
  38880. + # (the dirname of $[0] is not the place where we might find the
  38881. + # original and so on. Autoconf is especially sensible to this).
  38882. + . ./$as_me.lineno
  38883. + # Exit status is that of the last command.
  38884. + exit
  38885. +}
  38886. +
  38887. +
  38888. +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  38889. + *c*,-n*) ECHO_N= ECHO_C='
  38890. +' ECHO_T=' ' ;;
  38891. + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  38892. + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  38893. +esac
  38894. +
  38895. +if expr a : '\(a\)' >/dev/null 2>&1; then
  38896. + as_expr=expr
  38897. else
  38898. - echo "configure: failed program was:" >&5
  38899. - cat conftest.$ac_ext >&5
  38900. - rm -rf conftest*
  38901. - eval "ac_cv_func_iswalnum=no"
  38902. -fi
  38903. -rm -f conftest*
  38904. + as_expr=false
  38905. fi
  38906. -if eval "test \"`echo '$ac_cv_func_'iswalnum`\" = yes"; then
  38907. - echo "$ac_t""yes" 1>&6
  38908. - :
  38909. -else
  38910. - echo "$ac_t""no" 1>&6
  38911. -echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
  38912. -echo "configure:6671: checking for iswalnum in -lw" >&5
  38913. -ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
  38914. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  38915. - echo $ac_n "(cached) $ac_c" 1>&6
  38916. +rm -f conf$$ conf$$.exe conf$$.file
  38917. +echo >conf$$.file
  38918. +if ln -s conf$$.file conf$$ 2>/dev/null; then
  38919. + # We could just check for DJGPP; but this test a) works b) is more generic
  38920. + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  38921. + if test -f conf$$.exe; then
  38922. + # Don't use ln at all; we don't have any links
  38923. + as_ln_s='cp -p'
  38924. + else
  38925. + as_ln_s='ln -s'
  38926. + fi
  38927. +elif ln conf$$.file conf$$ 2>/dev/null; then
  38928. + as_ln_s=ln
  38929. else
  38930. - ac_save_LIBS="$LIBS"
  38931. -LIBS="-lw $LIBS"
  38932. -cat > conftest.$ac_ext <<EOF
  38933. -#line 6679 "configure"
  38934. -#include "confdefs.h"
  38935. -/* Override any gcc2 internal prototype to avoid an error. */
  38936. -/* We use char because int might match the return type of a gcc2
  38937. - builtin and then its argument prototype would still apply. */
  38938. -char iswalnum();
  38939. + as_ln_s='cp -p'
  38940. +fi
  38941. +rm -f conf$$ conf$$.exe conf$$.file
  38942. -int main() {
  38943. -iswalnum()
  38944. -; return 0; }
  38945. -EOF
  38946. -if { (eval echo configure:6690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  38947. - rm -rf conftest*
  38948. - eval "ac_cv_lib_$ac_lib_var=yes"
  38949. +if mkdir -p . 2>/dev/null; then
  38950. + as_mkdir_p=:
  38951. else
  38952. - echo "configure: failed program was:" >&5
  38953. - cat conftest.$ac_ext >&5
  38954. - rm -rf conftest*
  38955. - eval "ac_cv_lib_$ac_lib_var=no"
  38956. + test -d ./-p && rmdir ./-p
  38957. + as_mkdir_p=false
  38958. fi
  38959. -rm -f conftest*
  38960. -LIBS="$ac_save_LIBS"
  38961. +as_executable_p="test -f"
  38962. +
  38963. +# Sed expression to map a string onto a valid CPP name.
  38964. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  38965. +
  38966. +# Sed expression to map a string onto a valid variable name.
  38967. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  38968. +
  38969. +
  38970. +# IFS
  38971. +# We need space, tab and new line, in precisely that order.
  38972. +as_nl='
  38973. +'
  38974. +IFS=" $as_nl"
  38975. +
  38976. +# CDPATH.
  38977. +$as_unset CDPATH
  38978. +
  38979. +exec 6>&1
  38980. +
  38981. +# Open the log real soon, to keep \$[0] and so on meaningful, and to
  38982. +# report actual input values of CONFIG_FILES etc. instead of their
  38983. +# values after options handling. Logging --version etc. is OK.
  38984. +exec 5>>config.log
  38985. +{
  38986. + echo
  38987. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  38988. +## Running $as_me. ##
  38989. +_ASBOX
  38990. +} >&5
  38991. +cat >&5 <<_CSEOF
  38992. +
  38993. +This file was extended by $as_me, which was
  38994. +generated by GNU Autoconf 2.59. Invocation command line was
  38995. +
  38996. + CONFIG_FILES = $CONFIG_FILES
  38997. + CONFIG_HEADERS = $CONFIG_HEADERS
  38998. + CONFIG_LINKS = $CONFIG_LINKS
  38999. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  39000. + $ $0 $@
  39001. +
  39002. +_CSEOF
  39003. +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  39004. +echo >&5
  39005. +_ACEOF
  39006. +
  39007. +# Files that config.status was made for.
  39008. +if test -n "$ac_config_files"; then
  39009. + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  39010. fi
  39011. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  39012. - echo "$ac_t""yes" 1>&6
  39013. - GDK_WLIBS=-lw
  39014. -else
  39015. - echo "$ac_t""no" 1>&6
  39016. +
  39017. +if test -n "$ac_config_headers"; then
  39018. + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  39019. fi
  39020. +if test -n "$ac_config_links"; then
  39021. + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  39022. fi
  39023. +if test -n "$ac_config_commands"; then
  39024. + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  39025. +fi
  39026. -# The following is necessary for Linux libc-5.4.38
  39027. -oLIBS="$LIBS"
  39028. -LIBS="$LIBS $GDK_WLIBS"
  39029. -echo $ac_n "checking if iswalnum() and friends are properly defined""... $ac_c" 1>&6
  39030. -echo "configure:6717: checking if iswalnum() and friends are properly defined" >&5
  39031. -cat > conftest.$ac_ext <<EOF
  39032. -#line 6719 "configure"
  39033. -#include "confdefs.h"
  39034. -#include <stdlib.h>
  39035. -int main() {
  39036. +cat >>$CONFIG_STATUS <<\_ACEOF
  39037. -#if (defined(HAVE_WCTYPE_H) || defined(HAVE_WCHAR_H))
  39038. -# ifdef HAVE_WCTYPE_H
  39039. -# include <wctype.h>
  39040. -# else
  39041. -# ifdef HAVE_WCHAR_H
  39042. -# include <wchar.h>
  39043. -# endif
  39044. -# endif
  39045. -#else
  39046. -# define iswalnum(c) ((wchar_t)(c) <= 0xFF && isalnum(c))
  39047. -#endif
  39048. -iswalnum((wchar_t) 0);
  39049. +ac_cs_usage="\
  39050. +\`$as_me' instantiates files from templates according to the
  39051. +current configuration.
  39052. -; return 0; }
  39053. -EOF
  39054. -if { (eval echo configure:6739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  39055. - rm -rf conftest*
  39056. - gtk_ok=yes
  39057. -else
  39058. - echo "configure: failed program was:" >&5
  39059. - cat conftest.$ac_ext >&5
  39060. - rm -rf conftest*
  39061. - gtk_ok=no
  39062. -fi
  39063. -rm -f conftest*
  39064. -LIBS="$oLIBS"
  39065. +Usage: $0 [OPTIONS] [FILE]...
  39066. -if test $gtk_ok = no; then
  39067. - cat >> confdefs.h <<\EOF
  39068. -#define HAVE_BROKEN_WCTYPE 1
  39069. -EOF
  39070. + -h, --help print this help, then exit
  39071. + -V, --version print version number, then exit
  39072. + -q, --quiet do not print progress messages
  39073. + -d, --debug don't remove temporary files
  39074. + --recheck update $as_me by reconfiguring in the same conditions
  39075. + --file=FILE[:TEMPLATE]
  39076. + instantiate the configuration file FILE
  39077. + --header=FILE[:TEMPLATE]
  39078. + instantiate the configuration header FILE
  39079. - GDK_WLIBS=
  39080. -fi
  39081. -echo "$ac_t""$gtk_ok" 1>&6
  39082. +Configuration files:
  39083. +$config_files
  39084. +Configuration headers:
  39085. +$config_headers
  39086. +Configuration links:
  39087. +$config_links
  39088. +Configuration commands:
  39089. +$config_commands
  39090. +Report bugs to <bug-autoconf@gnu.org>."
  39091. +_ACEOF
  39092. +cat >>$CONFIG_STATUS <<_ACEOF
  39093. +ac_cs_version="\\
  39094. +config.status
  39095. +configured by $0, generated by GNU Autoconf 2.59,
  39096. + with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  39097. -trap '' 1 2 15
  39098. -cat > confcache <<\EOF
  39099. -# This file is a shell script that caches the results of configure
  39100. -# tests run on this system so they can be shared between configure
  39101. -# scripts and configure runs. It is not useful on other systems.
  39102. -# If it contains results you don't want to keep, you may remove or edit it.
  39103. -#
  39104. -# By default, configure uses ./config.cache as the cache file,
  39105. -# creating it if it does not exist already. You can give configure
  39106. -# the --cache-file=FILE option to use a different cache file; that is
  39107. -# what configure does when it calls configure scripts in
  39108. -# subdirectories, so they share the cache.
  39109. -# Giving --cache-file=/dev/null disables caching, for debugging configure.
  39110. -# config.status only pays attention to the cache file if you give it the
  39111. -# --recheck option to rerun configure.
  39112. -#
  39113. -EOF
  39114. -# The following way of writing the cache mishandles newlines in values,
  39115. -# but we know of no workaround that is simple, portable, and efficient.
  39116. -# So, don't put newlines in cache variables' values.
  39117. -# Ultrix sh set writes to stderr and can't be redirected directly,
  39118. -# and sets the high bit in the cache file unless we assign to the vars.
  39119. -(set) 2>&1 |
  39120. - case `(ac_space=' '; set | grep ac_space) 2>&1` in
  39121. - *ac_space=\ *)
  39122. - # `set' does not quote correctly, so add quotes (double-quote substitution
  39123. - # turns \\\\ into \\, and sed turns \\ into \).
  39124. - sed -n \
  39125. - -e "s/'/'\\\\''/g" \
  39126. - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  39127. +Copyright (C) 2003 Free Software Foundation, Inc.
  39128. +This config.status script is free software; the Free Software Foundation
  39129. +gives unlimited permission to copy, distribute and modify it."
  39130. +srcdir=$srcdir
  39131. +INSTALL="$INSTALL"
  39132. +_ACEOF
  39133. +
  39134. +cat >>$CONFIG_STATUS <<\_ACEOF
  39135. +# If no file are specified by the user, then we need to provide default
  39136. +# value. By we need to know if files were specified by the user.
  39137. +ac_need_defaults=:
  39138. +while test $# != 0
  39139. +do
  39140. + case $1 in
  39141. + --*=*)
  39142. + ac_option=`expr "x$1" : 'x\([^=]*\)='`
  39143. + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  39144. + ac_shift=:
  39145. ;;
  39146. - *)
  39147. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  39148. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  39149. + -*)
  39150. + ac_option=$1
  39151. + ac_optarg=$2
  39152. + ac_shift=shift
  39153. ;;
  39154. - esac >> confcache
  39155. -if cmp -s $cache_file confcache; then
  39156. - :
  39157. -else
  39158. - if test -w $cache_file; then
  39159. - echo "updating cache $cache_file"
  39160. - cat confcache > $cache_file
  39161. - else
  39162. - echo "not updating unwritable cache $cache_file"
  39163. - fi
  39164. -fi
  39165. -rm -f confcache
  39166. + *) # This is not an option, so the user has probably given explicit
  39167. + # arguments.
  39168. + ac_option=$1
  39169. + ac_need_defaults=false;;
  39170. + esac
  39171. -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  39172. + case $ac_option in
  39173. + # Handling of the options.
  39174. +_ACEOF
  39175. +cat >>$CONFIG_STATUS <<\_ACEOF
  39176. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  39177. + ac_cs_recheck=: ;;
  39178. + --version | --vers* | -V )
  39179. + echo "$ac_cs_version"; exit 0 ;;
  39180. + --he | --h)
  39181. + # Conflict between --help and --header
  39182. + { { echo "$as_me:$LINENO: error: ambiguous option: $1
  39183. +Try \`$0 --help' for more information." >&5
  39184. +echo "$as_me: error: ambiguous option: $1
  39185. +Try \`$0 --help' for more information." >&2;}
  39186. + { (exit 1); exit 1; }; };;
  39187. + --help | --hel | -h )
  39188. + echo "$ac_cs_usage"; exit 0 ;;
  39189. + --debug | --d* | -d )
  39190. + debug=: ;;
  39191. + --file | --fil | --fi | --f )
  39192. + $ac_shift
  39193. + CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  39194. + ac_need_defaults=false;;
  39195. + --header | --heade | --head | --hea )
  39196. + $ac_shift
  39197. + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  39198. + ac_need_defaults=false;;
  39199. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  39200. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  39201. + ac_cs_silent=: ;;
  39202. -test "x$prefix" = xNONE && prefix=$ac_default_prefix
  39203. -# Let make expand exec_prefix.
  39204. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  39205. + # This is an error.
  39206. + -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  39207. +Try \`$0 --help' for more information." >&5
  39208. +echo "$as_me: error: unrecognized option: $1
  39209. +Try \`$0 --help' for more information." >&2;}
  39210. + { (exit 1); exit 1; }; } ;;
  39211. -# Any assignment to VPATH causes Sun make to only execute
  39212. -# the first set of double-colon rules, so remove it if not needed.
  39213. -# If there is a colon in the path, we need to keep it.
  39214. -if test "x$srcdir" = x.; then
  39215. - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  39216. -fi
  39217. + *) ac_config_targets="$ac_config_targets $1" ;;
  39218. +
  39219. + esac
  39220. + shift
  39221. +done
  39222. -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  39223. +ac_configure_extra_args=
  39224. -DEFS=-DHAVE_CONFIG_H
  39225. +if $ac_cs_silent; then
  39226. + exec 6>/dev/null
  39227. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  39228. +fi
  39229. -# Without the "./", some shells look in PATH for config.status.
  39230. -: ${CONFIG_STATUS=./config.status}
  39231. +_ACEOF
  39232. +cat >>$CONFIG_STATUS <<_ACEOF
  39233. +if \$ac_cs_recheck; then
  39234. + echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  39235. + exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  39236. +fi
  39237. -echo creating $CONFIG_STATUS
  39238. -rm -f $CONFIG_STATUS
  39239. -cat > $CONFIG_STATUS <<EOF
  39240. -#! /bin/sh
  39241. -# Generated automatically by configure.
  39242. -# Run this file to recreate the current configuration.
  39243. -# This directory was configured as follows,
  39244. -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  39245. +_ACEOF
  39246. +
  39247. +cat >>$CONFIG_STATUS <<_ACEOF
  39248. #
  39249. -# $0 $ac_configure_args
  39250. +# INIT-COMMANDS section.
  39251. #
  39252. -# Compiler output produced by configure, useful for debugging
  39253. -# configure, is in ./config.log if it exists.
  39254. -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  39255. -for ac_option
  39256. +
  39257. +
  39258. +
  39259. +_ACEOF
  39260. +
  39261. +
  39262. +
  39263. +cat >>$CONFIG_STATUS <<\_ACEOF
  39264. +for ac_config_target in $ac_config_targets
  39265. do
  39266. - case "\$ac_option" in
  39267. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  39268. - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  39269. - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  39270. - -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  39271. - echo "$CONFIG_STATUS generated by autoconf version 2.13"
  39272. - exit 0 ;;
  39273. - -help | --help | --hel | --he | --h)
  39274. - echo "\$ac_cs_usage"; exit 0 ;;
  39275. - *) echo "\$ac_cs_usage"; exit 1 ;;
  39276. + case "$ac_config_target" in
  39277. + # Handling of arguments.
  39278. + "gtk+.spec" ) CONFIG_FILES="$CONFIG_FILES gtk+.spec" ;;
  39279. + "docs/gtk-config.1" ) CONFIG_FILES="$CONFIG_FILES docs/gtk-config.1" ;;
  39280. + "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  39281. + "gtk-config" ) CONFIG_FILES="$CONFIG_FILES gtk-config" ;;
  39282. + "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  39283. + "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  39284. + "gdk/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdk/Makefile" ;;
  39285. + "gtk/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtk/Makefile" ;;
  39286. + "gtk/gtkfeatures.h" ) CONFIG_FILES="$CONFIG_FILES gtk/gtkfeatures.h" ;;
  39287. + "gdk.pc" ) CONFIG_FILES="$CONFIG_FILES gdk.pc" ;;
  39288. + "gtk+.pc" ) CONFIG_FILES="$CONFIG_FILES gtk+.pc" ;;
  39289. + "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
  39290. + "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  39291. + "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
  39292. + "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  39293. + "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  39294. + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  39295. +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  39296. + { (exit 1); exit 1; }; };;
  39297. esac
  39298. done
  39299. -ac_given_srcdir=$srcdir
  39300. -ac_given_INSTALL="$INSTALL"
  39301. -
  39302. -trap 'rm -fr `echo "
  39303. -gtk+.spec
  39304. -docs/gtk-config.1
  39305. -Makefile
  39306. -gtk-config
  39307. -po/Makefile.in
  39308. -docs/Makefile
  39309. -gdk/Makefile
  39310. -gtk/Makefile
  39311. -gtk/gtkfeatures.h
  39312. -gdk.pc
  39313. -gtk+.pc
  39314. - config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  39315. -EOF
  39316. -cat >> $CONFIG_STATUS <<EOF
  39317. +# If the user did not use the arguments to specify the items to instantiate,
  39318. +# then the envvar interface is used. Set only those that are not.
  39319. +# We use the long form for the default assignment because of an extremely
  39320. +# bizarre bug on SunOS 4.1.3.
  39321. +if $ac_need_defaults; then
  39322. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  39323. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  39324. + test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
  39325. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  39326. +fi
  39327. +
  39328. +# Have a temporary directory for convenience. Make it in the build tree
  39329. +# simply because there is no reason to put it here, and in addition,
  39330. +# creating and moving files from /tmp can sometimes cause problems.
  39331. +# Create a temporary directory, and hook for its removal unless debugging.
  39332. +$debug ||
  39333. +{
  39334. + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  39335. + trap '{ (exit 1); exit 1; }' 1 2 13 15
  39336. +}
  39337. -# Protect against being on the right side of a sed subst in config.status.
  39338. -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  39339. - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  39340. -$ac_vpsub
  39341. -$extrasub
  39342. -s%@SHELL@%$SHELL%g
  39343. -s%@CFLAGS@%$CFLAGS%g
  39344. -s%@CPPFLAGS@%$CPPFLAGS%g
  39345. -s%@CXXFLAGS@%$CXXFLAGS%g
  39346. -s%@FFLAGS@%$FFLAGS%g
  39347. -s%@DEFS@%$DEFS%g
  39348. -s%@LDFLAGS@%$LDFLAGS%g
  39349. -s%@LIBS@%$LIBS%g
  39350. -s%@exec_prefix@%$exec_prefix%g
  39351. -s%@prefix@%$prefix%g
  39352. -s%@program_transform_name@%$program_transform_name%g
  39353. -s%@bindir@%$bindir%g
  39354. -s%@sbindir@%$sbindir%g
  39355. -s%@libexecdir@%$libexecdir%g
  39356. -s%@datadir@%$datadir%g
  39357. -s%@sysconfdir@%$sysconfdir%g
  39358. -s%@sharedstatedir@%$sharedstatedir%g
  39359. -s%@localstatedir@%$localstatedir%g
  39360. -s%@libdir@%$libdir%g
  39361. -s%@includedir@%$includedir%g
  39362. -s%@oldincludedir@%$oldincludedir%g
  39363. -s%@infodir@%$infodir%g
  39364. -s%@mandir@%$mandir%g
  39365. -s%@GTK_MAJOR_VERSION@%$GTK_MAJOR_VERSION%g
  39366. -s%@GTK_MINOR_VERSION@%$GTK_MINOR_VERSION%g
  39367. -s%@GTK_MICRO_VERSION@%$GTK_MICRO_VERSION%g
  39368. -s%@GTK_INTERFACE_AGE@%$GTK_INTERFACE_AGE%g
  39369. -s%@GTK_BINARY_AGE@%$GTK_BINARY_AGE%g
  39370. -s%@GTK_VERSION@%$GTK_VERSION%g
  39371. -s%@LT_RELEASE@%$LT_RELEASE%g
  39372. -s%@LT_CURRENT@%$LT_CURRENT%g
  39373. -s%@LT_REVISION@%$LT_REVISION%g
  39374. -s%@LT_AGE@%$LT_AGE%g
  39375. -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  39376. -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  39377. -s%@INSTALL_DATA@%$INSTALL_DATA%g
  39378. -s%@PACKAGE@%$PACKAGE%g
  39379. -s%@VERSION@%$VERSION%g
  39380. -s%@ACLOCAL@%$ACLOCAL%g
  39381. -s%@AUTOCONF@%$AUTOCONF%g
  39382. -s%@AUTOMAKE@%$AUTOMAKE%g
  39383. -s%@AUTOHEADER@%$AUTOHEADER%g
  39384. -s%@MAKEINFO@%$MAKEINFO%g
  39385. -s%@SET_MAKE@%$SET_MAKE%g
  39386. -s%@host@%$host%g
  39387. -s%@host_alias@%$host_alias%g
  39388. -s%@host_cpu@%$host_cpu%g
  39389. -s%@host_vendor@%$host_vendor%g
  39390. -s%@host_os@%$host_os%g
  39391. -s%@build@%$build%g
  39392. -s%@build_alias@%$build_alias%g
  39393. -s%@build_cpu@%$build_cpu%g
  39394. -s%@build_vendor@%$build_vendor%g
  39395. -s%@build_os@%$build_os%g
  39396. -s%@RANLIB@%$RANLIB%g
  39397. -s%@CC@%$CC%g
  39398. -s%@LN_S@%$LN_S%g
  39399. -s%@LIBTOOL@%$LIBTOOL%g
  39400. -s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
  39401. -s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
  39402. -s%@MAINT@%$MAINT%g
  39403. -s%@AWK@%$AWK%g
  39404. -s%@PERL@%$PERL%g
  39405. -s%@INDENT@%$INDENT%g
  39406. -s%@REBUILD@%$REBUILD%g
  39407. -s%@STRIP_DUMMY@%$STRIP_DUMMY%g
  39408. -s%@STRIP_BEGIN@%$STRIP_BEGIN%g
  39409. -s%@STRIP_END@%$STRIP_END%g
  39410. -s%@CPP@%$CPP%g
  39411. -s%@ALLOCA@%$ALLOCA%g
  39412. -s%@USE_NLS@%$USE_NLS%g
  39413. -s%@MSGFMT@%$MSGFMT%g
  39414. -s%@GMSGFMT@%$GMSGFMT%g
  39415. -s%@XGETTEXT@%$XGETTEXT%g
  39416. -s%@GENCAT@%$GENCAT%g
  39417. -s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
  39418. -s%@CATALOGS@%$CATALOGS%g
  39419. -s%@CATOBJEXT@%$CATOBJEXT%g
  39420. -s%@DATADIRNAME@%$DATADIRNAME%g
  39421. -s%@GMOFILES@%$GMOFILES%g
  39422. -s%@INSTOBJEXT@%$INSTOBJEXT%g
  39423. -s%@INTLDEPS@%$INTLDEPS%g
  39424. -s%@INTLLIBS@%$INTLLIBS%g
  39425. -s%@INTLOBJS@%$INTLOBJS%g
  39426. -s%@POFILES@%$POFILES%g
  39427. -s%@POSUB@%$POSUB%g
  39428. -s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
  39429. -s%@GT_NO@%$GT_NO%g
  39430. -s%@GT_YES@%$GT_YES%g
  39431. -s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
  39432. -s%@l@%$l%g
  39433. -s%@gtklocaledir@%$gtklocaledir%g
  39434. -s%@GLIB_CONFIG@%$GLIB_CONFIG%g
  39435. -s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
  39436. -s%@GLIB_LIBS@%$GLIB_LIBS%g
  39437. -s%@glib_cflags@%$glib_cflags%g
  39438. -s%@glib_libs@%$glib_libs%g
  39439. -s%@glib_thread_cflags@%$glib_thread_cflags%g
  39440. -s%@glib_thread_libs@%$glib_thread_libs%g
  39441. -s%@GLIB_DEPLIBS@%$GLIB_DEPLIBS%g
  39442. -s%@X_CFLAGS@%$X_CFLAGS%g
  39443. -s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  39444. -s%@X_LIBS@%$X_LIBS%g
  39445. -s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  39446. -s%@x_cflags@%$x_cflags%g
  39447. -s%@x_includes@%$x_includes%g
  39448. -s%@x_ldflags@%$x_ldflags%g
  39449. -s%@x_libs@%$x_libs%g
  39450. -s%@xinput_progs@%$xinput_progs%g
  39451. -s%@GDK_WLIBS@%$GDK_WLIBS%g
  39452. -s%@GTK_DEBUG_FLAGS@%$GTK_DEBUG_FLAGS%g
  39453. -s%@GTK_XIM_FLAGS@%$GTK_XIM_FLAGS%g
  39454. -s%@GTK_LOCALE_FLAGS@%$GTK_LOCALE_FLAGS%g
  39455. +# Create a (secure) tmp directory for tmp files.
  39456. +
  39457. +{
  39458. + tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  39459. + test -n "$tmp" && test -d "$tmp"
  39460. +} ||
  39461. +{
  39462. + tmp=./confstat$$-$RANDOM
  39463. + (umask 077 && mkdir $tmp)
  39464. +} ||
  39465. +{
  39466. + echo "$me: cannot create a temporary directory in ." >&2
  39467. + { (exit 1); exit 1; }
  39468. +}
  39469. +
  39470. +_ACEOF
  39471. +
  39472. +cat >>$CONFIG_STATUS <<_ACEOF
  39473. +
  39474. +#
  39475. +# CONFIG_FILES section.
  39476. +#
  39477. +# No need to generate the scripts if there are no CONFIG_FILES.
  39478. +# This happens for instance when ./config.status config.h
  39479. +if test -n "\$CONFIG_FILES"; then
  39480. + # Protect against being on the right side of a sed subst in config.status.
  39481. + sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  39482. + s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  39483. +s,@SHELL@,$SHELL,;t t
  39484. +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  39485. +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  39486. +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  39487. +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  39488. +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  39489. +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  39490. +s,@exec_prefix@,$exec_prefix,;t t
  39491. +s,@prefix@,$prefix,;t t
  39492. +s,@program_transform_name@,$program_transform_name,;t t
  39493. +s,@bindir@,$bindir,;t t
  39494. +s,@sbindir@,$sbindir,;t t
  39495. +s,@libexecdir@,$libexecdir,;t t
  39496. +s,@datadir@,$datadir,;t t
  39497. +s,@sysconfdir@,$sysconfdir,;t t
  39498. +s,@sharedstatedir@,$sharedstatedir,;t t
  39499. +s,@localstatedir@,$localstatedir,;t t
  39500. +s,@libdir@,$libdir,;t t
  39501. +s,@includedir@,$includedir,;t t
  39502. +s,@oldincludedir@,$oldincludedir,;t t
  39503. +s,@infodir@,$infodir,;t t
  39504. +s,@mandir@,$mandir,;t t
  39505. +s,@build_alias@,$build_alias,;t t
  39506. +s,@host_alias@,$host_alias,;t t
  39507. +s,@target_alias@,$target_alias,;t t
  39508. +s,@DEFS@,$DEFS,;t t
  39509. +s,@ECHO_C@,$ECHO_C,;t t
  39510. +s,@ECHO_N@,$ECHO_N,;t t
  39511. +s,@ECHO_T@,$ECHO_T,;t t
  39512. +s,@LIBS@,$LIBS,;t t
  39513. +s,@GTK_MAJOR_VERSION@,$GTK_MAJOR_VERSION,;t t
  39514. +s,@GTK_MINOR_VERSION@,$GTK_MINOR_VERSION,;t t
  39515. +s,@GTK_MICRO_VERSION@,$GTK_MICRO_VERSION,;t t
  39516. +s,@GTK_INTERFACE_AGE@,$GTK_INTERFACE_AGE,;t t
  39517. +s,@GTK_BINARY_AGE@,$GTK_BINARY_AGE,;t t
  39518. +s,@GTK_VERSION@,$GTK_VERSION,;t t
  39519. +s,@LT_RELEASE@,$LT_RELEASE,;t t
  39520. +s,@LT_CURRENT@,$LT_CURRENT,;t t
  39521. +s,@LT_REVISION@,$LT_REVISION,;t t
  39522. +s,@LT_AGE@,$LT_AGE,;t t
  39523. +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  39524. +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  39525. +s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  39526. +s,@PACKAGE@,$PACKAGE,;t t
  39527. +s,@VERSION@,$VERSION,;t t
  39528. +s,@ACLOCAL@,$ACLOCAL,;t t
  39529. +s,@AUTOCONF@,$AUTOCONF,;t t
  39530. +s,@AUTOMAKE@,$AUTOMAKE,;t t
  39531. +s,@AUTOHEADER@,$AUTOHEADER,;t t
  39532. +s,@MAKEINFO@,$MAKEINFO,;t t
  39533. +s,@SET_MAKE@,$SET_MAKE,;t t
  39534. +s,@build@,$build,;t t
  39535. +s,@build_cpu@,$build_cpu,;t t
  39536. +s,@build_vendor@,$build_vendor,;t t
  39537. +s,@build_os@,$build_os,;t t
  39538. +s,@host@,$host,;t t
  39539. +s,@host_cpu@,$host_cpu,;t t
  39540. +s,@host_vendor@,$host_vendor,;t t
  39541. +s,@host_os@,$host_os,;t t
  39542. +s,@CC@,$CC,;t t
  39543. +s,@CFLAGS@,$CFLAGS,;t t
  39544. +s,@LDFLAGS@,$LDFLAGS,;t t
  39545. +s,@CPPFLAGS@,$CPPFLAGS,;t t
  39546. +s,@ac_ct_CC@,$ac_ct_CC,;t t
  39547. +s,@EXEEXT@,$EXEEXT,;t t
  39548. +s,@OBJEXT@,$OBJEXT,;t t
  39549. +s,@EGREP@,$EGREP,;t t
  39550. +s,@LN_S@,$LN_S,;t t
  39551. +s,@ECHO@,$ECHO,;t t
  39552. +s,@AR@,$AR,;t t
  39553. +s,@ac_ct_AR@,$ac_ct_AR,;t t
  39554. +s,@RANLIB@,$RANLIB,;t t
  39555. +s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  39556. +s,@STRIP@,$STRIP,;t t
  39557. +s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  39558. +s,@CPP@,$CPP,;t t
  39559. +s,@CXX@,$CXX,;t t
  39560. +s,@CXXFLAGS@,$CXXFLAGS,;t t
  39561. +s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  39562. +s,@CXXCPP@,$CXXCPP,;t t
  39563. +s,@F77@,$F77,;t t
  39564. +s,@FFLAGS@,$FFLAGS,;t t
  39565. +s,@ac_ct_F77@,$ac_ct_F77,;t t
  39566. +s,@LIBTOOL@,$LIBTOOL,;t t
  39567. +s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
  39568. +s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
  39569. +s,@MAINT@,$MAINT,;t t
  39570. +s,@AWK@,$AWK,;t t
  39571. +s,@PERL@,$PERL,;t t
  39572. +s,@INDENT@,$INDENT,;t t
  39573. +s,@REBUILD@,$REBUILD,;t t
  39574. +s,@STRIP_DUMMY@,$STRIP_DUMMY,;t t
  39575. +s,@STRIP_BEGIN@,$STRIP_BEGIN,;t t
  39576. +s,@STRIP_END@,$STRIP_END,;t t
  39577. +s,@ALLOCA@,$ALLOCA,;t t
  39578. +s,@USE_NLS@,$USE_NLS,;t t
  39579. +s,@MSGFMT@,$MSGFMT,;t t
  39580. +s,@GMSGFMT@,$GMSGFMT,;t t
  39581. +s,@XGETTEXT@,$XGETTEXT,;t t
  39582. +s,@GENCAT@,$GENCAT,;t t
  39583. +s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
  39584. +s,@CATALOGS@,$CATALOGS,;t t
  39585. +s,@CATOBJEXT@,$CATOBJEXT,;t t
  39586. +s,@DATADIRNAME@,$DATADIRNAME,;t t
  39587. +s,@GMOFILES@,$GMOFILES,;t t
  39588. +s,@INSTOBJEXT@,$INSTOBJEXT,;t t
  39589. +s,@INTLDEPS@,$INTLDEPS,;t t
  39590. +s,@INTLLIBS@,$INTLLIBS,;t t
  39591. +s,@INTLOBJS@,$INTLOBJS,;t t
  39592. +s,@POFILES@,$POFILES,;t t
  39593. +s,@POSUB@,$POSUB,;t t
  39594. +s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
  39595. +s,@GT_NO@,$GT_NO,;t t
  39596. +s,@GT_YES@,$GT_YES,;t t
  39597. +s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
  39598. +s,@l@,$l,;t t
  39599. +s,@gtklocaledir@,$gtklocaledir,;t t
  39600. +s,@GLIB_CONFIG@,$GLIB_CONFIG,;t t
  39601. +s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
  39602. +s,@GLIB_LIBS@,$GLIB_LIBS,;t t
  39603. +s,@glib_cflags@,$glib_cflags,;t t
  39604. +s,@glib_libs@,$glib_libs,;t t
  39605. +s,@glib_thread_cflags@,$glib_thread_cflags,;t t
  39606. +s,@glib_thread_libs@,$glib_thread_libs,;t t
  39607. +s,@GLIB_DEPLIBS@,$GLIB_DEPLIBS,;t t
  39608. +s,@X_CFLAGS@,$X_CFLAGS,;t t
  39609. +s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
  39610. +s,@X_LIBS@,$X_LIBS,;t t
  39611. +s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
  39612. +s,@PKG_CONFIG@,$PKG_CONFIG,;t t
  39613. +s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
  39614. +s,@x_cflags@,$x_cflags,;t t
  39615. +s,@x_includes@,$x_includes,;t t
  39616. +s,@x_ldflags@,$x_ldflags,;t t
  39617. +s,@x_libs@,$x_libs,;t t
  39618. +s,@xinput_progs@,$xinput_progs,;t t
  39619. +s,@GDK_WLIBS@,$GDK_WLIBS,;t t
  39620. +s,@GTK_DEBUG_FLAGS@,$GTK_DEBUG_FLAGS,;t t
  39621. +s,@GTK_XIM_FLAGS@,$GTK_XIM_FLAGS,;t t
  39622. +s,@GTK_LOCALE_FLAGS@,$GTK_LOCALE_FLAGS,;t t
  39623. +s,@LIBOBJS@,$LIBOBJS,;t t
  39624. +s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  39625. CEOF
  39626. -EOF
  39627. -cat >> $CONFIG_STATUS <<\EOF
  39628. +_ACEOF
  39629. -# Split the substitutions into bite-sized pieces for seds with
  39630. -# small command number limits, like on Digital OSF/1 and HP-UX.
  39631. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  39632. -ac_file=1 # Number of current file.
  39633. -ac_beg=1 # First line for current file.
  39634. -ac_end=$ac_max_sed_cmds # Line after last line for current file.
  39635. -ac_more_lines=:
  39636. -ac_sed_cmds=""
  39637. -while $ac_more_lines; do
  39638. - if test $ac_beg -gt 1; then
  39639. - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  39640. - else
  39641. - sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  39642. - fi
  39643. - if test ! -s conftest.s$ac_file; then
  39644. - ac_more_lines=false
  39645. - rm -f conftest.s$ac_file
  39646. - else
  39647. - if test -z "$ac_sed_cmds"; then
  39648. - ac_sed_cmds="sed -f conftest.s$ac_file"
  39649. + cat >>$CONFIG_STATUS <<\_ACEOF
  39650. + # Split the substitutions into bite-sized pieces for seds with
  39651. + # small command number limits, like on Digital OSF/1 and HP-UX.
  39652. + ac_max_sed_lines=48
  39653. + ac_sed_frag=1 # Number of current file.
  39654. + ac_beg=1 # First line for current file.
  39655. + ac_end=$ac_max_sed_lines # Line after last line for current file.
  39656. + ac_more_lines=:
  39657. + ac_sed_cmds=
  39658. + while $ac_more_lines; do
  39659. + if test $ac_beg -gt 1; then
  39660. + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  39661. else
  39662. - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  39663. + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  39664. + fi
  39665. + if test ! -s $tmp/subs.frag; then
  39666. + ac_more_lines=false
  39667. + else
  39668. + # The purpose of the label and of the branching condition is to
  39669. + # speed up the sed processing (if there are no `@' at all, there
  39670. + # is no need to browse any of the substitutions).
  39671. + # These are the two extra sed commands mentioned above.
  39672. + (echo ':t
  39673. + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  39674. + if test -z "$ac_sed_cmds"; then
  39675. + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  39676. + else
  39677. + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  39678. + fi
  39679. + ac_sed_frag=`expr $ac_sed_frag + 1`
  39680. + ac_beg=$ac_end
  39681. + ac_end=`expr $ac_end + $ac_max_sed_lines`
  39682. fi
  39683. - ac_file=`expr $ac_file + 1`
  39684. - ac_beg=$ac_end
  39685. - ac_end=`expr $ac_end + $ac_max_sed_cmds`
  39686. + done
  39687. + if test -z "$ac_sed_cmds"; then
  39688. + ac_sed_cmds=cat
  39689. fi
  39690. -done
  39691. -if test -z "$ac_sed_cmds"; then
  39692. - ac_sed_cmds=cat
  39693. -fi
  39694. -EOF
  39695. +fi # test -n "$CONFIG_FILES"
  39696. -cat >> $CONFIG_STATUS <<EOF
  39697. -
  39698. -CONFIG_FILES=\${CONFIG_FILES-"gtk+.spec
  39699. -docs/gtk-config.1
  39700. -Makefile
  39701. -gtk-config
  39702. -po/Makefile.in
  39703. -docs/Makefile
  39704. -gdk/Makefile
  39705. -gtk/Makefile
  39706. -gtk/gtkfeatures.h
  39707. -gdk.pc
  39708. -gtk+.pc
  39709. -"}
  39710. -EOF
  39711. -cat >> $CONFIG_STATUS <<\EOF
  39712. -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  39713. +_ACEOF
  39714. +cat >>$CONFIG_STATUS <<\_ACEOF
  39715. +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  39716. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  39717. - case "$ac_file" in
  39718. - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  39719. - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  39720. - *) ac_file_in="${ac_file}.in" ;;
  39721. - esac
  39722. -
  39723. - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  39724. -
  39725. - # Remove last slash and all that follows it. Not all systems have dirname.
  39726. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  39727. - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  39728. - # The file is in a subdirectory.
  39729. - test ! -d "$ac_dir" && mkdir "$ac_dir"
  39730. - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  39731. - # A "../" for each directory in $ac_dir_suffix.
  39732. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  39733. - else
  39734. - ac_dir_suffix= ac_dots=
  39735. - fi
  39736. -
  39737. - case "$ac_given_srcdir" in
  39738. - .) srcdir=.
  39739. - if test -z "$ac_dots"; then top_srcdir=.
  39740. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  39741. - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  39742. + case $ac_file in
  39743. + - | *:- | *:-:* ) # input from stdin
  39744. + cat >$tmp/stdin
  39745. + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  39746. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  39747. + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  39748. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  39749. + * ) ac_file_in=$ac_file.in ;;
  39750. + esac
  39751. +
  39752. + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  39753. + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  39754. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  39755. + X"$ac_file" : 'X\(//\)[^/]' \| \
  39756. + X"$ac_file" : 'X\(//\)$' \| \
  39757. + X"$ac_file" : 'X\(/\)' \| \
  39758. + . : '\(.\)' 2>/dev/null ||
  39759. +echo X"$ac_file" |
  39760. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  39761. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  39762. + /^X\(\/\/\)$/{ s//\1/; q; }
  39763. + /^X\(\/\).*/{ s//\1/; q; }
  39764. + s/.*/./; q'`
  39765. + { if $as_mkdir_p; then
  39766. + mkdir -p "$ac_dir"
  39767. + else
  39768. + as_dir="$ac_dir"
  39769. + as_dirs=
  39770. + while test ! -d "$as_dir"; do
  39771. + as_dirs="$as_dir $as_dirs"
  39772. + as_dir=`(dirname "$as_dir") 2>/dev/null ||
  39773. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  39774. + X"$as_dir" : 'X\(//\)[^/]' \| \
  39775. + X"$as_dir" : 'X\(//\)$' \| \
  39776. + X"$as_dir" : 'X\(/\)' \| \
  39777. + . : '\(.\)' 2>/dev/null ||
  39778. +echo X"$as_dir" |
  39779. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  39780. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  39781. + /^X\(\/\/\)$/{ s//\1/; q; }
  39782. + /^X\(\/\).*/{ s//\1/; q; }
  39783. + s/.*/./; q'`
  39784. + done
  39785. + test ! -n "$as_dirs" || mkdir $as_dirs
  39786. + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  39787. +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  39788. + { (exit 1); exit 1; }; }; }
  39789. +
  39790. + ac_builddir=.
  39791. +
  39792. +if test "$ac_dir" != .; then
  39793. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  39794. + # A "../" for each directory in $ac_dir_suffix.
  39795. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  39796. +else
  39797. + ac_dir_suffix= ac_top_builddir=
  39798. +fi
  39799. +
  39800. +case $srcdir in
  39801. + .) # No --srcdir option. We are building in place.
  39802. + ac_srcdir=.
  39803. + if test -z "$ac_top_builddir"; then
  39804. + ac_top_srcdir=.
  39805. + else
  39806. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  39807. + fi ;;
  39808. + [\\/]* | ?:[\\/]* ) # Absolute path.
  39809. + ac_srcdir=$srcdir$ac_dir_suffix;
  39810. + ac_top_srcdir=$srcdir ;;
  39811. *) # Relative path.
  39812. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  39813. - top_srcdir="$ac_dots$ac_given_srcdir" ;;
  39814. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  39815. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  39816. +esac
  39817. +
  39818. +# Do not use `cd foo && pwd` to compute absolute paths, because
  39819. +# the directories may not exist.
  39820. +case `pwd` in
  39821. +.) ac_abs_builddir="$ac_dir";;
  39822. +*)
  39823. + case "$ac_dir" in
  39824. + .) ac_abs_builddir=`pwd`;;
  39825. + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  39826. + *) ac_abs_builddir=`pwd`/"$ac_dir";;
  39827. + esac;;
  39828. +esac
  39829. +case $ac_abs_builddir in
  39830. +.) ac_abs_top_builddir=${ac_top_builddir}.;;
  39831. +*)
  39832. + case ${ac_top_builddir}. in
  39833. + .) ac_abs_top_builddir=$ac_abs_builddir;;
  39834. + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  39835. + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  39836. + esac;;
  39837. +esac
  39838. +case $ac_abs_builddir in
  39839. +.) ac_abs_srcdir=$ac_srcdir;;
  39840. +*)
  39841. + case $ac_srcdir in
  39842. + .) ac_abs_srcdir=$ac_abs_builddir;;
  39843. + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  39844. + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  39845. + esac;;
  39846. +esac
  39847. +case $ac_abs_builddir in
  39848. +.) ac_abs_top_srcdir=$ac_top_srcdir;;
  39849. +*)
  39850. + case $ac_top_srcdir in
  39851. + .) ac_abs_top_srcdir=$ac_abs_builddir;;
  39852. + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  39853. + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  39854. + esac;;
  39855. +esac
  39856. +
  39857. +
  39858. + case $INSTALL in
  39859. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  39860. + *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  39861. esac
  39862. - case "$ac_given_INSTALL" in
  39863. - [/$]*) INSTALL="$ac_given_INSTALL" ;;
  39864. - *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  39865. - esac
  39866. -
  39867. - echo creating "$ac_file"
  39868. - rm -f "$ac_file"
  39869. - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  39870. - case "$ac_file" in
  39871. - *Makefile*) ac_comsub="1i\\
  39872. -# $configure_input" ;;
  39873. - *) ac_comsub= ;;
  39874. - esac
  39875. -
  39876. - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  39877. - sed -e "$ac_comsub
  39878. -s%@configure_input@%$configure_input%g
  39879. -s%@srcdir@%$srcdir%g
  39880. -s%@top_srcdir@%$top_srcdir%g
  39881. -s%@INSTALL@%$INSTALL%g
  39882. -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  39883. -fi; done
  39884. -rm -f conftest.s*
  39885. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  39886. + # use $as_me), people would be surprised to read:
  39887. + # /* config.h. Generated by config.status. */
  39888. + if test x"$ac_file" = x-; then
  39889. + configure_input=
  39890. + else
  39891. + configure_input="$ac_file. "
  39892. + fi
  39893. + configure_input=$configure_input"Generated from `echo $ac_file_in |
  39894. + sed 's,.*/,,'` by configure."
  39895. +
  39896. + # First look for the input files in the build tree, otherwise in the
  39897. + # src tree.
  39898. + ac_file_inputs=`IFS=:
  39899. + for f in $ac_file_in; do
  39900. + case $f in
  39901. + -) echo $tmp/stdin ;;
  39902. + [\\/$]*)
  39903. + # Absolute (can't be DOS-style, as IFS=:)
  39904. + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  39905. +echo "$as_me: error: cannot find input file: $f" >&2;}
  39906. + { (exit 1); exit 1; }; }
  39907. + echo "$f";;
  39908. + *) # Relative
  39909. + if test -f "$f"; then
  39910. + # Build tree
  39911. + echo "$f"
  39912. + elif test -f "$srcdir/$f"; then
  39913. + # Source tree
  39914. + echo "$srcdir/$f"
  39915. + else
  39916. + # /dev/null tree
  39917. + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  39918. +echo "$as_me: error: cannot find input file: $f" >&2;}
  39919. + { (exit 1); exit 1; }; }
  39920. + fi;;
  39921. + esac
  39922. + done` || { (exit 1); exit 1; }
  39923. +
  39924. + if test x"$ac_file" != x-; then
  39925. + { echo "$as_me:$LINENO: creating $ac_file" >&5
  39926. +echo "$as_me: creating $ac_file" >&6;}
  39927. + rm -f "$ac_file"
  39928. + fi
  39929. +_ACEOF
  39930. +cat >>$CONFIG_STATUS <<_ACEOF
  39931. + sed "$ac_vpsub
  39932. +$extrasub
  39933. +_ACEOF
  39934. +cat >>$CONFIG_STATUS <<\_ACEOF
  39935. +:t
  39936. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  39937. +s,@configure_input@,$configure_input,;t t
  39938. +s,@srcdir@,$ac_srcdir,;t t
  39939. +s,@abs_srcdir@,$ac_abs_srcdir,;t t
  39940. +s,@top_srcdir@,$ac_top_srcdir,;t t
  39941. +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  39942. +s,@builddir@,$ac_builddir,;t t
  39943. +s,@abs_builddir@,$ac_abs_builddir,;t t
  39944. +s,@top_builddir@,$ac_top_builddir,;t t
  39945. +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  39946. +s,@INSTALL@,$ac_INSTALL,;t t
  39947. +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  39948. + rm -f $tmp/stdin
  39949. + if test x"$ac_file" != x-; then
  39950. + mv $tmp/out $ac_file
  39951. + else
  39952. + cat $tmp/out
  39953. + rm -f $tmp/out
  39954. + fi
  39955. +
  39956. +done
  39957. +_ACEOF
  39958. +cat >>$CONFIG_STATUS <<\_ACEOF
  39959. +
  39960. +#
  39961. +# CONFIG_HEADER section.
  39962. +#
  39963. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  39964. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  39965. #
  39966. # ac_d sets the value in "#define NAME VALUE" lines.
  39967. -ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  39968. -ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  39969. -ac_dC='\3'
  39970. -ac_dD='%g'
  39971. -# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  39972. -ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  39973. -ac_uB='\([ ]\)%\1#\2define\3'
  39974. +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  39975. +ac_dB='[ ].*$,\1#\2'
  39976. +ac_dC=' '
  39977. +ac_dD=',;t'
  39978. +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  39979. +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  39980. +ac_uB='$,\1#\2define\3'
  39981. ac_uC=' '
  39982. -ac_uD='\4%g'
  39983. -# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  39984. -ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  39985. -ac_eB='$%\1#\2define\3'
  39986. -ac_eC=' '
  39987. -ac_eD='%g'
  39988. +ac_uD=',;t'
  39989. -if test "${CONFIG_HEADERS+set}" != set; then
  39990. -EOF
  39991. -cat >> $CONFIG_STATUS <<EOF
  39992. - CONFIG_HEADERS="config.h"
  39993. -EOF
  39994. -cat >> $CONFIG_STATUS <<\EOF
  39995. -fi
  39996. -for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  39997. +for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  39998. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  39999. - case "$ac_file" in
  40000. - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  40001. - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  40002. - *) ac_file_in="${ac_file}.in" ;;
  40003. + case $ac_file in
  40004. + - | *:- | *:-:* ) # input from stdin
  40005. + cat >$tmp/stdin
  40006. + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  40007. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  40008. + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  40009. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  40010. + * ) ac_file_in=$ac_file.in ;;
  40011. esac
  40012. - echo creating $ac_file
  40013. -
  40014. - rm -f conftest.frag conftest.in conftest.out
  40015. - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  40016. - cat $ac_file_inputs > conftest.in
  40017. -
  40018. -EOF
  40019. + test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  40020. +echo "$as_me: creating $ac_file" >&6;}
  40021. -# Transform confdefs.h into a sed script conftest.vals that substitutes
  40022. -# the proper values into config.h.in to produce config.h. And first:
  40023. -# Protect against being on the right side of a sed subst in config.status.
  40024. -# Protect against being in an unquoted here document in config.status.
  40025. -rm -f conftest.vals
  40026. -cat > conftest.hdr <<\EOF
  40027. -s/[\\&%]/\\&/g
  40028. -s%[\\$`]%\\&%g
  40029. -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  40030. -s%ac_d%ac_u%gp
  40031. -s%ac_u%ac_e%gp
  40032. -EOF
  40033. -sed -n -f conftest.hdr confdefs.h > conftest.vals
  40034. -rm -f conftest.hdr
  40035. + # First look for the input files in the build tree, otherwise in the
  40036. + # src tree.
  40037. + ac_file_inputs=`IFS=:
  40038. + for f in $ac_file_in; do
  40039. + case $f in
  40040. + -) echo $tmp/stdin ;;
  40041. + [\\/$]*)
  40042. + # Absolute (can't be DOS-style, as IFS=:)
  40043. + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  40044. +echo "$as_me: error: cannot find input file: $f" >&2;}
  40045. + { (exit 1); exit 1; }; }
  40046. + # Do quote $f, to prevent DOS paths from being IFS'd.
  40047. + echo "$f";;
  40048. + *) # Relative
  40049. + if test -f "$f"; then
  40050. + # Build tree
  40051. + echo "$f"
  40052. + elif test -f "$srcdir/$f"; then
  40053. + # Source tree
  40054. + echo "$srcdir/$f"
  40055. + else
  40056. + # /dev/null tree
  40057. + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  40058. +echo "$as_me: error: cannot find input file: $f" >&2;}
  40059. + { (exit 1); exit 1; }; }
  40060. + fi;;
  40061. + esac
  40062. + done` || { (exit 1); exit 1; }
  40063. + # Remove the trailing spaces.
  40064. + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  40065. +
  40066. +_ACEOF
  40067. +
  40068. +# Transform confdefs.h into two sed scripts, `conftest.defines' and
  40069. +# `conftest.undefs', that substitutes the proper values into
  40070. +# config.h.in to produce config.h. The first handles `#define'
  40071. +# templates, and the second `#undef' templates.
  40072. +# And first: Protect against being on the right side of a sed subst in
  40073. +# config.status. Protect against being in an unquoted here document
  40074. +# in config.status.
  40075. +rm -f conftest.defines conftest.undefs
  40076. +# Using a here document instead of a string reduces the quoting nightmare.
  40077. +# Putting comments in sed scripts is not portable.
  40078. +#
  40079. +# `end' is used to avoid that the second main sed command (meant for
  40080. +# 0-ary CPP macros) applies to n-ary macro definitions.
  40081. +# See the Autoconf documentation for `clear'.
  40082. +cat >confdef2sed.sed <<\_ACEOF
  40083. +s/[\\&,]/\\&/g
  40084. +s,[\\$`],\\&,g
  40085. +t clear
  40086. +: clear
  40087. +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  40088. +t end
  40089. +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  40090. +: end
  40091. +_ACEOF
  40092. +# If some macros were called several times there might be several times
  40093. +# the same #defines, which is useless. Nevertheless, we may not want to
  40094. +# sort them, since we want the *last* AC-DEFINE to be honored.
  40095. +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  40096. +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  40097. +rm -f confdef2sed.sed
  40098. # This sed command replaces #undef with comments. This is necessary, for
  40099. # example, in the case of _POSIX_SOURCE, which is predefined and required
  40100. # on some systems where configure will not decide to define it.
  40101. -cat >> conftest.vals <<\EOF
  40102. -s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  40103. -EOF
  40104. -
  40105. -# Break up conftest.vals because some shells have a limit on
  40106. -# the size of here documents, and old seds have small limits too.
  40107. -
  40108. +cat >>conftest.undefs <<\_ACEOF
  40109. +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  40110. +_ACEOF
  40111. +
  40112. +# Break up conftest.defines because some shells have a limit on the size
  40113. +# of here documents, and old seds have small limits too (100 cmds).
  40114. +echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  40115. +echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  40116. +echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  40117. +echo ' :' >>$CONFIG_STATUS
  40118. rm -f conftest.tail
  40119. -while :
  40120. +while grep . conftest.defines >/dev/null
  40121. do
  40122. - ac_lines=`grep -c . conftest.vals`
  40123. - # grep -c gives empty output for an empty file on some AIX systems.
  40124. - if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  40125. - # Write a limited-size here document to conftest.frag.
  40126. - echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  40127. - sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  40128. + # Write a limited-size here document to $tmp/defines.sed.
  40129. + echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  40130. + # Speed up: don't consider the non `#define' lines.
  40131. + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  40132. + # Work around the forget-to-reset-the-flag bug.
  40133. + echo 't clr' >>$CONFIG_STATUS
  40134. + echo ': clr' >>$CONFIG_STATUS
  40135. + sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  40136. echo 'CEOF
  40137. - sed -f conftest.frag conftest.in > conftest.out
  40138. - rm -f conftest.in
  40139. - mv conftest.out conftest.in
  40140. -' >> $CONFIG_STATUS
  40141. - sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  40142. - rm -f conftest.vals
  40143. - mv conftest.tail conftest.vals
  40144. -done
  40145. -rm -f conftest.vals
  40146. -
  40147. -cat >> $CONFIG_STATUS <<\EOF
  40148. - rm -f conftest.frag conftest.h
  40149. - echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  40150. - cat conftest.in >> conftest.h
  40151. - rm -f conftest.in
  40152. - if cmp -s $ac_file conftest.h 2>/dev/null; then
  40153. - echo "$ac_file is unchanged"
  40154. - rm -f conftest.h
  40155. - else
  40156. - # Remove last slash and all that follows it. Not all systems have dirname.
  40157. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  40158. - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  40159. - # The file is in a subdirectory.
  40160. - test ! -d "$ac_dir" && mkdir "$ac_dir"
  40161. - fi
  40162. - rm -f $ac_file
  40163. - mv conftest.h $ac_file
  40164. + sed -f $tmp/defines.sed $tmp/in >$tmp/out
  40165. + rm -f $tmp/in
  40166. + mv $tmp/out $tmp/in
  40167. +' >>$CONFIG_STATUS
  40168. + sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  40169. + rm -f conftest.defines
  40170. + mv conftest.tail conftest.defines
  40171. +done
  40172. +rm -f conftest.defines
  40173. +echo ' fi # grep' >>$CONFIG_STATUS
  40174. +echo >>$CONFIG_STATUS
  40175. +
  40176. +# Break up conftest.undefs because some shells have a limit on the size
  40177. +# of here documents, and old seds have small limits too (100 cmds).
  40178. +echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  40179. +rm -f conftest.tail
  40180. +while grep . conftest.undefs >/dev/null
  40181. +do
  40182. + # Write a limited-size here document to $tmp/undefs.sed.
  40183. + echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  40184. + # Speed up: don't consider the non `#undef'
  40185. + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  40186. + # Work around the forget-to-reset-the-flag bug.
  40187. + echo 't clr' >>$CONFIG_STATUS
  40188. + echo ': clr' >>$CONFIG_STATUS
  40189. + sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  40190. + echo 'CEOF
  40191. + sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  40192. + rm -f $tmp/in
  40193. + mv $tmp/out $tmp/in
  40194. +' >>$CONFIG_STATUS
  40195. + sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  40196. + rm -f conftest.undefs
  40197. + mv conftest.tail conftest.undefs
  40198. +done
  40199. +rm -f conftest.undefs
  40200. +
  40201. +cat >>$CONFIG_STATUS <<\_ACEOF
  40202. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  40203. + # use $as_me), people would be surprised to read:
  40204. + # /* config.h. Generated by config.status. */
  40205. + if test x"$ac_file" = x-; then
  40206. + echo "/* Generated by configure. */" >$tmp/config.h
  40207. + else
  40208. + echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  40209. fi
  40210. -fi; done
  40211. + cat $tmp/in >>$tmp/config.h
  40212. + rm -f $tmp/in
  40213. + if test x"$ac_file" != x-; then
  40214. + if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  40215. + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  40216. +echo "$as_me: $ac_file is unchanged" >&6;}
  40217. + else
  40218. + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  40219. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  40220. + X"$ac_file" : 'X\(//\)[^/]' \| \
  40221. + X"$ac_file" : 'X\(//\)$' \| \
  40222. + X"$ac_file" : 'X\(/\)' \| \
  40223. + . : '\(.\)' 2>/dev/null ||
  40224. +echo X"$ac_file" |
  40225. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  40226. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  40227. + /^X\(\/\/\)$/{ s//\1/; q; }
  40228. + /^X\(\/\).*/{ s//\1/; q; }
  40229. + s/.*/./; q'`
  40230. + { if $as_mkdir_p; then
  40231. + mkdir -p "$ac_dir"
  40232. + else
  40233. + as_dir="$ac_dir"
  40234. + as_dirs=
  40235. + while test ! -d "$as_dir"; do
  40236. + as_dirs="$as_dir $as_dirs"
  40237. + as_dir=`(dirname "$as_dir") 2>/dev/null ||
  40238. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  40239. + X"$as_dir" : 'X\(//\)[^/]' \| \
  40240. + X"$as_dir" : 'X\(//\)$' \| \
  40241. + X"$as_dir" : 'X\(/\)' \| \
  40242. + . : '\(.\)' 2>/dev/null ||
  40243. +echo X"$as_dir" |
  40244. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  40245. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  40246. + /^X\(\/\/\)$/{ s//\1/; q; }
  40247. + /^X\(\/\).*/{ s//\1/; q; }
  40248. + s/.*/./; q'`
  40249. + done
  40250. + test ! -n "$as_dirs" || mkdir $as_dirs
  40251. + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  40252. +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  40253. + { (exit 1); exit 1; }; }; }
  40254. -EOF
  40255. + rm -f $ac_file
  40256. + mv $tmp/config.h $ac_file
  40257. + fi
  40258. + else
  40259. + cat $tmp/config.h
  40260. + rm -f $tmp/config.h
  40261. + fi
  40262. +done
  40263. +_ACEOF
  40264. +cat >>$CONFIG_STATUS <<\_ACEOF
  40265. -cat >> $CONFIG_STATUS <<EOF
  40266. -ac_sources="$nls_cv_header_libgt"
  40267. -ac_dests="$nls_cv_header_intl"
  40268. -EOF
  40269. +#
  40270. +# CONFIG_LINKS section.
  40271. +#
  40272. -cat >> $CONFIG_STATUS <<\EOF
  40273. -srcdir=$ac_given_srcdir
  40274. -while test -n "$ac_sources"; do
  40275. - set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  40276. - set $ac_sources; ac_source=$1; shift; ac_sources=$*
  40277. +for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
  40278. + ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  40279. + ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  40280. - echo "linking $srcdir/$ac_source to $ac_dest"
  40281. + { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
  40282. +echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
  40283. if test ! -r $srcdir/$ac_source; then
  40284. - { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
  40285. + { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
  40286. +echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
  40287. + { (exit 1); exit 1; }; }
  40288. fi
  40289. rm -f $ac_dest
  40290. # Make relative symlinks.
  40291. - # Remove last slash and all that follows it. Not all systems have dirname.
  40292. - ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
  40293. - if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
  40294. - # The dest file is in a subdirectory.
  40295. - test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
  40296. - ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
  40297. - # A "../" for each directory in $ac_dest_dir_suffix.
  40298. - ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
  40299. + ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
  40300. +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  40301. + X"$ac_dest" : 'X\(//\)[^/]' \| \
  40302. + X"$ac_dest" : 'X\(//\)$' \| \
  40303. + X"$ac_dest" : 'X\(/\)' \| \
  40304. + . : '\(.\)' 2>/dev/null ||
  40305. +echo X"$ac_dest" |
  40306. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  40307. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  40308. + /^X\(\/\/\)$/{ s//\1/; q; }
  40309. + /^X\(\/\).*/{ s//\1/; q; }
  40310. + s/.*/./; q'`
  40311. + { if $as_mkdir_p; then
  40312. + mkdir -p "$ac_dest_dir"
  40313. else
  40314. - ac_dest_dir_suffix= ac_dots=
  40315. - fi
  40316. + as_dir="$ac_dest_dir"
  40317. + as_dirs=
  40318. + while test ! -d "$as_dir"; do
  40319. + as_dirs="$as_dir $as_dirs"
  40320. + as_dir=`(dirname "$as_dir") 2>/dev/null ||
  40321. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  40322. + X"$as_dir" : 'X\(//\)[^/]' \| \
  40323. + X"$as_dir" : 'X\(//\)$' \| \
  40324. + X"$as_dir" : 'X\(/\)' \| \
  40325. + . : '\(.\)' 2>/dev/null ||
  40326. +echo X"$as_dir" |
  40327. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  40328. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  40329. + /^X\(\/\/\)$/{ s//\1/; q; }
  40330. + /^X\(\/\).*/{ s//\1/; q; }
  40331. + s/.*/./; q'`
  40332. + done
  40333. + test ! -n "$as_dirs" || mkdir $as_dirs
  40334. + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
  40335. +echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
  40336. + { (exit 1); exit 1; }; }; }
  40337. +
  40338. + ac_builddir=.
  40339. +
  40340. +if test "$ac_dest_dir" != .; then
  40341. + ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
  40342. + # A "../" for each directory in $ac_dir_suffix.
  40343. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  40344. +else
  40345. + ac_dir_suffix= ac_top_builddir=
  40346. +fi
  40347. +
  40348. +case $srcdir in
  40349. + .) # No --srcdir option. We are building in place.
  40350. + ac_srcdir=.
  40351. + if test -z "$ac_top_builddir"; then
  40352. + ac_top_srcdir=.
  40353. + else
  40354. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  40355. + fi ;;
  40356. + [\\/]* | ?:[\\/]* ) # Absolute path.
  40357. + ac_srcdir=$srcdir$ac_dir_suffix;
  40358. + ac_top_srcdir=$srcdir ;;
  40359. + *) # Relative path.
  40360. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  40361. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  40362. +esac
  40363. +
  40364. +# Do not use `cd foo && pwd` to compute absolute paths, because
  40365. +# the directories may not exist.
  40366. +case `pwd` in
  40367. +.) ac_abs_builddir="$ac_dest_dir";;
  40368. +*)
  40369. + case "$ac_dest_dir" in
  40370. + .) ac_abs_builddir=`pwd`;;
  40371. + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
  40372. + *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
  40373. + esac;;
  40374. +esac
  40375. +case $ac_abs_builddir in
  40376. +.) ac_abs_top_builddir=${ac_top_builddir}.;;
  40377. +*)
  40378. + case ${ac_top_builddir}. in
  40379. + .) ac_abs_top_builddir=$ac_abs_builddir;;
  40380. + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  40381. + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  40382. + esac;;
  40383. +esac
  40384. +case $ac_abs_builddir in
  40385. +.) ac_abs_srcdir=$ac_srcdir;;
  40386. +*)
  40387. + case $ac_srcdir in
  40388. + .) ac_abs_srcdir=$ac_abs_builddir;;
  40389. + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  40390. + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  40391. + esac;;
  40392. +esac
  40393. +case $ac_abs_builddir in
  40394. +.) ac_abs_top_srcdir=$ac_top_srcdir;;
  40395. +*)
  40396. + case $ac_top_srcdir in
  40397. + .) ac_abs_top_srcdir=$ac_abs_builddir;;
  40398. + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  40399. + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  40400. + esac;;
  40401. +esac
  40402. - case "$srcdir" in
  40403. - [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
  40404. - *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
  40405. +
  40406. + case $srcdir in
  40407. + [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
  40408. + *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
  40409. esac
  40410. - # Make a symlink if possible; otherwise try a hard link.
  40411. - if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
  40412. - ln $srcdir/$ac_source $ac_dest; then :
  40413. - else
  40414. - { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
  40415. - fi
  40416. + # Try a symlink, then a hard link, then a copy.
  40417. + ln -s $ac_rel_source $ac_dest 2>/dev/null ||
  40418. + ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
  40419. + cp -p $srcdir/$ac_source $ac_dest ||
  40420. + { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
  40421. +echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
  40422. + { (exit 1); exit 1; }; }
  40423. done
  40424. -EOF
  40425. -cat >> $CONFIG_STATUS <<EOF
  40426. +_ACEOF
  40427. +cat >>$CONFIG_STATUS <<\_ACEOF
  40428. +
  40429. +#
  40430. +# CONFIG_COMMANDS section.
  40431. +#
  40432. +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  40433. + ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  40434. + ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  40435. + ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  40436. +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  40437. + X"$ac_dest" : 'X\(//\)[^/]' \| \
  40438. + X"$ac_dest" : 'X\(//\)$' \| \
  40439. + X"$ac_dest" : 'X\(/\)' \| \
  40440. + . : '\(.\)' 2>/dev/null ||
  40441. +echo X"$ac_dest" |
  40442. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  40443. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  40444. + /^X\(\/\/\)$/{ s//\1/; q; }
  40445. + /^X\(\/\).*/{ s//\1/; q; }
  40446. + s/.*/./; q'`
  40447. + { if $as_mkdir_p; then
  40448. + mkdir -p "$ac_dir"
  40449. + else
  40450. + as_dir="$ac_dir"
  40451. + as_dirs=
  40452. + while test ! -d "$as_dir"; do
  40453. + as_dirs="$as_dir $as_dirs"
  40454. + as_dir=`(dirname "$as_dir") 2>/dev/null ||
  40455. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  40456. + X"$as_dir" : 'X\(//\)[^/]' \| \
  40457. + X"$as_dir" : 'X\(//\)$' \| \
  40458. + X"$as_dir" : 'X\(/\)' \| \
  40459. + . : '\(.\)' 2>/dev/null ||
  40460. +echo X"$as_dir" |
  40461. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  40462. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  40463. + /^X\(\/\/\)$/{ s//\1/; q; }
  40464. + /^X\(\/\).*/{ s//\1/; q; }
  40465. + s/.*/./; q'`
  40466. + done
  40467. + test ! -n "$as_dirs" || mkdir $as_dirs
  40468. + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  40469. +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  40470. + { (exit 1); exit 1; }; }; }
  40471. +
  40472. + ac_builddir=.
  40473. +
  40474. +if test "$ac_dir" != .; then
  40475. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  40476. + # A "../" for each directory in $ac_dir_suffix.
  40477. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  40478. +else
  40479. + ac_dir_suffix= ac_top_builddir=
  40480. +fi
  40481. +
  40482. +case $srcdir in
  40483. + .) # No --srcdir option. We are building in place.
  40484. + ac_srcdir=.
  40485. + if test -z "$ac_top_builddir"; then
  40486. + ac_top_srcdir=.
  40487. + else
  40488. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  40489. + fi ;;
  40490. + [\\/]* | ?:[\\/]* ) # Absolute path.
  40491. + ac_srcdir=$srcdir$ac_dir_suffix;
  40492. + ac_top_srcdir=$srcdir ;;
  40493. + *) # Relative path.
  40494. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  40495. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  40496. +esac
  40497. +# Do not use `cd foo && pwd` to compute absolute paths, because
  40498. +# the directories may not exist.
  40499. +case `pwd` in
  40500. +.) ac_abs_builddir="$ac_dir";;
  40501. +*)
  40502. + case "$ac_dir" in
  40503. + .) ac_abs_builddir=`pwd`;;
  40504. + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  40505. + *) ac_abs_builddir=`pwd`/"$ac_dir";;
  40506. + esac;;
  40507. +esac
  40508. +case $ac_abs_builddir in
  40509. +.) ac_abs_top_builddir=${ac_top_builddir}.;;
  40510. +*)
  40511. + case ${ac_top_builddir}. in
  40512. + .) ac_abs_top_builddir=$ac_abs_builddir;;
  40513. + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  40514. + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  40515. + esac;;
  40516. +esac
  40517. +case $ac_abs_builddir in
  40518. +.) ac_abs_srcdir=$ac_srcdir;;
  40519. +*)
  40520. + case $ac_srcdir in
  40521. + .) ac_abs_srcdir=$ac_abs_builddir;;
  40522. + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  40523. + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  40524. + esac;;
  40525. +esac
  40526. +case $ac_abs_builddir in
  40527. +.) ac_abs_top_srcdir=$ac_top_srcdir;;
  40528. +*)
  40529. + case $ac_top_srcdir in
  40530. + .) ac_abs_top_srcdir=$ac_abs_builddir;;
  40531. + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  40532. + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  40533. + esac;;
  40534. +esac
  40535. -EOF
  40536. -cat >> $CONFIG_STATUS <<\EOF
  40537. -test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  40538. -case "$CONFIG_FILES" in *po/Makefile.in*)
  40539. + { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  40540. +echo "$as_me: executing $ac_dest commands" >&6;}
  40541. + case $ac_dest in
  40542. + default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
  40543. + default-2 ) case "$CONFIG_FILES" in *po/Makefile.in*)
  40544. sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
  40545. - esac
  40546. -chmod +x gtk-config
  40547. -exit 0
  40548. -EOF
  40549. + esac ;;
  40550. + default ) chmod +x gtk-config ;;
  40551. + esac
  40552. +done
  40553. +_ACEOF
  40554. +
  40555. +cat >>$CONFIG_STATUS <<\_ACEOF
  40556. +
  40557. +{ (exit 0); exit 0; }
  40558. +_ACEOF
  40559. chmod +x $CONFIG_STATUS
  40560. -rm -fr confdefs* $ac_clean_files
  40561. -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  40562. +ac_clean_files=$ac_clean_files_save
  40563. +
  40564. +
  40565. +# configure is writing to config.log, and then calls config.status.
  40566. +# config.status does its own redirection, appending to config.log.
  40567. +# Unfortunately, on DOS this fails, as config.log is still kept open
  40568. +# by configure, so config.status won't be able to write to it; its
  40569. +# output is simply discarded. So we exec the FD to /dev/null,
  40570. +# effectively closing config.log, so it can be properly (re)opened and
  40571. +# appended to by config.status. When coming back to configure, we
  40572. +# need to make the FD available again.
  40573. +if test "$no_create" != yes; then
  40574. + ac_cs_success=:
  40575. + ac_config_status_args=
  40576. + test "$silent" = yes &&
  40577. + ac_config_status_args="$ac_config_status_args --quiet"
  40578. + exec 5>/dev/null
  40579. + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  40580. + exec 5>>config.log
  40581. + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  40582. + # would make configure fail if this is the last instruction.
  40583. + $ac_cs_success || { (exit 1); exit 1; }
  40584. +fi
  40585. diff -urN gtk+-1.2.10.orig/docs/Makefile.in gtk+-1.2.10/docs/Makefile.in
  40586. --- gtk+-1.2.10.orig/docs/Makefile.in 2001-04-01 21:15:08.000000000 -0600
  40587. +++ gtk+-1.2.10/docs/Makefile.in 2006-07-09 02:29:45.000000000 -0600
  40588. @@ -1,6 +1,6 @@
  40589. -# Makefile.in generated automatically by automake 1.4 from Makefile.am
  40590. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  40591. -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
  40592. +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  40593. # This Makefile.in is free software; the Free Software Foundation
  40594. # gives unlimited permission to copy and/or distribute it,
  40595. # with or without modifications, as long as this notice is preserved.
  40596. @@ -59,13 +59,22 @@
  40597. POST_UNINSTALL = :
  40598. host_alias = @host_alias@
  40599. host_triplet = @host@
  40600. +AR = @AR@
  40601. AS = @AS@
  40602. AWK = @AWK@
  40603. CATALOGS = @CATALOGS@
  40604. CATOBJEXT = @CATOBJEXT@
  40605. CC = @CC@
  40606. +CXX = @CXX@
  40607. +CXXCPP = @CXXCPP@
  40608. DATADIRNAME = @DATADIRNAME@
  40609. DLLTOOL = @DLLTOOL@
  40610. +ECHO = @ECHO@
  40611. +EGREP = @EGREP@
  40612. +EXEEXT = @EXEEXT@
  40613. +F77 = @F77@
  40614. +GCJ = @GCJ@
  40615. +GCJFLAGS = @GCJFLAGS@
  40616. GDK_WLIBS = @GDK_WLIBS@
  40617. GENCAT = @GENCAT@
  40618. GLIB_CFLAGS = @GLIB_CFLAGS@
  40619. @@ -85,14 +94,17 @@
  40620. GTK_XIM_FLAGS = @GTK_XIM_FLAGS@
  40621. GT_NO = @GT_NO@
  40622. GT_YES = @GT_YES@
  40623. +HAVE_LIB = @HAVE_LIB@
  40624. INCLUDE_LOCALE_H = @INCLUDE_LOCALE_H@
  40625. INDENT = @INDENT@
  40626. INSTOBJEXT = @INSTOBJEXT@
  40627. INTLDEPS = @INTLDEPS@
  40628. INTLLIBS = @INTLLIBS@
  40629. INTLOBJS = @INTLOBJS@
  40630. +LIB = @LIB@
  40631. LIBTOOL = @LIBTOOL@
  40632. LN_S = @LN_S@
  40633. +LTLIB = @LTLIB@
  40634. LT_AGE = @LT_AGE@
  40635. LT_CURRENT = @LT_CURRENT@
  40636. LT_RELEASE = @LT_RELEASE@
  40637. @@ -101,12 +113,16 @@
  40638. MAKEINFO = @MAKEINFO@
  40639. MKINSTALLDIRS = @MKINSTALLDIRS@
  40640. OBJDUMP = @OBJDUMP@
  40641. +OBJEXT = @OBJEXT@
  40642. PACKAGE = @PACKAGE@
  40643. PERL = @PERL@
  40644. +PKG_CONFIG = @PKG_CONFIG@
  40645. POFILES = @POFILES@
  40646. POSUB = @POSUB@
  40647. RANLIB = @RANLIB@
  40648. +RC = @RC@
  40649. REBUILD = @REBUILD@
  40650. +STRIP = @STRIP@
  40651. STRIP_BEGIN = @STRIP_BEGIN@
  40652. STRIP_DUMMY = @STRIP_DUMMY@
  40653. STRIP_END = @STRIP_END@
  40654. @@ -159,15 +175,15 @@
  40655. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  40656. -TAR = gtar
  40657. +TAR = tar
  40658. GZIP_ENV = --best
  40659. all: all-redirect
  40660. .SUFFIXES:
  40661. .SUFFIXES: .dvi .info .ps .texi .texinfo .txi
  40662. $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  40663. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps docs/Makefile
  40664. + cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/Makefile
  40665. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  40666. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  40667. cd $(top_builddir) \
  40668. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  40669. @@ -257,7 +273,7 @@
  40670. else ii=; fi; \
  40671. list='$(INFO_DEPS)'; \
  40672. for file in $$list; do \
  40673. - test -z "$ii" \
  40674. + test -z "$$ii" \
  40675. || install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file; \
  40676. done
  40677. @$(NORMAL_UNINSTALL)
  40678. @@ -343,6 +359,11 @@
  40679. subdir = docs
  40680. distdir: $(DISTFILES)
  40681. + here=`cd $(top_builddir) && pwd`; \
  40682. + top_distdir=`cd $(top_distdir) && pwd`; \
  40683. + distdir=`cd $(distdir) && pwd`; \
  40684. + cd $(top_srcdir) \
  40685. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu docs/Makefile
  40686. $(mkinstalldirs) $(distdir)/html $(distdir)/text
  40687. @for file in $(DISTFILES); do \
  40688. d=$(srcdir); \
  40689. diff -urN gtk+-1.2.10.orig/gdk/Makefile.in gtk+-1.2.10/gdk/Makefile.in
  40690. --- gtk+-1.2.10.orig/gdk/Makefile.in 2001-04-01 21:14:11.000000000 -0600
  40691. +++ gtk+-1.2.10/gdk/Makefile.in 2006-07-09 02:29:45.000000000 -0600
  40692. @@ -1,6 +1,6 @@
  40693. -# Makefile.in generated automatically by automake 1.4 from Makefile.am
  40694. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  40695. -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
  40696. +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  40697. # This Makefile.in is free software; the Free Software Foundation
  40698. # gives unlimited permission to copy and/or distribute it,
  40699. # with or without modifications, as long as this notice is preserved.
  40700. @@ -59,13 +59,22 @@
  40701. POST_UNINSTALL = :
  40702. host_alias = @host_alias@
  40703. host_triplet = @host@
  40704. +AR = @AR@
  40705. AS = @AS@
  40706. AWK = @AWK@
  40707. CATALOGS = @CATALOGS@
  40708. CATOBJEXT = @CATOBJEXT@
  40709. CC = @CC@
  40710. +CXX = @CXX@
  40711. +CXXCPP = @CXXCPP@
  40712. DATADIRNAME = @DATADIRNAME@
  40713. DLLTOOL = @DLLTOOL@
  40714. +ECHO = @ECHO@
  40715. +EGREP = @EGREP@
  40716. +EXEEXT = @EXEEXT@
  40717. +F77 = @F77@
  40718. +GCJ = @GCJ@
  40719. +GCJFLAGS = @GCJFLAGS@
  40720. GDK_WLIBS = @GDK_WLIBS@
  40721. GENCAT = @GENCAT@
  40722. GLIB_CFLAGS = @GLIB_CFLAGS@
  40723. @@ -85,14 +94,17 @@
  40724. GTK_XIM_FLAGS = @GTK_XIM_FLAGS@
  40725. GT_NO = @GT_NO@
  40726. GT_YES = @GT_YES@
  40727. +HAVE_LIB = @HAVE_LIB@
  40728. INCLUDE_LOCALE_H = @INCLUDE_LOCALE_H@
  40729. INDENT = @INDENT@
  40730. INSTOBJEXT = @INSTOBJEXT@
  40731. INTLDEPS = @INTLDEPS@
  40732. INTLLIBS = @INTLLIBS@
  40733. INTLOBJS = @INTLOBJS@
  40734. +LIB = @LIB@
  40735. LIBTOOL = @LIBTOOL@
  40736. LN_S = @LN_S@
  40737. +LTLIB = @LTLIB@
  40738. LT_AGE = @LT_AGE@
  40739. LT_CURRENT = @LT_CURRENT@
  40740. LT_RELEASE = @LT_RELEASE@
  40741. @@ -101,12 +113,16 @@
  40742. MAKEINFO = @MAKEINFO@
  40743. MKINSTALLDIRS = @MKINSTALLDIRS@
  40744. OBJDUMP = @OBJDUMP@
  40745. +OBJEXT = @OBJEXT@
  40746. PACKAGE = @PACKAGE@
  40747. PERL = @PERL@
  40748. +PKG_CONFIG = @PKG_CONFIG@
  40749. POFILES = @POFILES@
  40750. POSUB = @POSUB@
  40751. RANLIB = @RANLIB@
  40752. +RC = @RC@
  40753. REBUILD = @REBUILD@
  40754. +STRIP = @STRIP@
  40755. STRIP_BEGIN = @STRIP_BEGIN@
  40756. STRIP_DUMMY = @STRIP_DUMMY@
  40757. STRIP_END = @STRIP_END@
  40758. @@ -142,9 +158,10 @@
  40759. # setup source file variables
  40760. #
  40761. # GDK header files for public installation (non-generated)
  40762. -gdk_public_h_sources = @STRIP_BEGIN@ gdk.h gdkcursors.h gdkrgb.h gdki18n.h gdkkeysyms.h gdkprivate.h gdktypes.h gdkx.h @STRIP_END@
  40763. +gdk_public_h_sources = gdk.h gdkcursors.h gdkrgb.h gdki18n.h gdkkeysyms.h gdkprivate.h gdktypes.h gdkx.h
  40764. -gdk_c_sources = @STRIP_BEGIN@ gdk.c gdkcc.c gdkcolor.c gdkcursor.c gdkdnd.c gdkdraw.c gdkevents.c gdkfont.c gdkgc.c gdkglobals.c gdkim.c gdkimage.c gdkinput.c gdkinput.h gdkinputnone.h gdkinputcommon.h gdkinputgxi.h gdkinputxfree.h gdkpixmap.c gdkproperty.c gdkrgb.c gdkrectangle.c gdkregion.c gdkselection.c gdkvisual.c gdkwindow.c gdkxid.c MwmUtil.h gxid_lib.h gxid_proto.h gxid_lib.c @STRIP_END@
  40765. +
  40766. +gdk_c_sources = gdk.c gdkcc.c gdkcolor.c gdkcursor.c gdkdnd.c gdkdraw.c gdkevents.c gdkfont.c gdkgc.c gdkglobals.c gdkim.c gdkimage.c gdkinput.c gdkinput.h gdkinputnone.h gdkinputcommon.h gdkinputgxi.h gdkinputxfree.h gdkpixmap.c gdkproperty.c gdkrgb.c gdkrectangle.c gdkregion.c gdkselection.c gdkvisual.c gdkwindow.c gdkxid.c MwmUtil.h gxid_lib.h gxid_proto.h gxid_lib.c
  40767. #
  40768. @@ -152,9 +169,9 @@
  40769. #
  40770. libgdkinclude_HEADERS = $(gdk_public_h_sources)
  40771. libgdk_la_SOURCES = $(gdk_c_sources)
  40772. -MAINTAINERCLEANFILES =
  40773. -EXTRA_HEADERS =
  40774. -EXTRA_DIST =
  40775. +MAINTAINERCLEANFILES =
  40776. +EXTRA_HEADERS =
  40777. +EXTRA_DIST =
  40778. #
  40779. # extra programs
  40780. @@ -185,9 +202,10 @@
  40781. gdkimage.lo gdkinput.lo gdkpixmap.lo gdkproperty.lo gdkrgb.lo \
  40782. gdkrectangle.lo gdkregion.lo gdkselection.lo gdkvisual.lo gdkwindow.lo \
  40783. gdkxid.lo gxid_lib.lo
  40784. +bin_PROGRAMS = @xinput_progs@
  40785. PROGRAMS = $(bin_PROGRAMS)
  40786. -gxid_OBJECTS = gxid.o
  40787. +gxid_OBJECTS = gxid.$(OBJEXT)
  40788. gxid_DEPENDENCIES =
  40789. gxid_LDFLAGS =
  40790. CFLAGS = @CFLAGS@
  40791. @@ -202,18 +220,25 @@
  40792. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  40793. -TAR = gtar
  40794. +TAR = tar
  40795. GZIP_ENV = --best
  40796. +DEP_FILES = .deps/gdk.P .deps/gdkcc.P .deps/gdkcolor.P \
  40797. +.deps/gdkcursor.P .deps/gdkdnd.P .deps/gdkdraw.P .deps/gdkevents.P \
  40798. +.deps/gdkfont.P .deps/gdkgc.P .deps/gdkglobals.P .deps/gdkim.P \
  40799. +.deps/gdkimage.P .deps/gdkinput.P .deps/gdkpixmap.P .deps/gdkproperty.P \
  40800. +.deps/gdkrectangle.P .deps/gdkregion.P .deps/gdkrgb.P \
  40801. +.deps/gdkselection.P .deps/gdkvisual.P .deps/gdkwindow.P .deps/gdkxid.P \
  40802. +.deps/gxid.P .deps/gxid_lib.P
  40803. SOURCES = $(libgdk_la_SOURCES) $(gxid_SOURCES)
  40804. OBJECTS = $(libgdk_la_OBJECTS) $(gxid_OBJECTS)
  40805. all: all-redirect
  40806. .SUFFIXES:
  40807. -.SUFFIXES: .S .c .lo .o .s
  40808. +.SUFFIXES: .S .c .lo .o .obj .s
  40809. $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  40810. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps gdk/Makefile
  40811. + cd $(top_srcdir) && $(AUTOMAKE) --gnu gdk/Makefile
  40812. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  40813. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  40814. cd $(top_builddir) \
  40815. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  40816. @@ -243,8 +268,10 @@
  40817. $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
  40818. done
  40819. -.c.o:
  40820. - $(COMPILE) -c $<
  40821. +# FIXME: We should only use cygpath when building on Windows,
  40822. +# and only if it is available.
  40823. +.c.obj:
  40824. + $(COMPILE) -c `cygpath -w $<`
  40825. .s.o:
  40826. $(COMPILE) -c $<
  40827. @@ -254,6 +281,7 @@
  40828. mostlyclean-compile:
  40829. -rm -f *.o core *.core
  40830. + -rm -f *.$(OBJEXT)
  40831. clean-compile:
  40832. @@ -262,9 +290,6 @@
  40833. maintainer-clean-compile:
  40834. -.c.lo:
  40835. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  40836. -
  40837. .s.lo:
  40838. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  40839. @@ -309,8 +334,8 @@
  40840. rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
  40841. done
  40842. -gxid: $(gxid_OBJECTS) $(gxid_DEPENDENCIES)
  40843. - @rm -f gxid
  40844. +gxid$(EXEEXT): $(gxid_OBJECTS) $(gxid_DEPENDENCIES)
  40845. + @rm -f gxid$(EXEEXT)
  40846. $(LINK) $(gxid_LDFLAGS) $(gxid_OBJECTS) $(gxid_LDADD) $(LIBS)
  40847. install-libgdkincludeHEADERS: $(libgdkinclude_HEADERS)
  40848. @@ -346,7 +371,7 @@
  40849. awk ' { files[$$0] = 1; } \
  40850. END { for (i in files) print i; }'`; \
  40851. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  40852. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  40853. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  40854. mostlyclean-tags:
  40855. @@ -362,6 +387,11 @@
  40856. subdir = gdk
  40857. distdir: $(DISTFILES)
  40858. + here=`cd $(top_builddir) && pwd`; \
  40859. + top_distdir=`cd $(top_distdir) && pwd`; \
  40860. + distdir=`cd $(distdir) && pwd`; \
  40861. + cd $(top_srcdir) \
  40862. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu gdk/Makefile
  40863. @for file in $(DISTFILES); do \
  40864. d=$(srcdir); \
  40865. if test -d $$d/$$file; then \
  40866. @@ -372,55 +402,38 @@
  40867. || cp -p $$d/$$file $(distdir)/$$file || :; \
  40868. fi; \
  40869. done
  40870. -gdk.lo gdk.o : gdk.c ../config.h gdk.h gdktypes.h gdkcursors.h gdkrgb.h \
  40871. - gdkprivate.h gdkinput.h gdkx.h gdkprivate.h gdki18n.h \
  40872. - gdkkeysyms.h
  40873. -gdkcc.lo gdkcc.o : gdkcc.c gdk.h gdktypes.h gdkcursors.h gdkrgb.h \
  40874. - gdkprivate.h gdkx.h gdkprivate.h
  40875. -gdkcolor.lo gdkcolor.o : gdkcolor.c gdk.h gdktypes.h gdkcursors.h \
  40876. - gdkrgb.h gdkprivate.h gdkx.h gdkprivate.h
  40877. -gdkcursor.lo gdkcursor.o : gdkcursor.c gdk.h gdktypes.h gdkcursors.h \
  40878. - gdkrgb.h gdkprivate.h
  40879. -gdkdnd.lo gdkdnd.o : gdkdnd.c gdkx.h gdkprivate.h gdktypes.h \
  40880. - gdkcursors.h gdk.h gdkrgb.h
  40881. -gdkdraw.lo gdkdraw.o : gdkdraw.c gdk.h gdktypes.h gdkcursors.h gdkrgb.h \
  40882. - gdkprivate.h
  40883. -gdkevents.lo gdkevents.o : gdkevents.c gdk.h gdktypes.h gdkcursors.h \
  40884. - gdkrgb.h gdkx.h gdkprivate.h gdkprivate.h gdkkeysyms.h \
  40885. - ../config.h gdkinput.h
  40886. -gdkfont.lo gdkfont.o : gdkfont.c gdk.h gdktypes.h gdkcursors.h gdkrgb.h \
  40887. - gdkprivate.h ../config.h
  40888. -gdkgc.lo gdkgc.o : gdkgc.c gdk.h gdktypes.h gdkcursors.h gdkrgb.h \
  40889. - gdkprivate.h
  40890. -gdkglobals.lo gdkglobals.o : gdkglobals.c gdktypes.h gdkcursors.h \
  40891. - gdkprivate.h gdktypes.h ../config.h
  40892. -gdkim.lo gdkim.o : gdkim.c gdk.h gdktypes.h gdkcursors.h gdkrgb.h \
  40893. - gdkprivate.h gdki18n.h gdkx.h gdkprivate.h ../config.h
  40894. -gdkimage.lo gdkimage.o : gdkimage.c ../config.h gdk.h gdktypes.h \
  40895. - gdkcursors.h gdkrgb.h gdkprivate.h
  40896. -gdkinput.lo gdkinput.o : gdkinput.c ../config.h gdk.h gdktypes.h \
  40897. - gdkcursors.h gdkrgb.h gdkx.h gdkprivate.h gdkprivate.h \
  40898. - gdkinput.h gdkinputnone.h gdkinputcommon.h gdkinputxfree.h \
  40899. - gdkinputgxi.h
  40900. -gdkpixmap.lo gdkpixmap.o : gdkpixmap.c ../config.h gdk.h gdktypes.h \
  40901. - gdkcursors.h gdkrgb.h gdkprivate.h
  40902. -gdkproperty.lo gdkproperty.o : gdkproperty.c gdk.h gdktypes.h \
  40903. - gdkcursors.h gdkrgb.h gdkprivate.h
  40904. -gdkrectangle.lo gdkrectangle.o : gdkrectangle.c gdk.h gdktypes.h \
  40905. - gdkcursors.h gdkrgb.h
  40906. -gdkregion.lo gdkregion.o : gdkregion.c gdk.h gdktypes.h gdkcursors.h \
  40907. - gdkrgb.h gdkprivate.h
  40908. -gdkrgb.lo gdkrgb.o : gdkrgb.c ../config.h gdk.h gdktypes.h gdkcursors.h \
  40909. - gdkrgb.h gdkprivate.h gdkrgb.h
  40910. -gdkselection.lo gdkselection.o : gdkselection.c gdk.h gdktypes.h \
  40911. - gdkcursors.h gdkrgb.h gdkprivate.h gdkx.h gdkprivate.h
  40912. -gdkvisual.lo gdkvisual.o : gdkvisual.c gdk.h gdktypes.h gdkcursors.h \
  40913. - gdkrgb.h gdkprivate.h gdkx.h gdkprivate.h
  40914. -gdkwindow.lo gdkwindow.o : gdkwindow.c gdk.h gdktypes.h gdkcursors.h \
  40915. - gdkrgb.h ../config.h gdkinput.h gdkprivate.h MwmUtil.h
  40916. -gdkxid.lo gdkxid.o : gdkxid.c gdkprivate.h gdktypes.h gdkcursors.h
  40917. -gxid_lib.lo gxid_lib.o : gxid_lib.c ../config.h gxid_lib.h gxid_proto.h
  40918. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  40919. +
  40920. +-include $(DEP_FILES)
  40921. +
  40922. +mostlyclean-depend:
  40923. +
  40924. +clean-depend:
  40925. +
  40926. +distclean-depend:
  40927. + -rm -rf .deps
  40928. +
  40929. +maintainer-clean-depend:
  40930. +
  40931. +%.o: %.c
  40932. + @echo '$(COMPILE) -c $<'; \
  40933. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  40934. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  40935. + tr ' ' '\012' < .deps/$(*F).pp \
  40936. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  40937. + >> .deps/$(*F).P; \
  40938. + rm .deps/$(*F).pp
  40939. +
  40940. +%.lo: %.c
  40941. + @echo '$(LTCOMPILE) -c $<'; \
  40942. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  40943. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  40944. + < .deps/$(*F).pp > .deps/$(*F).P; \
  40945. + tr ' ' '\012' < .deps/$(*F).pp \
  40946. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  40947. + >> .deps/$(*F).P; \
  40948. + rm -f .deps/$(*F).pp
  40949. info-am:
  40950. info: info-am
  40951. dvi-am:
  40952. @@ -462,19 +475,19 @@
  40953. -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
  40954. mostlyclean-am: mostlyclean-libLTLIBRARIES mostlyclean-compile \
  40955. mostlyclean-libtool mostlyclean-binPROGRAMS \
  40956. - mostlyclean-tags mostlyclean-generic
  40957. + mostlyclean-tags mostlyclean-depend mostlyclean-generic
  40958. mostlyclean: mostlyclean-am
  40959. clean-am: clean-libLTLIBRARIES clean-compile clean-libtool \
  40960. - clean-binPROGRAMS clean-tags clean-generic \
  40961. + clean-binPROGRAMS clean-tags clean-depend clean-generic \
  40962. mostlyclean-am
  40963. clean: clean-am
  40964. distclean-am: distclean-libLTLIBRARIES distclean-compile \
  40965. distclean-libtool distclean-binPROGRAMS distclean-tags \
  40966. - distclean-generic clean-am
  40967. + distclean-depend distclean-generic clean-am
  40968. -rm -f libtool
  40969. distclean: distclean-am
  40970. @@ -482,7 +495,8 @@
  40971. maintainer-clean-am: maintainer-clean-libLTLIBRARIES \
  40972. maintainer-clean-compile maintainer-clean-libtool \
  40973. maintainer-clean-binPROGRAMS maintainer-clean-tags \
  40974. - maintainer-clean-generic distclean-am
  40975. + maintainer-clean-depend maintainer-clean-generic \
  40976. + distclean-am
  40977. @echo "This command is intended for maintainers to use;"
  40978. @echo "it deletes files that may require special tools to rebuild."
  40979. @@ -497,12 +511,13 @@
  40980. clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS \
  40981. install-binPROGRAMS uninstall-libgdkincludeHEADERS \
  40982. install-libgdkincludeHEADERS tags mostlyclean-tags distclean-tags \
  40983. -clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
  40984. -check-am installcheck-am installcheck install-exec-am install-exec \
  40985. -install-data-am install-data install-am install uninstall-am uninstall \
  40986. -all-redirect all-am all installdirs mostlyclean-generic \
  40987. -distclean-generic clean-generic maintainer-clean-generic clean \
  40988. -mostlyclean distclean maintainer-clean
  40989. +clean-tags maintainer-clean-tags distdir mostlyclean-depend \
  40990. +distclean-depend clean-depend maintainer-clean-depend info-am info \
  40991. +dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  40992. +install-exec install-data-am install-data install-am install \
  40993. +uninstall-am uninstall all-redirect all-am all installdirs \
  40994. +mostlyclean-generic distclean-generic clean-generic \
  40995. +maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  40996. #
  40997. diff -urN gtk+-1.2.10.orig/gtk/Makefile.in gtk+-1.2.10/gtk/Makefile.in
  40998. --- gtk+-1.2.10.orig/gtk/Makefile.in 2001-04-01 21:14:13.000000000 -0600
  40999. +++ gtk+-1.2.10/gtk/Makefile.in 2006-07-09 02:29:45.000000000 -0600
  41000. @@ -1,6 +1,6 @@
  41001. -# Makefile.in generated automatically by automake 1.4 from Makefile.am
  41002. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  41003. -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
  41004. +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  41005. # This Makefile.in is free software; the Free Software Foundation
  41006. # gives unlimited permission to copy and/or distribute it,
  41007. # with or without modifications, as long as this notice is preserved.
  41008. @@ -59,13 +59,22 @@
  41009. POST_UNINSTALL = :
  41010. host_alias = @host_alias@
  41011. host_triplet = @host@
  41012. +AR = @AR@
  41013. AS = @AS@
  41014. AWK = @AWK@
  41015. CATALOGS = @CATALOGS@
  41016. CATOBJEXT = @CATOBJEXT@
  41017. CC = @CC@
  41018. +CXX = @CXX@
  41019. +CXXCPP = @CXXCPP@
  41020. DATADIRNAME = @DATADIRNAME@
  41021. DLLTOOL = @DLLTOOL@
  41022. +ECHO = @ECHO@
  41023. +EGREP = @EGREP@
  41024. +EXEEXT = @EXEEXT@
  41025. +F77 = @F77@
  41026. +GCJ = @GCJ@
  41027. +GCJFLAGS = @GCJFLAGS@
  41028. GDK_WLIBS = @GDK_WLIBS@
  41029. GENCAT = @GENCAT@
  41030. GLIB_CFLAGS = @GLIB_CFLAGS@
  41031. @@ -85,14 +94,17 @@
  41032. GTK_XIM_FLAGS = @GTK_XIM_FLAGS@
  41033. GT_NO = @GT_NO@
  41034. GT_YES = @GT_YES@
  41035. +HAVE_LIB = @HAVE_LIB@
  41036. INCLUDE_LOCALE_H = @INCLUDE_LOCALE_H@
  41037. INDENT = @INDENT@
  41038. INSTOBJEXT = @INSTOBJEXT@
  41039. INTLDEPS = @INTLDEPS@
  41040. INTLLIBS = @INTLLIBS@
  41041. INTLOBJS = @INTLOBJS@
  41042. +LIB = @LIB@
  41043. LIBTOOL = @LIBTOOL@
  41044. LN_S = @LN_S@
  41045. +LTLIB = @LTLIB@
  41046. LT_AGE = @LT_AGE@
  41047. LT_CURRENT = @LT_CURRENT@
  41048. LT_RELEASE = @LT_RELEASE@
  41049. @@ -101,12 +113,16 @@
  41050. MAKEINFO = @MAKEINFO@
  41051. MKINSTALLDIRS = @MKINSTALLDIRS@
  41052. OBJDUMP = @OBJDUMP@
  41053. +OBJEXT = @OBJEXT@
  41054. PACKAGE = @PACKAGE@
  41055. PERL = @PERL@
  41056. +PKG_CONFIG = @PKG_CONFIG@
  41057. POFILES = @POFILES@
  41058. POSUB = @POSUB@
  41059. RANLIB = @RANLIB@
  41060. +RC = @RC@
  41061. REBUILD = @REBUILD@
  41062. +STRIP = @STRIP@
  41063. STRIP_BEGIN = @STRIP_BEGIN@
  41064. STRIP_DUMMY = @STRIP_DUMMY@
  41065. STRIP_END = @STRIP_END@
  41066. @@ -143,13 +159,15 @@
  41067. # setup source file variables
  41068. #
  41069. # GTK+ header files for public installation (non-generated)
  41070. -gtk_public_h_sources = @STRIP_BEGIN@ gtk.h gtkaccelgroup.h gtkaccellabel.h gtkadjustment.h gtkalignment.h gtkarg.h gtkarrow.h gtkaspectframe.h gtkbin.h gtkbindings.h gtkbbox.h gtkbox.h gtkbutton.h gtkcalendar.h gtkcheckbutton.h gtkcheckmenuitem.h gtkclist.h gtkcolorsel.h gtkcombo.h gtkcompat.h gtkcontainer.h gtkctree.h gtkcurve.h gtkdata.h gtkdebug.h gtkdialog.h gtkdnd.h gtkdrawingarea.h gtkeditable.h gtkentry.h gtkenums.h gtkeventbox.h gtkfilesel.h gtkfixed.h gtkfontsel.h gtkframe.h gtkgamma.h gtkgc.h gtkhandlebox.h gtkhbbox.h gtkhbox.h gtkhpaned.h gtkhruler.h gtkhscale.h gtkhscrollbar.h gtkhseparator.h gtkimage.h gtkinputdialog.h gtkinvisible.h gtkitem.h gtkitemfactory.h gtklabel.h gtklayout.h gtklist.h gtklistitem.h gtkmain.h gtkmenu.h gtkmenubar.h gtkmenufactory.h gtkmenuitem.h gtkmenushell.h gtkmisc.h gtknotebook.h gtkobject.h gtkoptionmenu.h gtkpacker.h gtkpaned.h gtkpixmap.h gtkplug.h gtkpreview.h gtkprivate.h gtkprogress.h gtkprogressbar.h gtkradiobutton.h gtkradiomenuitem.h gtkrange.h gtkrc.h gtkruler.h gtkscale.h gtkscrollbar.h gtkscrolledwindow.h gtkselection.h gtkseparator.h gtksignal.h gtksocket.h gtkspinbutton.h gtkstyle.h gtkstatusbar.h gtktable.h gtktearoffmenuitem.h gtktext.h gtkthemes.h gtktipsquery.h gtktogglebutton.h gtktoolbar.h gtktooltips.h gtktree.h gtktreeitem.h gtktypeutils.h gtkvbbox.h gtkvbox.h gtkviewport.h gtkvpaned.h gtkvruler.h gtkvscale.h gtkvscrollbar.h gtkvseparator.h gtkwidget.h gtkwindow.h @STRIP_END@
  41071. +gtk_public_h_sources = gtk.h gtkaccelgroup.h gtkaccellabel.h gtkadjustment.h gtkalignment.h gtkarg.h gtkarrow.h gtkaspectframe.h gtkbin.h gtkbindings.h gtkbbox.h gtkbox.h gtkbutton.h gtkcalendar.h gtkcheckbutton.h gtkcheckmenuitem.h gtkclist.h gtkcolorsel.h gtkcombo.h gtkcompat.h gtkcontainer.h gtkctree.h gtkcurve.h gtkdata.h gtkdebug.h gtkdialog.h gtkdnd.h gtkdrawingarea.h gtkeditable.h gtkentry.h gtkenums.h gtkeventbox.h gtkfilesel.h gtkfixed.h gtkfontsel.h gtkframe.h gtkgamma.h gtkgc.h gtkhandlebox.h gtkhbbox.h gtkhbox.h gtkhpaned.h gtkhruler.h gtkhscale.h gtkhscrollbar.h gtkhseparator.h gtkimage.h gtkinputdialog.h gtkinvisible.h gtkitem.h gtkitemfactory.h gtklabel.h gtklayout.h gtklist.h gtklistitem.h gtkmain.h gtkmenu.h gtkmenubar.h gtkmenufactory.h gtkmenuitem.h gtkmenushell.h gtkmisc.h gtknotebook.h gtkobject.h gtkoptionmenu.h gtkpacker.h gtkpaned.h gtkpixmap.h gtkplug.h gtkpreview.h gtkprivate.h gtkprogress.h gtkprogressbar.h gtkradiobutton.h gtkradiomenuitem.h gtkrange.h gtkrc.h gtkruler.h gtkscale.h gtkscrollbar.h gtkscrolledwindow.h gtkselection.h gtkseparator.h gtksignal.h gtksocket.h gtkspinbutton.h gtkstyle.h gtkstatusbar.h gtktable.h gtktearoffmenuitem.h gtktext.h gtkthemes.h gtktipsquery.h gtktogglebutton.h gtktoolbar.h gtktooltips.h gtktree.h gtktreeitem.h gtktypeutils.h gtkvbbox.h gtkvbox.h gtkviewport.h gtkvpaned.h gtkvruler.h gtkvscale.h gtkvscrollbar.h gtkvseparator.h gtkwidget.h gtkwindow.h
  41072. +
  41073. # GTK+ header files that don't get installed
  41074. -gtk_private_h_sources = @STRIP_BEGIN@ @STRIP_END@
  41075. +gtk_private_h_sources =
  41076. # GTK+ C sources to build the library from
  41077. -gtk_c_sources = @STRIP_BEGIN@ gtkaccelgroup.c gtkaccellabel.c gtkadjustment.c gtkalignment.c gtkarg.c gtkarrow.c gtkaspectframe.c gtkbin.c gtkbindings.c gtkbbox.c gtkbox.c gtkbutton.c gtkcalendar.c gtkcheckbutton.c gtkcheckmenuitem.c gtkclist.c gtkcolorsel.c gtkcombo.c gtkcontainer.c gtkctree.c gtkcurve.c gtkdata.c gtkdialog.c gtkdnd.c gtkdrawingarea.c gtkeditable.c gtkentry.c gtkeventbox.c gtkfilesel.c gtkfixed.c gtkfontsel.c gtkframe.c gtkgamma.c gtkgc.c gtkhandlebox.c gtkhbbox.c gtkhbox.c gtkhpaned.c gtkhruler.c gtkhscale.c gtkhscrollbar.c gtkhseparator.c gtkimage.c gtkinputdialog.c gtkintl.h gtkinvisible.c gtkitem.c gtkitemfactory.c gtklabel.c gtklayout.c gtklist.c gtklistitem.c gtkmain.c gtkmarshal.c gtkmenu.c gtkmenubar.c gtkmenufactory.c gtkmenuitem.c gtkmenushell.c gtkmisc.c gtknotebook.c gtkobject.c gtkoptionmenu.c gtkpacker.c gtkpaned.c gtkpixmap.c gtkplug.c gtkpreview.c gtkprogress.c gtkprogressbar.c gtkradiobutton.c gtkradiomenuitem.c gtkrange.c gtkrc.c gtkruler.c gtkscale.c gtkscrollbar.c gtkscrolledwindow.c gtkselection.c gtkseparator.c gtksignal.c gtksocket.c gtkspinbutton.c gtkstyle.c gtkstatusbar.c gtktable.c gtktearoffmenuitem.c gtktext.c gtkthemes.c gtktipsquery.c gtktogglebutton.c gtktoolbar.c gtktooltips.c gtktree.c gtktreeitem.c gtktypeutils.c gtkvbbox.c gtkvbox.c gtkviewport.c gtkvpaned.c gtkvruler.c gtkvscale.c gtkvscrollbar.c gtkvseparator.c gtkwidget.c gtkwindow.c fnmatch.c fnmatch.h @STRIP_END@
  41078. +gtk_c_sources = gtkaccelgroup.c gtkaccellabel.c gtkadjustment.c gtkalignment.c gtkarg.c gtkarrow.c gtkaspectframe.c gtkbin.c gtkbindings.c gtkbbox.c gtkbox.c gtkbutton.c gtkcalendar.c gtkcheckbutton.c gtkcheckmenuitem.c gtkclist.c gtkcolorsel.c gtkcombo.c gtkcontainer.c gtkctree.c gtkcurve.c gtkdata.c gtkdialog.c gtkdnd.c gtkdrawingarea.c gtkeditable.c gtkentry.c gtkeventbox.c gtkfilesel.c gtkfixed.c gtkfontsel.c gtkframe.c gtkgamma.c gtkgc.c gtkhandlebox.c gtkhbbox.c gtkhbox.c gtkhpaned.c gtkhruler.c gtkhscale.c gtkhscrollbar.c gtkhseparator.c gtkimage.c gtkinputdialog.c gtkintl.h gtkinvisible.c gtkitem.c gtkitemfactory.c gtklabel.c gtklayout.c gtklist.c gtklistitem.c gtkmain.c gtkmarshal.c gtkmenu.c gtkmenubar.c gtkmenufactory.c gtkmenuitem.c gtkmenushell.c gtkmisc.c gtknotebook.c gtkobject.c gtkoptionmenu.c gtkpacker.c gtkpaned.c gtkpixmap.c gtkplug.c gtkpreview.c gtkprogress.c gtkprogressbar.c gtkradiobutton.c gtkradiomenuitem.c gtkrange.c gtkrc.c gtkruler.c gtkscale.c gtkscrollbar.c gtkscrolledwindow.c gtkselection.c gtkseparator.c gtksignal.c gtksocket.c gtkspinbutton.c gtkstyle.c gtkstatusbar.c gtktable.c gtktearoffmenuitem.c gtktext.c gtkthemes.c gtktipsquery.c gtktogglebutton.c gtktoolbar.c gtktooltips.c gtktree.c gtktreeitem.c gtktypeutils.c gtkvbbox.c gtkvbox.c gtkviewport.c gtkvpaned.c gtkvruler.c gtkvscale.c gtkvscrollbar.c gtkvseparator.c gtkwidget.c gtkwindow.c fnmatch.c fnmatch.h
  41079. +
  41080. # we use our own built_sources variable rules to avoid automake's
  41081. # BUILT_SOURCES oddities
  41082. @@ -158,15 +176,18 @@
  41083. # content
  41084. #
  41085. # built sources that don't get installed
  41086. -gtk_built_sources = @STRIP_BEGIN@ stamp-gtk.defs stamp-gtktypebuiltins.h stamp-gtkmarshal.h gtktypebuiltins_vars.c gtktypebuiltins_ids.c gtktypebuiltins_evals.c gtkmarshal.c gtk.defs @STRIP_END@
  41087. +gtk_built_sources = stamp-gtk.defs stamp-gtktypebuiltins.h stamp-gtkmarshal.h gtktypebuiltins_vars.c gtktypebuiltins_ids.c gtktypebuiltins_evals.c gtkmarshal.c gtk.defs
  41088. +
  41089. # built sources that get installed with the header files
  41090. -gtk_built_public_sources = @STRIP_BEGIN@ gtkmarshal.h gtktypebuiltins.h @STRIP_END@
  41091. +gtk_built_public_sources = gtkmarshal.h gtktypebuiltins.h
  41092. +
  41093. # non-header sources (headers should be specified in the above variables)
  41094. # that don't serve as direct make target sources, i.e. they don't have
  41095. # their own .lo rules and don't get publically installed
  41096. -gtk_extra_sources = @STRIP_BEGIN@ gtkfeatures.h.in makeenums.pl makeenums.awk maketypes.awk makeenums.h gtkargcollector.c gtk-boxed.defs genmarshal.pl gtkmarshal.list @STRIP_END@
  41097. +gtk_extra_sources = gtkfeatures.h.in makeenums.pl makeenums.awk maketypes.awk makeenums.h gtkargcollector.c gtk-boxed.defs genmarshal.pl gtkmarshal.list
  41098. +
  41099. # Extra headers that are used for enum type array/id generation
  41100. gdk_headers = @STRIP_BEGIN@ ../gdk/gdktypes.h ../gdk/gdkrgb.h @STRIP_END@
  41101. @@ -177,10 +198,10 @@
  41102. #
  41103. libgtkinclude_HEADERS = $(gtk_public_h_sources) $(gtk_built_public_sources) gtkfeatures.h
  41104. libgtk_la_SOURCES = $(gtk_c_sources)
  41105. -MAINTAINERCLEANFILES = $(gtk_built_public_sources) $(gtk_built_sources)
  41106. -EXTRA_HEADERS =
  41107. +MAINTAINERCLEANFILES = $(gtk_built_public_sources) $(gtk_built_sources)
  41108. +EXTRA_HEADERS =
  41109. -EXTRA_DIST = $(gtk_private_h_sources) $(gtk_built_sources) $(gtk_built_public_sources) $(gtk_extra_sources) @STRIP_BEGIN@ testgtk.1 testgtkrc testgtkrc2 circles.xbm line-arrow.xbm line-wrap.xbm tree_plus.xbm tree_minus.xbm 3DRings.xpm FilesQueue.xpm Modeller.xpm check-y.xpm check-n.xpm marble.xpm tree_minus.xpm tree_plus.xpm test.xpm check-y.xpm check-n.xpm test.xpm $(gtkconf_DATA) @STRIP_END@
  41110. +EXTRA_DIST = $(gtk_private_h_sources) $(gtk_built_sources) $(gtk_built_public_sources) $(gtk_extra_sources) @STRIP_BEGIN@ testgtk.1 testgtkrc testgtkrc2 circles.xbm line-arrow.xbm line-wrap.xbm tree_plus.xbm tree_minus.xbm 3DRings.xpm FilesQueue.xpm Modeller.xpm check-y.xpm check-n.xpm marble.xpm tree_minus.xpm tree_plus.xpm test.xpm check-y.xpm check-n.xpm test.xpm $(gtkconf_DATA) @STRIP_END@
  41111. #
  41112. @@ -188,7 +209,7 @@
  41113. #
  41114. # setup autogeneration dependancies
  41115. gen_sources = xgen-gdef xgen-gtbh xgen-gtbvc xgen-gtbic xgen-gtbec xgen-gmh xgen-gmc
  41116. -CLEANFILES = $(gen_sources)
  41117. +CLEANFILES = $(gen_sources)
  41118. gtkconfdir = $(sysconfdir)/gtk
  41119. gtkconf_DATA = gtkrc.az gtkrc.el gtkrc.eo gtkrc.he gtkrc.hy gtkrc.ja gtkrc.ko gtkrc.ru gtkrc.tr gtkrc.th gtkrc.uk gtkrc.iso-8859-2 gtkrc.iso-8859-5 gtkrc.iso-8859-13 gtkrc.iso-8859-14 gtkrc.iso-8859-15 gtkrc.zh_CN gtkrc.zh_TW.big5 gtkrc.ka_GE.georgianacademy gtkrc.ka_GE.georgianps gtkrc.vi_VN.tcvn gtkrc.vi_VN.viscii gtkrc.cp1251 gtkrc.cp1255
  41120. @@ -252,25 +273,28 @@
  41121. gtktooltips.lo gtktree.lo gtktreeitem.lo gtktypeutils.lo gtkvbbox.lo \
  41122. gtkvbox.lo gtkviewport.lo gtkvpaned.lo gtkvruler.lo gtkvscale.lo \
  41123. gtkvscrollbar.lo gtkvseparator.lo gtkwidget.lo gtkwindow.lo fnmatch.lo
  41124. +noinst_PROGRAMS = testgtk$(EXEEXT) testinput$(EXEEXT) \
  41125. +testselection$(EXEEXT) testrgb$(EXEEXT) testdnd$(EXEEXT) \
  41126. +simple$(EXEEXT)
  41127. PROGRAMS = $(noinst_PROGRAMS)
  41128. testgtk_SOURCES = testgtk.c
  41129. -testgtk_OBJECTS = testgtk.o
  41130. +testgtk_OBJECTS = testgtk.$(OBJEXT)
  41131. testgtk_LDFLAGS =
  41132. testinput_SOURCES = testinput.c
  41133. -testinput_OBJECTS = testinput.o
  41134. +testinput_OBJECTS = testinput.$(OBJEXT)
  41135. testinput_LDFLAGS =
  41136. testselection_SOURCES = testselection.c
  41137. -testselection_OBJECTS = testselection.o
  41138. +testselection_OBJECTS = testselection.$(OBJEXT)
  41139. testselection_LDFLAGS =
  41140. testrgb_SOURCES = testrgb.c
  41141. -testrgb_OBJECTS = testrgb.o
  41142. +testrgb_OBJECTS = testrgb.$(OBJEXT)
  41143. testrgb_LDFLAGS =
  41144. testdnd_SOURCES = testdnd.c
  41145. -testdnd_OBJECTS = testdnd.o
  41146. +testdnd_OBJECTS = testdnd.$(OBJEXT)
  41147. testdnd_LDFLAGS =
  41148. simple_SOURCES = simple.c
  41149. -simple_OBJECTS = simple.o
  41150. +simple_OBJECTS = simple.$(OBJEXT)
  41151. simple_LDFLAGS =
  41152. CFLAGS = @CFLAGS@
  41153. COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  41154. @@ -286,18 +310,52 @@
  41155. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  41156. -TAR = gtar
  41157. +TAR = tar
  41158. GZIP_ENV = --best
  41159. +DEP_FILES = .deps/fnmatch.P .deps/gtkaccelgroup.P .deps/gtkaccellabel.P \
  41160. +.deps/gtkadjustment.P .deps/gtkalignment.P .deps/gtkarg.P \
  41161. +.deps/gtkarrow.P .deps/gtkaspectframe.P .deps/gtkbbox.P .deps/gtkbin.P \
  41162. +.deps/gtkbindings.P .deps/gtkbox.P .deps/gtkbutton.P \
  41163. +.deps/gtkcalendar.P .deps/gtkcheckbutton.P .deps/gtkcheckmenuitem.P \
  41164. +.deps/gtkclist.P .deps/gtkcolorsel.P .deps/gtkcombo.P \
  41165. +.deps/gtkcontainer.P .deps/gtkctree.P .deps/gtkcurve.P .deps/gtkdata.P \
  41166. +.deps/gtkdialog.P .deps/gtkdnd.P .deps/gtkdrawingarea.P \
  41167. +.deps/gtkeditable.P .deps/gtkentry.P .deps/gtkeventbox.P \
  41168. +.deps/gtkfilesel.P .deps/gtkfixed.P .deps/gtkfontsel.P .deps/gtkframe.P \
  41169. +.deps/gtkgamma.P .deps/gtkgc.P .deps/gtkhandlebox.P .deps/gtkhbbox.P \
  41170. +.deps/gtkhbox.P .deps/gtkhpaned.P .deps/gtkhruler.P .deps/gtkhscale.P \
  41171. +.deps/gtkhscrollbar.P .deps/gtkhseparator.P .deps/gtkimage.P \
  41172. +.deps/gtkinputdialog.P .deps/gtkinvisible.P .deps/gtkitem.P \
  41173. +.deps/gtkitemfactory.P .deps/gtklabel.P .deps/gtklayout.P \
  41174. +.deps/gtklist.P .deps/gtklistitem.P .deps/gtkmain.P .deps/gtkmarshal.P \
  41175. +.deps/gtkmenu.P .deps/gtkmenubar.P .deps/gtkmenufactory.P \
  41176. +.deps/gtkmenuitem.P .deps/gtkmenushell.P .deps/gtkmisc.P \
  41177. +.deps/gtknotebook.P .deps/gtkobject.P .deps/gtkoptionmenu.P \
  41178. +.deps/gtkpacker.P .deps/gtkpaned.P .deps/gtkpixmap.P .deps/gtkplug.P \
  41179. +.deps/gtkpreview.P .deps/gtkprogress.P .deps/gtkprogressbar.P \
  41180. +.deps/gtkradiobutton.P .deps/gtkradiomenuitem.P .deps/gtkrange.P \
  41181. +.deps/gtkrc.P .deps/gtkruler.P .deps/gtkscale.P .deps/gtkscrollbar.P \
  41182. +.deps/gtkscrolledwindow.P .deps/gtkselection.P .deps/gtkseparator.P \
  41183. +.deps/gtksignal.P .deps/gtksocket.P .deps/gtkspinbutton.P \
  41184. +.deps/gtkstatusbar.P .deps/gtkstyle.P .deps/gtktable.P \
  41185. +.deps/gtktearoffmenuitem.P .deps/gtktext.P .deps/gtkthemes.P \
  41186. +.deps/gtktipsquery.P .deps/gtktogglebutton.P .deps/gtktoolbar.P \
  41187. +.deps/gtktooltips.P .deps/gtktree.P .deps/gtktreeitem.P \
  41188. +.deps/gtktypeutils.P .deps/gtkvbbox.P .deps/gtkvbox.P \
  41189. +.deps/gtkviewport.P .deps/gtkvpaned.P .deps/gtkvruler.P \
  41190. +.deps/gtkvscale.P .deps/gtkvscrollbar.P .deps/gtkvseparator.P \
  41191. +.deps/gtkwidget.P .deps/gtkwindow.P .deps/simple.P .deps/testdnd.P \
  41192. +.deps/testgtk.P .deps/testinput.P .deps/testrgb.P .deps/testselection.P
  41193. SOURCES = $(libgtk_la_SOURCES) testgtk.c testinput.c testselection.c testrgb.c testdnd.c simple.c
  41194. -OBJECTS = $(libgtk_la_OBJECTS) testgtk.o testinput.o testselection.o testrgb.o testdnd.o simple.o
  41195. +OBJECTS = $(libgtk_la_OBJECTS) testgtk.$(OBJEXT) testinput.$(OBJEXT) testselection.$(OBJEXT) testrgb.$(OBJEXT) testdnd.$(OBJEXT) simple.$(OBJEXT)
  41196. all: all-redirect
  41197. .SUFFIXES:
  41198. -.SUFFIXES: .S .c .lo .o .s
  41199. +.SUFFIXES: .S .c .lo .o .obj .s
  41200. $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  41201. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps gtk/Makefile
  41202. + cd $(top_srcdir) && $(AUTOMAKE) --gnu gtk/Makefile
  41203. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  41204. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  41205. cd $(top_builddir) \
  41206. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  41207. @@ -329,8 +387,10 @@
  41208. $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
  41209. done
  41210. -.c.o:
  41211. - $(COMPILE) -c $<
  41212. +# FIXME: We should only use cygpath when building on Windows,
  41213. +# and only if it is available.
  41214. +.c.obj:
  41215. + $(COMPILE) -c `cygpath -w $<`
  41216. .s.o:
  41217. $(COMPILE) -c $<
  41218. @@ -340,6 +400,7 @@
  41219. mostlyclean-compile:
  41220. -rm -f *.o core *.core
  41221. + -rm -f *.$(OBJEXT)
  41222. clean-compile:
  41223. @@ -348,9 +409,6 @@
  41224. maintainer-clean-compile:
  41225. -.c.lo:
  41226. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  41227. -
  41228. .s.lo:
  41229. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  41230. @@ -379,28 +437,28 @@
  41231. maintainer-clean-noinstPROGRAMS:
  41232. -testgtk: $(testgtk_OBJECTS) $(testgtk_DEPENDENCIES)
  41233. - @rm -f testgtk
  41234. +testgtk$(EXEEXT): $(testgtk_OBJECTS) $(testgtk_DEPENDENCIES)
  41235. + @rm -f testgtk$(EXEEXT)
  41236. $(LINK) $(testgtk_LDFLAGS) $(testgtk_OBJECTS) $(testgtk_LDADD) $(LIBS)
  41237. -testinput: $(testinput_OBJECTS) $(testinput_DEPENDENCIES)
  41238. - @rm -f testinput
  41239. +testinput$(EXEEXT): $(testinput_OBJECTS) $(testinput_DEPENDENCIES)
  41240. + @rm -f testinput$(EXEEXT)
  41241. $(LINK) $(testinput_LDFLAGS) $(testinput_OBJECTS) $(testinput_LDADD) $(LIBS)
  41242. -testselection: $(testselection_OBJECTS) $(testselection_DEPENDENCIES)
  41243. - @rm -f testselection
  41244. +testselection$(EXEEXT): $(testselection_OBJECTS) $(testselection_DEPENDENCIES)
  41245. + @rm -f testselection$(EXEEXT)
  41246. $(LINK) $(testselection_LDFLAGS) $(testselection_OBJECTS) $(testselection_LDADD) $(LIBS)
  41247. -testrgb: $(testrgb_OBJECTS) $(testrgb_DEPENDENCIES)
  41248. - @rm -f testrgb
  41249. +testrgb$(EXEEXT): $(testrgb_OBJECTS) $(testrgb_DEPENDENCIES)
  41250. + @rm -f testrgb$(EXEEXT)
  41251. $(LINK) $(testrgb_LDFLAGS) $(testrgb_OBJECTS) $(testrgb_LDADD) $(LIBS)
  41252. -testdnd: $(testdnd_OBJECTS) $(testdnd_DEPENDENCIES)
  41253. - @rm -f testdnd
  41254. +testdnd$(EXEEXT): $(testdnd_OBJECTS) $(testdnd_DEPENDENCIES)
  41255. + @rm -f testdnd$(EXEEXT)
  41256. $(LINK) $(testdnd_LDFLAGS) $(testdnd_OBJECTS) $(testdnd_LDADD) $(LIBS)
  41257. -simple: $(simple_OBJECTS) $(simple_DEPENDENCIES)
  41258. - @rm -f simple
  41259. +simple$(EXEEXT): $(simple_OBJECTS) $(simple_DEPENDENCIES)
  41260. + @rm -f simple$(EXEEXT)
  41261. $(LINK) $(simple_LDFLAGS) $(simple_OBJECTS) $(simple_LDADD) $(LIBS)
  41262. install-gtkconfDATA: $(gtkconf_DATA)
  41263. @@ -455,7 +513,7 @@
  41264. awk ' { files[$$0] = 1; } \
  41265. END { for (i in files) print i; }'`; \
  41266. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  41267. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  41268. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  41269. mostlyclean-tags:
  41270. @@ -471,6 +529,11 @@
  41271. subdir = gtk
  41272. distdir: $(DISTFILES)
  41273. + here=`cd $(top_builddir) && pwd`; \
  41274. + top_distdir=`cd $(top_distdir) && pwd`; \
  41275. + distdir=`cd $(distdir) && pwd`; \
  41276. + cd $(top_srcdir) \
  41277. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu gtk/Makefile
  41278. @for file in $(DISTFILES); do \
  41279. d=$(srcdir); \
  41280. if test -d $$d/$$file; then \
  41281. @@ -481,866 +544,38 @@
  41282. || cp -p $$d/$$file $(distdir)/$$file || :; \
  41283. fi; \
  41284. done
  41285. -fnmatch.lo fnmatch.o : fnmatch.c ../config.h fnmatch.h
  41286. -gtkaccelgroup.lo gtkaccelgroup.o : gtkaccelgroup.c gtkaccelgroup.h \
  41287. - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41288. - ../gdk/gdkrgb.h gtkobject.h gtkarg.h gtktypeutils.h \
  41289. - gtktypebuiltins.h gtkenums.h gtkdebug.h ../gdk/gdkkeysyms.h \
  41290. - gtksignal.h gtkmarshal.h gtkwidget.h gtkaccelgroup.h \
  41291. - gtkadjustment.h gtkdata.h gtkstyle.h
  41292. -gtkaccellabel.lo gtkaccellabel.o : gtkaccellabel.c gtkmain.h \
  41293. - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41294. - ../gdk/gdkrgb.h gtkwidget.h gtkaccelgroup.h gtkobject.h \
  41295. - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
  41296. - gtkadjustment.h gtkdata.h gtkstyle.h gtksignal.h gtkmarshal.h \
  41297. - gtkaccellabel.h gtklabel.h gtkmisc.h
  41298. -gtkadjustment.lo gtkadjustment.o : gtkadjustment.c gtkadjustment.h \
  41299. - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41300. - ../gdk/gdkrgb.h gtkdata.h gtkobject.h gtkarg.h gtktypeutils.h \
  41301. - gtktypebuiltins.h gtkenums.h gtkdebug.h gtksignal.h \
  41302. - gtkmarshal.h
  41303. -gtkalignment.lo gtkalignment.o : gtkalignment.c gtkalignment.h \
  41304. - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41305. - ../gdk/gdkrgb.h gtkbin.h gtkcontainer.h gtkenums.h gtkwidget.h \
  41306. - gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
  41307. - gtktypebuiltins.h gtkdebug.h gtkadjustment.h gtkdata.h \
  41308. - gtkstyle.h
  41309. -gtkarg.lo gtkarg.o : gtkarg.c gtkobject.h gtkarg.h gtktypeutils.h \
  41310. - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkargcollector.c
  41311. -gtkarrow.lo gtkarrow.o : gtkarrow.c gtkarrow.h ../gdk/gdk.h \
  41312. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkmisc.h \
  41313. - gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
  41314. - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkadjustment.h \
  41315. - gtkdata.h gtkstyle.h
  41316. -gtkaspectframe.lo gtkaspectframe.o : gtkaspectframe.c gtkaspectframe.h \
  41317. - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41318. - ../gdk/gdkrgb.h gtkbin.h gtkcontainer.h gtkenums.h gtkwidget.h \
  41319. - gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
  41320. - gtktypebuiltins.h gtkdebug.h gtkadjustment.h gtkdata.h \
  41321. - gtkstyle.h gtkframe.h
  41322. -gtkbbox.lo gtkbbox.o : gtkbbox.c gtkbbox.h gtkbox.h ../gdk/gdk.h \
  41323. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41324. - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
  41325. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41326. - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h
  41327. -gtkbin.lo gtkbin.o : gtkbin.c gtkbin.h ../gdk/gdk.h ../gdk/gdktypes.h \
  41328. - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkcontainer.h gtkenums.h \
  41329. - gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
  41330. - gtktypebuiltins.h gtkdebug.h gtkadjustment.h gtkdata.h \
  41331. - gtkstyle.h
  41332. -gtkbindings.lo gtkbindings.o : gtkbindings.c gtkbindings.h ../gdk/gdk.h \
  41333. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41334. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41335. - gtkenums.h gtkdebug.h gtksignal.h gtkmarshal.h gtkwidget.h \
  41336. - gtkaccelgroup.h gtkadjustment.h gtkdata.h gtkstyle.h gtkrc.h \
  41337. - gtkwidget.h
  41338. -gtkbox.lo gtkbox.o : gtkbox.c gtkbox.h ../gdk/gdk.h ../gdk/gdktypes.h \
  41339. - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkcontainer.h gtkenums.h \
  41340. - gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
  41341. - gtktypebuiltins.h gtkdebug.h gtkadjustment.h gtkdata.h \
  41342. - gtkstyle.h
  41343. -gtkbutton.lo gtkbutton.o : gtkbutton.c gtkbutton.h ../gdk/gdk.h \
  41344. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkbin.h \
  41345. - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
  41346. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41347. - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtklabel.h \
  41348. - gtkmisc.h gtkmain.h gtksignal.h gtkmarshal.h
  41349. -gtkcalendar.lo gtkcalendar.o : gtkcalendar.c gtkcalendar.h ../gdk/gdk.h \
  41350. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41351. - gtksignal.h gtkenums.h gtkobject.h gtkarg.h gtktypeutils.h \
  41352. - gtktypebuiltins.h gtkdebug.h gtkmarshal.h gtkwidget.h \
  41353. - gtkaccelgroup.h gtkadjustment.h gtkdata.h gtkstyle.h \
  41354. - ../gdk/gdkkeysyms.h
  41355. -gtkcheckbutton.lo gtkcheckbutton.o : gtkcheckbutton.c gtkcheckbutton.h \
  41356. - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41357. - ../gdk/gdkrgb.h gtktogglebutton.h gtkbutton.h gtkbin.h \
  41358. - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
  41359. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41360. - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtklabel.h \
  41361. - gtkmisc.h
  41362. -gtkcheckmenuitem.lo gtkcheckmenuitem.o : gtkcheckmenuitem.c \
  41363. - gtkcheckmenuitem.h ../gdk/gdk.h ../gdk/gdktypes.h \
  41364. - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkmenuitem.h gtkitem.h \
  41365. - gtkbin.h gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
  41366. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41367. - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtkaccellabel.h \
  41368. - gtklabel.h gtkmisc.h gtksignal.h gtkmarshal.h
  41369. -gtkclist.lo gtkclist.o : gtkclist.c ../config.h gtkmain.h ../gdk/gdk.h \
  41370. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41371. - gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
  41372. - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkadjustment.h \
  41373. - gtkdata.h gtkstyle.h gtkclist.h gtksignal.h gtkmarshal.h \
  41374. - gtkalignment.h gtkbin.h gtkcontainer.h gtklabel.h gtkmisc.h \
  41375. - gtkbutton.h gtkhscrollbar.h gtkscrollbar.h gtkrange.h \
  41376. - gtkvscrollbar.h gtkbindings.h gtkdnd.h gtkselection.h \
  41377. - gtkwindow.h ../gdk/gdkx.h ../gdk/gdkprivate.h \
  41378. - ../gdk/gdkkeysyms.h
  41379. -gtkcolorsel.lo gtkcolorsel.o : gtkcolorsel.c ../gdk/gdk.h \
  41380. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41381. - gtkcolorsel.h gtkwindow.h gtkaccelgroup.h gtkobject.h gtkarg.h \
  41382. - gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h gtkbin.h \
  41383. - gtkcontainer.h gtkwidget.h gtkadjustment.h gtkdata.h gtkstyle.h \
  41384. - gtkvbox.h gtkbox.h gtkframe.h gtkpreview.h gtkbutton.h \
  41385. - gtkentry.h gtkeditable.h gtkhbox.h gtklabel.h gtkmisc.h \
  41386. - gtkmain.h gtksignal.h gtkmarshal.h gtkrange.h gtkscale.h \
  41387. - gtkhscale.h gtktable.h gtkeventbox.h gtkwindow.h gtkhbbox.h \
  41388. - gtkbbox.h gtkintl.h ../config.h gtkdnd.h gtkselection.h \
  41389. - gtkselection.h
  41390. -gtkcombo.lo gtkcombo.o : gtkcombo.c gtkarrow.h ../gdk/gdk.h \
  41391. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkmisc.h \
  41392. - gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
  41393. - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkadjustment.h \
  41394. - gtkdata.h gtkstyle.h gtklabel.h gtklist.h gtkcontainer.h \
  41395. - gtklistitem.h gtkitem.h gtkbin.h gtkentry.h gtkeditable.h \
  41396. - gtkeventbox.h gtkbutton.h gtklistitem.h gtkscrolledwindow.h \
  41397. - gtkhscrollbar.h gtkscrollbar.h gtkrange.h gtkvscrollbar.h \
  41398. - gtkviewport.h gtkmain.h gtksignal.h gtkmarshal.h gtkwindow.h \
  41399. - ../gdk/gdkkeysyms.h gtkcombo.h gtkhbox.h gtkbox.h gtkframe.h
  41400. -gtkcontainer.lo gtkcontainer.o : gtkcontainer.c gtkcontainer.h \
  41401. - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41402. - ../gdk/gdkrgb.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
  41403. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41404. - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtkprivate.h \
  41405. - gtksignal.h gtkmarshal.h gtkmain.h
  41406. -gtkctree.lo gtkctree.o : gtkctree.c gtkctree.h gtkclist.h ../gdk/gdk.h \
  41407. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41408. - gtksignal.h gtkenums.h gtkobject.h gtkarg.h gtktypeutils.h \
  41409. - gtktypebuiltins.h gtkdebug.h gtkmarshal.h gtkalignment.h \
  41410. - gtkbin.h gtkcontainer.h gtkwidget.h gtkaccelgroup.h \
  41411. - gtkadjustment.h gtkdata.h gtkstyle.h gtklabel.h gtkmisc.h \
  41412. - gtkbutton.h gtkhscrollbar.h gtkscrollbar.h gtkrange.h \
  41413. - gtkvscrollbar.h gtkbindings.h gtkmain.h gtkdnd.h gtkselection.h \
  41414. - ../gdk/gdkx.h ../gdk/gdkprivate.h ../gdk/gdkkeysyms.h
  41415. -gtkcurve.lo gtkcurve.o : gtkcurve.c gtkcurve.h ../gdk/gdk.h \
  41416. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41417. - gtkdrawingarea.h gtkwidget.h gtkaccelgroup.h gtkobject.h \
  41418. - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
  41419. - gtkadjustment.h gtkdata.h gtkstyle.h gtkdrawingarea.h gtkmain.h \
  41420. - gtkradiobutton.h gtkcheckbutton.h gtktogglebutton.h gtkbutton.h \
  41421. - gtkbin.h gtkcontainer.h gtksignal.h gtkmarshal.h gtktable.h
  41422. -gtkdata.lo gtkdata.o : gtkdata.c gtkdata.h ../gdk/gdk.h \
  41423. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41424. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41425. - gtkenums.h gtkdebug.h gtksignal.h gtkmarshal.h
  41426. -gtkdialog.lo gtkdialog.o : gtkdialog.c gtkbutton.h ../gdk/gdk.h \
  41427. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkbin.h \
  41428. - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
  41429. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41430. - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtkdialog.h \
  41431. - gtkwindow.h gtkhbox.h gtkbox.h gtkhseparator.h gtkseparator.h \
  41432. - gtkvbox.h
  41433. -gtkdnd.lo gtkdnd.o : gtkdnd.c ../gdk/gdkx.h ../gdk/gdkprivate.h \
  41434. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkkeysyms.h \
  41435. - gtkdnd.h ../gdk/gdk.h ../gdk/gdkrgb.h gtkenums.h gtkwidget.h \
  41436. - gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
  41437. - gtktypebuiltins.h gtkdebug.h gtkadjustment.h gtkdata.h \
  41438. - gtkstyle.h gtkselection.h gtkinvisible.h gtkbin.h \
  41439. - gtkcontainer.h gtkmain.h gtksignal.h gtkmarshal.h gtkwindow.h
  41440. -gtkdrawingarea.lo gtkdrawingarea.o : gtkdrawingarea.c gtkdrawingarea.h \
  41441. - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41442. - ../gdk/gdkrgb.h gtkwidget.h gtkaccelgroup.h gtkobject.h \
  41443. - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
  41444. - gtkadjustment.h gtkdata.h gtkstyle.h
  41445. -gtkeditable.lo gtkeditable.o : gtkeditable.c ../gdk/gdkx.h \
  41446. - ../gdk/gdkprivate.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41447. - ../gdk/gdkkeysyms.h ../gdk/gdki18n.h gtkeditable.h ../gdk/gdk.h \
  41448. - ../gdk/gdkrgb.h gtkwidget.h gtkaccelgroup.h gtkobject.h \
  41449. - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
  41450. - gtkadjustment.h gtkdata.h gtkstyle.h gtkmain.h gtkselection.h \
  41451. - gtksignal.h gtkmarshal.h
  41452. -gtkentry.lo gtkentry.o : gtkentry.c ../gdk/gdkkeysyms.h ../gdk/gdki18n.h \
  41453. - gtkentry.h ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41454. - ../gdk/gdkrgb.h gtkeditable.h gtkwidget.h gtkaccelgroup.h \
  41455. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41456. - gtkenums.h gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h \
  41457. - gtkmain.h gtkselection.h gtksignal.h gtkmarshal.h gtkstyle.h
  41458. -gtkeventbox.lo gtkeventbox.o : gtkeventbox.c gtksignal.h ../gdk/gdk.h \
  41459. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41460. - gtkenums.h gtkobject.h gtkarg.h gtktypeutils.h \
  41461. - gtktypebuiltins.h gtkdebug.h gtkmarshal.h gtkeventbox.h \
  41462. - gtkbin.h gtkcontainer.h gtkwidget.h gtkaccelgroup.h \
  41463. - gtkadjustment.h gtkdata.h gtkstyle.h
  41464. -gtkfilesel.lo gtkfilesel.o : gtkfilesel.c fnmatch.h ../gdk/gdkkeysyms.h \
  41465. - gtkbutton.h ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41466. - ../gdk/gdkrgb.h gtkbin.h gtkcontainer.h gtkenums.h gtkwidget.h \
  41467. - gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
  41468. - gtktypebuiltins.h gtkdebug.h gtkadjustment.h gtkdata.h \
  41469. - gtkstyle.h gtkentry.h gtkeditable.h gtkfilesel.h gtkwindow.h \
  41470. - gtkhbox.h gtkbox.h gtkhbbox.h gtkbbox.h gtklabel.h gtkmisc.h \
  41471. - gtklist.h gtklistitem.h gtkitem.h gtklistitem.h gtkmain.h \
  41472. - gtkscrolledwindow.h gtkhscrollbar.h gtkscrollbar.h gtkrange.h \
  41473. - gtkvscrollbar.h gtkviewport.h gtksignal.h gtkmarshal.h \
  41474. - gtkvbox.h gtkmenu.h gtkmenushell.h gtkmenuitem.h \
  41475. - gtkoptionmenu.h gtkbutton.h gtkclist.h gtksignal.h \
  41476. - gtkalignment.h gtklabel.h gtkdialog.h gtkintl.h ../config.h
  41477. -gtkfixed.lo gtkfixed.o : gtkfixed.c gtkfixed.h ../gdk/gdk.h \
  41478. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41479. - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
  41480. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41481. - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h
  41482. -gtkfontsel.lo gtkfontsel.o : gtkfontsel.c ../gdk/gdkx.h \
  41483. - ../gdk/gdkprivate.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41484. - ../gdk/gdkkeysyms.h gtkbutton.h ../gdk/gdk.h ../gdk/gdkrgb.h \
  41485. - gtkbin.h gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
  41486. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41487. - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h \
  41488. - gtkcheckbutton.h gtktogglebutton.h gtkbutton.h gtkclist.h \
  41489. - gtksignal.h gtkmarshal.h gtkalignment.h gtklabel.h gtkmisc.h \
  41490. - gtkhscrollbar.h gtkscrollbar.h gtkrange.h gtkvscrollbar.h \
  41491. - gtkentry.h gtkeditable.h gtkfontsel.h gtkwindow.h gtknotebook.h \
  41492. - gtkframe.h gtkhbbox.h gtkbbox.h gtkbox.h gtkhbox.h gtklabel.h \
  41493. - gtknotebook.h gtkradiobutton.h gtkcheckbutton.h gtksignal.h \
  41494. - gtktable.h gtkvbox.h gtkscrolledwindow.h gtkviewport.h \
  41495. - gtkintl.h ../config.h
  41496. -gtkframe.lo gtkframe.o : gtkframe.c gtkframe.h ../gdk/gdk.h \
  41497. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkbin.h \
  41498. - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
  41499. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41500. - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h
  41501. -gtkgamma.lo gtkgamma.o : gtkgamma.c gtkgamma.h ../gdk/gdk.h \
  41502. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkvbox.h \
  41503. - gtkbox.h gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
  41504. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41505. - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtkcurve.h \
  41506. - gtkdrawingarea.h gtkdialog.h gtkwindow.h gtkbin.h \
  41507. - gtkdrawingarea.h gtkentry.h gtkeditable.h gtkhbox.h gtklabel.h \
  41508. - gtkmisc.h gtkmain.h gtkpixmap.h gtkradiobutton.h \
  41509. - gtkcheckbutton.h gtktogglebutton.h gtkbutton.h gtksignal.h \
  41510. - gtkmarshal.h gtktable.h gtkvbox.h gtkwindow.h gtkintl.h \
  41511. - ../config.h
  41512. -gtkgc.lo gtkgc.o : gtkgc.c gtkgc.h ../gdk/gdk.h ../gdk/gdktypes.h \
  41513. - ../gdk/gdkcursors.h ../gdk/gdkrgb.h
  41514. -gtkhandlebox.lo gtkhandlebox.o : gtkhandlebox.c ../gdk/gdkx.h \
  41515. - ../gdk/gdkprivate.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41516. - gtkhandlebox.h ../gdk/gdk.h ../gdk/gdkrgb.h gtkbin.h \
  41517. - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
  41518. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41519. - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtkinvisible.h \
  41520. - gtkmain.h gtksignal.h gtkmarshal.h gtkwindow.h
  41521. -gtkhbbox.lo gtkhbbox.o : gtkhbbox.c gtkhbbox.h gtkbbox.h gtkbox.h \
  41522. - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41523. - ../gdk/gdkrgb.h gtkcontainer.h gtkenums.h gtkwidget.h \
  41524. - gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
  41525. - gtktypebuiltins.h gtkdebug.h gtkadjustment.h gtkdata.h \
  41526. - gtkstyle.h
  41527. -gtkhbox.lo gtkhbox.o : gtkhbox.c gtkhbox.h ../gdk/gdk.h \
  41528. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkbox.h \
  41529. - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
  41530. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41531. - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h
  41532. -gtkhpaned.lo gtkhpaned.o : gtkhpaned.c gtkhpaned.h ../gdk/gdk.h \
  41533. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41534. - gtkpaned.h gtkcontainer.h gtkenums.h gtkwidget.h \
  41535. - gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
  41536. - gtktypebuiltins.h gtkdebug.h gtkadjustment.h gtkdata.h \
  41537. - gtkstyle.h gtkmain.h gtksignal.h gtkmarshal.h
  41538. -gtkhruler.lo gtkhruler.o : gtkhruler.c gtkhruler.h ../gdk/gdk.h \
  41539. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41540. - gtkruler.h gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h \
  41541. - gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
  41542. - gtkadjustment.h gtkdata.h gtkstyle.h
  41543. -gtkhscale.lo gtkhscale.o : gtkhscale.c gtkhscale.h ../gdk/gdk.h \
  41544. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41545. - gtkscale.h gtkrange.h gtkadjustment.h gtkdata.h gtkobject.h \
  41546. - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
  41547. - gtkwidget.h gtkaccelgroup.h gtkstyle.h gtksignal.h gtkmarshal.h \
  41548. - ../gdk/gdkkeysyms.h
  41549. -gtkhscrollbar.lo gtkhscrollbar.o : gtkhscrollbar.c gtkhscrollbar.h \
  41550. - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41551. - ../gdk/gdkrgb.h gtkscrollbar.h gtkrange.h gtkadjustment.h \
  41552. - gtkdata.h gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41553. - gtkenums.h gtkdebug.h gtkwidget.h gtkaccelgroup.h gtkstyle.h \
  41554. - gtksignal.h gtkmarshal.h ../gdk/gdkkeysyms.h
  41555. -gtkhseparator.lo gtkhseparator.o : gtkhseparator.c gtkhseparator.h \
  41556. - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41557. - ../gdk/gdkrgb.h gtkseparator.h gtkwidget.h gtkaccelgroup.h \
  41558. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41559. - gtkenums.h gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h
  41560. -gtkimage.lo gtkimage.o : gtkimage.c gtkcontainer.h ../gdk/gdk.h \
  41561. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41562. - gtkenums.h gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h \
  41563. - gtktypeutils.h gtktypebuiltins.h gtkdebug.h gtkadjustment.h \
  41564. - gtkdata.h gtkstyle.h gtkimage.h gtkmisc.h
  41565. -gtkinputdialog.lo gtkinputdialog.o : gtkinputdialog.c \
  41566. - ../gdk/gdkkeysyms.h gtkbutton.h ../gdk/gdk.h ../gdk/gdktypes.h \
  41567. - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkbin.h gtkcontainer.h \
  41568. - gtkenums.h gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h \
  41569. - gtktypeutils.h gtktypebuiltins.h gtkdebug.h gtkadjustment.h \
  41570. - gtkdata.h gtkstyle.h gtkentry.h gtkeditable.h gtkhbox.h \
  41571. - gtkbox.h gtkhseparator.h gtkseparator.h gtkinputdialog.h \
  41572. - gtkdialog.h gtkwindow.h gtklabel.h gtkmisc.h gtklistitem.h \
  41573. - gtkitem.h gtkmain.h gtkmenu.h gtkmenushell.h gtkmenuitem.h \
  41574. - gtknotebook.h gtkoptionmenu.h gtkbutton.h gtkscrolledwindow.h \
  41575. - gtkhscrollbar.h gtkscrollbar.h gtkrange.h gtkvscrollbar.h \
  41576. - gtkviewport.h gtksignal.h gtkmarshal.h gtktable.h gtkvbox.h \
  41577. - gtkintl.h ../config.h
  41578. -gtkinvisible.lo gtkinvisible.o : gtkinvisible.c gtksignal.h ../gdk/gdk.h \
  41579. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41580. - gtkenums.h gtkobject.h gtkarg.h gtktypeutils.h \
  41581. - gtktypebuiltins.h gtkdebug.h gtkmarshal.h gtkinvisible.h \
  41582. - gtkbin.h gtkcontainer.h gtkwidget.h gtkaccelgroup.h \
  41583. - gtkadjustment.h gtkdata.h gtkstyle.h
  41584. -gtkitem.lo gtkitem.o : gtkitem.c gtkitem.h ../gdk/gdk.h \
  41585. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkbin.h \
  41586. - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
  41587. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41588. - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtksignal.h \
  41589. - gtkmarshal.h
  41590. -gtkitemfactory.lo gtkitemfactory.o : gtkitemfactory.c gtkitemfactory.h \
  41591. - gtkwidget.h ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41592. - ../gdk/gdkrgb.h gtkaccelgroup.h gtkobject.h gtkarg.h \
  41593. - gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
  41594. - gtkadjustment.h gtkdata.h gtkstyle.h gtkmenufactory.h \
  41595. - gtkbindings.h gtksignal.h gtkmarshal.h gtkoptionmenu.h \
  41596. - gtkbutton.h gtkbin.h gtkcontainer.h gtkmenubar.h gtkmenushell.h \
  41597. - gtkmenu.h gtkmenuitem.h gtkitem.h gtkradiomenuitem.h \
  41598. - gtkcheckmenuitem.h gtktearoffmenuitem.h gtkaccellabel.h \
  41599. - gtklabel.h gtkmisc.h ../gdk/gdkkeysyms.h
  41600. -gtklabel.lo gtklabel.o : gtklabel.c gtklabel.h ../gdk/gdk.h \
  41601. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkmisc.h \
  41602. - gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
  41603. - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkadjustment.h \
  41604. - gtkdata.h gtkstyle.h ../gdk/gdkkeysyms.h ../gdk/gdki18n.h
  41605. -gtklayout.lo gtklayout.o : gtklayout.c gtklayout.h ../gdk/gdk.h \
  41606. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41607. - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
  41608. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41609. - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtksignal.h \
  41610. - gtkmarshal.h gtkprivate.h ../gdk/gdkx.h ../gdk/gdkprivate.h
  41611. -gtklist.lo gtklist.o : gtklist.c gtklist.h ../gdk/gdk.h \
  41612. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41613. - gtkenums.h gtkcontainer.h gtkwidget.h gtkaccelgroup.h \
  41614. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41615. - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtklistitem.h \
  41616. - gtkitem.h gtkbin.h gtklistitem.h gtkmain.h gtksignal.h \
  41617. - gtkmarshal.h gtklabel.h gtkmisc.h
  41618. -gtklistitem.lo gtklistitem.o : gtklistitem.c gtkbindings.h ../gdk/gdk.h \
  41619. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41620. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41621. - gtkenums.h gtkdebug.h gtklabel.h gtkmisc.h gtkwidget.h \
  41622. - gtkaccelgroup.h gtkadjustment.h gtkdata.h gtkstyle.h \
  41623. - gtklistitem.h gtkitem.h gtkbin.h gtkcontainer.h gtklist.h \
  41624. - gtklistitem.h gtksignal.h gtkmarshal.h ../gdk/gdkkeysyms.h
  41625. -gtkmain.lo gtkmain.o : gtkmain.c gtkbutton.h ../gdk/gdk.h \
  41626. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkbin.h \
  41627. - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
  41628. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41629. - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtkdnd.h \
  41630. - gtkselection.h gtkfeatures.h gtkhscrollbar.h gtkscrollbar.h \
  41631. - gtkrange.h gtkhseparator.h gtkseparator.h gtkmain.h \
  41632. - gtkpreview.h gtkrc.h gtkscrolledwindow.h gtkhscrollbar.h \
  41633. - gtkvscrollbar.h gtkviewport.h gtkselection.h gtksignal.h \
  41634. - gtkmarshal.h gtktable.h gtktext.h gtkeditable.h gtkvbox.h \
  41635. - gtkbox.h gtkvscrollbar.h gtkwidget.h gtkwindow.h gtkprivate.h \
  41636. - ../gdk/gdki18n.h ../config.h gtkdebug.h gtkintl.h
  41637. -gtkmarshal.lo gtkmarshal.o : gtkmarshal.c gtkmarshal.h gtktypeutils.h \
  41638. - gtktypebuiltins.h gtkobject.h gtkarg.h gtkenums.h gtkdebug.h
  41639. -gtkmenu.lo gtkmenu.o : gtkmenu.c ../gdk/gdkkeysyms.h gtkbindings.h \
  41640. - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41641. - ../gdk/gdkrgb.h gtkobject.h gtkarg.h gtktypeutils.h \
  41642. - gtktypebuiltins.h gtkenums.h gtkdebug.h gtklabel.h gtkmisc.h \
  41643. - gtkwidget.h gtkaccelgroup.h gtkadjustment.h gtkdata.h \
  41644. - gtkstyle.h gtkmain.h gtkmenu.h gtkmenushell.h gtkcontainer.h \
  41645. - gtkmenuitem.h gtkitem.h gtkbin.h gtksignal.h gtkmarshal.h \
  41646. - gtkwindow.h
  41647. -gtkmenubar.lo gtkmenubar.o : gtkmenubar.c ../gdk/gdkkeysyms.h \
  41648. - gtkbindings.h ../gdk/gdk.h ../gdk/gdktypes.h \
  41649. - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkobject.h gtkarg.h \
  41650. - gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
  41651. - gtkmain.h gtkwidget.h gtkaccelgroup.h gtkadjustment.h gtkdata.h \
  41652. - gtkstyle.h gtkmenubar.h gtkmenushell.h gtkcontainer.h \
  41653. - gtkmenuitem.h gtkitem.h gtkbin.h
  41654. -gtkmenufactory.lo gtkmenufactory.o : gtkmenufactory.c gtkcheckmenuitem.h \
  41655. - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41656. - ../gdk/gdkrgb.h gtkmenuitem.h gtkitem.h gtkbin.h gtkcontainer.h \
  41657. - gtkenums.h gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h \
  41658. - gtktypeutils.h gtktypebuiltins.h gtkdebug.h gtkadjustment.h \
  41659. - gtkdata.h gtkstyle.h gtkmenu.h gtkmenushell.h gtkmenubar.h \
  41660. - gtkmenufactory.h gtkmenuitem.h gtksignal.h gtkmarshal.h
  41661. -gtkmenuitem.lo gtkmenuitem.o : gtkmenuitem.c gtkaccellabel.h gtklabel.h \
  41662. - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41663. - ../gdk/gdkrgb.h gtkmisc.h gtkwidget.h gtkaccelgroup.h \
  41664. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41665. - gtkenums.h gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h \
  41666. - gtkmain.h gtkmenu.h gtkmenushell.h gtkcontainer.h gtkmenubar.h \
  41667. - gtkmenuitem.h gtkitem.h gtkbin.h gtksignal.h gtkmarshal.h
  41668. -gtkmenushell.lo gtkmenushell.o : gtkmenushell.c ../gdk/gdkkeysyms.h \
  41669. - gtkbindings.h ../gdk/gdk.h ../gdk/gdktypes.h \
  41670. - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkobject.h gtkarg.h \
  41671. - gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
  41672. - gtkmain.h gtkwidget.h gtkaccelgroup.h gtkadjustment.h gtkdata.h \
  41673. - gtkstyle.h gtkmenuitem.h gtkitem.h gtkbin.h gtkcontainer.h \
  41674. - gtktearoffmenuitem.h gtkmenuitem.h gtkmenushell.h gtksignal.h \
  41675. - gtkmarshal.h
  41676. -gtkmisc.lo gtkmisc.o : gtkmisc.c gtkcontainer.h ../gdk/gdk.h \
  41677. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41678. - gtkenums.h gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h \
  41679. - gtktypeutils.h gtktypebuiltins.h gtkdebug.h gtkadjustment.h \
  41680. - gtkdata.h gtkstyle.h gtkmisc.h
  41681. -gtknotebook.lo gtknotebook.o : gtknotebook.c gtknotebook.h ../gdk/gdk.h \
  41682. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41683. - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
  41684. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41685. - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtksignal.h \
  41686. - gtkmarshal.h gtkmain.h gtkmenu.h gtkmenushell.h gtkmenuitem.h \
  41687. - gtkitem.h gtkbin.h gtklabel.h gtkmisc.h ../gdk/gdkkeysyms.h \
  41688. - gtkintl.h ../config.h
  41689. -gtkobject.lo gtkobject.o : gtkobject.c gtkobject.h gtkarg.h \
  41690. - gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
  41691. - gtksignal.h ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41692. - ../gdk/gdkrgb.h gtkobject.h gtkmarshal.h
  41693. -gtkoptionmenu.lo gtkoptionmenu.o : gtkoptionmenu.c gtkmenu.h \
  41694. - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41695. - ../gdk/gdkrgb.h gtkaccelgroup.h gtkobject.h gtkarg.h \
  41696. - gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
  41697. - gtkmenushell.h gtkcontainer.h gtkwidget.h gtkadjustment.h \
  41698. - gtkdata.h gtkstyle.h gtkmenuitem.h gtkitem.h gtkbin.h \
  41699. - gtkoptionmenu.h gtkbutton.h gtksignal.h gtkmarshal.h \
  41700. - ../gdk/gdkkeysyms.h
  41701. -gtkpacker.lo gtkpacker.o : gtkpacker.c gtkpacker.h gtkcontainer.h \
  41702. - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41703. - ../gdk/gdkrgb.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
  41704. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41705. - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h
  41706. -gtkpaned.lo gtkpaned.o : gtkpaned.c gtkpaned.h ../gdk/gdk.h \
  41707. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41708. - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
  41709. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41710. - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtkhpaned.h \
  41711. - gtkpaned.h
  41712. -gtkpixmap.lo gtkpixmap.o : gtkpixmap.c gtkcontainer.h ../gdk/gdk.h \
  41713. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41714. - gtkenums.h gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h \
  41715. - gtktypeutils.h gtktypebuiltins.h gtkdebug.h gtkadjustment.h \
  41716. - gtkdata.h gtkstyle.h gtkpixmap.h gtkmisc.h
  41717. -gtkplug.lo gtkplug.o : gtkplug.c ../gdk/gdkx.h ../gdk/gdkprivate.h \
  41718. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkkeysyms.h \
  41719. - gtkplug.h ../gdk/gdk.h ../gdk/gdkrgb.h gtkwindow.h \
  41720. - gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
  41721. - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkbin.h gtkcontainer.h \
  41722. - gtkwidget.h gtkadjustment.h gtkdata.h gtkstyle.h
  41723. -gtkpreview.lo gtkpreview.o : gtkpreview.c ../gdk/gdkx.h \
  41724. - ../gdk/gdkprivate.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41725. - ../gdk/gdkrgb.h gtkpreview.h gtkwidget.h ../gdk/gdk.h \
  41726. - gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
  41727. - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkadjustment.h \
  41728. - gtkdata.h gtkstyle.h gtksignal.h gtkmarshal.h
  41729. -gtkprogress.lo gtkprogress.o : gtkprogress.c gtkprogress.h ../gdk/gdk.h \
  41730. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41731. - gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
  41732. - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkadjustment.h \
  41733. - gtkdata.h gtkstyle.h gtksignal.h gtkmarshal.h
  41734. -gtkprogressbar.lo gtkprogressbar.o : gtkprogressbar.c ../config.h \
  41735. - gtkprogressbar.h ../gdk/gdk.h ../gdk/gdktypes.h \
  41736. - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkprogress.h gtkwidget.h \
  41737. - gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
  41738. - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkadjustment.h \
  41739. - gtkdata.h gtkstyle.h gtksignal.h gtkmarshal.h
  41740. -gtkradiobutton.lo gtkradiobutton.o : gtkradiobutton.c gtklabel.h \
  41741. - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41742. - ../gdk/gdkrgb.h gtkmisc.h gtkwidget.h gtkaccelgroup.h \
  41743. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41744. - gtkenums.h gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h \
  41745. - gtkradiobutton.h gtkcheckbutton.h gtktogglebutton.h gtkbutton.h \
  41746. - gtkbin.h gtkcontainer.h gtksignal.h gtkmarshal.h
  41747. -gtkradiomenuitem.lo gtkradiomenuitem.o : gtkradiomenuitem.c \
  41748. - gtkaccellabel.h gtklabel.h ../gdk/gdk.h ../gdk/gdktypes.h \
  41749. - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkmisc.h gtkwidget.h \
  41750. - gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
  41751. - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkadjustment.h \
  41752. - gtkdata.h gtkstyle.h gtkradiomenuitem.h gtkcheckmenuitem.h \
  41753. - gtkmenuitem.h gtkitem.h gtkbin.h gtkcontainer.h
  41754. -gtkrange.lo gtkrange.o : gtkrange.c gtkmain.h ../gdk/gdk.h \
  41755. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41756. - gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
  41757. - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkadjustment.h \
  41758. - gtkdata.h gtkstyle.h gtkrange.h gtksignal.h gtkmarshal.h
  41759. -gtkrc.lo gtkrc.o : gtkrc.c gtkrc.h gtkstyle.h ../gdk/gdk.h \
  41760. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41761. - gtkenums.h gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h \
  41762. - gtktypeutils.h gtktypebuiltins.h gtkdebug.h gtkadjustment.h \
  41763. - gtkdata.h gtkbindings.h gtkthemes.h gtkintl.h ../config.h
  41764. -gtkruler.lo gtkruler.o : gtkruler.c gtkruler.h ../gdk/gdk.h \
  41765. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41766. - gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
  41767. - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkadjustment.h \
  41768. - gtkdata.h gtkstyle.h
  41769. -gtkscale.lo gtkscale.o : gtkscale.c gtkcontainer.h ../gdk/gdk.h \
  41770. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41771. - gtkenums.h gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h \
  41772. - gtktypeutils.h gtktypebuiltins.h gtkdebug.h gtkadjustment.h \
  41773. - gtkdata.h gtkstyle.h gtkscale.h gtkrange.h
  41774. -gtkscrollbar.lo gtkscrollbar.o : gtkscrollbar.c gtkscrollbar.h \
  41775. - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41776. - ../gdk/gdkrgb.h gtkrange.h gtkadjustment.h gtkdata.h \
  41777. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41778. - gtkenums.h gtkdebug.h gtkwidget.h gtkaccelgroup.h gtkstyle.h
  41779. -gtkscrolledwindow.lo gtkscrolledwindow.o : gtkscrolledwindow.c \
  41780. - gtkscrolledwindow.h ../gdk/gdk.h ../gdk/gdktypes.h \
  41781. - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkhscrollbar.h \
  41782. - gtkscrollbar.h gtkrange.h gtkadjustment.h gtkdata.h gtkobject.h \
  41783. - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
  41784. - gtkwidget.h gtkaccelgroup.h gtkstyle.h gtkvscrollbar.h \
  41785. - gtkviewport.h gtkbin.h gtkcontainer.h gtksignal.h gtkmarshal.h
  41786. -gtkselection.lo gtkselection.o : gtkselection.c ../gdk/gdkx.h \
  41787. - ../gdk/gdkprivate.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41788. - gtkmain.h ../gdk/gdk.h ../gdk/gdkrgb.h gtkwidget.h \
  41789. - gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
  41790. - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkadjustment.h \
  41791. - gtkdata.h gtkstyle.h gtkselection.h gtksignal.h gtkmarshal.h
  41792. -gtkseparator.lo gtkseparator.o : gtkseparator.c gtkseparator.h \
  41793. - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41794. - ../gdk/gdkrgb.h gtkwidget.h gtkaccelgroup.h gtkobject.h \
  41795. - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
  41796. - gtkadjustment.h gtkdata.h gtkstyle.h
  41797. -gtksignal.lo gtksignal.o : gtksignal.c gtksignal.h ../gdk/gdk.h \
  41798. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41799. - gtkenums.h gtkobject.h gtkarg.h gtktypeutils.h \
  41800. - gtktypebuiltins.h gtkdebug.h gtkmarshal.h gtkargcollector.c
  41801. -gtksocket.lo gtksocket.o : gtksocket.c ../gdk/gdkx.h ../gdk/gdkprivate.h \
  41802. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkkeysyms.h \
  41803. - gtkwindow.h ../gdk/gdk.h ../gdk/gdkrgb.h gtkaccelgroup.h \
  41804. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41805. - gtkenums.h gtkdebug.h gtkbin.h gtkcontainer.h gtkwidget.h \
  41806. - gtkadjustment.h gtkdata.h gtkstyle.h gtksignal.h gtkmarshal.h \
  41807. - gtksocket.h gtkdnd.h gtkselection.h
  41808. -gtkspinbutton.lo gtkspinbutton.o : gtkspinbutton.c ../gdk/gdkkeysyms.h \
  41809. - gtkspinbutton.h ../gdk/gdk.h ../gdk/gdktypes.h \
  41810. - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkentry.h gtkeditable.h \
  41811. - gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
  41812. - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkadjustment.h \
  41813. - gtkdata.h gtkstyle.h gtkmain.h gtksignal.h gtkmarshal.h
  41814. -gtkstatusbar.lo gtkstatusbar.o : gtkstatusbar.c gtkframe.h ../gdk/gdk.h \
  41815. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkbin.h \
  41816. - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
  41817. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41818. - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtklabel.h \
  41819. - gtkmisc.h gtksignal.h gtkmarshal.h gtkstatusbar.h gtkhbox.h \
  41820. - gtkbox.h
  41821. -gtkstyle.lo gtkstyle.o : gtkstyle.c gtkgc.h ../gdk/gdk.h \
  41822. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkrc.h \
  41823. - gtkstyle.h gtkenums.h gtkwidget.h gtkaccelgroup.h gtkobject.h \
  41824. - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkdebug.h \
  41825. - gtkadjustment.h gtkdata.h gtkstyle.h gtkwidget.h gtkthemes.h \
  41826. - ../gdk/gdkprivate.h
  41827. -gtktable.lo gtktable.o : gtktable.c gtktable.h ../gdk/gdk.h \
  41828. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41829. - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
  41830. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41831. - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h
  41832. -gtktearoffmenuitem.lo gtktearoffmenuitem.o : gtktearoffmenuitem.c \
  41833. - gtkmenu.h ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41834. - ../gdk/gdkrgb.h gtkaccelgroup.h gtkobject.h gtkarg.h \
  41835. - gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
  41836. - gtkmenushell.h gtkcontainer.h gtkwidget.h gtkadjustment.h \
  41837. - gtkdata.h gtkstyle.h gtksignal.h gtkmarshal.h \
  41838. - gtktearoffmenuitem.h gtkmenuitem.h gtkitem.h gtkbin.h
  41839. -gtktext.lo gtktext.o : gtktext.c ../gdk/gdkkeysyms.h ../gdk/gdki18n.h \
  41840. - gtkmain.h ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41841. - ../gdk/gdkrgb.h gtkwidget.h gtkaccelgroup.h gtkobject.h \
  41842. - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
  41843. - gtkadjustment.h gtkdata.h gtkstyle.h gtkselection.h gtksignal.h \
  41844. - gtkmarshal.h gtktext.h gtkeditable.h line-wrap.xbm \
  41845. - line-arrow.xbm
  41846. -gtkthemes.lo gtkthemes.o : gtkthemes.c gtkthemes.h ../gdk/gdk.h \
  41847. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41848. - gtkstyle.h gtkenums.h gtkwidget.h gtkaccelgroup.h gtkobject.h \
  41849. - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkdebug.h \
  41850. - gtkadjustment.h gtkdata.h gtkmain.h gtkrc.h gtkselection.h \
  41851. - gtksignal.h gtkmarshal.h gtkwidget.h ../config.h gtkintl.h
  41852. -gtktipsquery.lo gtktipsquery.o : gtktipsquery.c gtktipsquery.h \
  41853. - gtklabel.h ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41854. - ../gdk/gdkrgb.h gtkmisc.h gtkwidget.h gtkaccelgroup.h \
  41855. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41856. - gtkenums.h gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h \
  41857. - gtksignal.h gtkmarshal.h gtktooltips.h gtkmain.h gtkintl.h \
  41858. - ../config.h
  41859. -gtktogglebutton.lo gtktogglebutton.o : gtktogglebutton.c gtklabel.h \
  41860. - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41861. - ../gdk/gdkrgb.h gtkmisc.h gtkwidget.h gtkaccelgroup.h \
  41862. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41863. - gtkenums.h gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h \
  41864. - gtkmain.h gtksignal.h gtkmarshal.h gtktogglebutton.h \
  41865. - gtkbutton.h gtkbin.h gtkcontainer.h
  41866. -gtktoolbar.lo gtktoolbar.o : gtktoolbar.c gtkbutton.h ../gdk/gdk.h \
  41867. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkbin.h \
  41868. - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
  41869. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41870. - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h \
  41871. - gtktogglebutton.h gtkbutton.h gtkradiobutton.h gtkcheckbutton.h \
  41872. - gtktogglebutton.h gtklabel.h gtkmisc.h gtkvbox.h gtkbox.h \
  41873. - gtktoolbar.h gtkpixmap.h gtksignal.h gtkmarshal.h gtktooltips.h
  41874. -gtktooltips.lo gtktooltips.o : gtktooltips.c gtkmain.h ../gdk/gdk.h \
  41875. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41876. - gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
  41877. - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkadjustment.h \
  41878. - gtkdata.h gtkstyle.h gtkwidget.h gtkwindow.h gtkbin.h \
  41879. - gtkcontainer.h gtksignal.h gtkmarshal.h gtkstyle.h \
  41880. - gtktooltips.h
  41881. -gtktree.lo gtktree.o : gtktree.c gtktree.h ../gdk/gdk.h \
  41882. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41883. - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
  41884. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41885. - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtktreeitem.h \
  41886. - gtkitem.h gtkbin.h gtkmain.h gtksignal.h gtkmarshal.h gtklist.h \
  41887. - gtklistitem.h
  41888. -gtktreeitem.lo gtktreeitem.o : gtktreeitem.c gtklabel.h ../gdk/gdk.h \
  41889. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkmisc.h \
  41890. - gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
  41891. - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkadjustment.h \
  41892. - gtkdata.h gtkstyle.h gtktree.h gtkcontainer.h gtktreeitem.h \
  41893. - gtkitem.h gtkbin.h gtkeventbox.h gtkpixmap.h gtkmain.h \
  41894. - gtksignal.h gtkmarshal.h tree_plus.xpm tree_minus.xpm
  41895. -gtktypeutils.lo gtktypeutils.o : gtktypeutils.c gtktypeutils.h \
  41896. - gtktypebuiltins.h makeenums.h ../gdk/gdkprivate.h \
  41897. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdk.h \
  41898. - ../gdk/gdkrgb.h gtk.h gtkaccelgroup.h gtkobject.h gtkarg.h \
  41899. - gtktypeutils.h gtkenums.h gtkdebug.h gtkaccellabel.h gtklabel.h \
  41900. - gtkmisc.h gtkwidget.h gtkadjustment.h gtkdata.h gtkstyle.h \
  41901. - gtkalignment.h gtkbin.h gtkcontainer.h gtkaspectframe.h \
  41902. - gtkframe.h gtkarrow.h gtkbindings.h gtkbox.h gtkbbox.h \
  41903. - gtkbutton.h gtkcalendar.h gtksignal.h gtkmarshal.h \
  41904. - gtkcheckbutton.h gtktogglebutton.h gtkcheckmenuitem.h \
  41905. - gtkmenuitem.h gtkitem.h gtkclist.h gtkhscrollbar.h \
  41906. - gtkscrollbar.h gtkrange.h gtkvscrollbar.h gtkcolorsel.h \
  41907. - gtkwindow.h gtkvbox.h gtkpreview.h gtkentry.h gtkeditable.h \
  41908. - gtkhbox.h gtkmain.h gtkscale.h gtkhscale.h gtktable.h \
  41909. - gtkeventbox.h gtkcombo.h gtkcompat.h gtkctree.h gtkcurve.h \
  41910. - gtkdrawingarea.h gtkdialog.h gtkdnd.h gtkselection.h \
  41911. - gtkfeatures.h gtkfilesel.h gtkfixed.h gtkfontsel.h \
  41912. - gtknotebook.h gtkgamma.h gtkgc.h gtkhandlebox.h gtkhbbox.h \
  41913. - gtkhpaned.h gtkpaned.h gtkhruler.h gtkruler.h gtkhseparator.h \
  41914. - gtkseparator.h gtkimage.h gtkinputdialog.h gtkitemfactory.h \
  41915. - gtkmenufactory.h gtklayout.h gtklist.h gtklistitem.h gtkmenu.h \
  41916. - gtkmenushell.h gtkmenubar.h gtkoptionmenu.h gtkpacker.h \
  41917. - gtkpixmap.h gtkplug.h gtkprogress.h gtkprogressbar.h \
  41918. - gtkradiobutton.h gtkradiomenuitem.h gtkrc.h gtkscrolledwindow.h \
  41919. - gtkviewport.h gtksocket.h gtkspinbutton.h gtkstatusbar.h \
  41920. - gtktearoffmenuitem.h gtktext.h gtkthemes.h gtktipsquery.h \
  41921. - gtktoolbar.h gtktooltips.h gtktree.h gtktreeitem.h gtkvbbox.h \
  41922. - gtkvpaned.h gtkvruler.h gtkvscale.h gtkvseparator.h \
  41923. - gtkprivate.h gtktypebuiltins_vars.c gtktypebuiltins_evals.c \
  41924. - gtktypebuiltins_ids.c
  41925. -gtkvbbox.lo gtkvbbox.o : gtkvbbox.c gtkvbbox.h gtkbbox.h gtkbox.h \
  41926. - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41927. - ../gdk/gdkrgb.h gtkcontainer.h gtkenums.h gtkwidget.h \
  41928. - gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
  41929. - gtktypebuiltins.h gtkdebug.h gtkadjustment.h gtkdata.h \
  41930. - gtkstyle.h
  41931. -gtkvbox.lo gtkvbox.o : gtkvbox.c gtkvbox.h ../gdk/gdk.h \
  41932. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkbox.h \
  41933. - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
  41934. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41935. - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h
  41936. -gtkviewport.lo gtkviewport.o : gtkviewport.c gtksignal.h ../gdk/gdk.h \
  41937. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41938. - gtkenums.h gtkobject.h gtkarg.h gtktypeutils.h \
  41939. - gtktypebuiltins.h gtkdebug.h gtkmarshal.h gtkviewport.h \
  41940. - gtkadjustment.h gtkdata.h gtkbin.h gtkcontainer.h gtkwidget.h \
  41941. - gtkaccelgroup.h gtkstyle.h
  41942. -gtkvpaned.lo gtkvpaned.o : gtkvpaned.c gtkvpaned.h ../gdk/gdk.h \
  41943. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41944. - gtkpaned.h gtkcontainer.h gtkenums.h gtkwidget.h \
  41945. - gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
  41946. - gtktypebuiltins.h gtkdebug.h gtkadjustment.h gtkdata.h \
  41947. - gtkstyle.h gtkmain.h gtksignal.h gtkmarshal.h
  41948. -gtkvruler.lo gtkvruler.o : gtkvruler.c gtkvruler.h ../gdk/gdk.h \
  41949. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41950. - gtkruler.h gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h \
  41951. - gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
  41952. - gtkadjustment.h gtkdata.h gtkstyle.h
  41953. -gtkvscale.lo gtkvscale.o : gtkvscale.c gtkvscale.h ../gdk/gdk.h \
  41954. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41955. - gtkscale.h gtkrange.h gtkadjustment.h gtkdata.h gtkobject.h \
  41956. - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
  41957. - gtkwidget.h gtkaccelgroup.h gtkstyle.h gtksignal.h gtkmarshal.h \
  41958. - ../gdk/gdkkeysyms.h
  41959. -gtkvscrollbar.lo gtkvscrollbar.o : gtkvscrollbar.c gtkvscrollbar.h \
  41960. - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41961. - ../gdk/gdkrgb.h gtkscrollbar.h gtkrange.h gtkadjustment.h \
  41962. - gtkdata.h gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41963. - gtkenums.h gtkdebug.h gtkwidget.h gtkaccelgroup.h gtkstyle.h \
  41964. - gtksignal.h gtkmarshal.h ../gdk/gdkkeysyms.h
  41965. -gtkvseparator.lo gtkvseparator.o : gtkvseparator.c gtkvseparator.h \
  41966. - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
  41967. - ../gdk/gdkrgb.h gtkseparator.h gtkwidget.h gtkaccelgroup.h \
  41968. - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
  41969. - gtkenums.h gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h
  41970. -gtkwidget.lo gtkwidget.o : gtkwidget.c gtkcontainer.h ../gdk/gdk.h \
  41971. - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
  41972. - gtkenums.h gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h \
  41973. - gtktypeutils.h gtktypebuiltins.h gtkdebug.h gtkadjustment.h \
  41974. - gtkdata.h gtkstyle.h gtkmain.h gtkrc.h gtkselection.h \
  41975. - gtksignal.h gtkmarshal.h gtkwidget.h gtkwindow.h gtkbin.h \
  41976. - gtkcontainer.h gtkbindings.h gtkprivate.h ../gdk/gdkx.h \
  41977. - ../gdk/gdkprivate.h
  41978. -gtkwindow.lo gtkwindow.o : gtkwindow.c ../gdk/gdk.h ../gdk/gdktypes.h \
  41979. - ../gdk/gdkcursors.h ../gdk/gdkrgb.h ../gdk/gdkkeysyms.h \
  41980. - ../gdk/gdkx.h ../gdk/gdkprivate.h gtkprivate.h gtkobject.h \
  41981. - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
  41982. - gtkwidget.h gtkaccelgroup.h gtkadjustment.h gtkdata.h \
  41983. - gtkstyle.h gtkrc.h gtksignal.h gtkmarshal.h gtkwindow.h \
  41984. - gtkbin.h gtkcontainer.h gtkbindings.h gtkmain.h
  41985. -simple.o: simple.c gtk.h ../gdk/gdk.h ../gdk/gdktypes.h \
  41986. - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkaccelgroup.h gtkobject.h \
  41987. - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
  41988. - gtkaccellabel.h gtklabel.h gtkmisc.h gtkwidget.h \
  41989. - gtkadjustment.h gtkdata.h gtkstyle.h gtkalignment.h gtkbin.h \
  41990. - gtkcontainer.h gtkaspectframe.h gtkframe.h gtkarrow.h \
  41991. - gtkbindings.h gtkbox.h gtkbbox.h gtkbutton.h gtkcalendar.h \
  41992. - gtksignal.h gtkmarshal.h gtkcheckbutton.h gtktogglebutton.h \
  41993. - gtkcheckmenuitem.h gtkmenuitem.h gtkitem.h gtkclist.h \
  41994. - gtkhscrollbar.h gtkscrollbar.h gtkrange.h gtkvscrollbar.h \
  41995. - gtkcolorsel.h gtkwindow.h gtkvbox.h gtkpreview.h gtkentry.h \
  41996. - gtkeditable.h gtkhbox.h gtkmain.h gtkscale.h gtkhscale.h \
  41997. - gtktable.h gtkeventbox.h gtkcombo.h gtkcompat.h gtkctree.h \
  41998. - gtkcurve.h gtkdrawingarea.h gtkdialog.h gtkdnd.h gtkselection.h \
  41999. - gtkfeatures.h gtkfilesel.h gtkfixed.h gtkfontsel.h \
  42000. - gtknotebook.h gtkgamma.h gtkgc.h gtkhandlebox.h gtkhbbox.h \
  42001. - gtkhpaned.h gtkpaned.h gtkhruler.h gtkruler.h gtkhseparator.h \
  42002. - gtkseparator.h gtkimage.h gtkinputdialog.h gtkitemfactory.h \
  42003. - gtkmenufactory.h gtklayout.h gtklist.h gtklistitem.h gtkmenu.h \
  42004. - gtkmenushell.h gtkmenubar.h gtkoptionmenu.h gtkpacker.h \
  42005. - gtkpixmap.h gtkplug.h gtkprogress.h gtkprogressbar.h \
  42006. - gtkradiobutton.h gtkradiomenuitem.h gtkrc.h gtkscrolledwindow.h \
  42007. - gtkviewport.h gtksocket.h gtkspinbutton.h gtkstatusbar.h \
  42008. - gtktearoffmenuitem.h gtktext.h gtkthemes.h gtktipsquery.h \
  42009. - gtktoolbar.h gtktooltips.h gtktree.h gtktreeitem.h gtkvbbox.h \
  42010. - gtkvpaned.h gtkvruler.h gtkvscale.h gtkvseparator.h \
  42011. - ../gdk/gdkprivate.h
  42012. -testdnd.o: testdnd.c gtk.h ../gdk/gdk.h ../gdk/gdktypes.h \
  42013. - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkaccelgroup.h gtkobject.h \
  42014. - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
  42015. - gtkaccellabel.h gtklabel.h gtkmisc.h gtkwidget.h \
  42016. - gtkadjustment.h gtkdata.h gtkstyle.h gtkalignment.h gtkbin.h \
  42017. - gtkcontainer.h gtkaspectframe.h gtkframe.h gtkarrow.h \
  42018. - gtkbindings.h gtkbox.h gtkbbox.h gtkbutton.h gtkcalendar.h \
  42019. - gtksignal.h gtkmarshal.h gtkcheckbutton.h gtktogglebutton.h \
  42020. - gtkcheckmenuitem.h gtkmenuitem.h gtkitem.h gtkclist.h \
  42021. - gtkhscrollbar.h gtkscrollbar.h gtkrange.h gtkvscrollbar.h \
  42022. - gtkcolorsel.h gtkwindow.h gtkvbox.h gtkpreview.h gtkentry.h \
  42023. - gtkeditable.h gtkhbox.h gtkmain.h gtkscale.h gtkhscale.h \
  42024. - gtktable.h gtkeventbox.h gtkcombo.h gtkcompat.h gtkctree.h \
  42025. - gtkcurve.h gtkdrawingarea.h gtkdialog.h gtkdnd.h gtkselection.h \
  42026. - gtkfeatures.h gtkfilesel.h gtkfixed.h gtkfontsel.h \
  42027. - gtknotebook.h gtkgamma.h gtkgc.h gtkhandlebox.h gtkhbbox.h \
  42028. - gtkhpaned.h gtkpaned.h gtkhruler.h gtkruler.h gtkhseparator.h \
  42029. - gtkseparator.h gtkimage.h gtkinputdialog.h gtkitemfactory.h \
  42030. - gtkmenufactory.h gtklayout.h gtklist.h gtklistitem.h gtkmenu.h \
  42031. - gtkmenushell.h gtkmenubar.h gtkoptionmenu.h gtkpacker.h \
  42032. - gtkpixmap.h gtkplug.h gtkprogress.h gtkprogressbar.h \
  42033. - gtkradiobutton.h gtkradiomenuitem.h gtkrc.h gtkscrolledwindow.h \
  42034. - gtkviewport.h gtksocket.h gtkspinbutton.h gtkstatusbar.h \
  42035. - gtktearoffmenuitem.h gtktext.h gtkthemes.h gtktipsquery.h \
  42036. - gtktoolbar.h gtktooltips.h gtktree.h gtktreeitem.h gtkvbbox.h \
  42037. - gtkvpaned.h gtkvruler.h gtkvscale.h gtkvseparator.h
  42038. -testgtk.o: testgtk.c gtk.h ../gdk/gdk.h ../gdk/gdktypes.h \
  42039. - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkaccelgroup.h gtkobject.h \
  42040. - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
  42041. - gtkaccellabel.h gtklabel.h gtkmisc.h gtkwidget.h \
  42042. - gtkadjustment.h gtkdata.h gtkstyle.h gtkalignment.h gtkbin.h \
  42043. - gtkcontainer.h gtkaspectframe.h gtkframe.h gtkarrow.h \
  42044. - gtkbindings.h gtkbox.h gtkbbox.h gtkbutton.h gtkcalendar.h \
  42045. - gtksignal.h gtkmarshal.h gtkcheckbutton.h gtktogglebutton.h \
  42046. - gtkcheckmenuitem.h gtkmenuitem.h gtkitem.h gtkclist.h \
  42047. - gtkhscrollbar.h gtkscrollbar.h gtkrange.h gtkvscrollbar.h \
  42048. - gtkcolorsel.h gtkwindow.h gtkvbox.h gtkpreview.h gtkentry.h \
  42049. - gtkeditable.h gtkhbox.h gtkmain.h gtkscale.h gtkhscale.h \
  42050. - gtktable.h gtkeventbox.h gtkcombo.h gtkcompat.h gtkctree.h \
  42051. - gtkcurve.h gtkdrawingarea.h gtkdialog.h gtkdnd.h gtkselection.h \
  42052. - gtkfeatures.h gtkfilesel.h gtkfixed.h gtkfontsel.h \
  42053. - gtknotebook.h gtkgamma.h gtkgc.h gtkhandlebox.h gtkhbbox.h \
  42054. - gtkhpaned.h gtkpaned.h gtkhruler.h gtkruler.h gtkhseparator.h \
  42055. - gtkseparator.h gtkimage.h gtkinputdialog.h gtkitemfactory.h \
  42056. - gtkmenufactory.h gtklayout.h gtklist.h gtklistitem.h gtkmenu.h \
  42057. - gtkmenushell.h gtkmenubar.h gtkoptionmenu.h gtkpacker.h \
  42058. - gtkpixmap.h gtkplug.h gtkprogress.h gtkprogressbar.h \
  42059. - gtkradiobutton.h gtkradiomenuitem.h gtkrc.h gtkscrolledwindow.h \
  42060. - gtkviewport.h gtksocket.h gtkspinbutton.h gtkstatusbar.h \
  42061. - gtktearoffmenuitem.h gtktext.h gtkthemes.h gtktipsquery.h \
  42062. - gtktoolbar.h gtktooltips.h gtktree.h gtktreeitem.h gtkvbbox.h \
  42063. - gtkvpaned.h gtkvruler.h gtkvscale.h gtkvseparator.h \
  42064. - ../gdk/gdkx.h ../gdk/gdkprivate.h ../gdk/gdkkeysyms.h \
  42065. - circles.xbm
  42066. -testinput.o: testinput.c gtk.h ../gdk/gdk.h ../gdk/gdktypes.h \
  42067. - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkaccelgroup.h gtkobject.h \
  42068. - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
  42069. - gtkaccellabel.h gtklabel.h gtkmisc.h gtkwidget.h \
  42070. - gtkadjustment.h gtkdata.h gtkstyle.h gtkalignment.h gtkbin.h \
  42071. - gtkcontainer.h gtkaspectframe.h gtkframe.h gtkarrow.h \
  42072. - gtkbindings.h gtkbox.h gtkbbox.h gtkbutton.h gtkcalendar.h \
  42073. - gtksignal.h gtkmarshal.h gtkcheckbutton.h gtktogglebutton.h \
  42074. - gtkcheckmenuitem.h gtkmenuitem.h gtkitem.h gtkclist.h \
  42075. - gtkhscrollbar.h gtkscrollbar.h gtkrange.h gtkvscrollbar.h \
  42076. - gtkcolorsel.h gtkwindow.h gtkvbox.h gtkpreview.h gtkentry.h \
  42077. - gtkeditable.h gtkhbox.h gtkmain.h gtkscale.h gtkhscale.h \
  42078. - gtktable.h gtkeventbox.h gtkcombo.h gtkcompat.h gtkctree.h \
  42079. - gtkcurve.h gtkdrawingarea.h gtkdialog.h gtkdnd.h gtkselection.h \
  42080. - gtkfeatures.h gtkfilesel.h gtkfixed.h gtkfontsel.h \
  42081. - gtknotebook.h gtkgamma.h gtkgc.h gtkhandlebox.h gtkhbbox.h \
  42082. - gtkhpaned.h gtkpaned.h gtkhruler.h gtkruler.h gtkhseparator.h \
  42083. - gtkseparator.h gtkimage.h gtkinputdialog.h gtkitemfactory.h \
  42084. - gtkmenufactory.h gtklayout.h gtklist.h gtklistitem.h gtkmenu.h \
  42085. - gtkmenushell.h gtkmenubar.h gtkoptionmenu.h gtkpacker.h \
  42086. - gtkpixmap.h gtkplug.h gtkprogress.h gtkprogressbar.h \
  42087. - gtkradiobutton.h gtkradiomenuitem.h gtkrc.h gtkscrolledwindow.h \
  42088. - gtkviewport.h gtksocket.h gtkspinbutton.h gtkstatusbar.h \
  42089. - gtktearoffmenuitem.h gtktext.h gtkthemes.h gtktipsquery.h \
  42090. - gtktoolbar.h gtktooltips.h gtktree.h gtktreeitem.h gtkvbbox.h \
  42091. - gtkvpaned.h gtkvruler.h gtkvscale.h gtkvseparator.h
  42092. -testrgb.o: testrgb.c gtk.h ../gdk/gdk.h ../gdk/gdktypes.h \
  42093. - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkaccelgroup.h gtkobject.h \
  42094. - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
  42095. - gtkaccellabel.h gtklabel.h gtkmisc.h gtkwidget.h \
  42096. - gtkadjustment.h gtkdata.h gtkstyle.h gtkalignment.h gtkbin.h \
  42097. - gtkcontainer.h gtkaspectframe.h gtkframe.h gtkarrow.h \
  42098. - gtkbindings.h gtkbox.h gtkbbox.h gtkbutton.h gtkcalendar.h \
  42099. - gtksignal.h gtkmarshal.h gtkcheckbutton.h gtktogglebutton.h \
  42100. - gtkcheckmenuitem.h gtkmenuitem.h gtkitem.h gtkclist.h \
  42101. - gtkhscrollbar.h gtkscrollbar.h gtkrange.h gtkvscrollbar.h \
  42102. - gtkcolorsel.h gtkwindow.h gtkvbox.h gtkpreview.h gtkentry.h \
  42103. - gtkeditable.h gtkhbox.h gtkmain.h gtkscale.h gtkhscale.h \
  42104. - gtktable.h gtkeventbox.h gtkcombo.h gtkcompat.h gtkctree.h \
  42105. - gtkcurve.h gtkdrawingarea.h gtkdialog.h gtkdnd.h gtkselection.h \
  42106. - gtkfeatures.h gtkfilesel.h gtkfixed.h gtkfontsel.h \
  42107. - gtknotebook.h gtkgamma.h gtkgc.h gtkhandlebox.h gtkhbbox.h \
  42108. - gtkhpaned.h gtkpaned.h gtkhruler.h gtkruler.h gtkhseparator.h \
  42109. - gtkseparator.h gtkimage.h gtkinputdialog.h gtkitemfactory.h \
  42110. - gtkmenufactory.h gtklayout.h gtklist.h gtklistitem.h gtkmenu.h \
  42111. - gtkmenushell.h gtkmenubar.h gtkoptionmenu.h gtkpacker.h \
  42112. - gtkpixmap.h gtkplug.h gtkprogress.h gtkprogressbar.h \
  42113. - gtkradiobutton.h gtkradiomenuitem.h gtkrc.h gtkscrolledwindow.h \
  42114. - gtkviewport.h gtksocket.h gtkspinbutton.h gtkstatusbar.h \
  42115. - gtktearoffmenuitem.h gtktext.h gtkthemes.h gtktipsquery.h \
  42116. - gtktoolbar.h gtktooltips.h gtktree.h gtktreeitem.h gtkvbbox.h \
  42117. - gtkvpaned.h gtkvruler.h gtkvscale.h gtkvseparator.h
  42118. -testselection.o: testselection.c gtk.h ../gdk/gdk.h ../gdk/gdktypes.h \
  42119. - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkaccelgroup.h gtkobject.h \
  42120. - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
  42121. - gtkaccellabel.h gtklabel.h gtkmisc.h gtkwidget.h \
  42122. - gtkadjustment.h gtkdata.h gtkstyle.h gtkalignment.h gtkbin.h \
  42123. - gtkcontainer.h gtkaspectframe.h gtkframe.h gtkarrow.h \
  42124. - gtkbindings.h gtkbox.h gtkbbox.h gtkbutton.h gtkcalendar.h \
  42125. - gtksignal.h gtkmarshal.h gtkcheckbutton.h gtktogglebutton.h \
  42126. - gtkcheckmenuitem.h gtkmenuitem.h gtkitem.h gtkclist.h \
  42127. - gtkhscrollbar.h gtkscrollbar.h gtkrange.h gtkvscrollbar.h \
  42128. - gtkcolorsel.h gtkwindow.h gtkvbox.h gtkpreview.h gtkentry.h \
  42129. - gtkeditable.h gtkhbox.h gtkmain.h gtkscale.h gtkhscale.h \
  42130. - gtktable.h gtkeventbox.h gtkcombo.h gtkcompat.h gtkctree.h \
  42131. - gtkcurve.h gtkdrawingarea.h gtkdialog.h gtkdnd.h gtkselection.h \
  42132. - gtkfeatures.h gtkfilesel.h gtkfixed.h gtkfontsel.h \
  42133. - gtknotebook.h gtkgamma.h gtkgc.h gtkhandlebox.h gtkhbbox.h \
  42134. - gtkhpaned.h gtkpaned.h gtkhruler.h gtkruler.h gtkhseparator.h \
  42135. - gtkseparator.h gtkimage.h gtkinputdialog.h gtkitemfactory.h \
  42136. - gtkmenufactory.h gtklayout.h gtklist.h gtklistitem.h gtkmenu.h \
  42137. - gtkmenushell.h gtkmenubar.h gtkoptionmenu.h gtkpacker.h \
  42138. - gtkpixmap.h gtkplug.h gtkprogress.h gtkprogressbar.h \
  42139. - gtkradiobutton.h gtkradiomenuitem.h gtkrc.h gtkscrolledwindow.h \
  42140. - gtkviewport.h gtksocket.h gtkspinbutton.h gtkstatusbar.h \
  42141. - gtktearoffmenuitem.h gtktext.h gtkthemes.h gtktipsquery.h \
  42142. - gtktoolbar.h gtktooltips.h gtktree.h gtktreeitem.h gtkvbbox.h \
  42143. - gtkvpaned.h gtkvruler.h gtkvscale.h gtkvseparator.h
  42144. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  42145. +
  42146. +-include $(DEP_FILES)
  42147. +
  42148. +mostlyclean-depend:
  42149. +
  42150. +clean-depend:
  42151. +
  42152. +distclean-depend:
  42153. + -rm -rf .deps
  42154. +
  42155. +maintainer-clean-depend:
  42156. +
  42157. +%.o: %.c
  42158. + @echo '$(COMPILE) -c $<'; \
  42159. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  42160. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  42161. + tr ' ' '\012' < .deps/$(*F).pp \
  42162. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  42163. + >> .deps/$(*F).P; \
  42164. + rm .deps/$(*F).pp
  42165. +
  42166. +%.lo: %.c
  42167. + @echo '$(LTCOMPILE) -c $<'; \
  42168. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  42169. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  42170. + < .deps/$(*F).pp > .deps/$(*F).P; \
  42171. + tr ' ' '\012' < .deps/$(*F).pp \
  42172. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  42173. + >> .deps/$(*F).P; \
  42174. + rm -f .deps/$(*F).pp
  42175. info-am:
  42176. info: info-am
  42177. dvi-am:
  42178. @@ -1384,19 +619,20 @@
  42179. -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
  42180. mostlyclean-am: mostlyclean-libLTLIBRARIES mostlyclean-compile \
  42181. mostlyclean-libtool mostlyclean-noinstPROGRAMS \
  42182. - mostlyclean-tags mostlyclean-generic
  42183. + mostlyclean-tags mostlyclean-depend mostlyclean-generic
  42184. mostlyclean: mostlyclean-am
  42185. clean-am: clean-libLTLIBRARIES clean-compile clean-libtool \
  42186. - clean-noinstPROGRAMS clean-tags clean-generic \
  42187. - mostlyclean-am
  42188. + clean-noinstPROGRAMS clean-tags clean-depend \
  42189. + clean-generic mostlyclean-am
  42190. clean: clean-am
  42191. distclean-am: distclean-libLTLIBRARIES distclean-compile \
  42192. distclean-libtool distclean-noinstPROGRAMS \
  42193. - distclean-tags distclean-generic clean-am
  42194. + distclean-tags distclean-depend distclean-generic \
  42195. + clean-am
  42196. -rm -f libtool
  42197. distclean: distclean-am
  42198. @@ -1404,7 +640,8 @@
  42199. maintainer-clean-am: maintainer-clean-libLTLIBRARIES \
  42200. maintainer-clean-compile maintainer-clean-libtool \
  42201. maintainer-clean-noinstPROGRAMS maintainer-clean-tags \
  42202. - maintainer-clean-generic distclean-am
  42203. + maintainer-clean-depend maintainer-clean-generic \
  42204. + distclean-am
  42205. @echo "This command is intended for maintainers to use;"
  42206. @echo "it deletes files that may require special tools to rebuild."
  42207. @@ -1420,10 +657,11 @@
  42208. maintainer-clean-noinstPROGRAMS uninstall-gtkconfDATA \
  42209. install-gtkconfDATA uninstall-libgtkincludeHEADERS \
  42210. install-libgtkincludeHEADERS tags mostlyclean-tags distclean-tags \
  42211. -clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
  42212. -check-am installcheck-am installcheck install-exec-am install-exec \
  42213. -install-data-local install-data-am install-data install-am install \
  42214. -uninstall-local uninstall-am uninstall all-redirect all-am all \
  42215. +clean-tags maintainer-clean-tags distdir mostlyclean-depend \
  42216. +distclean-depend clean-depend maintainer-clean-depend info-am info \
  42217. +dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  42218. +install-exec install-data-local install-data-am install-data install-am \
  42219. +install uninstall-local uninstall-am uninstall all-redirect all-am all \
  42220. installdirs mostlyclean-generic distclean-generic clean-generic \
  42221. maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  42222. diff -urN gtk+-1.2.10.orig/ltmain.sh gtk+-1.2.10/ltmain.sh
  42223. --- gtk+-1.2.10.orig/ltmain.sh 2000-02-02 18:07:43.000000000 -0700
  42224. +++ gtk+-1.2.10/ltmain.sh 2006-01-10 08:23:52.000000000 -0700
  42225. @@ -1,7 +1,8 @@
  42226. # ltmain.sh - Provide generalized library-building support services.
  42227. -# NOTE: Changing this file will not affect anything until you rerun ltconfig.
  42228. +# NOTE: Changing this file will not affect anything until you rerun configure.
  42229. #
  42230. -# Copyright (C) 1996-1999 Free Software Foundation, Inc.
  42231. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
  42232. +# Free Software Foundation, Inc.
  42233. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  42234. #
  42235. # This program is free software; you can redistribute it and/or modify
  42236. @@ -16,13 +17,41 @@
  42237. #
  42238. # You should have received a copy of the GNU General Public License
  42239. # along with this program; if not, write to the Free Software
  42240. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  42241. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  42242. #
  42243. # As a special exception to the GNU General Public License, if you
  42244. # distribute this file as part of a program that contains a
  42245. # configuration script generated by Autoconf, you may include it under
  42246. # the same distribution terms that you use for the rest of that program.
  42247. +basename="s,^.*/,,g"
  42248. +
  42249. +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  42250. +# is ksh but when the shell is invoked as "sh" and the current value of
  42251. +# the _XPG environment variable is not equal to 1 (one), the special
  42252. +# positional parameter $0, within a function call, is the name of the
  42253. +# function.
  42254. +progpath="$0"
  42255. +
  42256. +# The name of this program:
  42257. +progname=`echo "$progpath" | $SED $basename`
  42258. +modename="$progname"
  42259. +
  42260. +# Global variables:
  42261. +EXIT_SUCCESS=0
  42262. +EXIT_FAILURE=1
  42263. +
  42264. +PROGRAM=ltmain.sh
  42265. +PACKAGE=libtool
  42266. +VERSION="1.5.22 Debian 1.5.22-2"
  42267. +TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
  42268. +
  42269. +# See if we are running on zsh, and set the options which allow our
  42270. +# commands through without removal of \ escapes.
  42271. +if test -n "${ZSH_VERSION+set}" ; then
  42272. + setopt NO_GLOB_SUBST
  42273. +fi
  42274. +
  42275. # Check that we have a working $echo.
  42276. if test "X$1" = X--no-reexec; then
  42277. # Discard the --no-reexec flag, and continue.
  42278. @@ -35,7 +64,7 @@
  42279. :
  42280. else
  42281. # Restart under the correct shell, and then maybe $echo will work.
  42282. - exec $SHELL "$0" --no-reexec ${1+"$@"}
  42283. + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  42284. fi
  42285. if test "X$1" = X--fallback-echo; then
  42286. @@ -44,19 +73,9 @@
  42287. cat <<EOF
  42288. $*
  42289. EOF
  42290. - exit 0
  42291. + exit $EXIT_SUCCESS
  42292. fi
  42293. -# The name of this program.
  42294. -progname=`$echo "$0" | sed 's%^.*/%%'`
  42295. -modename="$progname"
  42296. -
  42297. -# Constants.
  42298. -PROGRAM=ltmain.sh
  42299. -PACKAGE=libtool
  42300. -VERSION=1.3.4
  42301. -TIMESTAMP=" (1.385.2.196 1999/12/07 21:47:57)"
  42302. -
  42303. default_mode=
  42304. help="Try \`$progname --help' for more information."
  42305. magic="%%%MAGIC variable%%%"
  42306. @@ -66,10 +85,20 @@
  42307. # Sed substitution that helps us do robust quoting. It backslashifies
  42308. # metacharacters that are still active within double-quoted strings.
  42309. -Xsed='sed -e 1s/^X//'
  42310. +Xsed="${SED}"' -e 1s/^X//'
  42311. sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  42312. -SP2NL='tr \040 \012'
  42313. -NL2SP='tr \015\012 \040\040'
  42314. +# test EBCDIC or ASCII
  42315. +case `echo X|tr X '\101'` in
  42316. + A) # ASCII based system
  42317. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  42318. + SP2NL='tr \040 \012'
  42319. + NL2SP='tr \015\012 \040\040'
  42320. + ;;
  42321. + *) # EBCDIC based system
  42322. + SP2NL='tr \100 \n'
  42323. + NL2SP='tr \r\n \100\100'
  42324. + ;;
  42325. +esac
  42326. # NLS nuisances.
  42327. # Only set LANG and LC_ALL to C if already set.
  42328. @@ -83,16 +112,15 @@
  42329. save_LANG="$LANG"; LANG=C; export LANG
  42330. fi
  42331. -if test "$LTCONFIG_VERSION" != "$VERSION"; then
  42332. - echo "$modename: ltconfig version \`$LTCONFIG_VERSION' does not match $PROGRAM version \`$VERSION'" 1>&2
  42333. - echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  42334. - exit 1
  42335. -fi
  42336. +# Make sure IFS has a sensible default
  42337. +lt_nl='
  42338. +'
  42339. +IFS=" $lt_nl"
  42340. if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  42341. - echo "$modename: not configured to build any kind of library" 1>&2
  42342. - echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  42343. - exit 1
  42344. + $echo "$modename: not configured to build any kind of library" 1>&2
  42345. + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  42346. + exit $EXIT_FAILURE
  42347. fi
  42348. # Global variables.
  42349. @@ -104,25 +132,310 @@
  42350. show="$echo"
  42351. show_help=
  42352. execute_dlfiles=
  42353. +duplicate_deps=no
  42354. +preserve_args=
  42355. lo2o="s/\\.lo\$/.${objext}/"
  42356. o2lo="s/\\.${objext}\$/.lo/"
  42357. +#####################################
  42358. +# Shell function definitions:
  42359. +# This seems to be the best place for them
  42360. +
  42361. +# func_mktempdir [string]
  42362. +# Make a temporary directory that won't clash with other running
  42363. +# libtool processes, and avoids race conditions if possible. If
  42364. +# given, STRING is the basename for that directory.
  42365. +func_mktempdir ()
  42366. +{
  42367. + my_template="${TMPDIR-/tmp}/${1-$progname}"
  42368. +
  42369. + if test "$run" = ":"; then
  42370. + # Return a directory name, but don't create it in dry-run mode
  42371. + my_tmpdir="${my_template}-$$"
  42372. + else
  42373. +
  42374. + # If mktemp works, use that first and foremost
  42375. + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
  42376. +
  42377. + if test ! -d "$my_tmpdir"; then
  42378. + # Failing that, at least try and use $RANDOM to avoid a race
  42379. + my_tmpdir="${my_template}-${RANDOM-0}$$"
  42380. +
  42381. + save_mktempdir_umask=`umask`
  42382. + umask 0077
  42383. + $mkdir "$my_tmpdir"
  42384. + umask $save_mktempdir_umask
  42385. + fi
  42386. +
  42387. + # If we're not in dry-run mode, bomb out on failure
  42388. + test -d "$my_tmpdir" || {
  42389. + $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
  42390. + exit $EXIT_FAILURE
  42391. + }
  42392. + fi
  42393. +
  42394. + $echo "X$my_tmpdir" | $Xsed
  42395. +}
  42396. +
  42397. +
  42398. +# func_win32_libid arg
  42399. +# return the library type of file 'arg'
  42400. +#
  42401. +# Need a lot of goo to handle *both* DLLs and import libs
  42402. +# Has to be a shell function in order to 'eat' the argument
  42403. +# that is supplied when $file_magic_command is called.
  42404. +func_win32_libid ()
  42405. +{
  42406. + win32_libid_type="unknown"
  42407. + win32_fileres=`file -L $1 2>/dev/null`
  42408. + case $win32_fileres in
  42409. + *ar\ archive\ import\ library*) # definitely import
  42410. + win32_libid_type="x86 archive import"
  42411. + ;;
  42412. + *ar\ archive*) # could be an import, or static
  42413. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
  42414. + $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  42415. + win32_nmres=`eval $NM -f posix -A $1 | \
  42416. + $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
  42417. + case $win32_nmres in
  42418. + import*) win32_libid_type="x86 archive import";;
  42419. + *) win32_libid_type="x86 archive static";;
  42420. + esac
  42421. + fi
  42422. + ;;
  42423. + *DLL*)
  42424. + win32_libid_type="x86 DLL"
  42425. + ;;
  42426. + *executable*) # but shell scripts are "executable" too...
  42427. + case $win32_fileres in
  42428. + *MS\ Windows\ PE\ Intel*)
  42429. + win32_libid_type="x86 DLL"
  42430. + ;;
  42431. + esac
  42432. + ;;
  42433. + esac
  42434. + $echo $win32_libid_type
  42435. +}
  42436. +
  42437. +
  42438. +# func_infer_tag arg
  42439. +# Infer tagged configuration to use if any are available and
  42440. +# if one wasn't chosen via the "--tag" command line option.
  42441. +# Only attempt this if the compiler in the base compile
  42442. +# command doesn't match the default compiler.
  42443. +# arg is usually of the form 'gcc ...'
  42444. +func_infer_tag ()
  42445. +{
  42446. + if test -n "$available_tags" && test -z "$tagname"; then
  42447. + CC_quoted=
  42448. + for arg in $CC; do
  42449. + case $arg in
  42450. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  42451. + arg="\"$arg\""
  42452. + ;;
  42453. + esac
  42454. + CC_quoted="$CC_quoted $arg"
  42455. + done
  42456. + case $@ in
  42457. + # Blanks in the command may have been stripped by the calling shell,
  42458. + # but not from the CC environment variable when configure was run.
  42459. + " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
  42460. + # Blanks at the start of $base_compile will cause this to fail
  42461. + # if we don't check for them as well.
  42462. + *)
  42463. + for z in $available_tags; do
  42464. + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  42465. + # Evaluate the configuration.
  42466. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  42467. + CC_quoted=
  42468. + for arg in $CC; do
  42469. + # Double-quote args containing other shell metacharacters.
  42470. + case $arg in
  42471. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  42472. + arg="\"$arg\""
  42473. + ;;
  42474. + esac
  42475. + CC_quoted="$CC_quoted $arg"
  42476. + done
  42477. + case "$@ " in
  42478. + " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
  42479. + # The compiler in the base compile command matches
  42480. + # the one in the tagged configuration.
  42481. + # Assume this is the tagged configuration we want.
  42482. + tagname=$z
  42483. + break
  42484. + ;;
  42485. + esac
  42486. + fi
  42487. + done
  42488. + # If $tagname still isn't set, then no tagged configuration
  42489. + # was found and let the user know that the "--tag" command
  42490. + # line option must be used.
  42491. + if test -z "$tagname"; then
  42492. + $echo "$modename: unable to infer tagged configuration"
  42493. + $echo "$modename: specify a tag with \`--tag'" 1>&2
  42494. + exit $EXIT_FAILURE
  42495. +# else
  42496. +# $echo "$modename: using $tagname tagged configuration"
  42497. + fi
  42498. + ;;
  42499. + esac
  42500. + fi
  42501. +}
  42502. +
  42503. +
  42504. +# func_extract_an_archive dir oldlib
  42505. +func_extract_an_archive ()
  42506. +{
  42507. + f_ex_an_ar_dir="$1"; shift
  42508. + f_ex_an_ar_oldlib="$1"
  42509. +
  42510. + $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
  42511. + $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
  42512. + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  42513. + :
  42514. + else
  42515. + $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
  42516. + exit $EXIT_FAILURE
  42517. + fi
  42518. +}
  42519. +
  42520. +# func_extract_archives gentop oldlib ...
  42521. +func_extract_archives ()
  42522. +{
  42523. + my_gentop="$1"; shift
  42524. + my_oldlibs=${1+"$@"}
  42525. + my_oldobjs=""
  42526. + my_xlib=""
  42527. + my_xabs=""
  42528. + my_xdir=""
  42529. + my_status=""
  42530. +
  42531. + $show "${rm}r $my_gentop"
  42532. + $run ${rm}r "$my_gentop"
  42533. + $show "$mkdir $my_gentop"
  42534. + $run $mkdir "$my_gentop"
  42535. + my_status=$?
  42536. + if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
  42537. + exit $my_status
  42538. + fi
  42539. +
  42540. + for my_xlib in $my_oldlibs; do
  42541. + # Extract the objects.
  42542. + case $my_xlib in
  42543. + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  42544. + *) my_xabs=`pwd`"/$my_xlib" ;;
  42545. + esac
  42546. + my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
  42547. + my_xdir="$my_gentop/$my_xlib"
  42548. +
  42549. + $show "${rm}r $my_xdir"
  42550. + $run ${rm}r "$my_xdir"
  42551. + $show "$mkdir $my_xdir"
  42552. + $run $mkdir "$my_xdir"
  42553. + exit_status=$?
  42554. + if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
  42555. + exit $exit_status
  42556. + fi
  42557. + case $host in
  42558. + *-darwin*)
  42559. + $show "Extracting $my_xabs"
  42560. + # Do not bother doing anything if just a dry run
  42561. + if test -z "$run"; then
  42562. + darwin_orig_dir=`pwd`
  42563. + cd $my_xdir || exit $?
  42564. + darwin_archive=$my_xabs
  42565. + darwin_curdir=`pwd`
  42566. + darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
  42567. + darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
  42568. + if test -n "$darwin_arches"; then
  42569. + darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
  42570. + darwin_arch=
  42571. + $show "$darwin_base_archive has multiple architectures $darwin_arches"
  42572. + for darwin_arch in $darwin_arches ; do
  42573. + mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  42574. + lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  42575. + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  42576. + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  42577. + cd "$darwin_curdir"
  42578. + $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  42579. + done # $darwin_arches
  42580. + ## Okay now we have a bunch of thin objects, gotta fatten them up :)
  42581. + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
  42582. + darwin_file=
  42583. + darwin_files=
  42584. + for darwin_file in $darwin_filelist; do
  42585. + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  42586. + lipo -create -output "$darwin_file" $darwin_files
  42587. + done # $darwin_filelist
  42588. + ${rm}r unfat-$$
  42589. + cd "$darwin_orig_dir"
  42590. + else
  42591. + cd "$darwin_orig_dir"
  42592. + func_extract_an_archive "$my_xdir" "$my_xabs"
  42593. + fi # $darwin_arches
  42594. + fi # $run
  42595. + ;;
  42596. + *)
  42597. + func_extract_an_archive "$my_xdir" "$my_xabs"
  42598. + ;;
  42599. + esac
  42600. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  42601. + done
  42602. + func_extract_archives_result="$my_oldobjs"
  42603. +}
  42604. +# End of Shell function definitions
  42605. +#####################################
  42606. +
  42607. +# Darwin sucks
  42608. +eval std_shrext=\"$shrext_cmds\"
  42609. +
  42610. +disable_libs=no
  42611. +
  42612. # Parse our command line options once, thoroughly.
  42613. -while test $# -gt 0
  42614. +while test "$#" -gt 0
  42615. do
  42616. arg="$1"
  42617. shift
  42618. - case "$arg" in
  42619. + case $arg in
  42620. -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  42621. *) optarg= ;;
  42622. esac
  42623. # If the previous option needs an argument, assign it.
  42624. if test -n "$prev"; then
  42625. - case "$prev" in
  42626. + case $prev in
  42627. execute_dlfiles)
  42628. - eval "$prev=\"\$$prev \$arg\""
  42629. + execute_dlfiles="$execute_dlfiles $arg"
  42630. + ;;
  42631. + tag)
  42632. + tagname="$arg"
  42633. + preserve_args="${preserve_args}=$arg"
  42634. +
  42635. + # Check whether tagname contains only valid characters
  42636. + case $tagname in
  42637. + *[!-_A-Za-z0-9,/]*)
  42638. + $echo "$progname: invalid tag name: $tagname" 1>&2
  42639. + exit $EXIT_FAILURE
  42640. + ;;
  42641. + esac
  42642. +
  42643. + case $tagname in
  42644. + CC)
  42645. + # Don't test for the "default" C tag, as we know, it's there, but
  42646. + # not specially marked.
  42647. + ;;
  42648. + *)
  42649. + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
  42650. + taglist="$taglist $tagname"
  42651. + # Evaluate the configuration.
  42652. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
  42653. + else
  42654. + $echo "$progname: ignoring unknown tag $tagname" 1>&2
  42655. + fi
  42656. + ;;
  42657. + esac
  42658. ;;
  42659. *)
  42660. eval "$prev=\$arg"
  42661. @@ -135,24 +448,33 @@
  42662. fi
  42663. # Have we seen a non-optional argument yet?
  42664. - case "$arg" in
  42665. + case $arg in
  42666. --help)
  42667. show_help=yes
  42668. ;;
  42669. --version)
  42670. - echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
  42671. - exit 0
  42672. + $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
  42673. + $echo
  42674. + $echo "Copyright (C) 2005 Free Software Foundation, Inc."
  42675. + $echo "This is free software; see the source for copying conditions. There is NO"
  42676. + $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  42677. + exit $?
  42678. ;;
  42679. --config)
  42680. - sed -e '1,/^### BEGIN LIBTOOL CONFIG/d' -e '/^### END LIBTOOL CONFIG/,$d' $0
  42681. - exit 0
  42682. + ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
  42683. + # Now print the configurations for the tags.
  42684. + for tagname in $taglist; do
  42685. + ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
  42686. + done
  42687. + exit $?
  42688. ;;
  42689. --debug)
  42690. - echo "$progname: enabling shell trace mode"
  42691. + $echo "$progname: enabling shell trace mode"
  42692. set -x
  42693. + preserve_args="$preserve_args $arg"
  42694. ;;
  42695. --dry-run | -n)
  42696. @@ -160,18 +482,18 @@
  42697. ;;
  42698. --features)
  42699. - echo "host: $host"
  42700. + $echo "host: $host"
  42701. if test "$build_libtool_libs" = yes; then
  42702. - echo "enable shared libraries"
  42703. + $echo "enable shared libraries"
  42704. else
  42705. - echo "disable shared libraries"
  42706. + $echo "disable shared libraries"
  42707. fi
  42708. if test "$build_old_libs" = yes; then
  42709. - echo "enable static libraries"
  42710. + $echo "enable static libraries"
  42711. else
  42712. - echo "disable static libraries"
  42713. + $echo "disable static libraries"
  42714. fi
  42715. - exit 0
  42716. + exit $?
  42717. ;;
  42718. --finish) mode="finish" ;;
  42719. @@ -179,8 +501,23 @@
  42720. --mode) prevopt="--mode" prev=mode ;;
  42721. --mode=*) mode="$optarg" ;;
  42722. + --preserve-dup-deps) duplicate_deps="yes" ;;
  42723. +
  42724. --quiet | --silent)
  42725. show=:
  42726. + preserve_args="$preserve_args $arg"
  42727. + ;;
  42728. +
  42729. + --tag)
  42730. + prevopt="--tag"
  42731. + prev=tag
  42732. + preserve_args="$preserve_args --tag"
  42733. + ;;
  42734. + --tag=*)
  42735. + set tag "$optarg" ${1+"$@"}
  42736. + shift
  42737. + prev=tag
  42738. + preserve_args="$preserve_args --tag"
  42739. ;;
  42740. -dlopen)
  42741. @@ -191,7 +528,7 @@
  42742. -*)
  42743. $echo "$modename: unrecognized option \`$arg'" 1>&2
  42744. $echo "$help" 1>&2
  42745. - exit 1
  42746. + exit $EXIT_FAILURE
  42747. ;;
  42748. *)
  42749. @@ -204,19 +541,38 @@
  42750. if test -n "$prevopt"; then
  42751. $echo "$modename: option \`$prevopt' requires an argument" 1>&2
  42752. $echo "$help" 1>&2
  42753. - exit 1
  42754. + exit $EXIT_FAILURE
  42755. fi
  42756. +case $disable_libs in
  42757. +no)
  42758. + ;;
  42759. +shared)
  42760. + build_libtool_libs=no
  42761. + build_old_libs=yes
  42762. + ;;
  42763. +static)
  42764. + build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  42765. + ;;
  42766. +esac
  42767. +
  42768. +# If this variable is set in any of the actions, the command in it
  42769. +# will be execed at the end. This prevents here-documents from being
  42770. +# left over by shells.
  42771. +exec_cmd=
  42772. +
  42773. if test -z "$show_help"; then
  42774. # Infer the operation mode.
  42775. if test -z "$mode"; then
  42776. - case "$nonopt" in
  42777. - *cc | *++ | gcc* | *-gcc*)
  42778. + $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
  42779. + $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
  42780. + case $nonopt in
  42781. + *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
  42782. mode=link
  42783. for arg
  42784. do
  42785. - case "$arg" in
  42786. + case $arg in
  42787. -c)
  42788. mode=compile
  42789. break
  42790. @@ -253,7 +609,7 @@
  42791. if test -n "$execute_dlfiles" && test "$mode" != execute; then
  42792. $echo "$modename: unrecognized option \`-dlopen'" 1>&2
  42793. $echo "$help" 1>&2
  42794. - exit 1
  42795. + exit $EXIT_FAILURE
  42796. fi
  42797. # Change the help message to a mode-specific one.
  42798. @@ -261,140 +617,233 @@
  42799. help="Try \`$modename --help --mode=$mode' for more information."
  42800. # These modes are in order of execution frequency so that they run quickly.
  42801. - case "$mode" in
  42802. + case $mode in
  42803. # libtool compile mode
  42804. compile)
  42805. modename="$modename: compile"
  42806. # Get the compilation command and the source file.
  42807. base_compile=
  42808. - lastarg=
  42809. - srcfile="$nonopt"
  42810. + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  42811. + suppress_opt=yes
  42812. suppress_output=
  42813. + arg_mode=normal
  42814. + libobj=
  42815. + later=
  42816. - user_target=no
  42817. for arg
  42818. do
  42819. - # Accept any command-line options.
  42820. - case "$arg" in
  42821. - -o)
  42822. - if test "$user_target" != "no"; then
  42823. - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  42824. - exit 1
  42825. - fi
  42826. - user_target=next
  42827. - ;;
  42828. -
  42829. - -static)
  42830. - build_old_libs=yes
  42831. - continue
  42832. + case $arg_mode in
  42833. + arg )
  42834. + # do not "continue". Instead, add this to base_compile
  42835. + lastarg="$arg"
  42836. + arg_mode=normal
  42837. ;;
  42838. - esac
  42839. - case "$user_target" in
  42840. - next)
  42841. - # The next one is the -o target name
  42842. - user_target=yes
  42843. - continue
  42844. - ;;
  42845. - yes)
  42846. - # We got the output file
  42847. - user_target=set
  42848. + target )
  42849. libobj="$arg"
  42850. + arg_mode=normal
  42851. continue
  42852. ;;
  42853. - esac
  42854. - # Accept the current argument as the source file.
  42855. - lastarg="$srcfile"
  42856. - srcfile="$arg"
  42857. + normal )
  42858. + # Accept any command-line options.
  42859. + case $arg in
  42860. + -o)
  42861. + if test -n "$libobj" ; then
  42862. + $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  42863. + exit $EXIT_FAILURE
  42864. + fi
  42865. + arg_mode=target
  42866. + continue
  42867. + ;;
  42868. - # Aesthetically quote the previous argument.
  42869. + -static | -prefer-pic | -prefer-non-pic)
  42870. + later="$later $arg"
  42871. + continue
  42872. + ;;
  42873. - # Backslashify any backslashes, double quotes, and dollar signs.
  42874. - # These are the only characters that are still specially
  42875. - # interpreted inside of double-quoted scrings.
  42876. + -no-suppress)
  42877. + suppress_opt=no
  42878. + continue
  42879. + ;;
  42880. +
  42881. + -Xcompiler)
  42882. + arg_mode=arg # the next one goes into the "base_compile" arg list
  42883. + continue # The current "srcfile" will either be retained or
  42884. + ;; # replaced later. I would guess that would be a bug.
  42885. +
  42886. + -Wc,*)
  42887. + args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  42888. + lastarg=
  42889. + save_ifs="$IFS"; IFS=','
  42890. + for arg in $args; do
  42891. + IFS="$save_ifs"
  42892. +
  42893. + # Double-quote args containing other shell metacharacters.
  42894. + # Many Bourne shells cannot handle close brackets correctly
  42895. + # in scan sets, so we specify it separately.
  42896. + case $arg in
  42897. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  42898. + arg="\"$arg\""
  42899. + ;;
  42900. + esac
  42901. + lastarg="$lastarg $arg"
  42902. + done
  42903. + IFS="$save_ifs"
  42904. + lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  42905. +
  42906. + # Add the arguments to base_compile.
  42907. + base_compile="$base_compile $lastarg"
  42908. + continue
  42909. + ;;
  42910. +
  42911. + * )
  42912. + # Accept the current argument as the source file.
  42913. + # The previous "srcfile" becomes the current argument.
  42914. + #
  42915. + lastarg="$srcfile"
  42916. + srcfile="$arg"
  42917. + ;;
  42918. + esac # case $arg
  42919. + ;;
  42920. + esac # case $arg_mode
  42921. +
  42922. + # Aesthetically quote the previous argument.
  42923. lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  42924. + case $lastarg in
  42925. # Double-quote args containing other shell metacharacters.
  42926. - # Many Bourne shells cannot handle close brackets correctly in scan
  42927. - # sets, so we specify it separately.
  42928. - case "$lastarg" in
  42929. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  42930. + # Many Bourne shells cannot handle close brackets correctly
  42931. + # in scan sets, and some SunOS ksh mistreat backslash-escaping
  42932. + # in scan sets (worked around with variable expansion),
  42933. + # and furthermore cannot handle '|' '&' '(' ')' in scan sets
  42934. + # at all, so we specify them separately.
  42935. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  42936. lastarg="\"$lastarg\""
  42937. ;;
  42938. esac
  42939. - # Add the previous argument to base_compile.
  42940. - if test -z "$base_compile"; then
  42941. - base_compile="$lastarg"
  42942. - else
  42943. - base_compile="$base_compile $lastarg"
  42944. - fi
  42945. - done
  42946. + base_compile="$base_compile $lastarg"
  42947. + done # for arg
  42948. - case "$user_target" in
  42949. - set)
  42950. + case $arg_mode in
  42951. + arg)
  42952. + $echo "$modename: you must specify an argument for -Xcompile"
  42953. + exit $EXIT_FAILURE
  42954. ;;
  42955. - no)
  42956. - # Get the name of the library object.
  42957. - libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  42958. + target)
  42959. + $echo "$modename: you must specify a target with \`-o'" 1>&2
  42960. + exit $EXIT_FAILURE
  42961. ;;
  42962. *)
  42963. - $echo "$modename: you must specify a target with \`-o'" 1>&2
  42964. - exit 1
  42965. + # Get the name of the library object.
  42966. + [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  42967. ;;
  42968. esac
  42969. # Recognize several different file suffixes.
  42970. # If the user specifies -o file.o, it is replaced with file.lo
  42971. - xform='[cCFSfmso]'
  42972. - case "$libobj" in
  42973. + xform='[cCFSifmso]'
  42974. + case $libobj in
  42975. *.ada) xform=ada ;;
  42976. *.adb) xform=adb ;;
  42977. *.ads) xform=ads ;;
  42978. *.asm) xform=asm ;;
  42979. *.c++) xform=c++ ;;
  42980. *.cc) xform=cc ;;
  42981. + *.ii) xform=ii ;;
  42982. + *.class) xform=class ;;
  42983. *.cpp) xform=cpp ;;
  42984. *.cxx) xform=cxx ;;
  42985. *.f90) xform=f90 ;;
  42986. *.for) xform=for ;;
  42987. + *.java) xform=java ;;
  42988. esac
  42989. libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  42990. - case "$libobj" in
  42991. + case $libobj in
  42992. *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  42993. *)
  42994. $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  42995. - exit 1
  42996. + exit $EXIT_FAILURE
  42997. ;;
  42998. esac
  42999. + func_infer_tag $base_compile
  43000. +
  43001. + for arg in $later; do
  43002. + case $arg in
  43003. + -static)
  43004. + build_old_libs=yes
  43005. + continue
  43006. + ;;
  43007. +
  43008. + -prefer-pic)
  43009. + pic_mode=yes
  43010. + continue
  43011. + ;;
  43012. +
  43013. + -prefer-non-pic)
  43014. + pic_mode=no
  43015. + continue
  43016. + ;;
  43017. + esac
  43018. + done
  43019. +
  43020. + qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
  43021. + case $qlibobj in
  43022. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  43023. + qlibobj="\"$qlibobj\"" ;;
  43024. + esac
  43025. + test "X$libobj" != "X$qlibobj" \
  43026. + && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
  43027. + && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
  43028. + objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  43029. + xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  43030. + if test "X$xdir" = "X$obj"; then
  43031. + xdir=
  43032. + else
  43033. + xdir=$xdir/
  43034. + fi
  43035. + lobj=${xdir}$objdir/$objname
  43036. +
  43037. if test -z "$base_compile"; then
  43038. $echo "$modename: you must specify a compilation command" 1>&2
  43039. $echo "$help" 1>&2
  43040. - exit 1
  43041. + exit $EXIT_FAILURE
  43042. fi
  43043. # Delete any leftover library objects.
  43044. if test "$build_old_libs" = yes; then
  43045. - removelist="$obj $libobj"
  43046. + removelist="$obj $lobj $libobj ${libobj}T"
  43047. else
  43048. - removelist="$libobj"
  43049. + removelist="$lobj $libobj ${libobj}T"
  43050. fi
  43051. $run $rm $removelist
  43052. - trap "$run $rm $removelist; exit 1" 1 2 15
  43053. + trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  43054. +
  43055. + # On Cygwin there's no "real" PIC flag so we must build both object types
  43056. + case $host_os in
  43057. + cygwin* | mingw* | pw32* | os2*)
  43058. + pic_mode=default
  43059. + ;;
  43060. + esac
  43061. + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
  43062. + # non-PIC code in shared libraries is not supported
  43063. + pic_mode=default
  43064. + fi
  43065. # Calculate the filename of the output object if compiler does
  43066. # not support -o with -c
  43067. if test "$compiler_c_o" = no; then
  43068. - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\..*$%%'`.${objext}
  43069. + output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  43070. lockfile="$output_obj.lock"
  43071. removelist="$removelist $output_obj $lockfile"
  43072. - trap "$run $rm $removelist; exit 1" 1 2 15
  43073. + trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  43074. else
  43075. + output_obj=
  43076. need_locks=no
  43077. lockfile=
  43078. fi
  43079. @@ -402,13 +851,13 @@
  43080. # Lock this critical section if it is needed
  43081. # We use this script file to make the link, it avoids creating a new file
  43082. if test "$need_locks" = yes; then
  43083. - until ln "$0" "$lockfile" 2>/dev/null; do
  43084. + until $run ln "$progpath" "$lockfile" 2>/dev/null; do
  43085. $show "Waiting for $lockfile to be removed"
  43086. sleep 2
  43087. done
  43088. elif test "$need_locks" = warn; then
  43089. if test -f "$lockfile"; then
  43090. - echo "\
  43091. + $echo "\
  43092. *** ERROR, $lockfile exists and contains:
  43093. `cat $lockfile 2>/dev/null`
  43094. @@ -420,63 +869,72 @@
  43095. compiler."
  43096. $run $rm $removelist
  43097. - exit 1
  43098. + exit $EXIT_FAILURE
  43099. fi
  43100. - echo $srcfile > "$lockfile"
  43101. + $echo "$srcfile" > "$lockfile"
  43102. fi
  43103. if test -n "$fix_srcfile_path"; then
  43104. eval srcfile=\"$fix_srcfile_path\"
  43105. fi
  43106. + qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
  43107. + case $qsrcfile in
  43108. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  43109. + qsrcfile="\"$qsrcfile\"" ;;
  43110. + esac
  43111. +
  43112. + $run $rm "$libobj" "${libobj}T"
  43113. +
  43114. + # Create a libtool object file (analogous to a ".la" file),
  43115. + # but don't create it if we're doing a dry run.
  43116. + test -z "$run" && cat > ${libobj}T <<EOF
  43117. +# $libobj - a libtool object file
  43118. +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  43119. +#
  43120. +# Please DO NOT delete this file!
  43121. +# It is necessary for linking the library.
  43122. +
  43123. +# Name of the PIC object.
  43124. +EOF
  43125. # Only build a PIC object if we are building libtool libraries.
  43126. if test "$build_libtool_libs" = yes; then
  43127. # Without this assignment, base_compile gets emptied.
  43128. fbsd_hideous_sh_bug=$base_compile
  43129. - # All platforms use -DPIC, to notify preprocessed assembler code.
  43130. - command="$base_compile $srcfile $pic_flag -DPIC"
  43131. - if test "$build_old_libs" = yes; then
  43132. - lo_libobj="$libobj"
  43133. - dir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
  43134. - if test "X$dir" = "X$libobj"; then
  43135. - dir="$objdir"
  43136. - else
  43137. - dir="$dir/$objdir"
  43138. - fi
  43139. - libobj="$dir/"`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
  43140. + if test "$pic_mode" != no; then
  43141. + command="$base_compile $qsrcfile $pic_flag"
  43142. + else
  43143. + # Don't build PIC code
  43144. + command="$base_compile $qsrcfile"
  43145. + fi
  43146. - if test -d "$dir"; then
  43147. - $show "$rm $libobj"
  43148. - $run $rm $libobj
  43149. - else
  43150. - $show "$mkdir $dir"
  43151. - $run $mkdir $dir
  43152. - status=$?
  43153. - if test $status -ne 0 && test ! -d $dir; then
  43154. - exit $status
  43155. - fi
  43156. + if test ! -d "${xdir}$objdir"; then
  43157. + $show "$mkdir ${xdir}$objdir"
  43158. + $run $mkdir ${xdir}$objdir
  43159. + exit_status=$?
  43160. + if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
  43161. + exit $exit_status
  43162. fi
  43163. fi
  43164. - if test "$compiler_o_lo" = yes; then
  43165. - output_obj="$libobj"
  43166. - command="$command -o $output_obj"
  43167. - elif test "$compiler_c_o" = yes; then
  43168. - output_obj="$obj"
  43169. - command="$command -o $output_obj"
  43170. +
  43171. + if test -z "$output_obj"; then
  43172. + # Place PIC objects in $objdir
  43173. + command="$command -o $lobj"
  43174. fi
  43175. - $run $rm "$output_obj"
  43176. + $run $rm "$lobj" "$output_obj"
  43177. +
  43178. $show "$command"
  43179. if $run eval "$command"; then :
  43180. else
  43181. test -n "$output_obj" && $run $rm $removelist
  43182. - exit 1
  43183. + exit $EXIT_FAILURE
  43184. fi
  43185. if test "$need_locks" = warn &&
  43186. - test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
  43187. - echo "\
  43188. + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  43189. + $echo "\
  43190. *** ERROR, $lockfile contains:
  43191. `cat $lockfile 2>/dev/null`
  43192. @@ -491,13 +949,13 @@
  43193. compiler."
  43194. $run $rm $removelist
  43195. - exit 1
  43196. + exit $EXIT_FAILURE
  43197. fi
  43198. # Just move the object if needed, then go on to compile the next one
  43199. - if test x"$output_obj" != x"$libobj"; then
  43200. - $show "$mv $output_obj $libobj"
  43201. - if $run $mv $output_obj $libobj; then :
  43202. + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  43203. + $show "$mv $output_obj $lobj"
  43204. + if $run $mv $output_obj $lobj; then :
  43205. else
  43206. error=$?
  43207. $run $rm $removelist
  43208. @@ -505,66 +963,50 @@
  43209. fi
  43210. fi
  43211. - # If we have no pic_flag, then copy the object into place and finish.
  43212. - if test -z "$pic_flag" && test "$build_old_libs" = yes; then
  43213. - # Rename the .lo from within objdir to obj
  43214. - if test -f $obj; then
  43215. - $show $rm $obj
  43216. - $run $rm $obj
  43217. - fi
  43218. + # Append the name of the PIC object to the libtool object file.
  43219. + test -z "$run" && cat >> ${libobj}T <<EOF
  43220. +pic_object='$objdir/$objname'
  43221. - $show "$mv $libobj $obj"
  43222. - if $run $mv $libobj $obj; then :
  43223. - else
  43224. - error=$?
  43225. - $run $rm $removelist
  43226. - exit $error
  43227. - fi
  43228. +EOF
  43229. - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  43230. - if test "X$xdir" = "X$obj"; then
  43231. - xdir="."
  43232. - else
  43233. - xdir="$xdir"
  43234. - fi
  43235. - baseobj=`$echo "X$obj" | $Xsed -e "s%.*/%%"`
  43236. - libobj=`$echo "X$baseobj" | $Xsed -e "$o2lo"`
  43237. - # Now arrange that obj and lo_libobj become the same file
  43238. - $show "(cd $xdir && $LN_S $baseobj $libobj)"
  43239. - if $run eval '(cd $xdir && $LN_S $baseobj $libobj)'; then
  43240. - exit 0
  43241. - else
  43242. - error=$?
  43243. - $run $rm $removelist
  43244. - exit $error
  43245. - fi
  43246. + # Allow error messages only from the first compilation.
  43247. + if test "$suppress_opt" = yes; then
  43248. + suppress_output=' >/dev/null 2>&1'
  43249. fi
  43250. + else
  43251. + # No PIC object so indicate it doesn't exist in the libtool
  43252. + # object file.
  43253. + test -z "$run" && cat >> ${libobj}T <<EOF
  43254. +pic_object=none
  43255. - # Allow error messages only from the first compilation.
  43256. - suppress_output=' >/dev/null 2>&1'
  43257. +EOF
  43258. fi
  43259. # Only build a position-dependent object if we build old libraries.
  43260. if test "$build_old_libs" = yes; then
  43261. - command="$base_compile $srcfile"
  43262. + if test "$pic_mode" != yes; then
  43263. + # Don't build PIC code
  43264. + command="$base_compile $qsrcfile"
  43265. + else
  43266. + command="$base_compile $qsrcfile $pic_flag"
  43267. + fi
  43268. if test "$compiler_c_o" = yes; then
  43269. command="$command -o $obj"
  43270. - output_obj="$obj"
  43271. fi
  43272. # Suppress compiler output if we already did a PIC compilation.
  43273. command="$command$suppress_output"
  43274. - $run $rm "$output_obj"
  43275. + $run $rm "$obj" "$output_obj"
  43276. $show "$command"
  43277. if $run eval "$command"; then :
  43278. else
  43279. $run $rm $removelist
  43280. - exit 1
  43281. + exit $EXIT_FAILURE
  43282. fi
  43283. if test "$need_locks" = warn &&
  43284. - test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
  43285. - echo "\
  43286. + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  43287. + $echo "\
  43288. *** ERROR, $lockfile contains:
  43289. `cat $lockfile 2>/dev/null`
  43290. @@ -579,11 +1021,11 @@
  43291. compiler."
  43292. $run $rm $removelist
  43293. - exit 1
  43294. + exit $EXIT_FAILURE
  43295. fi
  43296. # Just move the object if needed
  43297. - if test x"$output_obj" != x"$obj"; then
  43298. + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  43299. $show "$mv $output_obj $obj"
  43300. if $run $mv $output_obj $obj; then :
  43301. else
  43302. @@ -593,40 +1035,42 @@
  43303. fi
  43304. fi
  43305. - # Create an invalid libtool object if no PIC, so that we do not
  43306. - # accidentally link it into a program.
  43307. - if test "$build_libtool_libs" != yes; then
  43308. - $show "echo timestamp > $libobj"
  43309. - $run eval "echo timestamp > \$libobj" || exit $?
  43310. - else
  43311. - # Move the .lo from within objdir
  43312. - $show "$mv $libobj $lo_libobj"
  43313. - if $run $mv $libobj $lo_libobj; then :
  43314. - else
  43315. - error=$?
  43316. - $run $rm $removelist
  43317. - exit $error
  43318. - fi
  43319. - fi
  43320. + # Append the name of the non-PIC object the libtool object file.
  43321. + # Only append if the libtool object file exists.
  43322. + test -z "$run" && cat >> ${libobj}T <<EOF
  43323. +# Name of the non-PIC object.
  43324. +non_pic_object='$objname'
  43325. +
  43326. +EOF
  43327. + else
  43328. + # Append the name of the non-PIC object the libtool object file.
  43329. + # Only append if the libtool object file exists.
  43330. + test -z "$run" && cat >> ${libobj}T <<EOF
  43331. +# Name of the non-PIC object.
  43332. +non_pic_object=none
  43333. +
  43334. +EOF
  43335. fi
  43336. + $run $mv "${libobj}T" "${libobj}"
  43337. +
  43338. # Unlock the critical section if it was locked
  43339. if test "$need_locks" != no; then
  43340. - $rm "$lockfile"
  43341. + $run $rm "$lockfile"
  43342. fi
  43343. - exit 0
  43344. + exit $EXIT_SUCCESS
  43345. ;;
  43346. # libtool link mode
  43347. - link)
  43348. + link | relink)
  43349. modename="$modename: link"
  43350. - case "$host" in
  43351. - *-*-cygwin* | *-*-mingw* | *-*-os2*)
  43352. + case $host in
  43353. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  43354. # It is impossible to link a dll without this setting, and
  43355. # we shouldn't force the makefile maintainer to figure out
  43356. # which system we are compiling for in order to pass an extra
  43357. - # flag for every libtool invokation.
  43358. + # flag for every libtool invocation.
  43359. # allow_undefined=no
  43360. # FIXME: Unfortunately, there are problems with the above when trying
  43361. @@ -635,179 +1079,13 @@
  43362. # -no-undefined on the libtool link line when we can be certain
  43363. # that all symbols are satisfied, otherwise we get a static library.
  43364. allow_undefined=yes
  43365. -
  43366. - # This is a source program that is used to create dlls on Windows
  43367. - # Don't remove nor modify the starting and closing comments
  43368. -# /* ltdll.c starts here */
  43369. -# #define WIN32_LEAN_AND_MEAN
  43370. -# #include <windows.h>
  43371. -# #undef WIN32_LEAN_AND_MEAN
  43372. -# #include <stdio.h>
  43373. -#
  43374. -# #ifndef __CYGWIN__
  43375. -# # ifdef __CYGWIN32__
  43376. -# # define __CYGWIN__ __CYGWIN32__
  43377. -# # endif
  43378. -# #endif
  43379. -#
  43380. -# #ifdef __cplusplus
  43381. -# extern "C" {
  43382. -# #endif
  43383. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  43384. -# #ifdef __cplusplus
  43385. -# }
  43386. -# #endif
  43387. -#
  43388. -# #ifdef __CYGWIN__
  43389. -# #include <cygwin/cygwin_dll.h>
  43390. -# DECLARE_CYGWIN_DLL( DllMain );
  43391. -# #endif
  43392. -# HINSTANCE __hDllInstance_base;
  43393. -#
  43394. -# BOOL APIENTRY
  43395. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  43396. -# {
  43397. -# __hDllInstance_base = hInst;
  43398. -# return TRUE;
  43399. -# }
  43400. -# /* ltdll.c ends here */
  43401. - # This is a source program that is used to create import libraries
  43402. - # on Windows for dlls which lack them. Don't remove nor modify the
  43403. - # starting and closing comments
  43404. -# /* impgen.c starts here */
  43405. -# /* Copyright (C) 1999 Free Software Foundation, Inc.
  43406. -#
  43407. -# This file is part of GNU libtool.
  43408. -#
  43409. -# This program is free software; you can redistribute it and/or modify
  43410. -# it under the terms of the GNU General Public License as published by
  43411. -# the Free Software Foundation; either version 2 of the License, or
  43412. -# (at your option) any later version.
  43413. -#
  43414. -# This program is distributed in the hope that it will be useful,
  43415. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  43416. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  43417. -# GNU General Public License for more details.
  43418. -#
  43419. -# You should have received a copy of the GNU General Public License
  43420. -# along with this program; if not, write to the Free Software
  43421. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  43422. -# */
  43423. -#
  43424. -# #include <stdio.h> /* for printf() */
  43425. -# #include <unistd.h> /* for open(), lseek(), read() */
  43426. -# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
  43427. -# #include <string.h> /* for strdup() */
  43428. -#
  43429. -# static unsigned int
  43430. -# pe_get16 (fd, offset)
  43431. -# int fd;
  43432. -# int offset;
  43433. -# {
  43434. -# unsigned char b[2];
  43435. -# lseek (fd, offset, SEEK_SET);
  43436. -# read (fd, b, 2);
  43437. -# return b[0] + (b[1]<<8);
  43438. -# }
  43439. -#
  43440. -# static unsigned int
  43441. -# pe_get32 (fd, offset)
  43442. -# int fd;
  43443. -# int offset;
  43444. -# {
  43445. -# unsigned char b[4];
  43446. -# lseek (fd, offset, SEEK_SET);
  43447. -# read (fd, b, 4);
  43448. -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  43449. -# }
  43450. -#
  43451. -# static unsigned int
  43452. -# pe_as32 (ptr)
  43453. -# void *ptr;
  43454. -# {
  43455. -# unsigned char *b = ptr;
  43456. -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  43457. -# }
  43458. -#
  43459. -# int
  43460. -# main (argc, argv)
  43461. -# int argc;
  43462. -# char *argv[];
  43463. -# {
  43464. -# int dll;
  43465. -# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
  43466. -# unsigned long export_rva, export_size, nsections, secptr, expptr;
  43467. -# unsigned long name_rvas, nexp;
  43468. -# unsigned char *expdata, *erva;
  43469. -# char *filename, *dll_name;
  43470. -#
  43471. -# filename = argv[1];
  43472. -#
  43473. -# dll = open(filename, O_RDONLY|O_BINARY);
  43474. -# if (!dll)
  43475. -# return 1;
  43476. -#
  43477. -# dll_name = filename;
  43478. -#
  43479. -# for (i=0; filename[i]; i++)
  43480. -# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
  43481. -# dll_name = filename + i +1;
  43482. -#
  43483. -# pe_header_offset = pe_get32 (dll, 0x3c);
  43484. -# opthdr_ofs = pe_header_offset + 4 + 20;
  43485. -# num_entries = pe_get32 (dll, opthdr_ofs + 92);
  43486. -#
  43487. -# if (num_entries < 1) /* no exports */
  43488. -# return 1;
  43489. -#
  43490. -# export_rva = pe_get32 (dll, opthdr_ofs + 96);
  43491. -# export_size = pe_get32 (dll, opthdr_ofs + 100);
  43492. -# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
  43493. -# secptr = (pe_header_offset + 4 + 20 +
  43494. -# pe_get16 (dll, pe_header_offset + 4 + 16));
  43495. -#
  43496. -# expptr = 0;
  43497. -# for (i = 0; i < nsections; i++)
  43498. -# {
  43499. -# char sname[8];
  43500. -# unsigned long secptr1 = secptr + 40 * i;
  43501. -# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
  43502. -# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
  43503. -# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
  43504. -# lseek(dll, secptr1, SEEK_SET);
  43505. -# read(dll, sname, 8);
  43506. -# if (vaddr <= export_rva && vaddr+vsize > export_rva)
  43507. -# {
  43508. -# expptr = fptr + (export_rva - vaddr);
  43509. -# if (export_rva + export_size > vaddr + vsize)
  43510. -# export_size = vsize - (export_rva - vaddr);
  43511. -# break;
  43512. -# }
  43513. -# }
  43514. -#
  43515. -# expdata = (unsigned char*)malloc(export_size);
  43516. -# lseek (dll, expptr, SEEK_SET);
  43517. -# read (dll, expdata, export_size);
  43518. -# erva = expdata - export_rva;
  43519. -#
  43520. -# nexp = pe_as32 (expdata+24);
  43521. -# name_rvas = pe_as32 (expdata+32);
  43522. -#
  43523. -# printf ("EXPORTS\n");
  43524. -# for (i = 0; i<nexp; i++)
  43525. -# {
  43526. -# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
  43527. -# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
  43528. -# }
  43529. -#
  43530. -# return 0;
  43531. -# }
  43532. -# /* impgen.c ends here */
  43533. ;;
  43534. *)
  43535. allow_undefined=yes
  43536. ;;
  43537. esac
  43538. + libtool_args="$nonopt"
  43539. + base_compile="$nonopt $@"
  43540. compile_command="$nonopt"
  43541. finalize_command="$nonopt"
  43542. @@ -818,18 +1096,13 @@
  43543. convenience=
  43544. old_convenience=
  43545. deplibs=
  43546. - linkopts=
  43547. + old_deplibs=
  43548. + compiler_flags=
  43549. + linker_flags=
  43550. + dllsearchpath=
  43551. + lib_search_path=`pwd`
  43552. + inst_prefix_dir=
  43553. - if test -n "$shlibpath_var"; then
  43554. - # get the directories listed in $shlibpath_var
  43555. - eval lib_search_path=\`\$echo \"X \${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  43556. - else
  43557. - lib_search_path=
  43558. - fi
  43559. - # now prepend the system-specific ones
  43560. - eval lib_search_path=\"$sys_lib_search_path_spec\$lib_search_path\"
  43561. - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  43562. -
  43563. avoid_version=no
  43564. dlfiles=
  43565. dlprefiles=
  43566. @@ -839,10 +1112,13 @@
  43567. export_symbols_regex=
  43568. generated=
  43569. libobjs=
  43570. - link_against_libtool_libs=
  43571. ltlibs=
  43572. module=no
  43573. + no_install=no
  43574. objs=
  43575. + non_pic_objects=
  43576. + notinst_path= # paths that contain not-installed libtool libraries
  43577. + precious_files_regex=
  43578. prefer_static_libs=no
  43579. preload=no
  43580. prev=
  43581. @@ -854,11 +1130,14 @@
  43582. temp_rpath=
  43583. thread_safe=no
  43584. vinfo=
  43585. + vinfo_number=no
  43586. +
  43587. + func_infer_tag $base_compile
  43588. # We need to know -static, to get the right output filenames.
  43589. for arg
  43590. do
  43591. - case "$arg" in
  43592. + case $arg in
  43593. -all-static | -static)
  43594. if test "X$arg" = "X-all-static"; then
  43595. if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  43596. @@ -867,14 +1146,15 @@
  43597. if test -n "$link_static_flag"; then
  43598. dlopen_self=$dlopen_self_static
  43599. fi
  43600. + prefer_static_libs=yes
  43601. else
  43602. if test -z "$pic_flag" && test -n "$link_static_flag"; then
  43603. dlopen_self=$dlopen_self_static
  43604. fi
  43605. + prefer_static_libs=built
  43606. fi
  43607. build_libtool_libs=no
  43608. build_old_libs=yes
  43609. - prefer_static_libs=yes
  43610. break
  43611. ;;
  43612. esac
  43613. @@ -884,20 +1164,27 @@
  43614. test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  43615. # Go through the arguments, transforming them on the way.
  43616. - while test $# -gt 0; do
  43617. + while test "$#" -gt 0; do
  43618. arg="$1"
  43619. shift
  43620. + case $arg in
  43621. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  43622. + qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
  43623. + ;;
  43624. + *) qarg=$arg ;;
  43625. + esac
  43626. + libtool_args="$libtool_args $qarg"
  43627. # If the previous option needs an argument, assign it.
  43628. if test -n "$prev"; then
  43629. - case "$prev" in
  43630. + case $prev in
  43631. output)
  43632. compile_command="$compile_command @OUTPUT@"
  43633. finalize_command="$finalize_command @OUTPUT@"
  43634. ;;
  43635. esac
  43636. - case "$prev" in
  43637. + case $prev in
  43638. dlfiles|dlprefiles)
  43639. if test "$preload" = no; then
  43640. # Add the symbol object into the linking commands.
  43641. @@ -905,7 +1192,7 @@
  43642. finalize_command="$finalize_command @SYMFILE@"
  43643. preload=yes
  43644. fi
  43645. - case "$arg" in
  43646. + case $arg in
  43647. *.la | *.lo) ;; # We handle these cases below.
  43648. force)
  43649. if test "$dlself" = no; then
  43650. @@ -934,6 +1221,7 @@
  43651. dlprefiles="$dlprefiles $arg"
  43652. fi
  43653. prev=
  43654. + continue
  43655. ;;
  43656. esac
  43657. ;;
  43658. @@ -941,7 +1229,7 @@
  43659. export_symbols="$arg"
  43660. if test ! -f "$arg"; then
  43661. $echo "$modename: symbol file \`$arg' does not exist"
  43662. - exit 1
  43663. + exit $EXIT_FAILURE
  43664. fi
  43665. prev=
  43666. continue
  43667. @@ -951,18 +1239,140 @@
  43668. prev=
  43669. continue
  43670. ;;
  43671. + inst_prefix)
  43672. + inst_prefix_dir="$arg"
  43673. + prev=
  43674. + continue
  43675. + ;;
  43676. + precious_regex)
  43677. + precious_files_regex="$arg"
  43678. + prev=
  43679. + continue
  43680. + ;;
  43681. release)
  43682. release="-$arg"
  43683. prev=
  43684. continue
  43685. ;;
  43686. + objectlist)
  43687. + if test -f "$arg"; then
  43688. + save_arg=$arg
  43689. + moreargs=
  43690. + for fil in `cat $save_arg`
  43691. + do
  43692. +# moreargs="$moreargs $fil"
  43693. + arg=$fil
  43694. + # A libtool-controlled object.
  43695. +
  43696. + # Check to see that this really is a libtool object.
  43697. + if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  43698. + pic_object=
  43699. + non_pic_object=
  43700. +
  43701. + # Read the .lo file
  43702. + # If there is no directory component, then add one.
  43703. + case $arg in
  43704. + */* | *\\*) . $arg ;;
  43705. + *) . ./$arg ;;
  43706. + esac
  43707. +
  43708. + if test -z "$pic_object" || \
  43709. + test -z "$non_pic_object" ||
  43710. + test "$pic_object" = none && \
  43711. + test "$non_pic_object" = none; then
  43712. + $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  43713. + exit $EXIT_FAILURE
  43714. + fi
  43715. +
  43716. + # Extract subdirectory from the argument.
  43717. + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  43718. + if test "X$xdir" = "X$arg"; then
  43719. + xdir=
  43720. + else
  43721. + xdir="$xdir/"
  43722. + fi
  43723. +
  43724. + if test "$pic_object" != none; then
  43725. + # Prepend the subdirectory the object is found in.
  43726. + pic_object="$xdir$pic_object"
  43727. +
  43728. + if test "$prev" = dlfiles; then
  43729. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  43730. + dlfiles="$dlfiles $pic_object"
  43731. + prev=
  43732. + continue
  43733. + else
  43734. + # If libtool objects are unsupported, then we need to preload.
  43735. + prev=dlprefiles
  43736. + fi
  43737. + fi
  43738. +
  43739. + # CHECK ME: I think I busted this. -Ossama
  43740. + if test "$prev" = dlprefiles; then
  43741. + # Preload the old-style object.
  43742. + dlprefiles="$dlprefiles $pic_object"
  43743. + prev=
  43744. + fi
  43745. +
  43746. + # A PIC object.
  43747. + libobjs="$libobjs $pic_object"
  43748. + arg="$pic_object"
  43749. + fi
  43750. +
  43751. + # Non-PIC object.
  43752. + if test "$non_pic_object" != none; then
  43753. + # Prepend the subdirectory the object is found in.
  43754. + non_pic_object="$xdir$non_pic_object"
  43755. +
  43756. + # A standard non-PIC object
  43757. + non_pic_objects="$non_pic_objects $non_pic_object"
  43758. + if test -z "$pic_object" || test "$pic_object" = none ; then
  43759. + arg="$non_pic_object"
  43760. + fi
  43761. + else
  43762. + # If the PIC object exists, use it instead.
  43763. + # $xdir was prepended to $pic_object above.
  43764. + non_pic_object="$pic_object"
  43765. + non_pic_objects="$non_pic_objects $non_pic_object"
  43766. + fi
  43767. + else
  43768. + # Only an error if not doing a dry-run.
  43769. + if test -z "$run"; then
  43770. + $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  43771. + exit $EXIT_FAILURE
  43772. + else
  43773. + # Dry-run case.
  43774. +
  43775. + # Extract subdirectory from the argument.
  43776. + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  43777. + if test "X$xdir" = "X$arg"; then
  43778. + xdir=
  43779. + else
  43780. + xdir="$xdir/"
  43781. + fi
  43782. +
  43783. + pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  43784. + non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  43785. + libobjs="$libobjs $pic_object"
  43786. + non_pic_objects="$non_pic_objects $non_pic_object"
  43787. + fi
  43788. + fi
  43789. + done
  43790. + else
  43791. + $echo "$modename: link input file \`$save_arg' does not exist"
  43792. + exit $EXIT_FAILURE
  43793. + fi
  43794. + arg=$save_arg
  43795. + prev=
  43796. + continue
  43797. + ;;
  43798. rpath | xrpath)
  43799. # We need an absolute path.
  43800. - case "$arg" in
  43801. + case $arg in
  43802. [\\/]* | [A-Za-z]:[\\/]*) ;;
  43803. *)
  43804. $echo "$modename: only absolute run-paths are allowed" 1>&2
  43805. - exit 1
  43806. + exit $EXIT_FAILURE
  43807. ;;
  43808. esac
  43809. if test "$prev" = rpath; then
  43810. @@ -979,17 +1389,52 @@
  43811. prev=
  43812. continue
  43813. ;;
  43814. + xcompiler)
  43815. + compiler_flags="$compiler_flags $qarg"
  43816. + prev=
  43817. + compile_command="$compile_command $qarg"
  43818. + finalize_command="$finalize_command $qarg"
  43819. + continue
  43820. + ;;
  43821. + xlinker)
  43822. + linker_flags="$linker_flags $qarg"
  43823. + compiler_flags="$compiler_flags $wl$qarg"
  43824. + prev=
  43825. + compile_command="$compile_command $wl$qarg"
  43826. + finalize_command="$finalize_command $wl$qarg"
  43827. + continue
  43828. + ;;
  43829. + xcclinker)
  43830. + linker_flags="$linker_flags $qarg"
  43831. + compiler_flags="$compiler_flags $qarg"
  43832. + prev=
  43833. + compile_command="$compile_command $qarg"
  43834. + finalize_command="$finalize_command $qarg"
  43835. + continue
  43836. + ;;
  43837. + shrext)
  43838. + shrext_cmds="$arg"
  43839. + prev=
  43840. + continue
  43841. + ;;
  43842. + darwin_framework|darwin_framework_skip)
  43843. + test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
  43844. + compile_command="$compile_command $arg"
  43845. + finalize_command="$finalize_command $arg"
  43846. + prev=
  43847. + continue
  43848. + ;;
  43849. *)
  43850. eval "$prev=\"\$arg\""
  43851. prev=
  43852. continue
  43853. ;;
  43854. esac
  43855. - fi
  43856. + fi # test -n "$prev"
  43857. prevarg="$arg"
  43858. - case "$arg" in
  43859. + case $arg in
  43860. -all-static)
  43861. if test -n "$link_static_flag"; then
  43862. compile_command="$compile_command $link_static_flag"
  43863. @@ -1026,8 +1471,8 @@
  43864. -export-symbols | -export-symbols-regex)
  43865. if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  43866. - $echo "$modename: not more than one -exported-symbols argument allowed"
  43867. - exit 1
  43868. + $echo "$modename: more than one -exported-symbols argument is not allowed"
  43869. + exit $EXIT_FAILURE
  43870. fi
  43871. if test "X$arg" = "X-export-symbols"; then
  43872. prev=expsyms
  43873. @@ -1037,58 +1482,129 @@
  43874. continue
  43875. ;;
  43876. + -framework|-arch|-isysroot)
  43877. + case " $CC " in
  43878. + *" ${arg} ${1} "* | *" ${arg} ${1} "*)
  43879. + prev=darwin_framework_skip ;;
  43880. + *) compiler_flags="$compiler_flags $arg"
  43881. + prev=darwin_framework ;;
  43882. + esac
  43883. + compile_command="$compile_command $arg"
  43884. + finalize_command="$finalize_command $arg"
  43885. + continue
  43886. + ;;
  43887. +
  43888. + -inst-prefix-dir)
  43889. + prev=inst_prefix
  43890. + continue
  43891. + ;;
  43892. +
  43893. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  43894. + # so, if we see these flags be careful not to treat them like -L
  43895. + -L[A-Z][A-Z]*:*)
  43896. + case $with_gcc/$host in
  43897. + no/*-*-irix* | /*-*-irix*)
  43898. + compile_command="$compile_command $arg"
  43899. + finalize_command="$finalize_command $arg"
  43900. + ;;
  43901. + esac
  43902. + continue
  43903. + ;;
  43904. +
  43905. -L*)
  43906. dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  43907. # We need an absolute path.
  43908. - case "$dir" in
  43909. + case $dir in
  43910. [\\/]* | [A-Za-z]:[\\/]*) ;;
  43911. *)
  43912. absdir=`cd "$dir" && pwd`
  43913. if test -z "$absdir"; then
  43914. - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  43915. - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  43916. + $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  43917. absdir="$dir"
  43918. + notinst_path="$notinst_path $dir"
  43919. fi
  43920. dir="$absdir"
  43921. ;;
  43922. esac
  43923. - case " $deplibs " in
  43924. - *" $arg "*) ;;
  43925. - *) deplibs="$deplibs $arg";;
  43926. - esac
  43927. - case " $lib_search_path " in
  43928. - *" $dir "*) ;;
  43929. - *) lib_search_path="$lib_search_path $dir";;
  43930. + case "$deplibs " in
  43931. + *" -L$dir "*) ;;
  43932. + *)
  43933. + deplibs="$deplibs -L$dir"
  43934. + lib_search_path="$lib_search_path $dir"
  43935. + ;;
  43936. esac
  43937. - case "$host" in
  43938. - *-*-cygwin* | *-*-mingw* | *-*-os2*)
  43939. - dllsearchdir=`cd "$dir" && pwd || echo "$dir"`
  43940. - case ":$dllsearchpath:" in
  43941. - ::) dllsearchpath="$dllsearchdir";;
  43942. - *":$dllsearchdir:"*) ;;
  43943. - *) dllsearchpath="$dllsearchpath:$dllsearchdir";;
  43944. + case $host in
  43945. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  43946. + testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  43947. + case :$dllsearchpath: in
  43948. + *":$dir:"*) ;;
  43949. + *) dllsearchpath="$dllsearchpath:$dir";;
  43950. + esac
  43951. + case :$dllsearchpath: in
  43952. + *":$testbindir:"*) ;;
  43953. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  43954. esac
  43955. ;;
  43956. esac
  43957. + continue
  43958. ;;
  43959. -l*)
  43960. - if test "$arg" = "-lc"; then
  43961. - case "$host" in
  43962. - *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
  43963. - # These systems don't actually have c library (as such)
  43964. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  43965. + case $host in
  43966. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
  43967. + # These systems don't actually have a C or math library (as such)
  43968. continue
  43969. ;;
  43970. - esac
  43971. - elif test "$arg" = "-lm"; then
  43972. - case "$host" in
  43973. - *-*-cygwin* | *-*-beos*)
  43974. - # These systems don't actually have math library (as such)
  43975. + *-*-os2*)
  43976. + # These systems don't actually have a C library (as such)
  43977. + test "X$arg" = "X-lc" && continue
  43978. + ;;
  43979. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  43980. + # Do not include libc due to us having libc/libc_r.
  43981. + test "X$arg" = "X-lc" && continue
  43982. + ;;
  43983. + *-*-rhapsody* | *-*-darwin1.[012])
  43984. + # Rhapsody C and math libraries are in the System framework
  43985. + deplibs="$deplibs -framework System"
  43986. continue
  43987. ;;
  43988. + *-*-sco3.2v5* | *-*-sco5v6*)
  43989. + # Causes problems with __ctype
  43990. + test "X$arg" = "X-lc" && continue
  43991. + ;;
  43992. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  43993. + # Compiler inserts libc in the correct place for threads to work
  43994. + test "X$arg" = "X-lc" && continue
  43995. + ;;
  43996. esac
  43997. + elif test "X$arg" = "X-lc_r"; then
  43998. + case $host in
  43999. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  44000. + # Do not include libc_r directly, use -pthread flag.
  44001. + continue
  44002. + ;;
  44003. + esac
  44004. fi
  44005. deplibs="$deplibs $arg"
  44006. + continue
  44007. + ;;
  44008. +
  44009. + # Tru64 UNIX uses -model [arg] to determine the layout of C++
  44010. + # classes, name mangling, and exception handling.
  44011. + -model)
  44012. + compile_command="$compile_command $arg"
  44013. + compiler_flags="$compiler_flags $arg"
  44014. + finalize_command="$finalize_command $arg"
  44015. + prev=xcompiler
  44016. + continue
  44017. + ;;
  44018. +
  44019. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  44020. + compiler_flags="$compiler_flags $arg"
  44021. + compile_command="$compile_command $arg"
  44022. + finalize_command="$finalize_command $arg"
  44023. + continue
  44024. ;;
  44025. -module)
  44026. @@ -1096,13 +1612,74 @@
  44027. continue
  44028. ;;
  44029. + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  44030. + # -r[0-9][0-9]* specifies the processor on the SGI compiler
  44031. + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  44032. + # +DA*, +DD* enable 64-bit mode on the HP compiler
  44033. + # -q* pass through compiler args for the IBM compiler
  44034. + # -m* pass through architecture-specific compiler args for GCC
  44035. + # -m*, -t[45]*, -txscale* pass through architecture-specific
  44036. + # compiler args for GCC
  44037. + # -pg pass through profiling flag for GCC
  44038. + # @file GCC response files
  44039. + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
  44040. + -t[45]*|-txscale*|@*)
  44041. +
  44042. + # Unknown arguments in both finalize_command and compile_command need
  44043. + # to be aesthetically quoted because they are evaled later.
  44044. + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  44045. + case $arg in
  44046. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  44047. + arg="\"$arg\""
  44048. + ;;
  44049. + esac
  44050. + compile_command="$compile_command $arg"
  44051. + finalize_command="$finalize_command $arg"
  44052. + compiler_flags="$compiler_flags $arg"
  44053. + continue
  44054. + ;;
  44055. +
  44056. + -shrext)
  44057. + prev=shrext
  44058. + continue
  44059. + ;;
  44060. +
  44061. + -no-fast-install)
  44062. + fast_install=no
  44063. + continue
  44064. + ;;
  44065. +
  44066. + -no-install)
  44067. + case $host in
  44068. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  44069. + # The PATH hackery in wrapper scripts is required on Windows
  44070. + # in order for the loader to find any dlls it needs.
  44071. + $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
  44072. + $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
  44073. + fast_install=no
  44074. + ;;
  44075. + *) no_install=yes ;;
  44076. + esac
  44077. + continue
  44078. + ;;
  44079. +
  44080. -no-undefined)
  44081. allow_undefined=no
  44082. continue
  44083. ;;
  44084. + -objectlist)
  44085. + prev=objectlist
  44086. + continue
  44087. + ;;
  44088. +
  44089. -o) prev=output ;;
  44090. + -precious-files-regex)
  44091. + prev=precious_regex
  44092. + continue
  44093. + ;;
  44094. +
  44095. -release)
  44096. prev=release
  44097. continue
  44098. @@ -1121,11 +1698,11 @@
  44099. -R*)
  44100. dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  44101. # We need an absolute path.
  44102. - case "$dir" in
  44103. + case $dir in
  44104. [\\/]* | [A-Za-z]:[\\/]*) ;;
  44105. *)
  44106. $echo "$modename: only absolute run-paths are allowed" 1>&2
  44107. - exit 1
  44108. + exit $EXIT_FAILURE
  44109. ;;
  44110. esac
  44111. case "$xrpath " in
  44112. @@ -1136,11 +1713,11 @@
  44113. ;;
  44114. -static)
  44115. - # If we have no pic_flag, then this is the same as -all-static.
  44116. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  44117. - compile_command="$compile_command $link_static_flag"
  44118. - finalize_command="$finalize_command $link_static_flag"
  44119. - fi
  44120. + # The effects of -static are defined in a previous loop.
  44121. + # We used to do the same as -all-static on platforms that
  44122. + # didn't have a PIC flag, but the assumption that the effects
  44123. + # would be equivalent was wrong. It would break on at least
  44124. + # Digital Unix and AIX.
  44125. continue
  44126. ;;
  44127. @@ -1153,388 +1730,1335 @@
  44128. prev=vinfo
  44129. continue
  44130. ;;
  44131. + -version-number)
  44132. + prev=vinfo
  44133. + vinfo_number=yes
  44134. + continue
  44135. + ;;
  44136. +
  44137. + -Wc,*)
  44138. + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  44139. + arg=
  44140. + save_ifs="$IFS"; IFS=','
  44141. + for flag in $args; do
  44142. + IFS="$save_ifs"
  44143. + case $flag in
  44144. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  44145. + flag="\"$flag\""
  44146. + ;;
  44147. + esac
  44148. + arg="$arg $wl$flag"
  44149. + compiler_flags="$compiler_flags $flag"
  44150. + done
  44151. + IFS="$save_ifs"
  44152. + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  44153. + ;;
  44154. +
  44155. + -Wl,*)
  44156. + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  44157. + arg=
  44158. + save_ifs="$IFS"; IFS=','
  44159. + for flag in $args; do
  44160. + IFS="$save_ifs"
  44161. + case $flag in
  44162. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  44163. + flag="\"$flag\""
  44164. + ;;
  44165. + esac
  44166. + arg="$arg $wl$flag"
  44167. + compiler_flags="$compiler_flags $wl$flag"
  44168. + linker_flags="$linker_flags $flag"
  44169. + done
  44170. + IFS="$save_ifs"
  44171. + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  44172. + ;;
  44173. +
  44174. + -Xcompiler)
  44175. + prev=xcompiler
  44176. + continue
  44177. + ;;
  44178. +
  44179. + -Xlinker)
  44180. + prev=xlinker
  44181. + continue
  44182. + ;;
  44183. +
  44184. + -XCClinker)
  44185. + prev=xcclinker
  44186. + continue
  44187. + ;;
  44188. # Some other compiler flag.
  44189. -* | +*)
  44190. # Unknown arguments in both finalize_command and compile_command need
  44191. # to be aesthetically quoted because they are evaled later.
  44192. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  44193. - case "$arg" in
  44194. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  44195. + case $arg in
  44196. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  44197. arg="\"$arg\""
  44198. ;;
  44199. esac
  44200. ;;
  44201. - *.o | *.obj | *.a | *.lib)
  44202. + *.$objext)
  44203. # A standard object.
  44204. objs="$objs $arg"
  44205. ;;
  44206. *.lo)
  44207. - # A library object.
  44208. - if test "$prev" = dlfiles; then
  44209. - dlfiles="$dlfiles $arg"
  44210. - if test "$build_libtool_libs" = yes && test "$dlopen" = yes; then
  44211. - prev=
  44212. - continue
  44213. + # A libtool-controlled object.
  44214. +
  44215. + # Check to see that this really is a libtool object.
  44216. + if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  44217. + pic_object=
  44218. + non_pic_object=
  44219. +
  44220. + # Read the .lo file
  44221. + # If there is no directory component, then add one.
  44222. + case $arg in
  44223. + */* | *\\*) . $arg ;;
  44224. + *) . ./$arg ;;
  44225. + esac
  44226. +
  44227. + if test -z "$pic_object" || \
  44228. + test -z "$non_pic_object" ||
  44229. + test "$pic_object" = none && \
  44230. + test "$non_pic_object" = none; then
  44231. + $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  44232. + exit $EXIT_FAILURE
  44233. + fi
  44234. +
  44235. + # Extract subdirectory from the argument.
  44236. + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  44237. + if test "X$xdir" = "X$arg"; then
  44238. + xdir=
  44239. + else
  44240. + xdir="$xdir/"
  44241. + fi
  44242. +
  44243. + if test "$pic_object" != none; then
  44244. + # Prepend the subdirectory the object is found in.
  44245. + pic_object="$xdir$pic_object"
  44246. +
  44247. + if test "$prev" = dlfiles; then
  44248. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  44249. + dlfiles="$dlfiles $pic_object"
  44250. + prev=
  44251. + continue
  44252. + else
  44253. + # If libtool objects are unsupported, then we need to preload.
  44254. + prev=dlprefiles
  44255. + fi
  44256. + fi
  44257. +
  44258. + # CHECK ME: I think I busted this. -Ossama
  44259. + if test "$prev" = dlprefiles; then
  44260. + # Preload the old-style object.
  44261. + dlprefiles="$dlprefiles $pic_object"
  44262. + prev=
  44263. + fi
  44264. +
  44265. + # A PIC object.
  44266. + libobjs="$libobjs $pic_object"
  44267. + arg="$pic_object"
  44268. + fi
  44269. +
  44270. + # Non-PIC object.
  44271. + if test "$non_pic_object" != none; then
  44272. + # Prepend the subdirectory the object is found in.
  44273. + non_pic_object="$xdir$non_pic_object"
  44274. +
  44275. + # A standard non-PIC object
  44276. + non_pic_objects="$non_pic_objects $non_pic_object"
  44277. + if test -z "$pic_object" || test "$pic_object" = none ; then
  44278. + arg="$non_pic_object"
  44279. + fi
  44280. else
  44281. - # If libtool objects are unsupported, then we need to preload.
  44282. - prev=dlprefiles
  44283. + # If the PIC object exists, use it instead.
  44284. + # $xdir was prepended to $pic_object above.
  44285. + non_pic_object="$pic_object"
  44286. + non_pic_objects="$non_pic_objects $non_pic_object"
  44287. fi
  44288. - fi
  44289. + else
  44290. + # Only an error if not doing a dry-run.
  44291. + if test -z "$run"; then
  44292. + $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  44293. + exit $EXIT_FAILURE
  44294. + else
  44295. + # Dry-run case.
  44296. - if test "$prev" = dlprefiles; then
  44297. - # Preload the old-style object.
  44298. - dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e "$lo2o"`
  44299. - prev=
  44300. + # Extract subdirectory from the argument.
  44301. + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  44302. + if test "X$xdir" = "X$arg"; then
  44303. + xdir=
  44304. + else
  44305. + xdir="$xdir/"
  44306. + fi
  44307. +
  44308. + pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  44309. + non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  44310. + libobjs="$libobjs $pic_object"
  44311. + non_pic_objects="$non_pic_objects $non_pic_object"
  44312. + fi
  44313. fi
  44314. - libobjs="$libobjs $arg"
  44315. + ;;
  44316. +
  44317. + *.$libext)
  44318. + # An archive.
  44319. + deplibs="$deplibs $arg"
  44320. + old_deplibs="$old_deplibs $arg"
  44321. + continue
  44322. ;;
  44323. *.la)
  44324. # A libtool-controlled library.
  44325. - dlname=
  44326. - libdir=
  44327. - library_names=
  44328. - old_library=
  44329. -
  44330. - # Check to see that this really is a libtool archive.
  44331. - if (sed -e '2q' $arg | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  44332. + if test "$prev" = dlfiles; then
  44333. + # This library was specified with -dlopen.
  44334. + dlfiles="$dlfiles $arg"
  44335. + prev=
  44336. + elif test "$prev" = dlprefiles; then
  44337. + # The library was specified with -dlpreopen.
  44338. + dlprefiles="$dlprefiles $arg"
  44339. + prev=
  44340. else
  44341. - $echo "$modename: \`$arg' is not a valid libtool archive" 1>&2
  44342. - exit 1
  44343. + deplibs="$deplibs $arg"
  44344. fi
  44345. + continue
  44346. + ;;
  44347. - # If the library was installed with an old release of libtool,
  44348. - # it will not redefine variable installed.
  44349. - installed=yes
  44350. -
  44351. - # Read the .la file
  44352. - # If there is no directory component, then add one.
  44353. - case "$arg" in
  44354. - */* | *\\*) . $arg ;;
  44355. - *) . ./$arg ;;
  44356. + # Some other compiler argument.
  44357. + *)
  44358. + # Unknown arguments in both finalize_command and compile_command need
  44359. + # to be aesthetically quoted because they are evaled later.
  44360. + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  44361. + case $arg in
  44362. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  44363. + arg="\"$arg\""
  44364. + ;;
  44365. esac
  44366. + ;;
  44367. + esac # arg
  44368. - # Get the name of the library we link against.
  44369. - linklib=
  44370. - for l in $old_library $library_names; do
  44371. - linklib="$l"
  44372. - done
  44373. + # Now actually substitute the argument into the commands.
  44374. + if test -n "$arg"; then
  44375. + compile_command="$compile_command $arg"
  44376. + finalize_command="$finalize_command $arg"
  44377. + fi
  44378. + done # argument parsing loop
  44379. - if test -z "$linklib"; then
  44380. - $echo "$modename: cannot find name of link library for \`$arg'" 1>&2
  44381. - exit 1
  44382. - fi
  44383. + if test -n "$prev"; then
  44384. + $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  44385. + $echo "$help" 1>&2
  44386. + exit $EXIT_FAILURE
  44387. + fi
  44388. - # Find the relevant object directory and library name.
  44389. - name=`$echo "X$arg" | $Xsed -e 's%^.*/%%' -e 's/\.la$//' -e 's/^lib//'`
  44390. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  44391. + eval arg=\"$export_dynamic_flag_spec\"
  44392. + compile_command="$compile_command $arg"
  44393. + finalize_command="$finalize_command $arg"
  44394. + fi
  44395. - if test "X$installed" = Xyes; then
  44396. - dir="$libdir"
  44397. - else
  44398. - dir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  44399. - if test "X$dir" = "X$arg"; then
  44400. - dir="$objdir"
  44401. - else
  44402. - dir="$dir/$objdir"
  44403. - fi
  44404. - fi
  44405. + oldlibs=
  44406. + # calculate the name of the file, without its directory
  44407. + outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  44408. + libobjs_save="$libobjs"
  44409. - if test -n "$dependency_libs"; then
  44410. - # Extract -R and -L from dependency_libs
  44411. - temp_deplibs=
  44412. - for deplib in $dependency_libs; do
  44413. - case "$deplib" in
  44414. - -R*) temp_xrpath=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  44415. - case " $rpath $xrpath " in
  44416. - *" $temp_xrpath "*) ;;
  44417. - *) xrpath="$xrpath $temp_xrpath";;
  44418. - esac;;
  44419. - -L*) case "$compile_command $temp_deplibs " in
  44420. - *" $deplib "*) ;;
  44421. - *) temp_deplibs="$temp_deplibs $deplib";;
  44422. - esac
  44423. - temp_dir=`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  44424. - case " $lib_search_path " in
  44425. - *" $temp_dir "*) ;;
  44426. - *) lib_search_path="$lib_search_path $temp_dir";;
  44427. - esac
  44428. - ;;
  44429. - *) temp_deplibs="$temp_deplibs $deplib";;
  44430. - esac
  44431. - done
  44432. - dependency_libs="$temp_deplibs"
  44433. - fi
  44434. + if test -n "$shlibpath_var"; then
  44435. + # get the directories listed in $shlibpath_var
  44436. + eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  44437. + else
  44438. + shlib_search_path=
  44439. + fi
  44440. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  44441. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  44442. - if test -z "$libdir"; then
  44443. - # It is a libtool convenience library, so add in its objects.
  44444. - convenience="$convenience $dir/$old_library"
  44445. - old_convenience="$old_convenience $dir/$old_library"
  44446. - deplibs="$deplibs$dependency_libs"
  44447. - compile_command="$compile_command $dir/$old_library$dependency_libs"
  44448. - finalize_command="$finalize_command $dir/$old_library$dependency_libs"
  44449. - continue
  44450. - fi
  44451. + output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  44452. + if test "X$output_objdir" = "X$output"; then
  44453. + output_objdir="$objdir"
  44454. + else
  44455. + output_objdir="$output_objdir/$objdir"
  44456. + fi
  44457. + # Create the object directory.
  44458. + if test ! -d "$output_objdir"; then
  44459. + $show "$mkdir $output_objdir"
  44460. + $run $mkdir $output_objdir
  44461. + exit_status=$?
  44462. + if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
  44463. + exit $exit_status
  44464. + fi
  44465. + fi
  44466. - # This library was specified with -dlopen.
  44467. - if test "$prev" = dlfiles; then
  44468. - dlfiles="$dlfiles $arg"
  44469. - if test -z "$dlname" || test "$dlopen" != yes || test "$build_libtool_libs" = no; then
  44470. - # If there is no dlname, no dlopen support or we're linking statically,
  44471. - # we need to preload.
  44472. - prev=dlprefiles
  44473. - else
  44474. - # We should not create a dependency on this library, but we
  44475. - # may need any libraries it requires.
  44476. - compile_command="$compile_command$dependency_libs"
  44477. - finalize_command="$finalize_command$dependency_libs"
  44478. - prev=
  44479. - continue
  44480. - fi
  44481. - fi
  44482. + # Determine the type of output
  44483. + case $output in
  44484. + "")
  44485. + $echo "$modename: you must specify an output file" 1>&2
  44486. + $echo "$help" 1>&2
  44487. + exit $EXIT_FAILURE
  44488. + ;;
  44489. + *.$libext) linkmode=oldlib ;;
  44490. + *.lo | *.$objext) linkmode=obj ;;
  44491. + *.la) linkmode=lib ;;
  44492. + *) linkmode=prog ;; # Anything else should be a program.
  44493. + esac
  44494. - # The library was specified with -dlpreopen.
  44495. - if test "$prev" = dlprefiles; then
  44496. - # Prefer using a static library (so that no silly _DYNAMIC symbols
  44497. - # are required to link).
  44498. - if test -n "$old_library"; then
  44499. - dlprefiles="$dlprefiles $dir/$old_library"
  44500. - else
  44501. - dlprefiles="$dlprefiles $dir/$linklib"
  44502. - fi
  44503. - prev=
  44504. - fi
  44505. + case $host in
  44506. + *cygwin* | *mingw* | *pw32*)
  44507. + # don't eliminate duplications in $postdeps and $predeps
  44508. + duplicate_compiler_generated_deps=yes
  44509. + ;;
  44510. + *)
  44511. + duplicate_compiler_generated_deps=$duplicate_deps
  44512. + ;;
  44513. + esac
  44514. + specialdeplibs=
  44515. - if test -n "$library_names" &&
  44516. - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  44517. - link_against_libtool_libs="$link_against_libtool_libs $arg"
  44518. - if test -n "$shlibpath_var"; then
  44519. - # Make sure the rpath contains only unique directories.
  44520. - case "$temp_rpath " in
  44521. - *" $dir "*) ;;
  44522. - *) temp_rpath="$temp_rpath $dir" ;;
  44523. - esac
  44524. - fi
  44525. + libs=
  44526. + # Find all interdependent deplibs by searching for libraries
  44527. + # that are linked more than once (e.g. -la -lb -la)
  44528. + for deplib in $deplibs; do
  44529. + if test "X$duplicate_deps" = "Xyes" ; then
  44530. + case "$libs " in
  44531. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  44532. + esac
  44533. + fi
  44534. + libs="$libs $deplib"
  44535. + done
  44536. - # We need an absolute path.
  44537. - case "$dir" in
  44538. - [\\/] | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  44539. + if test "$linkmode" = lib; then
  44540. + libs="$predeps $libs $compiler_lib_search_path $postdeps"
  44541. +
  44542. + # Compute libraries that are listed more than once in $predeps
  44543. + # $postdeps and mark them as special (i.e., whose duplicates are
  44544. + # not to be eliminated).
  44545. + pre_post_deps=
  44546. + if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
  44547. + for pre_post_dep in $predeps $postdeps; do
  44548. + case "$pre_post_deps " in
  44549. + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  44550. + esac
  44551. + pre_post_deps="$pre_post_deps $pre_post_dep"
  44552. + done
  44553. + fi
  44554. + pre_post_deps=
  44555. + fi
  44556. +
  44557. + deplibs=
  44558. + newdependency_libs=
  44559. + newlib_search_path=
  44560. + need_relink=no # whether we're linking any uninstalled libtool libraries
  44561. + notinst_deplibs= # not-installed libtool libraries
  44562. + case $linkmode in
  44563. + lib)
  44564. + passes="conv link"
  44565. + for file in $dlfiles $dlprefiles; do
  44566. + case $file in
  44567. + *.la) ;;
  44568. *)
  44569. - absdir=`cd "$dir" && pwd`
  44570. - if test -z "$absdir"; then
  44571. - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  44572. - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  44573. - absdir="$dir"
  44574. - fi
  44575. + $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  44576. + exit $EXIT_FAILURE
  44577. ;;
  44578. esac
  44579. -
  44580. - # This is the magic to use -rpath.
  44581. - # Skip directories that are in the system default run-time
  44582. - # search path, unless they have been requested with -R.
  44583. - case " $sys_lib_dlsearch_path " in
  44584. - *" $absdir "*) ;;
  44585. - *)
  44586. - case "$compile_rpath " in
  44587. - *" $absdir "*) ;;
  44588. - *) compile_rpath="$compile_rpath $absdir"
  44589. - esac
  44590. + done
  44591. + ;;
  44592. + prog)
  44593. + compile_deplibs=
  44594. + finalize_deplibs=
  44595. + alldeplibs=no
  44596. + newdlfiles=
  44597. + newdlprefiles=
  44598. + passes="conv scan dlopen dlpreopen link"
  44599. + ;;
  44600. + *) passes="conv"
  44601. + ;;
  44602. + esac
  44603. + for pass in $passes; do
  44604. + if test "$linkmode,$pass" = "lib,link" ||
  44605. + test "$linkmode,$pass" = "prog,scan"; then
  44606. + libs="$deplibs"
  44607. + deplibs=
  44608. + fi
  44609. + if test "$linkmode" = prog; then
  44610. + case $pass in
  44611. + dlopen) libs="$dlfiles" ;;
  44612. + dlpreopen) libs="$dlprefiles" ;;
  44613. + link)
  44614. + libs="$deplibs %DEPLIBS%"
  44615. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  44616. + ;;
  44617. + esac
  44618. + fi
  44619. + if test "$pass" = dlopen; then
  44620. + # Collect dlpreopened libraries
  44621. + save_deplibs="$deplibs"
  44622. + deplibs=
  44623. + fi
  44624. + for deplib in $libs; do
  44625. + lib=
  44626. + found=no
  44627. + case $deplib in
  44628. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  44629. + if test "$linkmode,$pass" = "prog,link"; then
  44630. + compile_deplibs="$deplib $compile_deplibs"
  44631. + finalize_deplibs="$deplib $finalize_deplibs"
  44632. + else
  44633. + compiler_flags="$compiler_flags $deplib"
  44634. + fi
  44635. + continue
  44636. + ;;
  44637. + -l*)
  44638. + if test "$linkmode" != lib && test "$linkmode" != prog; then
  44639. + $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
  44640. + continue
  44641. + fi
  44642. + name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  44643. + for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
  44644. + for search_ext in .la $std_shrext .so .a; do
  44645. + # Search the libtool library
  44646. + lib="$searchdir/lib${name}${search_ext}"
  44647. + if test -f "$lib"; then
  44648. + if test "$search_ext" = ".la"; then
  44649. + found=yes
  44650. + else
  44651. + found=no
  44652. + fi
  44653. + break 2
  44654. + fi
  44655. + done
  44656. + done
  44657. + if test "$found" != yes; then
  44658. + # deplib doesn't seem to be a libtool library
  44659. + if test "$linkmode,$pass" = "prog,link"; then
  44660. + compile_deplibs="$deplib $compile_deplibs"
  44661. + finalize_deplibs="$deplib $finalize_deplibs"
  44662. + else
  44663. + deplibs="$deplib $deplibs"
  44664. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  44665. + fi
  44666. + continue
  44667. + else # deplib is a libtool library
  44668. + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  44669. + # We need to do some special things here, and not later.
  44670. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  44671. + case " $predeps $postdeps " in
  44672. + *" $deplib "*)
  44673. + if (${SED} -e '2q' $lib |
  44674. + grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  44675. + library_names=
  44676. + old_library=
  44677. + case $lib in
  44678. + */* | *\\*) . $lib ;;
  44679. + *) . ./$lib ;;
  44680. + esac
  44681. + for l in $old_library $library_names; do
  44682. + ll="$l"
  44683. + done
  44684. + if test "X$ll" = "X$old_library" ; then # only static version available
  44685. + found=no
  44686. + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  44687. + test "X$ladir" = "X$lib" && ladir="."
  44688. + lib=$ladir/$old_library
  44689. + if test "$linkmode,$pass" = "prog,link"; then
  44690. + compile_deplibs="$deplib $compile_deplibs"
  44691. + finalize_deplibs="$deplib $finalize_deplibs"
  44692. + else
  44693. + deplibs="$deplib $deplibs"
  44694. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  44695. + fi
  44696. + continue
  44697. + fi
  44698. + fi
  44699. + ;;
  44700. + *) ;;
  44701. + esac
  44702. + fi
  44703. + fi
  44704. + ;; # -l
  44705. + -L*)
  44706. + case $linkmode in
  44707. + lib)
  44708. + deplibs="$deplib $deplibs"
  44709. + test "$pass" = conv && continue
  44710. + newdependency_libs="$deplib $newdependency_libs"
  44711. + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  44712. + ;;
  44713. + prog)
  44714. + if test "$pass" = conv; then
  44715. + deplibs="$deplib $deplibs"
  44716. + continue
  44717. + fi
  44718. + if test "$pass" = scan; then
  44719. + deplibs="$deplib $deplibs"
  44720. + else
  44721. + compile_deplibs="$deplib $compile_deplibs"
  44722. + finalize_deplibs="$deplib $finalize_deplibs"
  44723. + fi
  44724. + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  44725. ;;
  44726. - esac
  44727. -
  44728. - case " $sys_lib_dlsearch_path " in
  44729. - *" $libdir "*) ;;
  44730. *)
  44731. - case "$finalize_rpath " in
  44732. - *" $libdir "*) ;;
  44733. - *) finalize_rpath="$finalize_rpath $libdir"
  44734. - esac
  44735. + $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
  44736. ;;
  44737. - esac
  44738. -
  44739. - lib_linked=yes
  44740. - case "$hardcode_action" in
  44741. - immediate | unsupported)
  44742. - if test "$hardcode_direct" = no; then
  44743. - compile_command="$compile_command $dir/$linklib"
  44744. - deplibs="$deplibs $dir/$linklib"
  44745. - case "$host" in
  44746. - *-*-cygwin* | *-*-mingw* | *-*-os2*)
  44747. - dllsearchdir=`cd "$dir" && pwd || echo "$dir"`
  44748. - if test -n "$dllsearchpath"; then
  44749. - dllsearchpath="$dllsearchpath:$dllsearchdir"
  44750. - else
  44751. - dllsearchpath="$dllsearchdir"
  44752. + esac # linkmode
  44753. + continue
  44754. + ;; # -L
  44755. + -R*)
  44756. + if test "$pass" = link; then
  44757. + dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  44758. + # Make sure the xrpath contains only unique directories.
  44759. + case "$xrpath " in
  44760. + *" $dir "*) ;;
  44761. + *) xrpath="$xrpath $dir" ;;
  44762. + esac
  44763. + fi
  44764. + deplibs="$deplib $deplibs"
  44765. + continue
  44766. + ;;
  44767. + *.la) lib="$deplib" ;;
  44768. + *.$libext)
  44769. + if test "$pass" = conv; then
  44770. + deplibs="$deplib $deplibs"
  44771. + continue
  44772. + fi
  44773. + case $linkmode in
  44774. + lib)
  44775. + valid_a_lib=no
  44776. + case $deplibs_check_method in
  44777. + match_pattern*)
  44778. + set dummy $deplibs_check_method
  44779. + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  44780. + if eval $echo \"$deplib\" 2>/dev/null \
  44781. + | $SED 10q \
  44782. + | $EGREP "$match_pattern_regex" > /dev/null; then
  44783. + valid_a_lib=yes
  44784. fi
  44785. ;;
  44786. - esac
  44787. - elif test "$hardcode_minus_L" = no; then
  44788. - case "$host" in
  44789. - *-*-sunos*)
  44790. - compile_shlibpath="$compile_shlibpath$dir:"
  44791. + pass_all)
  44792. + valid_a_lib=yes
  44793. ;;
  44794. - esac
  44795. - case "$compile_command " in
  44796. - *" -L$dir "*) ;;
  44797. - *) compile_command="$compile_command -L$dir";;
  44798. - esac
  44799. - compile_command="$compile_command -l$name"
  44800. - deplibs="$deplibs -L$dir -l$name"
  44801. - elif test "$hardcode_shlibpath_var" = no; then
  44802. - case ":$compile_shlibpath:" in
  44803. - *":$dir:"*) ;;
  44804. - *) compile_shlibpath="$compile_shlibpath$dir:";;
  44805. - esac
  44806. - compile_command="$compile_command -l$name"
  44807. - deplibs="$deplibs -l$name"
  44808. + esac
  44809. + if test "$valid_a_lib" != yes; then
  44810. + $echo
  44811. + $echo "*** Warning: Trying to link with static lib archive $deplib."
  44812. + $echo "*** I have the capability to make that library automatically link in when"
  44813. + $echo "*** you link to this library. But I can only do this if you have a"
  44814. + $echo "*** shared version of the library, which you do not appear to have"
  44815. + $echo "*** because the file extensions .$libext of this argument makes me believe"
  44816. + $echo "*** that it is just a static archive that I should not used here."
  44817. else
  44818. - lib_linked=no
  44819. + $echo
  44820. + $echo "*** Warning: Linking the shared library $output against the"
  44821. + $echo "*** static library $deplib is not portable!"
  44822. + deplibs="$deplib $deplibs"
  44823. fi
  44824. + continue
  44825. ;;
  44826. -
  44827. - relink)
  44828. - if test "$hardcode_direct" = yes; then
  44829. - compile_command="$compile_command $absdir/$linklib"
  44830. - deplibs="$deplibs $absdir/$linklib"
  44831. - elif test "$hardcode_minus_L" = yes; then
  44832. - case "$compile_command " in
  44833. - *" -L$absdir "*) ;;
  44834. - *) compile_command="$compile_command -L$absdir";;
  44835. - esac
  44836. - compile_command="$compile_command -l$name"
  44837. - deplibs="$deplibs -L$absdir -l$name"
  44838. - elif test "$hardcode_shlibpath_var" = yes; then
  44839. - case ":$compile_shlibpath:" in
  44840. - *":$absdir:"*) ;;
  44841. - *) compile_shlibpath="$compile_shlibpath$absdir:";;
  44842. - esac
  44843. - compile_command="$compile_command -l$name"
  44844. - deplibs="$deplibs -l$name"
  44845. + prog)
  44846. + if test "$pass" != link; then
  44847. + deplibs="$deplib $deplibs"
  44848. else
  44849. - lib_linked=no
  44850. + compile_deplibs="$deplib $compile_deplibs"
  44851. + finalize_deplibs="$deplib $finalize_deplibs"
  44852. fi
  44853. + continue
  44854. ;;
  44855. + esac # linkmode
  44856. + ;; # *.$libext
  44857. + *.lo | *.$objext)
  44858. + if test "$pass" = conv; then
  44859. + deplibs="$deplib $deplibs"
  44860. + elif test "$linkmode" = prog; then
  44861. + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  44862. + # If there is no dlopen support or we're linking statically,
  44863. + # we need to preload.
  44864. + newdlprefiles="$newdlprefiles $deplib"
  44865. + compile_deplibs="$deplib $compile_deplibs"
  44866. + finalize_deplibs="$deplib $finalize_deplibs"
  44867. + else
  44868. + newdlfiles="$newdlfiles $deplib"
  44869. + fi
  44870. + fi
  44871. + continue
  44872. + ;;
  44873. + %DEPLIBS%)
  44874. + alldeplibs=yes
  44875. + continue
  44876. + ;;
  44877. + esac # case $deplib
  44878. + if test "$found" = yes || test -f "$lib"; then :
  44879. + else
  44880. + $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
  44881. + exit $EXIT_FAILURE
  44882. + fi
  44883. - *)
  44884. - lib_linked=no
  44885. - ;;
  44886. - esac
  44887. + # Check to see that this really is a libtool archive.
  44888. + if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  44889. + else
  44890. + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  44891. + exit $EXIT_FAILURE
  44892. + fi
  44893. +
  44894. + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  44895. + test "X$ladir" = "X$lib" && ladir="."
  44896. - if test "$lib_linked" != yes; then
  44897. - $echo "$modename: configuration error: unsupported hardcode properties"
  44898. - exit 1
  44899. + dlname=
  44900. + dlopen=
  44901. + dlpreopen=
  44902. + libdir=
  44903. + library_names=
  44904. + old_library=
  44905. + # If the library was installed with an old release of libtool,
  44906. + # it will not redefine variables installed, or shouldnotlink
  44907. + installed=yes
  44908. + shouldnotlink=no
  44909. + avoidtemprpath=
  44910. +
  44911. +
  44912. + # Read the .la file
  44913. + case $lib in
  44914. + */* | *\\*) . $lib ;;
  44915. + *) . ./$lib ;;
  44916. + esac
  44917. +
  44918. + if test "$linkmode,$pass" = "lib,link" ||
  44919. + test "$linkmode,$pass" = "prog,scan" ||
  44920. + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  44921. + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  44922. + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  44923. + fi
  44924. +
  44925. + if test "$pass" = conv; then
  44926. + # Only check for convenience libraries
  44927. + deplibs="$lib $deplibs"
  44928. + if test -z "$libdir"; then
  44929. + if test -z "$old_library"; then
  44930. + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  44931. + exit $EXIT_FAILURE
  44932. + fi
  44933. + # It is a libtool convenience library, so add in its objects.
  44934. + convenience="$convenience $ladir/$objdir/$old_library"
  44935. + old_convenience="$old_convenience $ladir/$objdir/$old_library"
  44936. + tmp_libs=
  44937. + for deplib in $dependency_libs; do
  44938. + deplibs="$deplib $deplibs"
  44939. + if test "X$duplicate_deps" = "Xyes" ; then
  44940. + case "$tmp_libs " in
  44941. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  44942. + esac
  44943. + fi
  44944. + tmp_libs="$tmp_libs $deplib"
  44945. + done
  44946. + elif test "$linkmode" != prog && test "$linkmode" != lib; then
  44947. + $echo "$modename: \`$lib' is not a convenience library" 1>&2
  44948. + exit $EXIT_FAILURE
  44949. fi
  44950. + continue
  44951. + fi # $pass = conv
  44952. - # Finalize command for both is simple: just hardcode it.
  44953. - if test "$hardcode_direct" = yes; then
  44954. - finalize_command="$finalize_command $libdir/$linklib"
  44955. - elif test "$hardcode_minus_L" = yes; then
  44956. - case "$finalize_command " in
  44957. - *" -L$libdir "*) ;;
  44958. - *) finalize_command="$finalize_command -L$libdir";;
  44959. - esac
  44960. - finalize_command="$finalize_command -l$name"
  44961. - elif test "$hardcode_shlibpath_var" = yes; then
  44962. - case ":$finalize_shlibpath:" in
  44963. - *":$libdir:"*) ;;
  44964. - *) finalize_shlibpath="$finalize_shlibpath$libdir:";;
  44965. - esac
  44966. - finalize_command="$finalize_command -l$name"
  44967. +
  44968. + # Get the name of the library we link against.
  44969. + linklib=
  44970. + for l in $old_library $library_names; do
  44971. + linklib="$l"
  44972. + done
  44973. + if test -z "$linklib"; then
  44974. + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  44975. + exit $EXIT_FAILURE
  44976. + fi
  44977. +
  44978. + # This library was specified with -dlopen.
  44979. + if test "$pass" = dlopen; then
  44980. + if test -z "$libdir"; then
  44981. + $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  44982. + exit $EXIT_FAILURE
  44983. + fi
  44984. + if test -z "$dlname" ||
  44985. + test "$dlopen_support" != yes ||
  44986. + test "$build_libtool_libs" = no; then
  44987. + # If there is no dlname, no dlopen support or we're linking
  44988. + # statically, we need to preload. We also need to preload any
  44989. + # dependent libraries so libltdl's deplib preloader doesn't
  44990. + # bomb out in the load deplibs phase.
  44991. + dlprefiles="$dlprefiles $lib $dependency_libs"
  44992. else
  44993. - # We cannot seem to hardcode it, guess we'll fake it.
  44994. - case "$finalize_command " in
  44995. - *" -L$dir "*) ;;
  44996. - *) finalize_command="$finalize_command -L$libdir";;
  44997. - esac
  44998. - finalize_command="$finalize_command -l$name"
  44999. + newdlfiles="$newdlfiles $lib"
  45000. fi
  45001. + continue
  45002. + fi # $pass = dlopen
  45003. +
  45004. + # We need an absolute path.
  45005. + case $ladir in
  45006. + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  45007. + *)
  45008. + abs_ladir=`cd "$ladir" && pwd`
  45009. + if test -z "$abs_ladir"; then
  45010. + $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
  45011. + $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  45012. + abs_ladir="$ladir"
  45013. + fi
  45014. + ;;
  45015. + esac
  45016. + laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  45017. +
  45018. + # Find the relevant object directory and library name.
  45019. + if test "X$installed" = Xyes; then
  45020. + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  45021. + $echo "$modename: warning: library \`$lib' was moved." 1>&2
  45022. + dir="$ladir"
  45023. + absdir="$abs_ladir"
  45024. + libdir="$abs_ladir"
  45025. + else
  45026. + dir="$libdir"
  45027. + absdir="$libdir"
  45028. + fi
  45029. + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  45030. else
  45031. - # Transform directly to old archives if we don't build new libraries.
  45032. - if test -n "$pic_flag" && test -z "$old_library"; then
  45033. - $echo "$modename: cannot find static library for \`$arg'" 1>&2
  45034. - exit 1
  45035. + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  45036. + dir="$ladir"
  45037. + absdir="$abs_ladir"
  45038. + # Remove this search path later
  45039. + notinst_path="$notinst_path $abs_ladir"
  45040. + else
  45041. + dir="$ladir/$objdir"
  45042. + absdir="$abs_ladir/$objdir"
  45043. + # Remove this search path later
  45044. + notinst_path="$notinst_path $abs_ladir"
  45045. + fi
  45046. + fi # $installed = yes
  45047. + name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  45048. +
  45049. + # This library was specified with -dlpreopen.
  45050. + if test "$pass" = dlpreopen; then
  45051. + if test -z "$libdir"; then
  45052. + $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  45053. + exit $EXIT_FAILURE
  45054. + fi
  45055. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  45056. + # are required to link).
  45057. + if test -n "$old_library"; then
  45058. + newdlprefiles="$newdlprefiles $dir/$old_library"
  45059. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  45060. + elif test -n "$dlname"; then
  45061. + newdlprefiles="$newdlprefiles $dir/$dlname"
  45062. + else
  45063. + newdlprefiles="$newdlprefiles $dir/$linklib"
  45064. fi
  45065. + fi # $pass = dlpreopen
  45066. - # Here we assume that one of hardcode_direct or hardcode_minus_L
  45067. - # is not unsupported. This is valid on all known static and
  45068. - # shared platforms.
  45069. - if test "$hardcode_direct" != unsupported; then
  45070. - test -n "$old_library" && linklib="$old_library"
  45071. - compile_command="$compile_command $dir/$linklib"
  45072. - finalize_command="$finalize_command $dir/$linklib"
  45073. + if test -z "$libdir"; then
  45074. + # Link the convenience library
  45075. + if test "$linkmode" = lib; then
  45076. + deplibs="$dir/$old_library $deplibs"
  45077. + elif test "$linkmode,$pass" = "prog,link"; then
  45078. + compile_deplibs="$dir/$old_library $compile_deplibs"
  45079. + finalize_deplibs="$dir/$old_library $finalize_deplibs"
  45080. else
  45081. - case "$compile_command " in
  45082. - *" -L$dir "*) ;;
  45083. - *) compile_command="$compile_command -L$dir";;
  45084. + deplibs="$lib $deplibs" # used for prog,scan pass
  45085. + fi
  45086. + continue
  45087. + fi
  45088. +
  45089. +
  45090. + if test "$linkmode" = prog && test "$pass" != link; then
  45091. + newlib_search_path="$newlib_search_path $ladir"
  45092. + deplibs="$lib $deplibs"
  45093. +
  45094. + linkalldeplibs=no
  45095. + if test "$link_all_deplibs" != no || test -z "$library_names" ||
  45096. + test "$build_libtool_libs" = no; then
  45097. + linkalldeplibs=yes
  45098. + fi
  45099. +
  45100. + tmp_libs=
  45101. + for deplib in $dependency_libs; do
  45102. + case $deplib in
  45103. + -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  45104. + esac
  45105. + # Need to link against all dependency_libs?
  45106. + if test "$linkalldeplibs" = yes; then
  45107. + deplibs="$deplib $deplibs"
  45108. + else
  45109. + # Need to hardcode shared library paths
  45110. + # or/and link against static libraries
  45111. + newdependency_libs="$deplib $newdependency_libs"
  45112. + fi
  45113. + if test "X$duplicate_deps" = "Xyes" ; then
  45114. + case "$tmp_libs " in
  45115. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  45116. + esac
  45117. + fi
  45118. + tmp_libs="$tmp_libs $deplib"
  45119. + done # for deplib
  45120. + continue
  45121. + fi # $linkmode = prog...
  45122. +
  45123. + if test "$linkmode,$pass" = "prog,link"; then
  45124. + if test -n "$library_names" &&
  45125. + { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  45126. + # We need to hardcode the library path
  45127. + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  45128. + # Make sure the rpath contains only unique directories.
  45129. + case "$temp_rpath " in
  45130. + *" $dir "*) ;;
  45131. + *" $absdir "*) ;;
  45132. + *) temp_rpath="$temp_rpath $absdir" ;;
  45133. + esac
  45134. + fi
  45135. +
  45136. + # Hardcode the library path.
  45137. + # Skip directories that are in the system default run-time
  45138. + # search path.
  45139. + case " $sys_lib_dlsearch_path " in
  45140. + *" $absdir "*) ;;
  45141. + *)
  45142. + case "$compile_rpath " in
  45143. + *" $absdir "*) ;;
  45144. + *) compile_rpath="$compile_rpath $absdir"
  45145. + esac
  45146. + ;;
  45147. esac
  45148. - compile_command="$compile_command -l$name"
  45149. - case "$finalize_command " in
  45150. - *" -L$dir "*) ;;
  45151. - *) finalize_command="$finalize_command -L$dir";;
  45152. + case " $sys_lib_dlsearch_path " in
  45153. + *" $libdir "*) ;;
  45154. + *)
  45155. + case "$finalize_rpath " in
  45156. + *" $libdir "*) ;;
  45157. + *) finalize_rpath="$finalize_rpath $libdir"
  45158. + esac
  45159. + ;;
  45160. esac
  45161. - finalize_command="$finalize_command -l$name"
  45162. + fi # $linkmode,$pass = prog,link...
  45163. +
  45164. + if test "$alldeplibs" = yes &&
  45165. + { test "$deplibs_check_method" = pass_all ||
  45166. + { test "$build_libtool_libs" = yes &&
  45167. + test -n "$library_names"; }; }; then
  45168. + # We only need to search for static libraries
  45169. + continue
  45170. fi
  45171. fi
  45172. - # Add in any libraries that this one depends upon.
  45173. - compile_command="$compile_command$dependency_libs"
  45174. - finalize_command="$finalize_command$dependency_libs"
  45175. - continue
  45176. - ;;
  45177. + link_static=no # Whether the deplib will be linked statically
  45178. + use_static_libs=$prefer_static_libs
  45179. + if test "$use_static_libs" = built && test "$installed" = yes ; then
  45180. + use_static_libs=no
  45181. + fi
  45182. + if test -n "$library_names" &&
  45183. + { test "$use_static_libs" = no || test -z "$old_library"; }; then
  45184. + if test "$installed" = no; then
  45185. + notinst_deplibs="$notinst_deplibs $lib"
  45186. + need_relink=yes
  45187. + fi
  45188. + # This is a shared library
  45189. +
  45190. + # Warn about portability, can't link against -module's on
  45191. + # some systems (darwin)
  45192. + if test "$shouldnotlink" = yes && test "$pass" = link ; then
  45193. + $echo
  45194. + if test "$linkmode" = prog; then
  45195. + $echo "*** Warning: Linking the executable $output against the loadable module"
  45196. + else
  45197. + $echo "*** Warning: Linking the shared library $output against the loadable module"
  45198. + fi
  45199. + $echo "*** $linklib is not portable!"
  45200. + fi
  45201. + if test "$linkmode" = lib &&
  45202. + test "$hardcode_into_libs" = yes; then
  45203. + # Hardcode the library path.
  45204. + # Skip directories that are in the system default run-time
  45205. + # search path.
  45206. + case " $sys_lib_dlsearch_path " in
  45207. + *" $absdir "*) ;;
  45208. + *)
  45209. + case "$compile_rpath " in
  45210. + *" $absdir "*) ;;
  45211. + *) compile_rpath="$compile_rpath $absdir"
  45212. + esac
  45213. + ;;
  45214. + esac
  45215. + case " $sys_lib_dlsearch_path " in
  45216. + *" $libdir "*) ;;
  45217. + *)
  45218. + case "$finalize_rpath " in
  45219. + *" $libdir "*) ;;
  45220. + *) finalize_rpath="$finalize_rpath $libdir"
  45221. + esac
  45222. + ;;
  45223. + esac
  45224. + fi
  45225. - # Some other compiler argument.
  45226. - *)
  45227. - # Unknown arguments in both finalize_command and compile_command need
  45228. - # to be aesthetically quoted because they are evaled later.
  45229. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  45230. - case "$arg" in
  45231. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  45232. - arg="\"$arg\""
  45233. - ;;
  45234. - esac
  45235. - ;;
  45236. - esac
  45237. + if test -n "$old_archive_from_expsyms_cmds"; then
  45238. + # figure out the soname
  45239. + set dummy $library_names
  45240. + realname="$2"
  45241. + shift; shift
  45242. + libname=`eval \\$echo \"$libname_spec\"`
  45243. + # use dlname if we got it. it's perfectly good, no?
  45244. + if test -n "$dlname"; then
  45245. + soname="$dlname"
  45246. + elif test -n "$soname_spec"; then
  45247. + # bleh windows
  45248. + case $host in
  45249. + *cygwin* | mingw*)
  45250. + major=`expr $current - $age`
  45251. + versuffix="-$major"
  45252. + ;;
  45253. + esac
  45254. + eval soname=\"$soname_spec\"
  45255. + else
  45256. + soname="$realname"
  45257. + fi
  45258. - # Now actually substitute the argument into the commands.
  45259. - if test -n "$arg"; then
  45260. - compile_command="$compile_command $arg"
  45261. - finalize_command="$finalize_command $arg"
  45262. - fi
  45263. - done
  45264. + # Make a new name for the extract_expsyms_cmds to use
  45265. + soroot="$soname"
  45266. + soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
  45267. + newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  45268. - if test -n "$prev"; then
  45269. - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  45270. - $echo "$help" 1>&2
  45271. - exit 1
  45272. - fi
  45273. + # If the library has no export list, then create one now
  45274. + if test -f "$output_objdir/$soname-def"; then :
  45275. + else
  45276. + $show "extracting exported symbol list from \`$soname'"
  45277. + save_ifs="$IFS"; IFS='~'
  45278. + cmds=$extract_expsyms_cmds
  45279. + for cmd in $cmds; do
  45280. + IFS="$save_ifs"
  45281. + eval cmd=\"$cmd\"
  45282. + $show "$cmd"
  45283. + $run eval "$cmd" || exit $?
  45284. + done
  45285. + IFS="$save_ifs"
  45286. + fi
  45287. - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  45288. - eval arg=\"$export_dynamic_flag_spec\"
  45289. - compile_command="$compile_command $arg"
  45290. - finalize_command="$finalize_command $arg"
  45291. - fi
  45292. + # Create $newlib
  45293. + if test -f "$output_objdir/$newlib"; then :; else
  45294. + $show "generating import library for \`$soname'"
  45295. + save_ifs="$IFS"; IFS='~'
  45296. + cmds=$old_archive_from_expsyms_cmds
  45297. + for cmd in $cmds; do
  45298. + IFS="$save_ifs"
  45299. + eval cmd=\"$cmd\"
  45300. + $show "$cmd"
  45301. + $run eval "$cmd" || exit $?
  45302. + done
  45303. + IFS="$save_ifs"
  45304. + fi
  45305. + # make sure the library variables are pointing to the new library
  45306. + dir=$output_objdir
  45307. + linklib=$newlib
  45308. + fi # test -n "$old_archive_from_expsyms_cmds"
  45309. +
  45310. + if test "$linkmode" = prog || test "$mode" != relink; then
  45311. + add_shlibpath=
  45312. + add_dir=
  45313. + add=
  45314. + lib_linked=yes
  45315. + case $hardcode_action in
  45316. + immediate | unsupported)
  45317. + if test "$hardcode_direct" = no; then
  45318. + add="$dir/$linklib"
  45319. + case $host in
  45320. + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  45321. + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  45322. + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  45323. + *-*-unixware7*) add_dir="-L$dir" ;;
  45324. + *-*-darwin* )
  45325. + # if the lib is a module then we can not link against
  45326. + # it, someone is ignoring the new warnings I added
  45327. + if /usr/bin/file -L $add 2> /dev/null |
  45328. + $EGREP ": [^:]* bundle" >/dev/null ; then
  45329. + $echo "** Warning, lib $linklib is a module, not a shared library"
  45330. + if test -z "$old_library" ; then
  45331. + $echo
  45332. + $echo "** And there doesn't seem to be a static archive available"
  45333. + $echo "** The link will probably fail, sorry"
  45334. + else
  45335. + add="$dir/$old_library"
  45336. + fi
  45337. + fi
  45338. + esac
  45339. + elif test "$hardcode_minus_L" = no; then
  45340. + case $host in
  45341. + *-*-sunos*) add_shlibpath="$dir" ;;
  45342. + esac
  45343. + add_dir="-L$dir"
  45344. + add="-l$name"
  45345. + elif test "$hardcode_shlibpath_var" = no; then
  45346. + add_shlibpath="$dir"
  45347. + add="-l$name"
  45348. + else
  45349. + lib_linked=no
  45350. + fi
  45351. + ;;
  45352. + relink)
  45353. + if test "$hardcode_direct" = yes; then
  45354. + add="$dir/$linklib"
  45355. + elif test "$hardcode_minus_L" = yes; then
  45356. + add_dir="-L$dir"
  45357. + # Try looking first in the location we're being installed to.
  45358. + if test -n "$inst_prefix_dir"; then
  45359. + case $libdir in
  45360. + [\\/]*)
  45361. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  45362. + ;;
  45363. + esac
  45364. + fi
  45365. + add="-l$name"
  45366. + elif test "$hardcode_shlibpath_var" = yes; then
  45367. + add_shlibpath="$dir"
  45368. + add="-l$name"
  45369. + else
  45370. + lib_linked=no
  45371. + fi
  45372. + ;;
  45373. + *) lib_linked=no ;;
  45374. + esac
  45375. - oldlibs=
  45376. - # calculate the name of the file, without its directory
  45377. - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  45378. - libobjs_save="$libobjs"
  45379. + if test "$lib_linked" != yes; then
  45380. + $echo "$modename: configuration error: unsupported hardcode properties"
  45381. + exit $EXIT_FAILURE
  45382. + fi
  45383. - case "$output" in
  45384. - "")
  45385. - $echo "$modename: you must specify an output file" 1>&2
  45386. - $echo "$help" 1>&2
  45387. - exit 1
  45388. - ;;
  45389. + if test -n "$add_shlibpath"; then
  45390. + case :$compile_shlibpath: in
  45391. + *":$add_shlibpath:"*) ;;
  45392. + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  45393. + esac
  45394. + fi
  45395. + if test "$linkmode" = prog; then
  45396. + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  45397. + test -n "$add" && compile_deplibs="$add $compile_deplibs"
  45398. + else
  45399. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  45400. + test -n "$add" && deplibs="$add $deplibs"
  45401. + if test "$hardcode_direct" != yes && \
  45402. + test "$hardcode_minus_L" != yes && \
  45403. + test "$hardcode_shlibpath_var" = yes; then
  45404. + case :$finalize_shlibpath: in
  45405. + *":$libdir:"*) ;;
  45406. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  45407. + esac
  45408. + fi
  45409. + fi
  45410. + fi
  45411. +
  45412. + if test "$linkmode" = prog || test "$mode" = relink; then
  45413. + add_shlibpath=
  45414. + add_dir=
  45415. + add=
  45416. + # Finalize command for both is simple: just hardcode it.
  45417. + if test "$hardcode_direct" = yes; then
  45418. + add="$libdir/$linklib"
  45419. + elif test "$hardcode_minus_L" = yes; then
  45420. + add_dir="-L$libdir"
  45421. + add="-l$name"
  45422. + elif test "$hardcode_shlibpath_var" = yes; then
  45423. + case :$finalize_shlibpath: in
  45424. + *":$libdir:"*) ;;
  45425. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  45426. + esac
  45427. + add="-l$name"
  45428. + elif test "$hardcode_automatic" = yes; then
  45429. + if test -n "$inst_prefix_dir" &&
  45430. + test -f "$inst_prefix_dir$libdir/$linklib" ; then
  45431. + add="$inst_prefix_dir$libdir/$linklib"
  45432. + else
  45433. + add="$libdir/$linklib"
  45434. + fi
  45435. + else
  45436. + # We cannot seem to hardcode it, guess we'll fake it.
  45437. + add_dir="-L$libdir"
  45438. + # Try looking first in the location we're being installed to.
  45439. + if test -n "$inst_prefix_dir"; then
  45440. + case $libdir in
  45441. + [\\/]*)
  45442. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  45443. + ;;
  45444. + esac
  45445. + fi
  45446. + add="-l$name"
  45447. + fi
  45448. +
  45449. + if test "$linkmode" = prog; then
  45450. + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  45451. + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  45452. + else
  45453. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  45454. + test -n "$add" && deplibs="$add $deplibs"
  45455. + fi
  45456. + fi
  45457. + elif test "$linkmode" = prog; then
  45458. + # Here we assume that one of hardcode_direct or hardcode_minus_L
  45459. + # is not unsupported. This is valid on all known static and
  45460. + # shared platforms.
  45461. + if test "$hardcode_direct" != unsupported; then
  45462. + test -n "$old_library" && linklib="$old_library"
  45463. + compile_deplibs="$dir/$linklib $compile_deplibs"
  45464. + finalize_deplibs="$dir/$linklib $finalize_deplibs"
  45465. + else
  45466. + compile_deplibs="-l$name -L$dir $compile_deplibs"
  45467. + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  45468. + fi
  45469. + elif test "$build_libtool_libs" = yes; then
  45470. + # Not a shared library
  45471. + if test "$deplibs_check_method" != pass_all; then
  45472. + # We're trying link a shared library against a static one
  45473. + # but the system doesn't support it.
  45474. +
  45475. + # Just print a warning and add the library to dependency_libs so
  45476. + # that the program can be linked against the static library.
  45477. + $echo
  45478. + $echo "*** Warning: This system can not link to static lib archive $lib."
  45479. + $echo "*** I have the capability to make that library automatically link in when"
  45480. + $echo "*** you link to this library. But I can only do this if you have a"
  45481. + $echo "*** shared version of the library, which you do not appear to have."
  45482. + if test "$module" = yes; then
  45483. + $echo "*** But as you try to build a module library, libtool will still create "
  45484. + $echo "*** a static module, that should work as long as the dlopening application"
  45485. + $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  45486. + if test -z "$global_symbol_pipe"; then
  45487. + $echo
  45488. + $echo "*** However, this would only work if libtool was able to extract symbol"
  45489. + $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  45490. + $echo "*** not find such a program. So, this module is probably useless."
  45491. + $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  45492. + fi
  45493. + if test "$build_old_libs" = no; then
  45494. + build_libtool_libs=module
  45495. + build_old_libs=yes
  45496. + else
  45497. + build_libtool_libs=no
  45498. + fi
  45499. + fi
  45500. + else
  45501. + deplibs="$dir/$old_library $deplibs"
  45502. + link_static=yes
  45503. + fi
  45504. + fi # link shared/static library?
  45505. +
  45506. + if test "$linkmode" = lib; then
  45507. + if test -n "$dependency_libs" &&
  45508. + { test "$hardcode_into_libs" != yes ||
  45509. + test "$build_old_libs" = yes ||
  45510. + test "$link_static" = yes; }; then
  45511. + # Extract -R from dependency_libs
  45512. + temp_deplibs=
  45513. + for libdir in $dependency_libs; do
  45514. + case $libdir in
  45515. + -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
  45516. + case " $xrpath " in
  45517. + *" $temp_xrpath "*) ;;
  45518. + *) xrpath="$xrpath $temp_xrpath";;
  45519. + esac;;
  45520. + *) temp_deplibs="$temp_deplibs $libdir";;
  45521. + esac
  45522. + done
  45523. + dependency_libs="$temp_deplibs"
  45524. + fi
  45525. +
  45526. + newlib_search_path="$newlib_search_path $absdir"
  45527. + # Link against this library
  45528. + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  45529. + # ... and its dependency_libs
  45530. + tmp_libs=
  45531. + for deplib in $dependency_libs; do
  45532. + newdependency_libs="$deplib $newdependency_libs"
  45533. + if test "X$duplicate_deps" = "Xyes" ; then
  45534. + case "$tmp_libs " in
  45535. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  45536. + esac
  45537. + fi
  45538. + tmp_libs="$tmp_libs $deplib"
  45539. + done
  45540. - *.a | *.lib)
  45541. - if test -n "$link_against_libtool_libs"; then
  45542. - $echo "$modename: error: cannot link libtool libraries into archives" 1>&2
  45543. - exit 1
  45544. + if test "$link_all_deplibs" != no; then
  45545. + # Add the search paths of all dependency libraries
  45546. + for deplib in $dependency_libs; do
  45547. + case $deplib in
  45548. + -L*) path="$deplib" ;;
  45549. + *.la)
  45550. + dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
  45551. + test "X$dir" = "X$deplib" && dir="."
  45552. + # We need an absolute path.
  45553. + case $dir in
  45554. + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  45555. + *)
  45556. + absdir=`cd "$dir" && pwd`
  45557. + if test -z "$absdir"; then
  45558. + $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  45559. + absdir="$dir"
  45560. + fi
  45561. + ;;
  45562. + esac
  45563. + if grep "^installed=no" $deplib > /dev/null; then
  45564. + path="$absdir/$objdir"
  45565. + else
  45566. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  45567. + if test -z "$libdir"; then
  45568. + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  45569. + exit $EXIT_FAILURE
  45570. + fi
  45571. + if test "$absdir" != "$libdir"; then
  45572. + $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  45573. + fi
  45574. + path="$absdir"
  45575. + fi
  45576. + depdepl=
  45577. + case $host in
  45578. + *-*-darwin*)
  45579. + # we do not want to link against static libs,
  45580. + # but need to link against shared
  45581. + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  45582. + if test -n "$deplibrary_names" ; then
  45583. + for tmp in $deplibrary_names ; do
  45584. + depdepl=$tmp
  45585. + done
  45586. + if test -f "$path/$depdepl" ; then
  45587. + depdepl="$path/$depdepl"
  45588. + fi
  45589. + # do not add paths which are already there
  45590. + case " $newlib_search_path " in
  45591. + *" $path "*) ;;
  45592. + *) newlib_search_path="$newlib_search_path $path";;
  45593. + esac
  45594. + fi
  45595. + path=""
  45596. + ;;
  45597. + *)
  45598. + path="-L$path"
  45599. + ;;
  45600. + esac
  45601. + ;;
  45602. + -l*)
  45603. + case $host in
  45604. + *-*-darwin*)
  45605. + # Again, we only want to link against shared libraries
  45606. + eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
  45607. + for tmp in $newlib_search_path ; do
  45608. + if test -f "$tmp/lib$tmp_libs.dylib" ; then
  45609. + eval depdepl="$tmp/lib$tmp_libs.dylib"
  45610. + break
  45611. + fi
  45612. + done
  45613. + path=""
  45614. + ;;
  45615. + *) continue ;;
  45616. + esac
  45617. + ;;
  45618. + *) continue ;;
  45619. + esac
  45620. + case " $deplibs " in
  45621. + *" $path "*) ;;
  45622. + *) deplibs="$path $deplibs" ;;
  45623. + esac
  45624. + case " $deplibs " in
  45625. + *" $depdepl "*) ;;
  45626. + *) deplibs="$depdepl $deplibs" ;;
  45627. + esac
  45628. + done
  45629. + fi # link_all_deplibs != no
  45630. + fi # linkmode = lib
  45631. + done # for deplib in $libs
  45632. + dependency_libs="$newdependency_libs"
  45633. + if test "$pass" = dlpreopen; then
  45634. + # Link the dlpreopened libraries before other libraries
  45635. + for deplib in $save_deplibs; do
  45636. + deplibs="$deplib $deplibs"
  45637. + done
  45638. fi
  45639. + if test "$pass" != dlopen; then
  45640. + if test "$pass" != conv; then
  45641. + # Make sure lib_search_path contains only unique directories.
  45642. + lib_search_path=
  45643. + for dir in $newlib_search_path; do
  45644. + case "$lib_search_path " in
  45645. + *" $dir "*) ;;
  45646. + *) lib_search_path="$lib_search_path $dir" ;;
  45647. + esac
  45648. + done
  45649. + newlib_search_path=
  45650. + fi
  45651. + if test "$linkmode,$pass" != "prog,link"; then
  45652. + vars="deplibs"
  45653. + else
  45654. + vars="compile_deplibs finalize_deplibs"
  45655. + fi
  45656. + for var in $vars dependency_libs; do
  45657. + # Add libraries to $var in reverse order
  45658. + eval tmp_libs=\"\$$var\"
  45659. + new_libs=
  45660. + for deplib in $tmp_libs; do
  45661. + # FIXME: Pedantically, this is the right thing to do, so
  45662. + # that some nasty dependency loop isn't accidentally
  45663. + # broken:
  45664. + #new_libs="$deplib $new_libs"
  45665. + # Pragmatically, this seems to cause very few problems in
  45666. + # practice:
  45667. + case $deplib in
  45668. + -L*) new_libs="$deplib $new_libs" ;;
  45669. + -R*) ;;
  45670. + *)
  45671. + # And here is the reason: when a library appears more
  45672. + # than once as an explicit dependence of a library, or
  45673. + # is implicitly linked in more than once by the
  45674. + # compiler, it is considered special, and multiple
  45675. + # occurrences thereof are not removed. Compare this
  45676. + # with having the same library being listed as a
  45677. + # dependency of multiple other libraries: in this case,
  45678. + # we know (pedantically, we assume) the library does not
  45679. + # need to be listed more than once, so we keep only the
  45680. + # last copy. This is not always right, but it is rare
  45681. + # enough that we require users that really mean to play
  45682. + # such unportable linking tricks to link the library
  45683. + # using -Wl,-lname, so that libtool does not consider it
  45684. + # for duplicate removal.
  45685. + case " $specialdeplibs " in
  45686. + *" $deplib "*) new_libs="$deplib $new_libs" ;;
  45687. + *)
  45688. + case " $new_libs " in
  45689. + *" $deplib "*) ;;
  45690. + *) new_libs="$deplib $new_libs" ;;
  45691. + esac
  45692. + ;;
  45693. + esac
  45694. + ;;
  45695. + esac
  45696. + done
  45697. + tmp_libs=
  45698. + for deplib in $new_libs; do
  45699. + case $deplib in
  45700. + -L*)
  45701. + case " $tmp_libs " in
  45702. + *" $deplib "*) ;;
  45703. + *) tmp_libs="$tmp_libs $deplib" ;;
  45704. + esac
  45705. + ;;
  45706. + *) tmp_libs="$tmp_libs $deplib" ;;
  45707. + esac
  45708. + done
  45709. + eval $var=\"$tmp_libs\"
  45710. + done # for var
  45711. + fi
  45712. + # Last step: remove runtime libs from dependency_libs
  45713. + # (they stay in deplibs)
  45714. + tmp_libs=
  45715. + for i in $dependency_libs ; do
  45716. + case " $predeps $postdeps $compiler_lib_search_path " in
  45717. + *" $i "*)
  45718. + i=""
  45719. + ;;
  45720. + esac
  45721. + if test -n "$i" ; then
  45722. + tmp_libs="$tmp_libs $i"
  45723. + fi
  45724. + done
  45725. + dependency_libs=$tmp_libs
  45726. + done # for pass
  45727. + if test "$linkmode" = prog; then
  45728. + dlfiles="$newdlfiles"
  45729. + dlprefiles="$newdlprefiles"
  45730. + fi
  45731. +
  45732. + case $linkmode in
  45733. + oldlib)
  45734. if test -n "$deplibs"; then
  45735. $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
  45736. fi
  45737. @@ -1552,7 +3076,7 @@
  45738. fi
  45739. if test -n "$vinfo"; then
  45740. - $echo "$modename: warning: \`-version-info' is ignored for archives" 1>&2
  45741. + $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
  45742. fi
  45743. if test -n "$release"; then
  45744. @@ -1566,24 +3090,27 @@
  45745. # Now set the variables for building old libraries.
  45746. build_libtool_libs=no
  45747. oldlibs="$output"
  45748. + objs="$objs$old_deplibs"
  45749. ;;
  45750. - *.la)
  45751. + lib)
  45752. # Make sure we only generate libraries of the form `libNAME.la'.
  45753. - case "$outputname" in
  45754. + case $outputname in
  45755. lib*)
  45756. name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  45757. + eval shared_ext=\"$shrext_cmds\"
  45758. eval libname=\"$libname_spec\"
  45759. ;;
  45760. *)
  45761. if test "$module" = no; then
  45762. $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
  45763. $echo "$help" 1>&2
  45764. - exit 1
  45765. + exit $EXIT_FAILURE
  45766. fi
  45767. if test "$need_lib_prefix" != no; then
  45768. # Add the "lib" prefix for modules if required
  45769. name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  45770. + eval shared_ext=\"$shrext_cmds\"
  45771. eval libname=\"$libname_spec\"
  45772. else
  45773. libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  45774. @@ -1591,30 +3118,24 @@
  45775. ;;
  45776. esac
  45777. - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  45778. - if test "X$output_objdir" = "X$output"; then
  45779. - output_objdir="$objdir"
  45780. - else
  45781. - output_objdir="$output_objdir/$objdir"
  45782. - fi
  45783. -
  45784. if test -n "$objs"; then
  45785. - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects:$objs" 2>&1
  45786. - exit 1
  45787. - fi
  45788. -
  45789. - # How the heck are we supposed to write a wrapper for a shared library?
  45790. - if test -n "$link_against_libtool_libs"; then
  45791. - $echo "$modename: error: cannot link shared libraries into libtool libraries" 1>&2
  45792. - exit 1
  45793. + if test "$deplibs_check_method" != pass_all; then
  45794. + $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
  45795. + exit $EXIT_FAILURE
  45796. + else
  45797. + $echo
  45798. + $echo "*** Warning: Linking the shared library $output against the non-libtool"
  45799. + $echo "*** objects $objs is not portable!"
  45800. + libobjs="$libobjs $objs"
  45801. + fi
  45802. fi
  45803. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  45804. - $echo "$modename: warning: \`-dlopen' is ignored for libtool libraries" 1>&2
  45805. + if test "$dlself" != no; then
  45806. + $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
  45807. fi
  45808. set dummy $rpath
  45809. - if test $# -gt 2; then
  45810. + if test "$#" -gt 2; then
  45811. $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
  45812. fi
  45813. install_libdir="$2"
  45814. @@ -1623,15 +3144,16 @@
  45815. if test -z "$rpath"; then
  45816. if test "$build_libtool_libs" = yes; then
  45817. # Building a libtool convenience library.
  45818. - libext=al
  45819. + # Some compilers have problems with a `.al' extension so
  45820. + # convenience libraries should have the same extension an
  45821. + # archive normally would.
  45822. oldlibs="$output_objdir/$libname.$libext $oldlibs"
  45823. build_libtool_libs=convenience
  45824. build_old_libs=yes
  45825. fi
  45826. - dependency_libs="$deplibs"
  45827. if test -n "$vinfo"; then
  45828. - $echo "$modename: warning: \`-version-info' is ignored for convenience libraries" 1>&2
  45829. + $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
  45830. fi
  45831. if test -n "$release"; then
  45832. @@ -1640,73 +3162,143 @@
  45833. else
  45834. # Parse the version information argument.
  45835. - IFS="${IFS= }"; save_ifs="$IFS"; IFS=':'
  45836. + save_ifs="$IFS"; IFS=':'
  45837. set dummy $vinfo 0 0 0
  45838. IFS="$save_ifs"
  45839. if test -n "$8"; then
  45840. $echo "$modename: too many parameters to \`-version-info'" 1>&2
  45841. $echo "$help" 1>&2
  45842. - exit 1
  45843. + exit $EXIT_FAILURE
  45844. fi
  45845. - current="$2"
  45846. - revision="$3"
  45847. - age="$4"
  45848. + # convert absolute version numbers to libtool ages
  45849. + # this retains compatibility with .la files and attempts
  45850. + # to make the code below a bit more comprehensible
  45851. +
  45852. + case $vinfo_number in
  45853. + yes)
  45854. + number_major="$2"
  45855. + number_minor="$3"
  45856. + number_revision="$4"
  45857. + #
  45858. + # There are really only two kinds -- those that
  45859. + # use the current revision as the major version
  45860. + # and those that subtract age and use age as
  45861. + # a minor version. But, then there is irix
  45862. + # which has an extra 1 added just for fun
  45863. + #
  45864. + case $version_type in
  45865. + darwin|linux|osf|windows)
  45866. + current=`expr $number_major + $number_minor`
  45867. + age="$number_minor"
  45868. + revision="$number_revision"
  45869. + ;;
  45870. + freebsd-aout|freebsd-elf|sunos)
  45871. + current="$number_major"
  45872. + revision="$number_minor"
  45873. + age="0"
  45874. + ;;
  45875. + irix|nonstopux)
  45876. + current=`expr $number_major + $number_minor - 1`
  45877. + age="$number_minor"
  45878. + revision="$number_minor"
  45879. + ;;
  45880. + *)
  45881. + $echo "$modename: unknown library version type \`$version_type'" 1>&2
  45882. + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  45883. + exit $EXIT_FAILURE
  45884. + ;;
  45885. + esac
  45886. + ;;
  45887. + no)
  45888. + current="$2"
  45889. + revision="$3"
  45890. + age="$4"
  45891. + ;;
  45892. + esac
  45893. # Check that each of the things are valid numbers.
  45894. - case "$current" in
  45895. - 0 | [1-9] | [1-9][0-9]*) ;;
  45896. + case $current in
  45897. + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  45898. *)
  45899. - $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
  45900. + $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
  45901. $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  45902. - exit 1
  45903. + exit $EXIT_FAILURE
  45904. ;;
  45905. esac
  45906. - case "$revision" in
  45907. - 0 | [1-9] | [1-9][0-9]*) ;;
  45908. + case $revision in
  45909. + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  45910. *)
  45911. - $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
  45912. + $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
  45913. $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  45914. - exit 1
  45915. + exit $EXIT_FAILURE
  45916. ;;
  45917. esac
  45918. - case "$age" in
  45919. - 0 | [1-9] | [1-9][0-9]*) ;;
  45920. + case $age in
  45921. + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  45922. *)
  45923. - $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
  45924. + $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
  45925. $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  45926. - exit 1
  45927. + exit $EXIT_FAILURE
  45928. ;;
  45929. esac
  45930. - if test $age -gt $current; then
  45931. + if test "$age" -gt "$current"; then
  45932. $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
  45933. $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  45934. - exit 1
  45935. + exit $EXIT_FAILURE
  45936. fi
  45937. # Calculate the version variables.
  45938. major=
  45939. versuffix=
  45940. verstring=
  45941. - case "$version_type" in
  45942. + case $version_type in
  45943. none) ;;
  45944. - irix)
  45945. + darwin)
  45946. + # Like Linux, but with the current version available in
  45947. + # verstring for coding it into the library header
  45948. + major=.`expr $current - $age`
  45949. + versuffix="$major.$age.$revision"
  45950. + # Darwin ld doesn't like 0 for these options...
  45951. + minor_current=`expr $current + 1`
  45952. + verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  45953. + ;;
  45954. +
  45955. + freebsd-aout)
  45956. + major=".$current"
  45957. + versuffix=".$current.$revision";
  45958. + ;;
  45959. +
  45960. + freebsd-elf)
  45961. + major=".$current"
  45962. + versuffix=".$current";
  45963. + ;;
  45964. +
  45965. + irix | nonstopux)
  45966. major=`expr $current - $age + 1`
  45967. - versuffix="$major.$revision"
  45968. - verstring="sgi$major.$revision"
  45969. +
  45970. + case $version_type in
  45971. + nonstopux) verstring_prefix=nonstopux ;;
  45972. + *) verstring_prefix=sgi ;;
  45973. + esac
  45974. + verstring="$verstring_prefix$major.$revision"
  45975. # Add in all the interfaces that we are compatible with.
  45976. loop=$revision
  45977. - while test $loop != 0; do
  45978. + while test "$loop" -ne 0; do
  45979. iface=`expr $revision - $loop`
  45980. loop=`expr $loop - 1`
  45981. - verstring="sgi$major.$iface:$verstring"
  45982. + verstring="$verstring_prefix$major.$iface:$verstring"
  45983. done
  45984. +
  45985. + # Before this point, $major must not contain `.'.
  45986. + major=.$major
  45987. + versuffix="$major.$revision"
  45988. ;;
  45989. linux)
  45990. @@ -1715,13 +3307,13 @@
  45991. ;;
  45992. osf)
  45993. - major=`expr $current - $age`
  45994. + major=.`expr $current - $age`
  45995. versuffix=".$current.$age.$revision"
  45996. verstring="$current.$age.$revision"
  45997. # Add in all the interfaces that we are compatible with.
  45998. loop=$age
  45999. - while test $loop != 0; do
  46000. + while test "$loop" -ne 0; do
  46001. iface=`expr $current - $loop`
  46002. loop=`expr $loop - 1`
  46003. verstring="$verstring:${iface}.0"
  46004. @@ -1736,34 +3328,33 @@
  46005. versuffix=".$current.$revision"
  46006. ;;
  46007. - freebsd-aout)
  46008. - major=".$current"
  46009. - versuffix=".$current.$revision";
  46010. - ;;
  46011. -
  46012. - freebsd-elf)
  46013. - major=".$current"
  46014. - versuffix=".$current";
  46015. - ;;
  46016. -
  46017. windows)
  46018. - # Like Linux, but with '-' rather than '.', since we only
  46019. - # want one extension on Windows 95.
  46020. + # Use '-' rather than '.', since we only want one
  46021. + # extension on DOS 8.3 filesystems.
  46022. major=`expr $current - $age`
  46023. - versuffix="-$major-$age-$revision"
  46024. + versuffix="-$major"
  46025. ;;
  46026. *)
  46027. $echo "$modename: unknown library version type \`$version_type'" 1>&2
  46028. - echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  46029. - exit 1
  46030. + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  46031. + exit $EXIT_FAILURE
  46032. ;;
  46033. esac
  46034. # Clear the version info if we defaulted, and they specified a release.
  46035. if test -z "$vinfo" && test -n "$release"; then
  46036. major=
  46037. - verstring="0.0"
  46038. + case $version_type in
  46039. + darwin)
  46040. + # we can't check for "0.0" in archive_cmds due to quoting
  46041. + # problems, so we reset it completely
  46042. + verstring=
  46043. + ;;
  46044. + *)
  46045. + verstring="0.0"
  46046. + ;;
  46047. + esac
  46048. if test "$need_version" = no; then
  46049. versuffix=
  46050. else
  46051. @@ -1777,7 +3368,7 @@
  46052. versuffix=
  46053. verstring=""
  46054. fi
  46055. -
  46056. +
  46057. # Check to see if the archive will have undefined symbols.
  46058. if test "$allow_undefined" = yes; then
  46059. if test "$allow_undefined_flag" = unsupported; then
  46060. @@ -1789,29 +3380,32 @@
  46061. # Don't allow undefined symbols.
  46062. allow_undefined_flag="$no_undefined_flag"
  46063. fi
  46064. -
  46065. - dependency_libs="$deplibs"
  46066. - case "$host" in
  46067. - *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
  46068. - # these systems don't actually have a c library (as such)!
  46069. - ;;
  46070. - *)
  46071. - # Add libc to deplibs on all other systems.
  46072. - deplibs="$deplibs -lc"
  46073. - ;;
  46074. - esac
  46075. fi
  46076. - # Create the output directory, or remove our outputs if we need to.
  46077. - if test -d $output_objdir; then
  46078. - $show "${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*"
  46079. - $run ${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*
  46080. - else
  46081. - $show "$mkdir $output_objdir"
  46082. - $run $mkdir $output_objdir
  46083. - status=$?
  46084. - if test $status -ne 0 && test ! -d $output_objdir; then
  46085. - exit $status
  46086. + if test "$mode" != relink; then
  46087. + # Remove our outputs, but don't remove object files since they
  46088. + # may have been created when compiling PIC objects.
  46089. + removelist=
  46090. + tempremovelist=`$echo "$output_objdir/*"`
  46091. + for p in $tempremovelist; do
  46092. + case $p in
  46093. + *.$objext)
  46094. + ;;
  46095. + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  46096. + if test "X$precious_files_regex" != "X"; then
  46097. + if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  46098. + then
  46099. + continue
  46100. + fi
  46101. + fi
  46102. + removelist="$removelist $p"
  46103. + ;;
  46104. + *) ;;
  46105. + esac
  46106. + done
  46107. + if test -n "$removelist"; then
  46108. + $show "${rm}r $removelist"
  46109. + $run ${rm}r $removelist
  46110. fi
  46111. fi
  46112. @@ -1823,7 +3417,79 @@
  46113. oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  46114. fi
  46115. + # Eliminate all temporary directories.
  46116. + for path in $notinst_path; do
  46117. + lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
  46118. + deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
  46119. + dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
  46120. + done
  46121. +
  46122. + if test -n "$xrpath"; then
  46123. + # If the user specified any rpath flags, then add them.
  46124. + temp_xrpath=
  46125. + for libdir in $xrpath; do
  46126. + temp_xrpath="$temp_xrpath -R$libdir"
  46127. + case "$finalize_rpath " in
  46128. + *" $libdir "*) ;;
  46129. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  46130. + esac
  46131. + done
  46132. + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  46133. + dependency_libs="$temp_xrpath $dependency_libs"
  46134. + fi
  46135. + fi
  46136. +
  46137. + # Make sure dlfiles contains only unique files that won't be dlpreopened
  46138. + old_dlfiles="$dlfiles"
  46139. + dlfiles=
  46140. + for lib in $old_dlfiles; do
  46141. + case " $dlprefiles $dlfiles " in
  46142. + *" $lib "*) ;;
  46143. + *) dlfiles="$dlfiles $lib" ;;
  46144. + esac
  46145. + done
  46146. +
  46147. + # Make sure dlprefiles contains only unique files
  46148. + old_dlprefiles="$dlprefiles"
  46149. + dlprefiles=
  46150. + for lib in $old_dlprefiles; do
  46151. + case "$dlprefiles " in
  46152. + *" $lib "*) ;;
  46153. + *) dlprefiles="$dlprefiles $lib" ;;
  46154. + esac
  46155. + done
  46156. +
  46157. if test "$build_libtool_libs" = yes; then
  46158. + if test -n "$rpath"; then
  46159. + case $host in
  46160. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
  46161. + # these systems don't actually have a c library (as such)!
  46162. + ;;
  46163. + *-*-rhapsody* | *-*-darwin1.[012])
  46164. + # Rhapsody C library is in the System framework
  46165. + deplibs="$deplibs -framework System"
  46166. + ;;
  46167. + *-*-netbsd*)
  46168. + # Don't link with libc until the a.out ld.so is fixed.
  46169. + ;;
  46170. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  46171. + # Do not include libc due to us having libc/libc_r.
  46172. + ;;
  46173. + *-*-sco3.2v5* | *-*-sco5v6*)
  46174. + # Causes problems with __ctype
  46175. + ;;
  46176. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  46177. + # Compiler inserts libc in the correct place for threads to work
  46178. + ;;
  46179. + *)
  46180. + # Add libc to deplibs on all other systems if necessary.
  46181. + if test "$build_libtool_need_lc" = "yes"; then
  46182. + deplibs="$deplibs -lc"
  46183. + fi
  46184. + ;;
  46185. + esac
  46186. + fi
  46187. +
  46188. # Transform deplibs into only deplibs that can be linked in shared.
  46189. name_save=$name
  46190. libname_save=$libname
  46191. @@ -1838,13 +3504,13 @@
  46192. major=""
  46193. newdeplibs=
  46194. droppeddeps=no
  46195. - case "$deplibs_check_method" in
  46196. + case $deplibs_check_method in
  46197. pass_all)
  46198. # Don't check for shared/static. Everything works.
  46199. # This might be a little naive. We might want to check
  46200. # whether the library exists or not. But this is on
  46201. # osf3 & osf4 and I'm not really sure... Just
  46202. - # implementing what was already the behaviour.
  46203. + # implementing what was already the behavior.
  46204. newdeplibs=$deplibs
  46205. ;;
  46206. test_compile)
  46207. @@ -1857,64 +3523,88 @@
  46208. int main() { return 0; }
  46209. EOF
  46210. $rm conftest
  46211. - $CC -o conftest conftest.c $deplibs
  46212. - if test $? -eq 0 ; then
  46213. + $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
  46214. + if test "$?" -eq 0 ; then
  46215. ldd_output=`ldd conftest`
  46216. for i in $deplibs; do
  46217. - name="`expr $i : '-l\(.*\)'`"
  46218. + name=`expr $i : '-l\(.*\)'`
  46219. # If $name is empty we are operating on a -L argument.
  46220. - if test "$name" != "" ; then
  46221. - libname=`eval \\$echo \"$libname_spec\"`
  46222. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  46223. - set dummy $deplib_matches
  46224. - deplib_match=$2
  46225. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  46226. - newdeplibs="$newdeplibs $i"
  46227. - else
  46228. - droppeddeps=yes
  46229. - echo
  46230. - echo "*** Warning: This library needs some functionality provided by $i."
  46231. - echo "*** I have the capability to make that library automatically link in when"
  46232. - echo "*** you link to this library. But I can only do this if you have a"
  46233. - echo "*** shared version of the library, which you do not appear to have."
  46234. + if test "$name" != "" && test "$name" -ne "0"; then
  46235. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  46236. + case " $predeps $postdeps " in
  46237. + *" $i "*)
  46238. + newdeplibs="$newdeplibs $i"
  46239. + i=""
  46240. + ;;
  46241. + esac
  46242. + fi
  46243. + if test -n "$i" ; then
  46244. + libname=`eval \\$echo \"$libname_spec\"`
  46245. + deplib_matches=`eval \\$echo \"$library_names_spec\"`
  46246. + set dummy $deplib_matches
  46247. + deplib_match=$2
  46248. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  46249. + newdeplibs="$newdeplibs $i"
  46250. + else
  46251. + droppeddeps=yes
  46252. + $echo
  46253. + $echo "*** Warning: dynamic linker does not accept needed library $i."
  46254. + $echo "*** I have the capability to make that library automatically link in when"
  46255. + $echo "*** you link to this library. But I can only do this if you have a"
  46256. + $echo "*** shared version of the library, which I believe you do not have"
  46257. + $echo "*** because a test_compile did reveal that the linker did not use it for"
  46258. + $echo "*** its dynamic dependency list that programs get resolved with at runtime."
  46259. + fi
  46260. fi
  46261. else
  46262. newdeplibs="$newdeplibs $i"
  46263. fi
  46264. done
  46265. else
  46266. - # Error occured in the first compile. Let's try to salvage the situation:
  46267. - # Compile a seperate program for each library.
  46268. + # Error occurred in the first compile. Let's try to salvage
  46269. + # the situation: Compile a separate program for each library.
  46270. for i in $deplibs; do
  46271. - name="`expr $i : '-l\(.*\)'`"
  46272. - # If $name is empty we are operating on a -L argument.
  46273. - if test "$name" != "" ; then
  46274. + name=`expr $i : '-l\(.*\)'`
  46275. + # If $name is empty we are operating on a -L argument.
  46276. + if test "$name" != "" && test "$name" != "0"; then
  46277. $rm conftest
  46278. - $CC -o conftest conftest.c $i
  46279. + $LTCC $LTCFLAGS -o conftest conftest.c $i
  46280. # Did it work?
  46281. - if test $? -eq 0 ; then
  46282. + if test "$?" -eq 0 ; then
  46283. ldd_output=`ldd conftest`
  46284. - libname=`eval \\$echo \"$libname_spec\"`
  46285. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  46286. - set dummy $deplib_matches
  46287. - deplib_match=$2
  46288. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  46289. - newdeplibs="$newdeplibs $i"
  46290. - else
  46291. - droppeddeps=yes
  46292. - echo
  46293. - echo "*** Warning: This library needs some functionality provided by $i."
  46294. - echo "*** I have the capability to make that library automatically link in when"
  46295. - echo "*** you link to this library. But I can only do this if you have a"
  46296. - echo "*** shared version of the library, which you do not appear to have."
  46297. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  46298. + case " $predeps $postdeps " in
  46299. + *" $i "*)
  46300. + newdeplibs="$newdeplibs $i"
  46301. + i=""
  46302. + ;;
  46303. + esac
  46304. + fi
  46305. + if test -n "$i" ; then
  46306. + libname=`eval \\$echo \"$libname_spec\"`
  46307. + deplib_matches=`eval \\$echo \"$library_names_spec\"`
  46308. + set dummy $deplib_matches
  46309. + deplib_match=$2
  46310. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  46311. + newdeplibs="$newdeplibs $i"
  46312. + else
  46313. + droppeddeps=yes
  46314. + $echo
  46315. + $echo "*** Warning: dynamic linker does not accept needed library $i."
  46316. + $echo "*** I have the capability to make that library automatically link in when"
  46317. + $echo "*** you link to this library. But I can only do this if you have a"
  46318. + $echo "*** shared version of the library, which you do not appear to have"
  46319. + $echo "*** because a test_compile did reveal that the linker did not use this one"
  46320. + $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  46321. + fi
  46322. fi
  46323. else
  46324. droppeddeps=yes
  46325. - echo
  46326. - echo "*** Warning! Library $i is needed by this library but I was not able to"
  46327. - echo "*** make it link in! You will probably need to install it or some"
  46328. - echo "*** library that it depends on before this library will be fully"
  46329. - echo "*** functional. Installing it before continuing would be even better."
  46330. + $echo
  46331. + $echo "*** Warning! Library $i is needed by this library but I was not able to"
  46332. + $echo "*** make it link in! You will probably need to install it or some"
  46333. + $echo "*** library that it depends on before this library will be fully"
  46334. + $echo "*** functional. Installing it before continuing would be even better."
  46335. fi
  46336. else
  46337. newdeplibs="$newdeplibs $i"
  46338. @@ -1924,19 +3614,28 @@
  46339. ;;
  46340. file_magic*)
  46341. set dummy $deplibs_check_method
  46342. - file_magic_regex="`expr \"$deplibs_check_method\" : \"$2 \(.*\)\"`"
  46343. + file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  46344. for a_deplib in $deplibs; do
  46345. - name="`expr $a_deplib : '-l\(.*\)'`"
  46346. + name=`expr $a_deplib : '-l\(.*\)'`
  46347. # If $name is empty we are operating on a -L argument.
  46348. - if test "$name" != "" ; then
  46349. - libname=`eval \\$echo \"$libname_spec\"`
  46350. - for i in $lib_search_path; do
  46351. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  46352. - for potent_lib in $potential_libs; do
  46353. + if test "$name" != "" && test "$name" != "0"; then
  46354. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  46355. + case " $predeps $postdeps " in
  46356. + *" $a_deplib "*)
  46357. + newdeplibs="$newdeplibs $a_deplib"
  46358. + a_deplib=""
  46359. + ;;
  46360. + esac
  46361. + fi
  46362. + if test -n "$a_deplib" ; then
  46363. + libname=`eval \\$echo \"$libname_spec\"`
  46364. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  46365. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  46366. + for potent_lib in $potential_libs; do
  46367. # Follow soft links.
  46368. if ls -lLd "$potent_lib" 2>/dev/null \
  46369. | grep " -> " >/dev/null; then
  46370. - continue
  46371. + continue
  46372. fi
  46373. # The statement above tries to avoid entering an
  46374. # endless loop below, in case of cyclic links.
  46375. @@ -1945,28 +3644,88 @@
  46376. # but so what?
  46377. potlib="$potent_lib"
  46378. while test -h "$potlib" 2>/dev/null; do
  46379. - potliblink=`ls -ld $potlib | sed 's/.* -> //'`
  46380. - case "$potliblink" in
  46381. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  46382. + case $potliblink in
  46383. [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  46384. *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  46385. esac
  46386. done
  46387. if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  46388. - | sed 10q \
  46389. - | egrep "$file_magic_regex" > /dev/null; then
  46390. + | ${SED} 10q \
  46391. + | $EGREP "$file_magic_regex" > /dev/null; then
  46392. newdeplibs="$newdeplibs $a_deplib"
  46393. a_deplib=""
  46394. break 2
  46395. fi
  46396. - done
  46397. - done
  46398. + done
  46399. + done
  46400. + fi
  46401. + if test -n "$a_deplib" ; then
  46402. + droppeddeps=yes
  46403. + $echo
  46404. + $echo "*** Warning: linker path does not have real file for library $a_deplib."
  46405. + $echo "*** I have the capability to make that library automatically link in when"
  46406. + $echo "*** you link to this library. But I can only do this if you have a"
  46407. + $echo "*** shared version of the library, which you do not appear to have"
  46408. + $echo "*** because I did check the linker path looking for a file starting"
  46409. + if test -z "$potlib" ; then
  46410. + $echo "*** with $libname but no candidates were found. (...for file magic test)"
  46411. + else
  46412. + $echo "*** with $libname and none of the candidates passed a file format test"
  46413. + $echo "*** using a file magic. Last file checked: $potlib"
  46414. + fi
  46415. + fi
  46416. + else
  46417. + # Add a -L argument.
  46418. + newdeplibs="$newdeplibs $a_deplib"
  46419. + fi
  46420. + done # Gone through all deplibs.
  46421. + ;;
  46422. + match_pattern*)
  46423. + set dummy $deplibs_check_method
  46424. + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  46425. + for a_deplib in $deplibs; do
  46426. + name=`expr $a_deplib : '-l\(.*\)'`
  46427. + # If $name is empty we are operating on a -L argument.
  46428. + if test -n "$name" && test "$name" != "0"; then
  46429. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  46430. + case " $predeps $postdeps " in
  46431. + *" $a_deplib "*)
  46432. + newdeplibs="$newdeplibs $a_deplib"
  46433. + a_deplib=""
  46434. + ;;
  46435. + esac
  46436. + fi
  46437. + if test -n "$a_deplib" ; then
  46438. + libname=`eval \\$echo \"$libname_spec\"`
  46439. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  46440. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  46441. + for potent_lib in $potential_libs; do
  46442. + potlib="$potent_lib" # see symlink-check above in file_magic test
  46443. + if eval $echo \"$potent_lib\" 2>/dev/null \
  46444. + | ${SED} 10q \
  46445. + | $EGREP "$match_pattern_regex" > /dev/null; then
  46446. + newdeplibs="$newdeplibs $a_deplib"
  46447. + a_deplib=""
  46448. + break 2
  46449. + fi
  46450. + done
  46451. + done
  46452. + fi
  46453. if test -n "$a_deplib" ; then
  46454. droppeddeps=yes
  46455. - echo
  46456. - echo "*** Warning: This library needs some functionality provided by $a_deplib."
  46457. - echo "*** I have the capability to make that library automatically link in when"
  46458. - echo "*** you link to this library. But I can only do this if you have a"
  46459. - echo "*** shared version of the library, which you do not appear to have."
  46460. + $echo
  46461. + $echo "*** Warning: linker path does not have real file for library $a_deplib."
  46462. + $echo "*** I have the capability to make that library automatically link in when"
  46463. + $echo "*** you link to this library. But I can only do this if you have a"
  46464. + $echo "*** shared version of the library, which you do not appear to have"
  46465. + $echo "*** because I did check the linker path looking for a file starting"
  46466. + if test -z "$potlib" ; then
  46467. + $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  46468. + else
  46469. + $echo "*** with $libname and none of the candidates passed a file format test"
  46470. + $echo "*** using a regex pattern. Last file checked: $potlib"
  46471. + fi
  46472. fi
  46473. else
  46474. # Add a -L argument.
  46475. @@ -1976,16 +3735,23 @@
  46476. ;;
  46477. none | unknown | *)
  46478. newdeplibs=""
  46479. - if $echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  46480. - -e 's/ -[LR][^ ]*//g' -e 's/[ ]//g' |
  46481. - grep . >/dev/null; then
  46482. - echo
  46483. + tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  46484. + -e 's/ -[LR][^ ]*//g'`
  46485. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  46486. + for i in $predeps $postdeps ; do
  46487. + # can't use Xsed below, because $i might contain '/'
  46488. + tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
  46489. + done
  46490. + fi
  46491. + if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
  46492. + | grep . >/dev/null; then
  46493. + $echo
  46494. if test "X$deplibs_check_method" = "Xnone"; then
  46495. - echo "*** Warning: inter-library dependencies are not supported in this platform."
  46496. + $echo "*** Warning: inter-library dependencies are not supported in this platform."
  46497. else
  46498. - echo "*** Warning: inter-library dependencies are not known to be supported."
  46499. + $echo "*** Warning: inter-library dependencies are not known to be supported."
  46500. fi
  46501. - echo "*** All declared inter-library dependencies are being dropped."
  46502. + $echo "*** All declared inter-library dependencies are being dropped."
  46503. droppeddeps=yes
  46504. fi
  46505. ;;
  46506. @@ -1996,19 +3762,26 @@
  46507. libname=$libname_save
  46508. name=$name_save
  46509. + case $host in
  46510. + *-*-rhapsody* | *-*-darwin1.[012])
  46511. + # On Rhapsody replace the C library is the System framework
  46512. + newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
  46513. + ;;
  46514. + esac
  46515. +
  46516. if test "$droppeddeps" = yes; then
  46517. if test "$module" = yes; then
  46518. - echo
  46519. - echo "*** Warning: libtool could not satisfy all declared inter-library"
  46520. - echo "*** dependencies of module $libname. Therefore, libtool will create"
  46521. - echo "*** a static module, that should work as long as the dlopening"
  46522. - echo "*** application is linked with the -dlopen flag."
  46523. + $echo
  46524. + $echo "*** Warning: libtool could not satisfy all declared inter-library"
  46525. + $echo "*** dependencies of module $libname. Therefore, libtool will create"
  46526. + $echo "*** a static module, that should work as long as the dlopening"
  46527. + $echo "*** application is linked with the -dlopen flag."
  46528. if test -z "$global_symbol_pipe"; then
  46529. - echo
  46530. - echo "*** However, this would only work if libtool was able to extract symbol"
  46531. - echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  46532. - echo "*** not find such a program. So, this module is probably useless."
  46533. - echo "*** \`nm' from GNU binutils and a full rebuild may help."
  46534. + $echo
  46535. + $echo "*** However, this would only work if libtool was able to extract symbol"
  46536. + $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  46537. + $echo "*** not find such a program. So, this module is probably useless."
  46538. + $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  46539. fi
  46540. if test "$build_old_libs" = no; then
  46541. oldlibs="$output_objdir/$libname.$libext"
  46542. @@ -2018,23 +3791,127 @@
  46543. build_libtool_libs=no
  46544. fi
  46545. else
  46546. - echo "*** The inter-library dependencies that have been dropped here will be"
  46547. - echo "*** automatically added whenever a program is linked with this library"
  46548. - echo "*** or is declared to -dlopen it."
  46549. + $echo "*** The inter-library dependencies that have been dropped here will be"
  46550. + $echo "*** automatically added whenever a program is linked with this library"
  46551. + $echo "*** or is declared to -dlopen it."
  46552. +
  46553. + if test "$allow_undefined" = no; then
  46554. + $echo
  46555. + $echo "*** Since this library must not contain undefined symbols,"
  46556. + $echo "*** because either the platform does not support them or"
  46557. + $echo "*** it was explicitly requested with -no-undefined,"
  46558. + $echo "*** libtool will only create a static version of it."
  46559. + if test "$build_old_libs" = no; then
  46560. + oldlibs="$output_objdir/$libname.$libext"
  46561. + build_libtool_libs=module
  46562. + build_old_libs=yes
  46563. + else
  46564. + build_libtool_libs=no
  46565. + fi
  46566. + fi
  46567. fi
  46568. fi
  46569. # Done checking deplibs!
  46570. deplibs=$newdeplibs
  46571. fi
  46572. +
  46573. + # move library search paths that coincide with paths to not yet
  46574. + # installed libraries to the beginning of the library search list
  46575. + new_libs=
  46576. + for path in $notinst_path; do
  46577. + case " $new_libs " in
  46578. + *" -L$path/$objdir "*) ;;
  46579. + *)
  46580. + case " $deplibs " in
  46581. + *" -L$path/$objdir "*)
  46582. + new_libs="$new_libs -L$path/$objdir" ;;
  46583. + esac
  46584. + ;;
  46585. + esac
  46586. + done
  46587. + for deplib in $deplibs; do
  46588. + case $deplib in
  46589. + -L*)
  46590. + case " $new_libs " in
  46591. + *" $deplib "*) ;;
  46592. + *) new_libs="$new_libs $deplib" ;;
  46593. + esac
  46594. + ;;
  46595. + *) new_libs="$new_libs $deplib" ;;
  46596. + esac
  46597. + done
  46598. + deplibs="$new_libs"
  46599. +
  46600. +
  46601. # All the library-specific variables (install_libdir is set above).
  46602. library_names=
  46603. old_library=
  46604. dlname=
  46605. -
  46606. +
  46607. # Test again, we may have decided not to build it any more
  46608. if test "$build_libtool_libs" = yes; then
  46609. + if test "$hardcode_into_libs" = yes; then
  46610. + # Hardcode the library paths
  46611. + hardcode_libdirs=
  46612. + dep_rpath=
  46613. + rpath="$finalize_rpath"
  46614. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  46615. + for libdir in $rpath; do
  46616. + if test -n "$hardcode_libdir_flag_spec"; then
  46617. + if test -n "$hardcode_libdir_separator"; then
  46618. + if test -z "$hardcode_libdirs"; then
  46619. + hardcode_libdirs="$libdir"
  46620. + else
  46621. + # Just accumulate the unique libdirs.
  46622. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  46623. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  46624. + ;;
  46625. + *)
  46626. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  46627. + ;;
  46628. + esac
  46629. + fi
  46630. + else
  46631. + eval flag=\"$hardcode_libdir_flag_spec\"
  46632. + dep_rpath="$dep_rpath $flag"
  46633. + fi
  46634. + elif test -n "$runpath_var"; then
  46635. + case "$perm_rpath " in
  46636. + *" $libdir "*) ;;
  46637. + *) perm_rpath="$perm_rpath $libdir" ;;
  46638. + esac
  46639. + fi
  46640. + done
  46641. + # Substitute the hardcoded libdirs into the rpath.
  46642. + if test -n "$hardcode_libdir_separator" &&
  46643. + test -n "$hardcode_libdirs"; then
  46644. + libdir="$hardcode_libdirs"
  46645. + if test -n "$hardcode_libdir_flag_spec_ld"; then
  46646. + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  46647. + else
  46648. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  46649. + fi
  46650. + fi
  46651. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  46652. + # We should set the runpath_var.
  46653. + rpath=
  46654. + for dir in $perm_rpath; do
  46655. + rpath="$rpath$dir:"
  46656. + done
  46657. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  46658. + fi
  46659. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  46660. + fi
  46661. +
  46662. + shlibpath="$finalize_shlibpath"
  46663. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  46664. + if test -n "$shlibpath"; then
  46665. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  46666. + fi
  46667. +
  46668. # Get the real and link names of the library.
  46669. + eval shared_ext=\"$shrext_cmds\"
  46670. eval library_names=\"$library_names_spec\"
  46671. set dummy $library_names
  46672. realname="$2"
  46673. @@ -2045,30 +3922,17 @@
  46674. else
  46675. soname="$realname"
  46676. fi
  46677. + if test -z "$dlname"; then
  46678. + dlname=$soname
  46679. + fi
  46680. lib="$output_objdir/$realname"
  46681. + linknames=
  46682. for link
  46683. do
  46684. linknames="$linknames $link"
  46685. done
  46686. - # Ensure that we have .o objects for linkers which dislike .lo
  46687. - # (e.g. aix) in case we are running --disable-static
  46688. - for obj in $libobjs; do
  46689. - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  46690. - if test "X$xdir" = "X$obj"; then
  46691. - xdir="."
  46692. - else
  46693. - xdir="$xdir"
  46694. - fi
  46695. - baseobj=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  46696. - oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"`
  46697. - if test ! -f $xdir/$oldobj; then
  46698. - $show "(cd $xdir && ${LN_S} $baseobj $oldobj)"
  46699. - $run eval '(cd $xdir && ${LN_S} $baseobj $oldobj)' || exit $?
  46700. - fi
  46701. - done
  46702. -
  46703. # Use standard objects if they are pic
  46704. test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  46705. @@ -2078,17 +3942,29 @@
  46706. $show "generating symbol list for \`$libname.la'"
  46707. export_symbols="$output_objdir/$libname.exp"
  46708. $run $rm $export_symbols
  46709. - eval cmds=\"$export_symbols_cmds\"
  46710. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  46711. + cmds=$export_symbols_cmds
  46712. + save_ifs="$IFS"; IFS='~'
  46713. for cmd in $cmds; do
  46714. IFS="$save_ifs"
  46715. - $show "$cmd"
  46716. - $run eval "$cmd" || exit $?
  46717. + eval cmd=\"$cmd\"
  46718. + if len=`expr "X$cmd" : ".*"` &&
  46719. + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  46720. + $show "$cmd"
  46721. + $run eval "$cmd" || exit $?
  46722. + skipped_export=false
  46723. + else
  46724. + # The command line is too long to execute in one step.
  46725. + $show "using reloadable object file for export list..."
  46726. + skipped_export=:
  46727. + # Break out early, otherwise skipped_export may be
  46728. + # set to false by a later but shorter cmd.
  46729. + break
  46730. + fi
  46731. done
  46732. IFS="$save_ifs"
  46733. if test -n "$export_symbols_regex"; then
  46734. - $show "egrep -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
  46735. - $run eval 'egrep -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  46736. + $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
  46737. + $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  46738. $show "$mv \"${export_symbols}T\" \"$export_symbols\""
  46739. $run eval '$mv "${export_symbols}T" "$export_symbols"'
  46740. fi
  46741. @@ -2099,65 +3975,212 @@
  46742. $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
  46743. fi
  46744. + tmp_deplibs=
  46745. + for test_deplib in $deplibs; do
  46746. + case " $convenience " in
  46747. + *" $test_deplib "*) ;;
  46748. + *)
  46749. + tmp_deplibs="$tmp_deplibs $test_deplib"
  46750. + ;;
  46751. + esac
  46752. + done
  46753. + deplibs="$tmp_deplibs"
  46754. +
  46755. if test -n "$convenience"; then
  46756. if test -n "$whole_archive_flag_spec"; then
  46757. + save_libobjs=$libobjs
  46758. eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  46759. else
  46760. gentop="$output_objdir/${outputname}x"
  46761. - $show "${rm}r $gentop"
  46762. - $run ${rm}r "$gentop"
  46763. - $show "mkdir $gentop"
  46764. - $run mkdir "$gentop"
  46765. - status=$?
  46766. - if test $status -ne 0 && test ! -d "$gentop"; then
  46767. - exit $status
  46768. - fi
  46769. generated="$generated $gentop"
  46770. - for xlib in $convenience; do
  46771. - # Extract the objects.
  46772. - case "$xlib" in
  46773. - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  46774. - *) xabs=`pwd`"/$xlib" ;;
  46775. - esac
  46776. - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  46777. - xdir="$gentop/$xlib"
  46778. -
  46779. - $show "${rm}r $xdir"
  46780. - $run ${rm}r "$xdir"
  46781. - $show "mkdir $xdir"
  46782. - $run mkdir "$xdir"
  46783. - status=$?
  46784. - if test $status -ne 0 && test ! -d "$xdir"; then
  46785. - exit $status
  46786. - fi
  46787. - $show "(cd $xdir && $AR x $xabs)"
  46788. - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  46789. -
  46790. - libobjs="$libobjs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
  46791. - done
  46792. + func_extract_archives $gentop $convenience
  46793. + libobjs="$libobjs $func_extract_archives_result"
  46794. fi
  46795. fi
  46796. -
  46797. +
  46798. if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  46799. eval flag=\"$thread_safe_flag_spec\"
  46800. - linkopts="$linkopts $flag"
  46801. + linker_flags="$linker_flags $flag"
  46802. + fi
  46803. +
  46804. + # Make a backup of the uninstalled library when relinking
  46805. + if test "$mode" = relink; then
  46806. + $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
  46807. fi
  46808. # Do each of the archive commands.
  46809. + if test "$module" = yes && test -n "$module_cmds" ; then
  46810. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  46811. + eval test_cmds=\"$module_expsym_cmds\"
  46812. + cmds=$module_expsym_cmds
  46813. + else
  46814. + eval test_cmds=\"$module_cmds\"
  46815. + cmds=$module_cmds
  46816. + fi
  46817. + else
  46818. if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  46819. - eval cmds=\"$archive_expsym_cmds\"
  46820. + eval test_cmds=\"$archive_expsym_cmds\"
  46821. + cmds=$archive_expsym_cmds
  46822. + else
  46823. + eval test_cmds=\"$archive_cmds\"
  46824. + cmds=$archive_cmds
  46825. + fi
  46826. + fi
  46827. +
  46828. + if test "X$skipped_export" != "X:" &&
  46829. + len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  46830. + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  46831. + :
  46832. else
  46833. - eval cmds=\"$archive_cmds\"
  46834. + # The command line is too long to link in one step, link piecewise.
  46835. + $echo "creating reloadable object files..."
  46836. +
  46837. + # Save the value of $output and $libobjs because we want to
  46838. + # use them later. If we have whole_archive_flag_spec, we
  46839. + # want to use save_libobjs as it was before
  46840. + # whole_archive_flag_spec was expanded, because we can't
  46841. + # assume the linker understands whole_archive_flag_spec.
  46842. + # This may have to be revisited, in case too many
  46843. + # convenience libraries get linked in and end up exceeding
  46844. + # the spec.
  46845. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  46846. + save_libobjs=$libobjs
  46847. + fi
  46848. + save_output=$output
  46849. + output_la=`$echo "X$output" | $Xsed -e "$basename"`
  46850. +
  46851. + # Clear the reloadable object creation command queue and
  46852. + # initialize k to one.
  46853. + test_cmds=
  46854. + concat_cmds=
  46855. + objlist=
  46856. + delfiles=
  46857. + last_robj=
  46858. + k=1
  46859. + output=$output_objdir/$output_la-${k}.$objext
  46860. + # Loop over the list of objects to be linked.
  46861. + for obj in $save_libobjs
  46862. + do
  46863. + eval test_cmds=\"$reload_cmds $objlist $last_robj\"
  46864. + if test "X$objlist" = X ||
  46865. + { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  46866. + test "$len" -le "$max_cmd_len"; }; then
  46867. + objlist="$objlist $obj"
  46868. + else
  46869. + # The command $test_cmds is almost too long, add a
  46870. + # command to the queue.
  46871. + if test "$k" -eq 1 ; then
  46872. + # The first file doesn't have a previous command to add.
  46873. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  46874. + else
  46875. + # All subsequent reloadable object files will link in
  46876. + # the last one created.
  46877. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
  46878. + fi
  46879. + last_robj=$output_objdir/$output_la-${k}.$objext
  46880. + k=`expr $k + 1`
  46881. + output=$output_objdir/$output_la-${k}.$objext
  46882. + objlist=$obj
  46883. + len=1
  46884. + fi
  46885. + done
  46886. + # Handle the remaining objects by creating one last
  46887. + # reloadable object file. All subsequent reloadable object
  46888. + # files will link in the last one created.
  46889. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  46890. + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  46891. +
  46892. + if ${skipped_export-false}; then
  46893. + $show "generating symbol list for \`$libname.la'"
  46894. + export_symbols="$output_objdir/$libname.exp"
  46895. + $run $rm $export_symbols
  46896. + libobjs=$output
  46897. + # Append the command to create the export file.
  46898. + eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
  46899. + fi
  46900. +
  46901. + # Set up a command to remove the reloadable object files
  46902. + # after they are used.
  46903. + i=0
  46904. + while test "$i" -lt "$k"
  46905. + do
  46906. + i=`expr $i + 1`
  46907. + delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
  46908. + done
  46909. +
  46910. + $echo "creating a temporary reloadable object file: $output"
  46911. +
  46912. + # Loop through the commands generated above and execute them.
  46913. + save_ifs="$IFS"; IFS='~'
  46914. + for cmd in $concat_cmds; do
  46915. + IFS="$save_ifs"
  46916. + $show "$cmd"
  46917. + $run eval "$cmd" || exit $?
  46918. + done
  46919. + IFS="$save_ifs"
  46920. +
  46921. + libobjs=$output
  46922. + # Restore the value of output.
  46923. + output=$save_output
  46924. +
  46925. + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  46926. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  46927. + fi
  46928. + # Expand the library linking commands again to reset the
  46929. + # value of $libobjs for piecewise linking.
  46930. +
  46931. + # Do each of the archive commands.
  46932. + if test "$module" = yes && test -n "$module_cmds" ; then
  46933. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  46934. + cmds=$module_expsym_cmds
  46935. + else
  46936. + cmds=$module_cmds
  46937. + fi
  46938. + else
  46939. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  46940. + cmds=$archive_expsym_cmds
  46941. + else
  46942. + cmds=$archive_cmds
  46943. + fi
  46944. + fi
  46945. +
  46946. + # Append the command to remove the reloadable object files
  46947. + # to the just-reset $cmds.
  46948. + eval cmds=\"\$cmds~\$rm $delfiles\"
  46949. fi
  46950. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  46951. + save_ifs="$IFS"; IFS='~'
  46952. for cmd in $cmds; do
  46953. IFS="$save_ifs"
  46954. + eval cmd=\"$cmd\"
  46955. $show "$cmd"
  46956. - $run eval "$cmd" || exit $?
  46957. + $run eval "$cmd" || {
  46958. + lt_exit=$?
  46959. +
  46960. + # Restore the uninstalled library and exit
  46961. + if test "$mode" = relink; then
  46962. + $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  46963. + fi
  46964. +
  46965. + exit $lt_exit
  46966. + }
  46967. done
  46968. IFS="$save_ifs"
  46969. + # Restore the uninstalled library and exit
  46970. + if test "$mode" = relink; then
  46971. + $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
  46972. +
  46973. + if test -n "$convenience"; then
  46974. + if test -z "$whole_archive_flag_spec"; then
  46975. + $show "${rm}r $gentop"
  46976. + $run ${rm}r "$gentop"
  46977. + fi
  46978. + fi
  46979. +
  46980. + exit $EXIT_SUCCESS
  46981. + fi
  46982. +
  46983. # Create links to the real library.
  46984. for linkname in $linknames; do
  46985. if test "$realname" != "$linkname"; then
  46986. @@ -2174,12 +4197,7 @@
  46987. fi
  46988. ;;
  46989. - *.lo | *.o | *.obj)
  46990. - if test -n "$link_against_libtool_libs"; then
  46991. - $echo "$modename: error: cannot link libtool libraries into objects" 1>&2
  46992. - exit 1
  46993. - fi
  46994. -
  46995. + obj)
  46996. if test -n "$deplibs"; then
  46997. $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
  46998. fi
  46999. @@ -2204,11 +4222,11 @@
  47000. $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
  47001. fi
  47002. - case "$output" in
  47003. + case $output in
  47004. *.lo)
  47005. - if test -n "$objs"; then
  47006. + if test -n "$objs$old_deplibs"; then
  47007. $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
  47008. - exit 1
  47009. + exit $EXIT_FAILURE
  47010. fi
  47011. libobj="$output"
  47012. obj=`$echo "X$output" | $Xsed -e "$lo2o"`
  47013. @@ -2230,56 +4248,29 @@
  47014. gentop=
  47015. # reload_cmds runs $LD directly, so let us get rid of
  47016. # -Wl from whole_archive_flag_spec
  47017. - wl=
  47018. + wl=
  47019. if test -n "$convenience"; then
  47020. if test -n "$whole_archive_flag_spec"; then
  47021. eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
  47022. else
  47023. gentop="$output_objdir/${obj}x"
  47024. - $show "${rm}r $gentop"
  47025. - $run ${rm}r "$gentop"
  47026. - $show "mkdir $gentop"
  47027. - $run mkdir "$gentop"
  47028. - status=$?
  47029. - if test $status -ne 0 && test ! -d "$gentop"; then
  47030. - exit $status
  47031. - fi
  47032. generated="$generated $gentop"
  47033. - for xlib in $convenience; do
  47034. - # Extract the objects.
  47035. - case "$xlib" in
  47036. - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  47037. - *) xabs=`pwd`"/$xlib" ;;
  47038. - esac
  47039. - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  47040. - xdir="$gentop/$xlib"
  47041. -
  47042. - $show "${rm}r $xdir"
  47043. - $run ${rm}r "$xdir"
  47044. - $show "mkdir $xdir"
  47045. - $run mkdir "$xdir"
  47046. - status=$?
  47047. - if test $status -ne 0 && test ! -d "$xdir"; then
  47048. - exit $status
  47049. - fi
  47050. - $show "(cd $xdir && $AR x $xabs)"
  47051. - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  47052. -
  47053. - reload_conv_objs="$reload_objs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
  47054. - done
  47055. + func_extract_archives $gentop $convenience
  47056. + reload_conv_objs="$reload_objs $func_extract_archives_result"
  47057. fi
  47058. fi
  47059. # Create the old-style object.
  47060. - reload_objs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs"
  47061. + reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
  47062. output="$obj"
  47063. - eval cmds=\"$reload_cmds\"
  47064. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  47065. + cmds=$reload_cmds
  47066. + save_ifs="$IFS"; IFS='~'
  47067. for cmd in $cmds; do
  47068. IFS="$save_ifs"
  47069. + eval cmd=\"$cmd\"
  47070. $show "$cmd"
  47071. $run eval "$cmd" || exit $?
  47072. done
  47073. @@ -2292,7 +4283,7 @@
  47074. $run ${rm}r $gentop
  47075. fi
  47076. - exit 0
  47077. + exit $EXIT_SUCCESS
  47078. fi
  47079. if test "$build_libtool_libs" != yes; then
  47080. @@ -2303,37 +4294,24 @@
  47081. # Create an invalid libtool object if no PIC, so that we don't
  47082. # accidentally link it into a program.
  47083. - $show "echo timestamp > $libobj"
  47084. - $run eval "echo timestamp > $libobj" || exit $?
  47085. - exit 0
  47086. + # $show "echo timestamp > $libobj"
  47087. + # $run eval "echo timestamp > $libobj" || exit $?
  47088. + exit $EXIT_SUCCESS
  47089. fi
  47090. - if test -n "$pic_flag"; then
  47091. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  47092. # Only do commands if we really have different PIC objects.
  47093. reload_objs="$libobjs $reload_conv_objs"
  47094. output="$libobj"
  47095. - eval cmds=\"$reload_cmds\"
  47096. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  47097. + cmds=$reload_cmds
  47098. + save_ifs="$IFS"; IFS='~'
  47099. for cmd in $cmds; do
  47100. IFS="$save_ifs"
  47101. + eval cmd=\"$cmd\"
  47102. $show "$cmd"
  47103. $run eval "$cmd" || exit $?
  47104. done
  47105. IFS="$save_ifs"
  47106. - else
  47107. - # Just create a symlink.
  47108. - $show $rm $libobj
  47109. - $run $rm $libobj
  47110. - xdir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
  47111. - if test "X$xdir" = "X$libobj"; then
  47112. - xdir="."
  47113. - else
  47114. - xdir="$xdir"
  47115. - fi
  47116. - baseobj=`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
  47117. - oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"`
  47118. - $show "(cd $xdir && $LN_S $oldobj $baseobj)"
  47119. - $run eval '(cd $xdir && $LN_S $oldobj $baseobj)' || exit $?
  47120. fi
  47121. if test -n "$gentop"; then
  47122. @@ -2341,11 +4319,13 @@
  47123. $run ${rm}r $gentop
  47124. fi
  47125. - exit 0
  47126. + exit $EXIT_SUCCESS
  47127. ;;
  47128. - # Anything else should be a program.
  47129. - *)
  47130. + prog)
  47131. + case $host in
  47132. + *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  47133. + esac
  47134. if test -n "$vinfo"; then
  47135. $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  47136. fi
  47137. @@ -2355,20 +4335,66 @@
  47138. fi
  47139. if test "$preload" = yes; then
  47140. - if test "$dlopen" = unknown && test "$dlopen_self" = unknown &&
  47141. + if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
  47142. test "$dlopen_self_static" = unknown; then
  47143. $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
  47144. - fi
  47145. + fi
  47146. fi
  47147. -
  47148. +
  47149. + case $host in
  47150. + *-*-rhapsody* | *-*-darwin1.[012])
  47151. + # On Rhapsody replace the C library is the System framework
  47152. + compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  47153. + finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  47154. + ;;
  47155. + esac
  47156. +
  47157. + case $host in
  47158. + *darwin*)
  47159. + # Don't allow lazy linking, it breaks C++ global constructors
  47160. + if test "$tagname" = CXX ; then
  47161. + compile_command="$compile_command ${wl}-bind_at_load"
  47162. + finalize_command="$finalize_command ${wl}-bind_at_load"
  47163. + fi
  47164. + ;;
  47165. + esac
  47166. +
  47167. +
  47168. + # move library search paths that coincide with paths to not yet
  47169. + # installed libraries to the beginning of the library search list
  47170. + new_libs=
  47171. + for path in $notinst_path; do
  47172. + case " $new_libs " in
  47173. + *" -L$path/$objdir "*) ;;
  47174. + *)
  47175. + case " $compile_deplibs " in
  47176. + *" -L$path/$objdir "*)
  47177. + new_libs="$new_libs -L$path/$objdir" ;;
  47178. + esac
  47179. + ;;
  47180. + esac
  47181. + done
  47182. + for deplib in $compile_deplibs; do
  47183. + case $deplib in
  47184. + -L*)
  47185. + case " $new_libs " in
  47186. + *" $deplib "*) ;;
  47187. + *) new_libs="$new_libs $deplib" ;;
  47188. + esac
  47189. + ;;
  47190. + *) new_libs="$new_libs $deplib" ;;
  47191. + esac
  47192. + done
  47193. + compile_deplibs="$new_libs"
  47194. +
  47195. +
  47196. + compile_command="$compile_command $compile_deplibs"
  47197. + finalize_command="$finalize_command $finalize_deplibs"
  47198. +
  47199. if test -n "$rpath$xrpath"; then
  47200. # If the user specified any rpath flags, then add them.
  47201. for libdir in $rpath $xrpath; do
  47202. # This is the magic to use -rpath.
  47203. - case "$compile_rpath " in
  47204. - *" $libdir "*) ;;
  47205. - *) compile_rpath="$compile_rpath $libdir" ;;
  47206. - esac
  47207. case "$finalize_rpath " in
  47208. *" $libdir "*) ;;
  47209. *) finalize_rpath="$finalize_rpath $libdir" ;;
  47210. @@ -2386,7 +4412,7 @@
  47211. hardcode_libdirs="$libdir"
  47212. else
  47213. # Just accumulate the unique libdirs.
  47214. - case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in
  47215. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  47216. *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  47217. ;;
  47218. *)
  47219. @@ -2404,6 +4430,19 @@
  47220. *) perm_rpath="$perm_rpath $libdir" ;;
  47221. esac
  47222. fi
  47223. + case $host in
  47224. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  47225. + testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
  47226. + case :$dllsearchpath: in
  47227. + *":$libdir:"*) ;;
  47228. + *) dllsearchpath="$dllsearchpath:$libdir";;
  47229. + esac
  47230. + case :$dllsearchpath: in
  47231. + *":$testbindir:"*) ;;
  47232. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  47233. + esac
  47234. + ;;
  47235. + esac
  47236. done
  47237. # Substitute the hardcoded libdirs into the rpath.
  47238. if test -n "$hardcode_libdir_separator" &&
  47239. @@ -2422,7 +4461,7 @@
  47240. hardcode_libdirs="$libdir"
  47241. else
  47242. # Just accumulate the unique libdirs.
  47243. - case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in
  47244. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  47245. *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  47246. ;;
  47247. *)
  47248. @@ -2449,23 +4488,6 @@
  47249. fi
  47250. finalize_rpath="$rpath"
  47251. - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  47252. - if test "X$output_objdir" = "X$output"; then
  47253. - output_objdir="$objdir"
  47254. - else
  47255. - output_objdir="$output_objdir/$objdir"
  47256. - fi
  47257. -
  47258. - # Create the binary in the object directory, then wrap it.
  47259. - if test ! -d $output_objdir; then
  47260. - $show "$mkdir $output_objdir"
  47261. - $run $mkdir $output_objdir
  47262. - status=$?
  47263. - if test $status -ne 0 && test ! -d $output_objdir; then
  47264. - exit $status
  47265. - fi
  47266. - fi
  47267. -
  47268. if test -n "$libobjs" && test "$build_old_libs" = yes; then
  47269. # Transform all the library objects into standard objects.
  47270. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  47271. @@ -2482,7 +4504,7 @@
  47272. fi
  47273. if test -n "$dlsyms"; then
  47274. - case "$dlsyms" in
  47275. + case $dlsyms in
  47276. "") ;;
  47277. *.c)
  47278. # Discover the nlist of each of the dlfiles.
  47279. @@ -2514,38 +4536,50 @@
  47280. test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  47281. # Add our own program objects to the symbol list.
  47282. - progfiles=`$echo "X$objs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  47283. + progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  47284. for arg in $progfiles; do
  47285. $show "extracting global C symbols from \`$arg'"
  47286. $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  47287. done
  47288. if test -n "$exclude_expsyms"; then
  47289. - $run eval 'egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  47290. + $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  47291. $run eval '$mv "$nlist"T "$nlist"'
  47292. fi
  47293. -
  47294. +
  47295. if test -n "$export_symbols_regex"; then
  47296. - $run eval 'egrep -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  47297. + $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  47298. $run eval '$mv "$nlist"T "$nlist"'
  47299. fi
  47300. # Prepare the list of exported symbols
  47301. if test -z "$export_symbols"; then
  47302. - export_symbols="$output_objdir/$output.exp"
  47303. + export_symbols="$output_objdir/$outputname.exp"
  47304. $run $rm $export_symbols
  47305. - $run eval "sed -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  47306. + $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  47307. + case $host in
  47308. + *cygwin* | *mingw* )
  47309. + $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  47310. + $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  47311. + ;;
  47312. + esac
  47313. else
  47314. - $run eval "sed -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
  47315. - $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
  47316. + $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  47317. + $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  47318. $run eval 'mv "$nlist"T "$nlist"'
  47319. + case $host in
  47320. + *cygwin* | *mingw* )
  47321. + $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  47322. + $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  47323. + ;;
  47324. + esac
  47325. fi
  47326. fi
  47327. for arg in $dlprefiles; do
  47328. $show "extracting global C symbols from \`$arg'"
  47329. - name=`echo "$arg" | sed -e 's%^.*/%%'`
  47330. - $run eval 'echo ": $name " >> "$nlist"'
  47331. + name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
  47332. + $run eval '$echo ": $name " >> "$nlist"'
  47333. $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  47334. done
  47335. @@ -2554,12 +4588,18 @@
  47336. test -f "$nlist" || : > "$nlist"
  47337. if test -n "$exclude_expsyms"; then
  47338. - egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  47339. + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  47340. $mv "$nlist"T "$nlist"
  47341. fi
  47342. # Try sorting and uniquifying the output.
  47343. - if grep -v "^: " < "$nlist" | sort +2 | uniq > "$nlist"S; then
  47344. + if grep -v "^: " < "$nlist" |
  47345. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  47346. + sort -k 3
  47347. + else
  47348. + sort +2
  47349. + fi |
  47350. + uniq > "$nlist"S; then
  47351. :
  47352. else
  47353. grep -v "^: " < "$nlist" > "$nlist"S
  47354. @@ -2568,7 +4608,7 @@
  47355. if test -f "$nlist"S; then
  47356. eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
  47357. else
  47358. - echo '/* NONE */' >> "$output_objdir/$dlsyms"
  47359. + $echo '/* NONE */' >> "$output_objdir/$dlsyms"
  47360. fi
  47361. $echo >> "$output_objdir/$dlsyms" "\
  47362. @@ -2576,27 +4616,44 @@
  47363. #undef lt_preloaded_symbols
  47364. #if defined (__STDC__) && __STDC__
  47365. -# define lt_ptr_t void *
  47366. +# define lt_ptr void *
  47367. #else
  47368. -# define lt_ptr_t char *
  47369. +# define lt_ptr char *
  47370. # define const
  47371. #endif
  47372. /* The mapping between symbol names and symbols. */
  47373. +"
  47374. +
  47375. + case $host in
  47376. + *cygwin* | *mingw* )
  47377. + $echo >> "$output_objdir/$dlsyms" "\
  47378. +/* DATA imports from DLLs on WIN32 can't be const, because
  47379. + runtime relocations are performed -- see ld's documentation
  47380. + on pseudo-relocs */
  47381. +struct {
  47382. +"
  47383. + ;;
  47384. + * )
  47385. + $echo >> "$output_objdir/$dlsyms" "\
  47386. const struct {
  47387. +"
  47388. + ;;
  47389. + esac
  47390. +
  47391. +
  47392. + $echo >> "$output_objdir/$dlsyms" "\
  47393. const char *name;
  47394. - lt_ptr_t address;
  47395. + lt_ptr address;
  47396. }
  47397. lt_preloaded_symbols[] =
  47398. {\
  47399. "
  47400. - sed -n -e 's/^: \([^ ]*\) $/ {\"\1\", (lt_ptr_t) 0},/p' \
  47401. - -e 's/^. \([^ ]*\) \([^ ]*\)$/ {"\2", (lt_ptr_t) \&\2},/p' \
  47402. - < "$nlist" >> "$output_objdir/$dlsyms"
  47403. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
  47404. $echo >> "$output_objdir/$dlsyms" "\
  47405. - {0, (lt_ptr_t) 0}
  47406. + {0, (lt_ptr) 0}
  47407. };
  47408. /* This works around a problem in FreeBSD linker */
  47409. @@ -2613,39 +4670,52 @@
  47410. fi
  47411. pic_flag_for_symtable=
  47412. - case "$host" in
  47413. + case $host in
  47414. # compiling the symbol table file with pic_flag works around
  47415. # a FreeBSD bug that causes programs to crash when -lm is
  47416. # linked before any other PIC object. But we must not use
  47417. # pic_flag when linking with -static. The problem exists in
  47418. # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  47419. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  47420. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  47421. case "$compile_command " in
  47422. *" -static "*) ;;
  47423. - *) pic_flag_for_symtable=" $pic_flag -DPIC -DFREEBSD_WORKAROUND";;
  47424. + *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
  47425. esac;;
  47426. *-*-hpux*)
  47427. case "$compile_command " in
  47428. *" -static "*) ;;
  47429. - *) pic_flag_for_symtable=" $pic_flag -DPIC";;
  47430. + *) pic_flag_for_symtable=" $pic_flag";;
  47431. esac
  47432. esac
  47433. # Now compile the dynamic symbol file.
  47434. - $show "(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  47435. - $run eval '(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  47436. + $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  47437. + $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  47438. # Clean up the generated files.
  47439. $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  47440. $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
  47441. # Transform the symbol file into the correct name.
  47442. - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  47443. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  47444. + case $host in
  47445. + *cygwin* | *mingw* )
  47446. + if test -f "$output_objdir/${outputname}.def" ; then
  47447. + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
  47448. + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
  47449. + else
  47450. + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  47451. + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  47452. + fi
  47453. + ;;
  47454. + * )
  47455. + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  47456. + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  47457. + ;;
  47458. + esac
  47459. ;;
  47460. *)
  47461. $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  47462. - exit 1
  47463. + exit $EXIT_FAILURE
  47464. ;;
  47465. esac
  47466. else
  47467. @@ -2658,7 +4728,7 @@
  47468. finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  47469. fi
  47470. - if test -z "$link_against_libtool_libs" || test "$build_libtool_libs" != yes; then
  47471. + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  47472. # Replace the output file specification.
  47473. compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  47474. link_command="$compile_command$compile_rpath"
  47475. @@ -2666,22 +4736,22 @@
  47476. # We have no uninstalled library dependencies, so finalize right now.
  47477. $show "$link_command"
  47478. $run eval "$link_command"
  47479. - status=$?
  47480. -
  47481. + exit_status=$?
  47482. +
  47483. # Delete the generated files.
  47484. if test -n "$dlsyms"; then
  47485. $show "$rm $output_objdir/${outputname}S.${objext}"
  47486. $run $rm "$output_objdir/${outputname}S.${objext}"
  47487. fi
  47488. - exit $status
  47489. + exit $exit_status
  47490. fi
  47491. if test -n "$shlibpath_var"; then
  47492. # We should set the shlibpath_var
  47493. rpath=
  47494. for dir in $temp_rpath; do
  47495. - case "$dir" in
  47496. + case $dir in
  47497. [\\/]* | [A-Za-z]:[\\/]*)
  47498. # Absolute path.
  47499. rpath="$rpath$dir:"
  47500. @@ -2723,11 +4793,24 @@
  47501. fi
  47502. fi
  47503. + if test "$no_install" = yes; then
  47504. + # We don't need to create a wrapper script.
  47505. + link_command="$compile_var$compile_command$compile_rpath"
  47506. + # Replace the output file specification.
  47507. + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  47508. + # Delete the old output file.
  47509. + $run $rm $output
  47510. + # Link the executable and exit
  47511. + $show "$link_command"
  47512. + $run eval "$link_command" || exit $?
  47513. + exit $EXIT_SUCCESS
  47514. + fi
  47515. +
  47516. if test "$hardcode_action" = relink; then
  47517. # Fast installation is not supported
  47518. link_command="$compile_var$compile_command$compile_rpath"
  47519. relink_command="$finalize_var$finalize_command$finalize_rpath"
  47520. -
  47521. +
  47522. $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  47523. $echo "$modename: \`$output' will be relinked during installation" 1>&2
  47524. else
  47525. @@ -2747,7 +4830,7 @@
  47526. # Replace the output file specification.
  47527. link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  47528. -
  47529. +
  47530. # Delete the old output files.
  47531. $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
  47532. @@ -2759,14 +4842,26 @@
  47533. # Quote the relink command for shipping.
  47534. if test -n "$relink_command"; then
  47535. + # Preserve any variables that may affect compiler behavior
  47536. + for var in $variables_saved_for_relink; do
  47537. + if eval test -z \"\${$var+set}\"; then
  47538. + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  47539. + elif eval var_value=\$$var; test -z "$var_value"; then
  47540. + relink_command="$var=; export $var; $relink_command"
  47541. + else
  47542. + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  47543. + relink_command="$var=\"$var_value\"; export $var; $relink_command"
  47544. + fi
  47545. + done
  47546. + relink_command="(cd `pwd`; $relink_command)"
  47547. relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  47548. fi
  47549. # Quote $echo for shipping.
  47550. - if test "X$echo" = "X$SHELL $0 --fallback-echo"; then
  47551. - case "$0" in
  47552. - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";;
  47553. - *) qecho="$SHELL `pwd`/$0 --fallback-echo";;
  47554. + if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
  47555. + case $progpath in
  47556. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  47557. + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  47558. esac
  47559. qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  47560. else
  47561. @@ -2778,10 +4873,376 @@
  47562. # win32 will think the script is a binary if it has
  47563. # a .exe suffix, so we strip it off here.
  47564. case $output in
  47565. - *.exe) output=`echo $output|sed 's,.exe$,,'` ;;
  47566. + *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
  47567. + esac
  47568. + # test for cygwin because mv fails w/o .exe extensions
  47569. + case $host in
  47570. + *cygwin*)
  47571. + exeext=.exe
  47572. + outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
  47573. + *) exeext= ;;
  47574. esac
  47575. - $rm $output
  47576. - trap "$rm $output; exit 1" 1 2 15
  47577. + case $host in
  47578. + *cygwin* | *mingw* )
  47579. + output_name=`basename $output`
  47580. + output_path=`dirname $output`
  47581. + cwrappersource="$output_path/$objdir/lt-$output_name.c"
  47582. + cwrapper="$output_path/$output_name.exe"
  47583. + $rm $cwrappersource $cwrapper
  47584. + trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  47585. +
  47586. + cat > $cwrappersource <<EOF
  47587. +
  47588. +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  47589. + Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  47590. +
  47591. + The $output program cannot be directly executed until all the libtool
  47592. + libraries that it depends on are installed.
  47593. +
  47594. + This wrapper executable should never be moved out of the build directory.
  47595. + If it is, it will not operate correctly.
  47596. +
  47597. + Currently, it simply execs the wrapper *script* "/bin/sh $output",
  47598. + but could eventually absorb all of the scripts functionality and
  47599. + exec $objdir/$outputname directly.
  47600. +*/
  47601. +EOF
  47602. + cat >> $cwrappersource<<"EOF"
  47603. +#include <stdio.h>
  47604. +#include <stdlib.h>
  47605. +#include <unistd.h>
  47606. +#include <malloc.h>
  47607. +#include <stdarg.h>
  47608. +#include <assert.h>
  47609. +#include <string.h>
  47610. +#include <ctype.h>
  47611. +#include <sys/stat.h>
  47612. +
  47613. +#if defined(PATH_MAX)
  47614. +# define LT_PATHMAX PATH_MAX
  47615. +#elif defined(MAXPATHLEN)
  47616. +# define LT_PATHMAX MAXPATHLEN
  47617. +#else
  47618. +# define LT_PATHMAX 1024
  47619. +#endif
  47620. +
  47621. +#ifndef DIR_SEPARATOR
  47622. +# define DIR_SEPARATOR '/'
  47623. +# define PATH_SEPARATOR ':'
  47624. +#endif
  47625. +
  47626. +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  47627. + defined (__OS2__)
  47628. +# define HAVE_DOS_BASED_FILE_SYSTEM
  47629. +# ifndef DIR_SEPARATOR_2
  47630. +# define DIR_SEPARATOR_2 '\\'
  47631. +# endif
  47632. +# ifndef PATH_SEPARATOR_2
  47633. +# define PATH_SEPARATOR_2 ';'
  47634. +# endif
  47635. +#endif
  47636. +
  47637. +#ifndef DIR_SEPARATOR_2
  47638. +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  47639. +#else /* DIR_SEPARATOR_2 */
  47640. +# define IS_DIR_SEPARATOR(ch) \
  47641. + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  47642. +#endif /* DIR_SEPARATOR_2 */
  47643. +
  47644. +#ifndef PATH_SEPARATOR_2
  47645. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  47646. +#else /* PATH_SEPARATOR_2 */
  47647. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  47648. +#endif /* PATH_SEPARATOR_2 */
  47649. +
  47650. +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  47651. +#define XFREE(stale) do { \
  47652. + if (stale) { free ((void *) stale); stale = 0; } \
  47653. +} while (0)
  47654. +
  47655. +/* -DDEBUG is fairly common in CFLAGS. */
  47656. +#undef DEBUG
  47657. +#if defined DEBUGWRAPPER
  47658. +# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
  47659. +#else
  47660. +# define DEBUG(format, ...)
  47661. +#endif
  47662. +
  47663. +const char *program_name = NULL;
  47664. +
  47665. +void * xmalloc (size_t num);
  47666. +char * xstrdup (const char *string);
  47667. +const char * base_name (const char *name);
  47668. +char * find_executable(const char *wrapper);
  47669. +int check_executable(const char *path);
  47670. +char * strendzap(char *str, const char *pat);
  47671. +void lt_fatal (const char *message, ...);
  47672. +
  47673. +int
  47674. +main (int argc, char *argv[])
  47675. +{
  47676. + char **newargz;
  47677. + int i;
  47678. +
  47679. + program_name = (char *) xstrdup (base_name (argv[0]));
  47680. + DEBUG("(main) argv[0] : %s\n",argv[0]);
  47681. + DEBUG("(main) program_name : %s\n",program_name);
  47682. + newargz = XMALLOC(char *, argc+2);
  47683. +EOF
  47684. +
  47685. + cat >> $cwrappersource <<EOF
  47686. + newargz[0] = (char *) xstrdup("$SHELL");
  47687. +EOF
  47688. +
  47689. + cat >> $cwrappersource <<"EOF"
  47690. + newargz[1] = find_executable(argv[0]);
  47691. + if (newargz[1] == NULL)
  47692. + lt_fatal("Couldn't find %s", argv[0]);
  47693. + DEBUG("(main) found exe at : %s\n",newargz[1]);
  47694. + /* we know the script has the same name, without the .exe */
  47695. + /* so make sure newargz[1] doesn't end in .exe */
  47696. + strendzap(newargz[1],".exe");
  47697. + for (i = 1; i < argc; i++)
  47698. + newargz[i+1] = xstrdup(argv[i]);
  47699. + newargz[argc+1] = NULL;
  47700. +
  47701. + for (i=0; i<argc+1; i++)
  47702. + {
  47703. + DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
  47704. + ;
  47705. + }
  47706. +
  47707. +EOF
  47708. +
  47709. + case $host_os in
  47710. + mingw*)
  47711. + cat >> $cwrappersource <<EOF
  47712. + execv("$SHELL",(char const **)newargz);
  47713. +EOF
  47714. + ;;
  47715. + *)
  47716. + cat >> $cwrappersource <<EOF
  47717. + execv("$SHELL",newargz);
  47718. +EOF
  47719. + ;;
  47720. + esac
  47721. +
  47722. + cat >> $cwrappersource <<"EOF"
  47723. + return 127;
  47724. +}
  47725. +
  47726. +void *
  47727. +xmalloc (size_t num)
  47728. +{
  47729. + void * p = (void *) malloc (num);
  47730. + if (!p)
  47731. + lt_fatal ("Memory exhausted");
  47732. +
  47733. + return p;
  47734. +}
  47735. +
  47736. +char *
  47737. +xstrdup (const char *string)
  47738. +{
  47739. + return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
  47740. +;
  47741. +}
  47742. +
  47743. +const char *
  47744. +base_name (const char *name)
  47745. +{
  47746. + const char *base;
  47747. +
  47748. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  47749. + /* Skip over the disk name in MSDOS pathnames. */
  47750. + if (isalpha ((unsigned char)name[0]) && name[1] == ':')
  47751. + name += 2;
  47752. +#endif
  47753. +
  47754. + for (base = name; *name; name++)
  47755. + if (IS_DIR_SEPARATOR (*name))
  47756. + base = name + 1;
  47757. + return base;
  47758. +}
  47759. +
  47760. +int
  47761. +check_executable(const char * path)
  47762. +{
  47763. + struct stat st;
  47764. +
  47765. + DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
  47766. + if ((!path) || (!*path))
  47767. + return 0;
  47768. +
  47769. + if ((stat (path, &st) >= 0) &&
  47770. + (
  47771. + /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
  47772. +#if defined (S_IXOTH)
  47773. + ((st.st_mode & S_IXOTH) == S_IXOTH) ||
  47774. +#endif
  47775. +#if defined (S_IXGRP)
  47776. + ((st.st_mode & S_IXGRP) == S_IXGRP) ||
  47777. +#endif
  47778. + ((st.st_mode & S_IXUSR) == S_IXUSR))
  47779. + )
  47780. + return 1;
  47781. + else
  47782. + return 0;
  47783. +}
  47784. +
  47785. +/* Searches for the full path of the wrapper. Returns
  47786. + newly allocated full path name if found, NULL otherwise */
  47787. +char *
  47788. +find_executable (const char* wrapper)
  47789. +{
  47790. + int has_slash = 0;
  47791. + const char* p;
  47792. + const char* p_next;
  47793. + /* static buffer for getcwd */
  47794. + char tmp[LT_PATHMAX + 1];
  47795. + int tmp_len;
  47796. + char* concat_name;
  47797. +
  47798. + DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
  47799. +
  47800. + if ((wrapper == NULL) || (*wrapper == '\0'))
  47801. + return NULL;
  47802. +
  47803. + /* Absolute path? */
  47804. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  47805. + if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
  47806. + {
  47807. + concat_name = xstrdup (wrapper);
  47808. + if (check_executable(concat_name))
  47809. + return concat_name;
  47810. + XFREE(concat_name);
  47811. + }
  47812. + else
  47813. + {
  47814. +#endif
  47815. + if (IS_DIR_SEPARATOR (wrapper[0]))
  47816. + {
  47817. + concat_name = xstrdup (wrapper);
  47818. + if (check_executable(concat_name))
  47819. + return concat_name;
  47820. + XFREE(concat_name);
  47821. + }
  47822. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  47823. + }
  47824. +#endif
  47825. +
  47826. + for (p = wrapper; *p; p++)
  47827. + if (*p == '/')
  47828. + {
  47829. + has_slash = 1;
  47830. + break;
  47831. + }
  47832. + if (!has_slash)
  47833. + {
  47834. + /* no slashes; search PATH */
  47835. + const char* path = getenv ("PATH");
  47836. + if (path != NULL)
  47837. + {
  47838. + for (p = path; *p; p = p_next)
  47839. + {
  47840. + const char* q;
  47841. + size_t p_len;
  47842. + for (q = p; *q; q++)
  47843. + if (IS_PATH_SEPARATOR(*q))
  47844. + break;
  47845. + p_len = q - p;
  47846. + p_next = (*q == '\0' ? q : q + 1);
  47847. + if (p_len == 0)
  47848. + {
  47849. + /* empty path: current directory */
  47850. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  47851. + lt_fatal ("getcwd failed");
  47852. + tmp_len = strlen(tmp);
  47853. + concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  47854. + memcpy (concat_name, tmp, tmp_len);
  47855. + concat_name[tmp_len] = '/';
  47856. + strcpy (concat_name + tmp_len + 1, wrapper);
  47857. + }
  47858. + else
  47859. + {
  47860. + concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
  47861. + memcpy (concat_name, p, p_len);
  47862. + concat_name[p_len] = '/';
  47863. + strcpy (concat_name + p_len + 1, wrapper);
  47864. + }
  47865. + if (check_executable(concat_name))
  47866. + return concat_name;
  47867. + XFREE(concat_name);
  47868. + }
  47869. + }
  47870. + /* not found in PATH; assume curdir */
  47871. + }
  47872. + /* Relative path | not found in path: prepend cwd */
  47873. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  47874. + lt_fatal ("getcwd failed");
  47875. + tmp_len = strlen(tmp);
  47876. + concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  47877. + memcpy (concat_name, tmp, tmp_len);
  47878. + concat_name[tmp_len] = '/';
  47879. + strcpy (concat_name + tmp_len + 1, wrapper);
  47880. +
  47881. + if (check_executable(concat_name))
  47882. + return concat_name;
  47883. + XFREE(concat_name);
  47884. + return NULL;
  47885. +}
  47886. +
  47887. +char *
  47888. +strendzap(char *str, const char *pat)
  47889. +{
  47890. + size_t len, patlen;
  47891. +
  47892. + assert(str != NULL);
  47893. + assert(pat != NULL);
  47894. +
  47895. + len = strlen(str);
  47896. + patlen = strlen(pat);
  47897. +
  47898. + if (patlen <= len)
  47899. + {
  47900. + str += len - patlen;
  47901. + if (strcmp(str, pat) == 0)
  47902. + *str = '\0';
  47903. + }
  47904. + return str;
  47905. +}
  47906. +
  47907. +static void
  47908. +lt_error_core (int exit_status, const char * mode,
  47909. + const char * message, va_list ap)
  47910. +{
  47911. + fprintf (stderr, "%s: %s: ", program_name, mode);
  47912. + vfprintf (stderr, message, ap);
  47913. + fprintf (stderr, ".\n");
  47914. +
  47915. + if (exit_status >= 0)
  47916. + exit (exit_status);
  47917. +}
  47918. +
  47919. +void
  47920. +lt_fatal (const char *message, ...)
  47921. +{
  47922. + va_list ap;
  47923. + va_start (ap, message);
  47924. + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  47925. + va_end (ap);
  47926. +}
  47927. +EOF
  47928. + # we should really use a build-platform specific compiler
  47929. + # here, but OTOH, the wrappers (shell script and this C one)
  47930. + # are only useful if you want to execute the "real" binary.
  47931. + # Since the "real" binary is built for $host, then this
  47932. + # wrapper might as well be built for $host, too.
  47933. + $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
  47934. + ;;
  47935. + esac
  47936. + $rm $output
  47937. + trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
  47938. $echo > $output "\
  47939. #! $SHELL
  47940. @@ -2797,19 +5258,19 @@
  47941. # Sed substitution that helps us do robust quoting. It backslashifies
  47942. # metacharacters that are still active within double-quoted strings.
  47943. -Xsed='sed -e 1s/^X//'
  47944. +Xsed='${SED} -e 1s/^X//'
  47945. sed_quote_subst='$sed_quote_subst'
  47946. # The HP-UX ksh and POSIX shell print the target directory to stdout
  47947. # if CDPATH is set.
  47948. -if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
  47949. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  47950. relink_command=\"$relink_command\"
  47951. # This environment variable determines our operation mode.
  47952. if test \"\$libtool_install_magic\" = \"$magic\"; then
  47953. # install mode needs the following variable:
  47954. - link_against_libtool_libs='$link_against_libtool_libs'
  47955. + notinst_deplibs='$notinst_deplibs'
  47956. else
  47957. # When we are sourced in execute mode, \$file and \$echo are already set.
  47958. if test \"\$libtool_execute_magic\" != \"$magic\"; then
  47959. @@ -2835,20 +5296,20 @@
  47960. test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  47961. # Follow symbolic links until we get to the real thisdir.
  47962. - file=\`ls -ld \"\$file\" | sed -n 's/.*-> //p'\`
  47963. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  47964. while test -n \"\$file\"; do
  47965. destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  47966. # If there was a directory component, then change thisdir.
  47967. if test \"x\$destdir\" != \"x\$file\"; then
  47968. case \"\$destdir\" in
  47969. - [\\/]* | [A-Za-z]:[\\/]*) thisdir=\"\$destdir\" ;;
  47970. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  47971. *) thisdir=\"\$thisdir/\$destdir\" ;;
  47972. esac
  47973. fi
  47974. file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  47975. - file=\`ls -ld \"\$thisdir/\$file\" | sed -n 's/.*-> //p'\`
  47976. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  47977. done
  47978. # Try to get the absolute directory name.
  47979. @@ -2857,12 +5318,12 @@
  47980. "
  47981. if test "$fast_install" = yes; then
  47982. - echo >> $output "\
  47983. - program=lt-'$outputname'
  47984. + $echo >> $output "\
  47985. + program=lt-'$outputname'$exeext
  47986. progdir=\"\$thisdir/$objdir\"
  47987. -
  47988. +
  47989. if test ! -f \"\$progdir/\$program\" || \\
  47990. - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | sed 1q\`; \\
  47991. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  47992. test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  47993. file=\"\$\$-\$program\"
  47994. @@ -2873,14 +5334,15 @@
  47995. $rm \"\$progdir/\$file\"
  47996. fi"
  47997. - echo >> $output "\
  47998. + $echo >> $output "\
  47999. # relink executable if necessary
  48000. if test -n \"\$relink_command\"; then
  48001. - if (cd \"\$thisdir\" && eval \$relink_command); then :
  48002. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  48003. else
  48004. + $echo \"\$relink_command_output\" >&2
  48005. $rm \"\$progdir/\$file\"
  48006. - exit 1
  48007. + exit $EXIT_FAILURE
  48008. fi
  48009. fi
  48010. @@ -2890,13 +5352,13 @@
  48011. $rm \"\$progdir/\$file\"
  48012. fi"
  48013. else
  48014. - echo >> $output "\
  48015. + $echo >> $output "\
  48016. program='$outputname'
  48017. progdir=\"\$thisdir/$objdir\"
  48018. "
  48019. fi
  48020. - echo >> $output "\
  48021. + $echo >> $output "\
  48022. if test -f \"\$progdir/\$program\"; then"
  48023. @@ -2927,39 +5389,35 @@
  48024. # Run the actual program with our arguments.
  48025. "
  48026. case $host in
  48027. - *-*-cygwin* | *-*-mingw | *-*-os2*)
  48028. - # win32 systems need to use the prog path for dll
  48029. - # lookup to work
  48030. + # Backslashes separate directories on plain windows
  48031. + *-*-mingw | *-*-os2*)
  48032. $echo >> $output "\
  48033. - exec \$progdir\\\\\$program \${1+\"\$@\"}
  48034. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  48035. "
  48036. ;;
  48037. +
  48038. *)
  48039. $echo >> $output "\
  48040. - # Export the path to the program.
  48041. - PATH=\"\$progdir:\$PATH\"
  48042. - export PATH
  48043. -
  48044. - exec \$program \${1+\"\$@\"}
  48045. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  48046. "
  48047. ;;
  48048. esac
  48049. $echo >> $output "\
  48050. \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
  48051. - exit 1
  48052. + exit $EXIT_FAILURE
  48053. fi
  48054. else
  48055. # The program doesn't exist.
  48056. - \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
  48057. + \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  48058. \$echo \"This script is just a wrapper for \$program.\" 1>&2
  48059. - echo \"See the $PACKAGE documentation for more information.\" 1>&2
  48060. - exit 1
  48061. + $echo \"See the $PACKAGE documentation for more information.\" 1>&2
  48062. + exit $EXIT_FAILURE
  48063. fi
  48064. fi\
  48065. "
  48066. chmod +x $output
  48067. fi
  48068. - exit 0
  48069. + exit $EXIT_SUCCESS
  48070. ;;
  48071. esac
  48072. @@ -2975,74 +5433,130 @@
  48073. oldobjs="$libobjs_save"
  48074. build_libtool_libs=no
  48075. else
  48076. - oldobjs="$objs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`
  48077. + oldobjs="$old_deplibs $non_pic_objects"
  48078. fi
  48079. addlibs="$old_convenience"
  48080. fi
  48081. if test -n "$addlibs"; then
  48082. gentop="$output_objdir/${outputname}x"
  48083. - $show "${rm}r $gentop"
  48084. - $run ${rm}r "$gentop"
  48085. - $show "mkdir $gentop"
  48086. - $run mkdir "$gentop"
  48087. - status=$?
  48088. - if test $status -ne 0 && test ! -d "$gentop"; then
  48089. - exit $status
  48090. - fi
  48091. generated="$generated $gentop"
  48092. -
  48093. - # Add in members from convenience archives.
  48094. - for xlib in $addlibs; do
  48095. - # Extract the objects.
  48096. - case "$xlib" in
  48097. - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  48098. - *) xabs=`pwd`"/$xlib" ;;
  48099. - esac
  48100. - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  48101. - xdir="$gentop/$xlib"
  48102. -
  48103. - $show "${rm}r $xdir"
  48104. - $run ${rm}r "$xdir"
  48105. - $show "mkdir $xdir"
  48106. - $run mkdir "$xdir"
  48107. - status=$?
  48108. - if test $status -ne 0 && test ! -d "$xdir"; then
  48109. - exit $status
  48110. - fi
  48111. - $show "(cd $xdir && $AR x $xabs)"
  48112. - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  48113. - oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
  48114. - done
  48115. + func_extract_archives $gentop $addlibs
  48116. + oldobjs="$oldobjs $func_extract_archives_result"
  48117. fi
  48118. # Do each command in the archive commands.
  48119. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  48120. - eval cmds=\"$old_archive_from_new_cmds\"
  48121. + cmds=$old_archive_from_new_cmds
  48122. else
  48123. - # Ensure that we have .o objects in place in case we decided
  48124. - # not to build a shared library, and have fallen back to building
  48125. - # static libs even though --disable-static was passed!
  48126. - for oldobj in $oldobjs; do
  48127. - if test ! -f $oldobj; then
  48128. - xdir=`$echo "X$oldobj" | $Xsed -e 's%/[^/]*$%%'`
  48129. - if test "X$xdir" = "X$oldobj"; then
  48130. - xdir="."
  48131. - else
  48132. - xdir="$xdir"
  48133. - fi
  48134. - baseobj=`$echo "X$oldobj" | $Xsed -e 's%^.*/%%'`
  48135. - obj=`$echo "X$baseobj" | $Xsed -e "$o2lo"`
  48136. - $show "(cd $xdir && ${LN_S} $obj $baseobj)"
  48137. - $run eval '(cd $xdir && ${LN_S} $obj $baseobj)' || exit $?
  48138. + # POSIX demands no paths to be encoded in archives. We have
  48139. + # to avoid creating archives with duplicate basenames if we
  48140. + # might have to extract them afterwards, e.g., when creating a
  48141. + # static archive out of a convenience library, or when linking
  48142. + # the entirety of a libtool archive into another (currently
  48143. + # not supported by libtool).
  48144. + if (for obj in $oldobjs
  48145. + do
  48146. + $echo "X$obj" | $Xsed -e 's%^.*/%%'
  48147. + done | sort | sort -uc >/dev/null 2>&1); then
  48148. + :
  48149. + else
  48150. + $echo "copying selected object files to avoid basename conflicts..."
  48151. +
  48152. + if test -z "$gentop"; then
  48153. + gentop="$output_objdir/${outputname}x"
  48154. + generated="$generated $gentop"
  48155. +
  48156. + $show "${rm}r $gentop"
  48157. + $run ${rm}r "$gentop"
  48158. + $show "$mkdir $gentop"
  48159. + $run $mkdir "$gentop"
  48160. + exit_status=$?
  48161. + if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
  48162. + exit $exit_status
  48163. + fi
  48164. fi
  48165. - done
  48166. +
  48167. + save_oldobjs=$oldobjs
  48168. + oldobjs=
  48169. + counter=1
  48170. + for obj in $save_oldobjs
  48171. + do
  48172. + objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  48173. + case " $oldobjs " in
  48174. + " ") oldobjs=$obj ;;
  48175. + *[\ /]"$objbase "*)
  48176. + while :; do
  48177. + # Make sure we don't pick an alternate name that also
  48178. + # overlaps.
  48179. + newobj=lt$counter-$objbase
  48180. + counter=`expr $counter + 1`
  48181. + case " $oldobjs " in
  48182. + *[\ /]"$newobj "*) ;;
  48183. + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  48184. + esac
  48185. + done
  48186. + $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  48187. + $run ln "$obj" "$gentop/$newobj" ||
  48188. + $run cp "$obj" "$gentop/$newobj"
  48189. + oldobjs="$oldobjs $gentop/$newobj"
  48190. + ;;
  48191. + *) oldobjs="$oldobjs $obj" ;;
  48192. + esac
  48193. + done
  48194. + fi
  48195. eval cmds=\"$old_archive_cmds\"
  48196. +
  48197. + if len=`expr "X$cmds" : ".*"` &&
  48198. + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  48199. + cmds=$old_archive_cmds
  48200. + else
  48201. + # the command line is too long to link in one step, link in parts
  48202. + $echo "using piecewise archive linking..."
  48203. + save_RANLIB=$RANLIB
  48204. + RANLIB=:
  48205. + objlist=
  48206. + concat_cmds=
  48207. + save_oldobjs=$oldobjs
  48208. +
  48209. + # Is there a better way of finding the last object in the list?
  48210. + for obj in $save_oldobjs
  48211. + do
  48212. + last_oldobj=$obj
  48213. + done
  48214. + for obj in $save_oldobjs
  48215. + do
  48216. + oldobjs="$objlist $obj"
  48217. + objlist="$objlist $obj"
  48218. + eval test_cmds=\"$old_archive_cmds\"
  48219. + if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  48220. + test "$len" -le "$max_cmd_len"; then
  48221. + :
  48222. + else
  48223. + # the above command should be used before it gets too long
  48224. + oldobjs=$objlist
  48225. + if test "$obj" = "$last_oldobj" ; then
  48226. + RANLIB=$save_RANLIB
  48227. + fi
  48228. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  48229. + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  48230. + objlist=
  48231. + fi
  48232. + done
  48233. + RANLIB=$save_RANLIB
  48234. + oldobjs=$objlist
  48235. + if test "X$oldobjs" = "X" ; then
  48236. + eval cmds=\"\$concat_cmds\"
  48237. + else
  48238. + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  48239. + fi
  48240. + fi
  48241. fi
  48242. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  48243. + save_ifs="$IFS"; IFS='~'
  48244. for cmd in $cmds; do
  48245. + eval cmd=\"$cmd\"
  48246. IFS="$save_ifs"
  48247. $show "$cmd"
  48248. $run eval "$cmd" || exit $?
  48249. @@ -3056,20 +5570,31 @@
  48250. fi
  48251. # Now create the libtool archive.
  48252. - case "$output" in
  48253. + case $output in
  48254. *.la)
  48255. old_library=
  48256. test "$build_old_libs" = yes && old_library="$libname.$libext"
  48257. $show "creating $output"
  48258. - if test -n "$xrpath"; then
  48259. - temp_xrpath=
  48260. - for libdir in $xrpath; do
  48261. - temp_xrpath="$temp_xrpath -R$libdir"
  48262. - done
  48263. - dependency_libs="$temp_xrpath $dependency_libs"
  48264. + # Preserve any variables that may affect compiler behavior
  48265. + for var in $variables_saved_for_relink; do
  48266. + if eval test -z \"\${$var+set}\"; then
  48267. + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  48268. + elif eval var_value=\$$var; test -z "$var_value"; then
  48269. + relink_command="$var=; export $var; $relink_command"
  48270. + else
  48271. + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  48272. + relink_command="$var=\"$var_value\"; export $var; $relink_command"
  48273. + fi
  48274. + done
  48275. + # Quote the link command for shipping.
  48276. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  48277. + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  48278. + if test "$hardcode_automatic" = yes ; then
  48279. + relink_command=
  48280. fi
  48281. +
  48282. # Only create the output if not a dry run.
  48283. if test -z "$run"; then
  48284. for installed in no yes; do
  48285. @@ -3078,8 +5603,71 @@
  48286. break
  48287. fi
  48288. output="$output_objdir/$outputname"i
  48289. + # Replace all uninstalled libtool libraries with the installed ones
  48290. + newdependency_libs=
  48291. + for deplib in $dependency_libs; do
  48292. + case $deplib in
  48293. + *.la)
  48294. + name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  48295. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  48296. + if test -z "$libdir"; then
  48297. + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  48298. + exit $EXIT_FAILURE
  48299. + fi
  48300. + newdependency_libs="$newdependency_libs $libdir/$name"
  48301. + ;;
  48302. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  48303. + esac
  48304. + done
  48305. + dependency_libs="$newdependency_libs"
  48306. + newdlfiles=
  48307. + for lib in $dlfiles; do
  48308. + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  48309. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  48310. + if test -z "$libdir"; then
  48311. + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  48312. + exit $EXIT_FAILURE
  48313. + fi
  48314. + newdlfiles="$newdlfiles $libdir/$name"
  48315. + done
  48316. + dlfiles="$newdlfiles"
  48317. + newdlprefiles=
  48318. + for lib in $dlprefiles; do
  48319. + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  48320. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  48321. + if test -z "$libdir"; then
  48322. + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  48323. + exit $EXIT_FAILURE
  48324. + fi
  48325. + newdlprefiles="$newdlprefiles $libdir/$name"
  48326. + done
  48327. + dlprefiles="$newdlprefiles"
  48328. + else
  48329. + newdlfiles=
  48330. + for lib in $dlfiles; do
  48331. + case $lib in
  48332. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  48333. + *) abs=`pwd`"/$lib" ;;
  48334. + esac
  48335. + newdlfiles="$newdlfiles $abs"
  48336. + done
  48337. + dlfiles="$newdlfiles"
  48338. + newdlprefiles=
  48339. + for lib in $dlprefiles; do
  48340. + case $lib in
  48341. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  48342. + *) abs=`pwd`"/$lib" ;;
  48343. + esac
  48344. + newdlprefiles="$newdlprefiles $abs"
  48345. + done
  48346. + dlprefiles="$newdlprefiles"
  48347. fi
  48348. $rm $output
  48349. + # place dlname in correct position for cygwin
  48350. + tdlname=$dlname
  48351. + case $host,$output,$installed,$module,$dlname in
  48352. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  48353. + esac
  48354. $echo > $output "\
  48355. # $outputname - a libtool library file
  48356. # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  48357. @@ -3088,7 +5676,7 @@
  48358. # It is necessary for linking the library.
  48359. # The name that we can dlopen(3).
  48360. -dlname='$dlname'
  48361. +dlname='$tdlname'
  48362. # Names of this library.
  48363. library_names='$library_names'
  48364. @@ -3107,19 +5695,29 @@
  48365. # Is this an already installed library?
  48366. installed=$installed
  48367. +# Should we warn about portability when linking against -modules?
  48368. +shouldnotlink=$module
  48369. +
  48370. +# Files to dlopen/dlpreopen
  48371. +dlopen='$dlfiles'
  48372. +dlpreopen='$dlprefiles'
  48373. +
  48374. # Directory that this library needs to be installed in:
  48375. -libdir='$install_libdir'\
  48376. -"
  48377. +libdir='$install_libdir'"
  48378. + if test "$installed" = no && test "$need_relink" = yes; then
  48379. + $echo >> $output "\
  48380. +relink_command=\"$relink_command\""
  48381. + fi
  48382. done
  48383. fi
  48384. # Do a symbolic link so that the libtool archive can be found in
  48385. # LD_LIBRARY_PATH before the program is installed.
  48386. $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
  48387. - $run eval "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" || exit $?
  48388. + $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
  48389. ;;
  48390. esac
  48391. - exit 0
  48392. + exit $EXIT_SUCCESS
  48393. ;;
  48394. # libtool install mode
  48395. @@ -3128,11 +5726,13 @@
  48396. # There may be an optional sh(1) argument at the beginning of
  48397. # install_prog (especially on Windows NT).
  48398. - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh; then
  48399. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  48400. + # Allow the use of GNU shtool's install command.
  48401. + $echo "X$nonopt" | grep shtool > /dev/null; then
  48402. # Aesthetically quote it.
  48403. arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
  48404. - case "$arg" in
  48405. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  48406. + case $arg in
  48407. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48408. arg="\"$arg\""
  48409. ;;
  48410. esac
  48411. @@ -3141,14 +5741,14 @@
  48412. shift
  48413. else
  48414. install_prog=
  48415. - arg="$nonopt"
  48416. + arg=$nonopt
  48417. fi
  48418. # The real first argument should be the name of the installation program.
  48419. # Aesthetically quote it.
  48420. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  48421. - case "$arg" in
  48422. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  48423. + case $arg in
  48424. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48425. arg="\"$arg\""
  48426. ;;
  48427. esac
  48428. @@ -3166,28 +5766,31 @@
  48429. do
  48430. if test -n "$dest"; then
  48431. files="$files $dest"
  48432. - dest="$arg"
  48433. + dest=$arg
  48434. continue
  48435. fi
  48436. - case "$arg" in
  48437. + case $arg in
  48438. -d) isdir=yes ;;
  48439. - -f) prev="-f" ;;
  48440. - -g) prev="-g" ;;
  48441. - -m) prev="-m" ;;
  48442. - -o) prev="-o" ;;
  48443. + -f)
  48444. + case " $install_prog " in
  48445. + *[\\\ /]cp\ *) ;;
  48446. + *) prev=$arg ;;
  48447. + esac
  48448. + ;;
  48449. + -g | -m | -o) prev=$arg ;;
  48450. -s)
  48451. stripme=" -s"
  48452. continue
  48453. ;;
  48454. - -*) ;;
  48455. -
  48456. + -*)
  48457. + ;;
  48458. *)
  48459. # If the previous option needed an argument, then skip it.
  48460. if test -n "$prev"; then
  48461. prev=
  48462. else
  48463. - dest="$arg"
  48464. + dest=$arg
  48465. continue
  48466. fi
  48467. ;;
  48468. @@ -3195,8 +5798,8 @@
  48469. # Aesthetically quote the argument.
  48470. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  48471. - case "$arg" in
  48472. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  48473. + case $arg in
  48474. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48475. arg="\"$arg\""
  48476. ;;
  48477. esac
  48478. @@ -3206,13 +5809,13 @@
  48479. if test -z "$install_prog"; then
  48480. $echo "$modename: you must specify an install program" 1>&2
  48481. $echo "$help" 1>&2
  48482. - exit 1
  48483. + exit $EXIT_FAILURE
  48484. fi
  48485. if test -n "$prev"; then
  48486. $echo "$modename: the \`$prev' option requires an argument" 1>&2
  48487. $echo "$help" 1>&2
  48488. - exit 1
  48489. + exit $EXIT_FAILURE
  48490. fi
  48491. if test -z "$files"; then
  48492. @@ -3222,7 +5825,7 @@
  48493. $echo "$modename: you must specify a destination" 1>&2
  48494. fi
  48495. $echo "$help" 1>&2
  48496. - exit 1
  48497. + exit $EXIT_FAILURE
  48498. fi
  48499. # Strip any trailing slash from the destination.
  48500. @@ -3240,22 +5843,22 @@
  48501. # Not a directory, so check to see that there is only one file specified.
  48502. set dummy $files
  48503. - if test $# -gt 2; then
  48504. + if test "$#" -gt 2; then
  48505. $echo "$modename: \`$dest' is not a directory" 1>&2
  48506. $echo "$help" 1>&2
  48507. - exit 1
  48508. + exit $EXIT_FAILURE
  48509. fi
  48510. fi
  48511. - case "$destdir" in
  48512. + case $destdir in
  48513. [\\/]* | [A-Za-z]:[\\/]*) ;;
  48514. *)
  48515. for file in $files; do
  48516. - case "$file" in
  48517. + case $file in
  48518. *.lo) ;;
  48519. *)
  48520. $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
  48521. $echo "$help" 1>&2
  48522. - exit 1
  48523. + exit $EXIT_FAILURE
  48524. ;;
  48525. esac
  48526. done
  48527. @@ -3272,25 +5875,26 @@
  48528. for file in $files; do
  48529. # Do each installation.
  48530. - case "$file" in
  48531. - *.a | *.lib)
  48532. + case $file in
  48533. + *.$libext)
  48534. # Do the static libraries later.
  48535. staticlibs="$staticlibs $file"
  48536. ;;
  48537. *.la)
  48538. # Check to see that this really is a libtool archive.
  48539. - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  48540. + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  48541. else
  48542. $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  48543. $echo "$help" 1>&2
  48544. - exit 1
  48545. + exit $EXIT_FAILURE
  48546. fi
  48547. library_names=
  48548. old_library=
  48549. + relink_command=
  48550. # If there is no directory component, then add one.
  48551. - case "$file" in
  48552. + case $file in
  48553. */* | *\\*) . $file ;;
  48554. *) . ./$file ;;
  48555. esac
  48556. @@ -3309,10 +5913,41 @@
  48557. esac
  48558. fi
  48559. - dir="`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/"
  48560. + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
  48561. test "X$dir" = "X$file/" && dir=
  48562. dir="$dir$objdir"
  48563. + if test -n "$relink_command"; then
  48564. + # Determine the prefix the user has applied to our future dir.
  48565. + inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
  48566. +
  48567. + # Don't allow the user to place us outside of our expected
  48568. + # location b/c this prevents finding dependent libraries that
  48569. + # are installed to the same prefix.
  48570. + # At present, this check doesn't affect windows .dll's that
  48571. + # are installed into $libdir/../bin (currently, that works fine)
  48572. + # but it's something to keep an eye on.
  48573. + if test "$inst_prefix_dir" = "$destdir"; then
  48574. + $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  48575. + exit $EXIT_FAILURE
  48576. + fi
  48577. +
  48578. + if test -n "$inst_prefix_dir"; then
  48579. + # Stick the inst_prefix_dir data into the link command.
  48580. + relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  48581. + else
  48582. + relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
  48583. + fi
  48584. +
  48585. + $echo "$modename: warning: relinking \`$file'" 1>&2
  48586. + $show "$relink_command"
  48587. + if $run eval "$relink_command"; then :
  48588. + else
  48589. + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  48590. + exit $EXIT_FAILURE
  48591. + fi
  48592. + fi
  48593. +
  48594. # See the names of the shared library.
  48595. set dummy $library_names
  48596. if test -n "$2"; then
  48597. @@ -3320,29 +5955,49 @@
  48598. shift
  48599. shift
  48600. + srcname="$realname"
  48601. + test -n "$relink_command" && srcname="$realname"T
  48602. +
  48603. # Install the shared library and build the symlinks.
  48604. - $show "$install_prog $dir/$realname $destdir/$realname"
  48605. - $run eval "$install_prog $dir/$realname $destdir/$realname" || exit $?
  48606. + $show "$install_prog $dir/$srcname $destdir/$realname"
  48607. + $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
  48608. + if test -n "$stripme" && test -n "$striplib"; then
  48609. + $show "$striplib $destdir/$realname"
  48610. + $run eval "$striplib $destdir/$realname" || exit $?
  48611. + fi
  48612. - if test $# -gt 0; then
  48613. + if test "$#" -gt 0; then
  48614. # Delete the old symlinks, and create new ones.
  48615. + # Try `ln -sf' first, because the `ln' binary might depend on
  48616. + # the symlink we replace! Solaris /bin/ln does not understand -f,
  48617. + # so we also need to try rm && ln -s.
  48618. for linkname
  48619. do
  48620. if test "$linkname" != "$realname"; then
  48621. - $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
  48622. - $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
  48623. + $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  48624. + $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  48625. fi
  48626. done
  48627. fi
  48628. # Do each command in the postinstall commands.
  48629. lib="$destdir/$realname"
  48630. - eval cmds=\"$postinstall_cmds\"
  48631. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  48632. + cmds=$postinstall_cmds
  48633. + save_ifs="$IFS"; IFS='~'
  48634. for cmd in $cmds; do
  48635. IFS="$save_ifs"
  48636. + eval cmd=\"$cmd\"
  48637. $show "$cmd"
  48638. - $run eval "$cmd" || exit $?
  48639. + $run eval "$cmd" || {
  48640. + lt_exit=$?
  48641. +
  48642. + # Restore the uninstalled library and exit
  48643. + if test "$mode" = relink; then
  48644. + $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  48645. + fi
  48646. +
  48647. + exit $lt_exit
  48648. + }
  48649. done
  48650. IFS="$save_ifs"
  48651. fi
  48652. @@ -3369,18 +6024,18 @@
  48653. fi
  48654. # Deduce the name of the destination old-style object file.
  48655. - case "$destfile" in
  48656. + case $destfile in
  48657. *.lo)
  48658. staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
  48659. ;;
  48660. - *.o | *.obj)
  48661. + *.$objext)
  48662. staticdest="$destfile"
  48663. destfile=
  48664. ;;
  48665. *)
  48666. $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
  48667. $echo "$help" 1>&2
  48668. - exit 1
  48669. + exit $EXIT_FAILURE
  48670. ;;
  48671. esac
  48672. @@ -3398,7 +6053,7 @@
  48673. $show "$install_prog $staticobj $staticdest"
  48674. $run eval "$install_prog \$staticobj \$staticdest" || exit $?
  48675. fi
  48676. - exit 0
  48677. + exit $EXIT_SUCCESS
  48678. ;;
  48679. *)
  48680. @@ -3410,52 +6065,84 @@
  48681. destfile="$destdir/$destfile"
  48682. fi
  48683. + # If the file is missing, and there is a .exe on the end, strip it
  48684. + # because it is most likely a libtool script we actually want to
  48685. + # install
  48686. + stripped_ext=""
  48687. + case $file in
  48688. + *.exe)
  48689. + if test ! -f "$file"; then
  48690. + file=`$echo $file|${SED} 's,.exe$,,'`
  48691. + stripped_ext=".exe"
  48692. + fi
  48693. + ;;
  48694. + esac
  48695. +
  48696. # Do a test to see if this is really a libtool program.
  48697. - if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  48698. - link_against_libtool_libs=
  48699. + case $host in
  48700. + *cygwin*|*mingw*)
  48701. + wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
  48702. + ;;
  48703. + *)
  48704. + wrapper=$file
  48705. + ;;
  48706. + esac
  48707. + if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  48708. + notinst_deplibs=
  48709. relink_command=
  48710. + # Note that it is not necessary on cygwin/mingw to append a dot to
  48711. + # foo even if both foo and FILE.exe exist: automatic-append-.exe
  48712. + # behavior happens only for exec(3), not for open(2)! Also, sourcing
  48713. + # `FILE.' does not work on cygwin managed mounts.
  48714. + #
  48715. # If there is no directory component, then add one.
  48716. - case "$file" in
  48717. - */* | *\\*) . $file ;;
  48718. - *) . ./$file ;;
  48719. + case $wrapper in
  48720. + */* | *\\*) . ${wrapper} ;;
  48721. + *) . ./${wrapper} ;;
  48722. esac
  48723. # Check the variables that should have been set.
  48724. - if test -z "$link_against_libtool_libs"; then
  48725. - $echo "$modename: invalid libtool wrapper script \`$file'" 1>&2
  48726. - exit 1
  48727. + if test -z "$notinst_deplibs"; then
  48728. + $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  48729. + exit $EXIT_FAILURE
  48730. fi
  48731. finalize=yes
  48732. - for lib in $link_against_libtool_libs; do
  48733. + for lib in $notinst_deplibs; do
  48734. # Check to see that each library is installed.
  48735. libdir=
  48736. if test -f "$lib"; then
  48737. # If there is no directory component, then add one.
  48738. - case "$lib" in
  48739. + case $lib in
  48740. */* | *\\*) . $lib ;;
  48741. *) . ./$lib ;;
  48742. esac
  48743. fi
  48744. - libfile="$libdir/`$echo "X$lib" | $Xsed -e 's%^.*/%%g'`"
  48745. + libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  48746. if test -n "$libdir" && test ! -f "$libfile"; then
  48747. $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
  48748. finalize=no
  48749. fi
  48750. done
  48751. + relink_command=
  48752. + # Note that it is not necessary on cygwin/mingw to append a dot to
  48753. + # foo even if both foo and FILE.exe exist: automatic-append-.exe
  48754. + # behavior happens only for exec(3), not for open(2)! Also, sourcing
  48755. + # `FILE.' does not work on cygwin managed mounts.
  48756. + #
  48757. + # If there is no directory component, then add one.
  48758. + case $wrapper in
  48759. + */* | *\\*) . ${wrapper} ;;
  48760. + *) . ./${wrapper} ;;
  48761. + esac
  48762. +
  48763. outputname=
  48764. if test "$fast_install" = no && test -n "$relink_command"; then
  48765. if test "$finalize" = yes && test -z "$run"; then
  48766. - tmpdir="/tmp"
  48767. - test -n "$TMPDIR" && tmpdir="$TMPDIR"
  48768. - tmpdir="$tmpdir/libtool-$$"
  48769. - if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then :
  48770. - else
  48771. - $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
  48772. - continue
  48773. - fi
  48774. + tmpdir=`func_mktempdir`
  48775. + file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
  48776. outputname="$tmpdir/$file"
  48777. # Replace the output file specification.
  48778. relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  48779. @@ -3473,10 +6160,27 @@
  48780. fi
  48781. else
  48782. # Install the binary that we compiled earlier.
  48783. - file=`$echo "X$file" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  48784. + file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  48785. fi
  48786. fi
  48787. + # remove .exe since cygwin /usr/bin/install will append another
  48788. + # one anyway
  48789. + case $install_prog,$host in
  48790. + */usr/bin/install*,*cygwin*)
  48791. + case $file:$destfile in
  48792. + *.exe:*.exe)
  48793. + # this is ok
  48794. + ;;
  48795. + *.exe:*)
  48796. + destfile=$destfile.exe
  48797. + ;;
  48798. + *:*.exe)
  48799. + destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
  48800. + ;;
  48801. + esac
  48802. + ;;
  48803. + esac
  48804. $show "$install_prog$stripme $file $destfile"
  48805. $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
  48806. test -n "$outputname" && ${rm}r "$tmpdir"
  48807. @@ -3493,11 +6197,17 @@
  48808. $show "$install_prog $file $oldlib"
  48809. $run eval "$install_prog \$file \$oldlib" || exit $?
  48810. + if test -n "$stripme" && test -n "$old_striplib"; then
  48811. + $show "$old_striplib $oldlib"
  48812. + $run eval "$old_striplib $oldlib" || exit $?
  48813. + fi
  48814. +
  48815. # Do each command in the postinstall commands.
  48816. - eval cmds=\"$old_postinstall_cmds\"
  48817. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  48818. + cmds=$old_postinstall_cmds
  48819. + save_ifs="$IFS"; IFS='~'
  48820. for cmd in $cmds; do
  48821. IFS="$save_ifs"
  48822. + eval cmd=\"$cmd\"
  48823. $show "$cmd"
  48824. $run eval "$cmd" || exit $?
  48825. done
  48826. @@ -3511,11 +6221,10 @@
  48827. if test -n "$current_libdirs"; then
  48828. # Maybe just do a dry run.
  48829. test -n "$run" && current_libdirs=" -n$current_libdirs"
  48830. - exec $SHELL $0 --finish$current_libdirs
  48831. - exit 1
  48832. + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  48833. + else
  48834. + exit $EXIT_SUCCESS
  48835. fi
  48836. -
  48837. - exit 0
  48838. ;;
  48839. # libtool finish mode
  48840. @@ -3533,10 +6242,11 @@
  48841. for libdir in $libdirs; do
  48842. if test -n "$finish_cmds"; then
  48843. # Do each command in the finish commands.
  48844. - eval cmds=\"$finish_cmds\"
  48845. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  48846. + cmds=$finish_cmds
  48847. + save_ifs="$IFS"; IFS='~'
  48848. for cmd in $cmds; do
  48849. IFS="$save_ifs"
  48850. + eval cmd=\"$cmd\"
  48851. $show "$cmd"
  48852. $run eval "$cmd" || admincmds="$admincmds
  48853. $cmd"
  48854. @@ -3553,43 +6263,43 @@
  48855. fi
  48856. # Exit here if they wanted silent mode.
  48857. - test "$show" = : && exit 0
  48858. + test "$show" = : && exit $EXIT_SUCCESS
  48859. - echo "----------------------------------------------------------------------"
  48860. - echo "Libraries have been installed in:"
  48861. + $echo "X----------------------------------------------------------------------" | $Xsed
  48862. + $echo "Libraries have been installed in:"
  48863. for libdir in $libdirs; do
  48864. - echo " $libdir"
  48865. + $echo " $libdir"
  48866. done
  48867. - echo
  48868. - echo "If you ever happen to want to link against installed libraries"
  48869. - echo "in a given directory, LIBDIR, you must either use libtool, and"
  48870. - echo "specify the full pathname of the library, or use \`-LLIBDIR'"
  48871. - echo "flag during linking and do at least one of the following:"
  48872. + $echo
  48873. + $echo "If you ever happen to want to link against installed libraries"
  48874. + $echo "in a given directory, LIBDIR, you must either use libtool, and"
  48875. + $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  48876. + $echo "flag during linking and do at least one of the following:"
  48877. if test -n "$shlibpath_var"; then
  48878. - echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  48879. - echo " during execution"
  48880. + $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  48881. + $echo " during execution"
  48882. fi
  48883. if test -n "$runpath_var"; then
  48884. - echo " - add LIBDIR to the \`$runpath_var' environment variable"
  48885. - echo " during linking"
  48886. + $echo " - add LIBDIR to the \`$runpath_var' environment variable"
  48887. + $echo " during linking"
  48888. fi
  48889. if test -n "$hardcode_libdir_flag_spec"; then
  48890. libdir=LIBDIR
  48891. eval flag=\"$hardcode_libdir_flag_spec\"
  48892. - echo " - use the \`$flag' linker flag"
  48893. + $echo " - use the \`$flag' linker flag"
  48894. fi
  48895. if test -n "$admincmds"; then
  48896. - echo " - have your system administrator run these commands:$admincmds"
  48897. + $echo " - have your system administrator run these commands:$admincmds"
  48898. fi
  48899. if test -f /etc/ld.so.conf; then
  48900. - echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  48901. + $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  48902. fi
  48903. - echo
  48904. - echo "See any operating system documentation about shared libraries for"
  48905. - echo "more information, such as the ld(1) and ld.so(8) manual pages."
  48906. - echo "----------------------------------------------------------------------"
  48907. - exit 0
  48908. + $echo
  48909. + $echo "See any operating system documentation about shared libraries for"
  48910. + $echo "more information, such as the ld(1) and ld.so(8) manual pages."
  48911. + $echo "X----------------------------------------------------------------------" | $Xsed
  48912. + exit $EXIT_SUCCESS
  48913. ;;
  48914. # libtool execute mode
  48915. @@ -3601,7 +6311,7 @@
  48916. if test -z "$cmd"; then
  48917. $echo "$modename: you must specify a COMMAND" 1>&2
  48918. $echo "$help"
  48919. - exit 1
  48920. + exit $EXIT_FAILURE
  48921. fi
  48922. # Handle -dlopen flags immediately.
  48923. @@ -3609,18 +6319,18 @@
  48924. if test ! -f "$file"; then
  48925. $echo "$modename: \`$file' is not a file" 1>&2
  48926. $echo "$help" 1>&2
  48927. - exit 1
  48928. + exit $EXIT_FAILURE
  48929. fi
  48930. dir=
  48931. - case "$file" in
  48932. + case $file in
  48933. *.la)
  48934. # Check to see that this really is a libtool archive.
  48935. - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  48936. + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  48937. else
  48938. $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  48939. $echo "$help" 1>&2
  48940. - exit 1
  48941. + exit $EXIT_FAILURE
  48942. fi
  48943. # Read the libtool library.
  48944. @@ -3628,7 +6338,7 @@
  48945. library_names=
  48946. # If there is no directory component, then add one.
  48947. - case "$file" in
  48948. + case $file in
  48949. */* | *\\*) . $file ;;
  48950. *) . ./$file ;;
  48951. esac
  48952. @@ -3647,7 +6357,7 @@
  48953. dir="$dir/$objdir"
  48954. else
  48955. $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
  48956. - exit 1
  48957. + exit $EXIT_FAILURE
  48958. fi
  48959. ;;
  48960. @@ -3683,13 +6393,13 @@
  48961. args=
  48962. for file
  48963. do
  48964. - case "$file" in
  48965. + case $file in
  48966. -*) ;;
  48967. *)
  48968. # Do a test to see if this is really a libtool program.
  48969. - if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  48970. + if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  48971. # If there is no directory component, then add one.
  48972. - case "$file" in
  48973. + case $file in
  48974. */* | *\\*) . $file ;;
  48975. *) . ./$file ;;
  48976. esac
  48977. @@ -3706,11 +6416,11 @@
  48978. if test -z "$run"; then
  48979. if test -n "$shlibpath_var"; then
  48980. - # Export the shlibpath_var.
  48981. - eval "export $shlibpath_var"
  48982. + # Export the shlibpath_var.
  48983. + eval "export $shlibpath_var"
  48984. fi
  48985. - # Restore saved enviroment variables
  48986. + # Restore saved environment variables
  48987. if test "${save_LC_ALL+set}" = set; then
  48988. LC_ALL="$save_LC_ALL"; export LC_ALL
  48989. fi
  48990. @@ -3718,31 +6428,35 @@
  48991. LANG="$save_LANG"; export LANG
  48992. fi
  48993. - # Now actually exec the command.
  48994. - eval "exec \$cmd$args"
  48995. -
  48996. - $echo "$modename: cannot exec \$cmd$args"
  48997. - exit 1
  48998. + # Now prepare to actually exec the command.
  48999. + exec_cmd="\$cmd$args"
  49000. else
  49001. # Display what would be done.
  49002. if test -n "$shlibpath_var"; then
  49003. - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  49004. - $echo "export $shlibpath_var"
  49005. + eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  49006. + $echo "export $shlibpath_var"
  49007. fi
  49008. $echo "$cmd$args"
  49009. - exit 0
  49010. + exit $EXIT_SUCCESS
  49011. fi
  49012. ;;
  49013. - # libtool uninstall mode
  49014. - uninstall)
  49015. - modename="$modename: uninstall"
  49016. + # libtool clean and uninstall mode
  49017. + clean | uninstall)
  49018. + modename="$modename: $mode"
  49019. rm="$nonopt"
  49020. files=
  49021. + rmforce=
  49022. + exit_status=0
  49023. +
  49024. + # This variable tells wrapper scripts just to set variables rather
  49025. + # than running their programs.
  49026. + libtool_install_magic="$magic"
  49027. for arg
  49028. do
  49029. - case "$arg" in
  49030. + case $arg in
  49031. + -f) rm="$rm $arg"; rmforce=yes ;;
  49032. -*) rm="$rm $arg" ;;
  49033. *) files="$files $arg" ;;
  49034. esac
  49035. @@ -3751,91 +6465,192 @@
  49036. if test -z "$rm"; then
  49037. $echo "$modename: you must specify an RM program" 1>&2
  49038. $echo "$help" 1>&2
  49039. - exit 1
  49040. + exit $EXIT_FAILURE
  49041. fi
  49042. + rmdirs=
  49043. +
  49044. + origobjdir="$objdir"
  49045. for file in $files; do
  49046. dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  49047. - test "X$dir" = "X$file" && dir=.
  49048. + if test "X$dir" = "X$file"; then
  49049. + dir=.
  49050. + objdir="$origobjdir"
  49051. + else
  49052. + objdir="$dir/$origobjdir"
  49053. + fi
  49054. name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  49055. + test "$mode" = uninstall && objdir="$dir"
  49056. +
  49057. + # Remember objdir for removal later, being careful to avoid duplicates
  49058. + if test "$mode" = clean; then
  49059. + case " $rmdirs " in
  49060. + *" $objdir "*) ;;
  49061. + *) rmdirs="$rmdirs $objdir" ;;
  49062. + esac
  49063. + fi
  49064. +
  49065. + # Don't error if the file doesn't exist and rm -f was used.
  49066. + if (test -L "$file") >/dev/null 2>&1 \
  49067. + || (test -h "$file") >/dev/null 2>&1 \
  49068. + || test -f "$file"; then
  49069. + :
  49070. + elif test -d "$file"; then
  49071. + exit_status=1
  49072. + continue
  49073. + elif test "$rmforce" = yes; then
  49074. + continue
  49075. + fi
  49076. rmfiles="$file"
  49077. - case "$name" in
  49078. + case $name in
  49079. *.la)
  49080. # Possibly a libtool archive, so verify it.
  49081. - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  49082. + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  49083. . $dir/$name
  49084. # Delete the libtool libraries and symlinks.
  49085. for n in $library_names; do
  49086. - rmfiles="$rmfiles $dir/$n"
  49087. + rmfiles="$rmfiles $objdir/$n"
  49088. done
  49089. - test -n "$old_library" && rmfiles="$rmfiles $dir/$old_library"
  49090. + test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
  49091. - $show "$rm $rmfiles"
  49092. - $run $rm $rmfiles
  49093. -
  49094. - if test -n "$library_names"; then
  49095. - # Do each command in the postuninstall commands.
  49096. - eval cmds=\"$postuninstall_cmds\"
  49097. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  49098. - for cmd in $cmds; do
  49099. + case "$mode" in
  49100. + clean)
  49101. + case " $library_names " in
  49102. + # " " in the beginning catches empty $dlname
  49103. + *" $dlname "*) ;;
  49104. + *) rmfiles="$rmfiles $objdir/$dlname" ;;
  49105. + esac
  49106. + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  49107. + ;;
  49108. + uninstall)
  49109. + if test -n "$library_names"; then
  49110. + # Do each command in the postuninstall commands.
  49111. + cmds=$postuninstall_cmds
  49112. + save_ifs="$IFS"; IFS='~'
  49113. + for cmd in $cmds; do
  49114. + IFS="$save_ifs"
  49115. + eval cmd=\"$cmd\"
  49116. + $show "$cmd"
  49117. + $run eval "$cmd"
  49118. + if test "$?" -ne 0 && test "$rmforce" != yes; then
  49119. + exit_status=1
  49120. + fi
  49121. + done
  49122. IFS="$save_ifs"
  49123. - $show "$cmd"
  49124. - $run eval "$cmd"
  49125. - done
  49126. - IFS="$save_ifs"
  49127. - fi
  49128. + fi
  49129. - if test -n "$old_library"; then
  49130. - # Do each command in the old_postuninstall commands.
  49131. - eval cmds=\"$old_postuninstall_cmds\"
  49132. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  49133. - for cmd in $cmds; do
  49134. + if test -n "$old_library"; then
  49135. + # Do each command in the old_postuninstall commands.
  49136. + cmds=$old_postuninstall_cmds
  49137. + save_ifs="$IFS"; IFS='~'
  49138. + for cmd in $cmds; do
  49139. + IFS="$save_ifs"
  49140. + eval cmd=\"$cmd\"
  49141. + $show "$cmd"
  49142. + $run eval "$cmd"
  49143. + if test "$?" -ne 0 && test "$rmforce" != yes; then
  49144. + exit_status=1
  49145. + fi
  49146. + done
  49147. IFS="$save_ifs"
  49148. - $show "$cmd"
  49149. - $run eval "$cmd"
  49150. - done
  49151. - IFS="$save_ifs"
  49152. - fi
  49153. -
  49154. - # FIXME: should reinstall the best remaining shared library.
  49155. + fi
  49156. + # FIXME: should reinstall the best remaining shared library.
  49157. + ;;
  49158. + esac
  49159. fi
  49160. ;;
  49161. *.lo)
  49162. - if test "$build_old_libs" = yes; then
  49163. - oldobj=`$echo "X$name" | $Xsed -e "$lo2o"`
  49164. - rmfiles="$rmfiles $dir/$oldobj"
  49165. + # Possibly a libtool object, so verify it.
  49166. + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  49167. +
  49168. + # Read the .lo file
  49169. + . $dir/$name
  49170. +
  49171. + # Add PIC object to the list of files to remove.
  49172. + if test -n "$pic_object" \
  49173. + && test "$pic_object" != none; then
  49174. + rmfiles="$rmfiles $dir/$pic_object"
  49175. + fi
  49176. +
  49177. + # Add non-PIC object to the list of files to remove.
  49178. + if test -n "$non_pic_object" \
  49179. + && test "$non_pic_object" != none; then
  49180. + rmfiles="$rmfiles $dir/$non_pic_object"
  49181. + fi
  49182. fi
  49183. - $show "$rm $rmfiles"
  49184. - $run $rm $rmfiles
  49185. ;;
  49186. *)
  49187. - $show "$rm $rmfiles"
  49188. - $run $rm $rmfiles
  49189. + if test "$mode" = clean ; then
  49190. + noexename=$name
  49191. + case $file in
  49192. + *.exe)
  49193. + file=`$echo $file|${SED} 's,.exe$,,'`
  49194. + noexename=`$echo $name|${SED} 's,.exe$,,'`
  49195. + # $file with .exe has already been added to rmfiles,
  49196. + # add $file without .exe
  49197. + rmfiles="$rmfiles $file"
  49198. + ;;
  49199. + esac
  49200. + # Do a test to see if this is a libtool program.
  49201. + if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  49202. + relink_command=
  49203. + . $dir/$noexename
  49204. +
  49205. + # note $name still contains .exe if it was in $file originally
  49206. + # as does the version of $file that was added into $rmfiles
  49207. + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
  49208. + if test "$fast_install" = yes && test -n "$relink_command"; then
  49209. + rmfiles="$rmfiles $objdir/lt-$name"
  49210. + fi
  49211. + if test "X$noexename" != "X$name" ; then
  49212. + rmfiles="$rmfiles $objdir/lt-${noexename}.c"
  49213. + fi
  49214. + fi
  49215. + fi
  49216. ;;
  49217. esac
  49218. + $show "$rm $rmfiles"
  49219. + $run $rm $rmfiles || exit_status=1
  49220. done
  49221. - exit 0
  49222. + objdir="$origobjdir"
  49223. +
  49224. + # Try to remove the ${objdir}s in the directories where we deleted files
  49225. + for dir in $rmdirs; do
  49226. + if test -d "$dir"; then
  49227. + $show "rmdir $dir"
  49228. + $run rmdir $dir >/dev/null 2>&1
  49229. + fi
  49230. + done
  49231. +
  49232. + exit $exit_status
  49233. ;;
  49234. "")
  49235. $echo "$modename: you must specify a MODE" 1>&2
  49236. $echo "$generic_help" 1>&2
  49237. - exit 1
  49238. + exit $EXIT_FAILURE
  49239. ;;
  49240. esac
  49241. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  49242. - $echo "$generic_help" 1>&2
  49243. - exit 1
  49244. + if test -z "$exec_cmd"; then
  49245. + $echo "$modename: invalid operation mode \`$mode'" 1>&2
  49246. + $echo "$generic_help" 1>&2
  49247. + exit $EXIT_FAILURE
  49248. + fi
  49249. fi # test -z "$show_help"
  49250. +if test -n "$exec_cmd"; then
  49251. + eval exec $exec_cmd
  49252. + exit $EXIT_FAILURE
  49253. +fi
  49254. +
  49255. # We need to display help for each of the modes.
  49256. -case "$mode" in
  49257. +case $mode in
  49258. "") $echo \
  49259. "Usage: $modename [OPTION]... [MODE-ARG]...
  49260. @@ -3850,10 +6665,12 @@
  49261. --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
  49262. --quiet same as \`--silent'
  49263. --silent don't print informational messages
  49264. + --tag=TAG use configuration variables from tag TAG
  49265. --version print version information
  49266. MODE must be one of the following:
  49267. + clean remove files from the build directory
  49268. compile compile a source file into a libtool object
  49269. execute automatically set library path, then run a program
  49270. finish complete the installation of libtool libraries
  49271. @@ -3862,8 +6679,24 @@
  49272. uninstall remove libraries from an installed directory
  49273. MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
  49274. -a more detailed description of MODE."
  49275. - exit 0
  49276. +a more detailed description of MODE.
  49277. +
  49278. +Report bugs to <bug-libtool@gnu.org>."
  49279. + exit $EXIT_SUCCESS
  49280. + ;;
  49281. +
  49282. +clean)
  49283. + $echo \
  49284. +"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  49285. +
  49286. +Remove files from the build directory.
  49287. +
  49288. +RM is the name of the program to use to delete files associated with each FILE
  49289. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  49290. +to RM.
  49291. +
  49292. +If FILE is a libtool library, object or program, all the files associated
  49293. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  49294. ;;
  49295. compile)
  49296. @@ -3875,6 +6708,8 @@
  49297. This mode accepts the following additional options:
  49298. -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  49299. + -prefer-pic try to building PIC objects only
  49300. + -prefer-non-pic try to building non-PIC objects only
  49301. -static always build a \`.o' file suitable for static linking
  49302. COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  49303. @@ -3954,8 +6789,13 @@
  49304. -LLIBDIR search LIBDIR for required installed libraries
  49305. -lNAME OUTPUT-FILE requires the installed library libNAME
  49306. -module build a library that can dlopened
  49307. + -no-fast-install disable the fast-install mode
  49308. + -no-install link a not-installable executable
  49309. -no-undefined declare that a library does not refer to external symbols
  49310. -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  49311. + -objectlist FILE Use a list of object files found in FILE to specify objects
  49312. + -precious-files-regex REGEX
  49313. + don't remove output files matching REGEX
  49314. -release RELEASE specify package release information
  49315. -rpath LIBDIR the created library will eventually be installed in LIBDIR
  49316. -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  49317. @@ -3997,14 +6837,33 @@
  49318. *)
  49319. $echo "$modename: invalid operation mode \`$mode'" 1>&2
  49320. $echo "$help" 1>&2
  49321. - exit 1
  49322. + exit $EXIT_FAILURE
  49323. ;;
  49324. esac
  49325. -echo
  49326. +$echo
  49327. $echo "Try \`$modename --help' for more information about other modes."
  49328. -exit 0
  49329. +exit $?
  49330. +
  49331. +# The TAGs below are defined such that we never get into a situation
  49332. +# in which we disable both kinds of libraries. Given conflicting
  49333. +# choices, we go for a static library, that is the most portable,
  49334. +# since we can't tell whether shared libraries were disabled because
  49335. +# the user asked for that or because the platform doesn't support
  49336. +# them. This is particularly important on AIX, because we don't
  49337. +# support having both static and shared libraries enabled at the same
  49338. +# time on that platform, so we default to a shared-only configuration.
  49339. +# If a disable-shared tag is given, we'll fallback to a static-only
  49340. +# configuration. But we'll never go from static-only to shared-only.
  49341. +
  49342. +# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
  49343. +disable_libs=shared
  49344. +# ### END LIBTOOL TAG CONFIG: disable-shared
  49345. +
  49346. +# ### BEGIN LIBTOOL TAG CONFIG: disable-static
  49347. +disable_libs=static
  49348. +# ### END LIBTOOL TAG CONFIG: disable-static
  49349. # Local Variables:
  49350. # mode:shell-script